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
Rule idea selector-pseudo-class-no-empty-parentheses
#2047
Comments
I think we might have taken a wrong turn when we started using these Previous I think we're creeping into spec parser territory here, which I think is better handled in projects like csstree and css-values and then wrapped as stylelint plugins. These plugins are only applicable to users who write spec-based CSS i.e. those who do not use language extensions introduced by PostCSS plugins or preprocessors. I think such plugins would be more powerful than these piecemeal attempts to check for validity. So, my suggestion is we close this issue in favour of someone creating a selector validator. I also suggest we undo our mistake with Thoughts? |
I think you're right @jeddy3, stylelint is not a CSS spec parser 👍 |
@jeddy3 agree, also i agree |
👍 from me, too. |
This rule is outside the scope of stylelint's functionality. See [this comment](stylelint/stylelint#2047 (comment)) for details.
Maybe
Invalid
Valid
Include
nth-child
,nth-last-child
and etc.selector-pseudo-class-no-empty-selector
no matter
e.g.
no matter
no matter
no matter
no matter
no matter
The text was updated successfully, but these errors were encountered: