Skip to content
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

Prohibit !important #63

Open
madhavipuliraju opened this issue May 21, 2018 · 0 comments
Open

Prohibit !important #63

madhavipuliraju opened this issue May 21, 2018 · 0 comments

Comments

@madhavipuliraju
Copy link
Contributor

The !important annotation is used to artificially increase the specificity of a given property value in a rule. This is usually an indication that the specificity of the entire CSS has gotten a bit out of control and needs to be refactored. The more frequently !important is found in CSS, the more likely it is that developers are having trouble styling parts of a page effectively.

This rule is aimed at keeping your specificity levels in check. As such, it warns whenever !important is used.

The following patterns are considered warnings:

.mybox {
   color: red !important;
 }

Be careful when using !important declaration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant