-
-
Notifications
You must be signed in to change notification settings - Fork 934
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-pseudo-element-no-invalid rule #2155
Comments
@salzhrani Thank you for the suggestion and for using the template. @stylelint/core We can discuss this in #2126 as its another spec validation rule. |
@jeddy3 css validation have error, I think this does not apply to us, best solution is plugin |
If we do make a rule for this, I think it should be a little more general, like
|
Agreed that that would be best regardless of whether this is a plugin or a core rule. @salzhrani FYI, we're currently doing an audit of the existing rules and formalising the boundary between core rules and plugins. Your suggestion falls close to where the boundary might fall, as such there might be a wait on resolving this issue. As an aside, if we do split spec enforcement rules into a plugin pack, would you interested in championing such a thing and helping to maintain it? |
/cc @jeddy3 @davidtheclark what our decision on this issue? |
I think that there should be an independent tool that validates selectors. Or maybe this could be an addition to Looks like csstree has selector validation on the roadmap. Somebody could write a standalone package for this, too. |
Yep, it looks like there are some exciting things happening over at csstree when it comes to spec validation! |
@davidtheclark @jeddy3 agree, closing. If in the future we decide to validate rules in the core, then this is a separate issue 👍 |
a new rule warn about writing a decedent to a pseudo element
7.6.0
e.g. "CLI with
stylelint --config myconfig *.css
"it also affects scss
a warning like: Pseudo elements have no descendants
no errors
The text was updated successfully, but these errors were encountered: