CSSLint / csslint

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

Suppress CSSLint Warnings #739

Open JoeGutierrez opened 6 years ago

JoeGutierrez commented 6 years ago

I love using CSSLint with Sublime Text but some warnings I need to ignore using comments. I've learned how to ignore several, e.g.:

Example 1 Warning - Element (img.logo) is overqualified, just use .logo without element name. (overqualified-elements) img.logo {} / csslint allow: overqualified-elements /

Example 2 Warning - Use of !important (important) .foo { text-align: center !important; } / csslint allow: known-properties, important /

However, how can I ignore the following two warnings?

Warning - Too many !important declarations (16), try to use less than 10. (important)

Warning - Using height with border can sometimes make elements larger than you expect. (box-model)

How can I ignore "Warning - Use of !important (important)" in the entire script?

Sophia-nguyen commented 6 years ago

Hi @JoeGutierrez, I have the same issue, you have any solution for your issue?