-
-
Notifications
You must be signed in to change notification settings - Fork 928
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 declaration-block-no-redundant-longhand-properties
autofix
#3304
Comments
declaration-block-no-redundant-longhand-properties
rules
I've removed this rule from the list in that issue.
Good idea. Good luck writing the fix too! |
declaration-block-no-redundant-longhand-properties
autofix
I know #3326 was closed due to inactivity; is there still interest in writing this autofix? I maintain just-the-docs, and we embarrassingly made a mistake manually fixing this rule (just-the-docs/just-the-docs#1123 and just-the-docs/just-the-docs#1104). If so, I'd be happy to take a stab at implementing it. I can first base my solution off of @imvetri's existing PR (#3326), unless there have been any developments in utilities/blueprints since then that would make more sense to look at? |
@mattxwang can you confirm if you are also facing the same issue I reported in this comment #3326 (comment) I didn't continue because I was clueless why I was getting inconsistent evaluation value (I had a suspect on the runner than on my code). feel free to tag me if you also face the same issue. |
stylelint --fix
should convert redundant longhand properties to shorthanddeclaration-block-no-redundant-longhand-properties
Following will throw error
e.g.
e.g.
9.2.0
This should work despite the method chose to run stylelint
No
should convert above to following
No fix currently available
Further notes: Currently this is being discussed in #3068. But that has lot of other rules, so creating a separate one for this rule in case I could write a fix.
The text was updated successfully, but these errors were encountered: