-
-
Notifications
You must be signed in to change notification settings - Fork 32
feat: add suggestion to no-important rule to remove !important flag #217
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
Conversation
nzakas
left a comment
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.
This looks like a good start. Just a couple of bits to clean up.
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.
Right now, if somehow the CSS comment before the !important flag contains the !important, then the rule reports the one inside the comment.
a { color: red /* !important flag 1 */ !important; }
/* after fix the output will be */
a { color: red /* flag 1 */ !important; }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 opened #218 to address this.
nzakas
left a comment
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. Thanks.
Prerequisites checklist
What is the purpose of this pull request?
This pull request enhances the
no-importantrule by providing a suggestion to remove the!importantflag from CSS declarations.What changes did you make? (Give an overview)
no-importantrule that removes the!importantflag from CSS declarations.!importantflag removed.Related Issues
Fixes #204
Is there anything you'd like reviewers to focus on?