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 checkContextFunctionalPseudoClasses: []
to selector-max-id
#7364
Comments
includeContextFunctionalPseudoClasses: []
to selector-max-id
@brigitamaria Thanks for the request and for using the template. The built-in rules only support standard CSS syntax from the specifications. However, we can discuss adding a For example: {
"rules": {
"selector-max-id": [0, {
"includeContextFunctionalPseudoClasses": ["--custom-pseudo-class"]
}]
}
} The new option would go alongside the existing |
I found cases that warrants the addition of a new option: |
I like the suggestion for adding a new option, but how should we treat the presedence if we pass the same elements to |
I advise against order because it wasn't consistent for objects in ES5. A simple solution would be to have one of the two have the priority. |
@jeddy3 @ybiquitous it looks warranted, but I may be biased; can we change the status? |
includeContextFunctionalPseudoClasses: []
to selector-max-id
checkContextFunctionalPseudoClasses: []
to selector-max-id
What is the problem you're trying to solve?
I'm using
selector-max-id: 0
on a project to disable ID selectors on the CSS files, but something like:global(#foo)
is not throwing any errors.What solution would you like to see?
Currently,
:global
and:local
is not included onisContextFunctionalPseudoClass
.Including those scope selectors in that function will affect another rules which also use the same function, so what do you think about this use case?
I'd be happy to help so let me know about your opinion, thank you!
The text was updated successfully, but these errors were encountered: