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 autofix to selector-pseudo-element-case #3672
Add autofix to selector-pseudo-element-case #3672
Conversation
@@ -6,6 +6,7 @@ const { messages, ruleName } = rule; | |||
testRule(rule, { | |||
ruleName, | |||
config: ["lower"], | |||
fix: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a test case with comments in the selector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately it won't work until update to the last version of postcss-selector-parser
(#3284).
I don't sure that it makes sense to add some workaround.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In selectorCombinatorSpaceChecker.js, it choose the selector to pass to parseSelector
beforehand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added few new test cases with comments inside selectors.
…pseudo-element-case # Conflicts: # docs/user-guide/rules.md
Hi @evilebottnawi, @ntwb, @hudochenkov, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Closes #3662
Example
code:
fixed: