Permalink
Browse files

MDL-48277 css: enable some helpful csslint warnings

Note that these rules cause a resonable amount of warnings when run
across the codebase but should be useful in the development of new css.

* known-properties can find typos in properties used
  https://github.com/CSSLint/csslint/wiki/Require-use-of-known-properties
* display-property-grouping can discover situations where rules are used
  in invalid combinations
  https://github.com/CSSLint/csslint/wiki/Require-properties-appropriate-for-display
* empty-rules finds situations where empty rules are defined
  https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules
* important warnings when !important is used (generally bad for themers)
  https://github.com/CSSLint/csslint/wiki/Disallow-!important
  • Loading branch information...
danpoltawski committed Nov 18, 2014
1 parent 03e93ab commit 1e717e84e734f726fb93b993d275eb697ff8102a
Showing with 1 addition and 0 deletions.
  1. +1 −0 .csslintrc
View
@@ -1,2 +1,3 @@
--errors=errors,duplicate-properties
--warnings=known-properties,display-property-grouping,empty-rules,important
--exclude-list=vendor/,lib/editor/tinymce/,lib/yuilib/,theme/bootstrapbase/style/

0 comments on commit 1e717e8

Please sign in to comment.