CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.76k stars 483 forks source link

Re: Disallow `!important` #730

Open j9t opened 6 years ago

j9t commented 6 years ago

“Disallow !important outright bans a critical part of the CSS cascade; there’s nothing wrong with !important—just because the occasional developer struggles putting !important to good use seems to be a weak argument for getting it banned. (I’m aware that our industry frowns upon !important but that doesn’t make the rule any stronger :)

From what I can tell, dropping this rule would be an improvement to CSSLint.

(Pardon the batch filing of requests and if I missed something else relevant for this rule.)