3 Commits

Author SHA1 Message Date
Dan Poltawski
1e717e84e7 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
2014-11-18 22:11:36 +00:00
Dan Poltawski
03e93abad8 MDL-48277 css: enable duplicate definitions lint rule
And remove duplicates found in code which were detected by this rule
(leaving the last rule defined as this would take precidence).

https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties
2014-11-18 22:11:36 +00:00
Dan Poltawski
16c5684e6e MDL-48277 css: initial csslint config file
Will throw errors about invalid CSS
2014-11-18 22:11:11 +00:00