commit
3817246da2
4
codemirror/addon/lint/css-lint.js
vendored
4
codemirror/addon/lint/css-lint.js
vendored
|
@ -19,14 +19,16 @@ CodeMirror.registerHelper("lint", "css", function(text) {
|
||||||
var found = [];
|
var found = [];
|
||||||
if (!window.CSSLint) return found;
|
if (!window.CSSLint) return found;
|
||||||
|
|
||||||
|
// STYLISH: hack start
|
||||||
var rules = CSSLint.getRules();
|
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();
|
CSSLint.clearRules();
|
||||||
rules.forEach(function(rule) {
|
rules.forEach(function(rule) {
|
||||||
if (allowedRules.indexOf(rule.id) >= 0) {
|
if (allowedRules.indexOf(rule.id) >= 0) {
|
||||||
CSSLint.addRule(rule);
|
CSSLint.addRule(rule);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// STYLISH: hack end
|
||||||
|
|
||||||
var results = CSSLint.verify(text), messages = results.messages, message = null;
|
var results = CSSLint.verify(text), messages = results.messages, message = null;
|
||||||
for ( var i = 0; i < messages.length; i++) {
|
for ( var i = 0; i < messages.length; i++) {
|
||||||
|
|
1083
csslint/csslint.js
1083
csslint/csslint.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user