Merge pull request #110 from tophf/csslint-update

CSSLint update
This commit is contained in:
Jason Barnabe 2015-05-13 09:59:02 -05:00
commit 3817246da2
2 changed files with 880 additions and 207 deletions

View File

@ -19,14 +19,16 @@ CodeMirror.registerHelper("lint", "css", function(text) {
var found = [];
if (!window.CSSLint) return found;
// STYLISH: hack start
var rules = CSSLint.getRules();
var allowedRules = ["display-property-grouping", "empty-rules", "errors", "known-properties"];
var allowedRules = ["display-property-grouping", "duplicate-properties", "empty-rules", "errors", "known-properties"];
CSSLint.clearRules();
rules.forEach(function(rule) {
if (allowedRules.indexOf(rule.id) >= 0) {
CSSLint.addRule(rule);
}
});
// STYLISH: hack end
var results = CSSLint.verify(text), messages = results.messages, message = null;
for ( var i = 0; i < messages.length; i++) {

File diff suppressed because it is too large Load Diff