New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add selector-not-notation #5974
Comments
Thanks for opening a new issue. Am I right in thinking that If so, we can add a rule to our enforce conventions category that'll let the user enforce their preference. It would be similar to the Where :not(div, .foo) {} And accept: :not(div):not(.foo) {} And |
You are.
If you think that it should be its own separate rule, Ill comply.
I think |
SGTM.
|
there's one test that I considered unfixable for
Ill need help for that. |
That's fine, we can open a follow-up issue.
Sure thing. I'll add something to the pull request. |
Added in #5975 |
The fix method is a non-safe method as it changes specificity. So not sure including this in the general fix method is a good idea. |
@carlosjeurissen Can you open a documentation issue, please? We can add a note to rule's README that the fix may change the specificity.
Rules can be turned on and off individually. Quite a few other rules come with caveats regarding their autofix. |
check #5974 (comment)
What is the problem you're trying to solve?
::slotted()
e.g.::slotted(div a) {}
selector-shadow-no-unmatchable
#5575:not()
(level 3) using an option on the rule e.g.:not(div, .foo)
or:not(a.b[c])
prompted by #5575 (comment)
What solution would you like to see?
One rule that fix it for
::slotted()
which would have one option for:not()
(disabled by default*).Someone will have to check whether there are other functions that require simple selectors.
* because the level 4
:not()
is not affectedThe text was updated successfully, but these errors were encountered: