Skip to content

Commit a7467ca

Browse files
committed
Correct default csslint config
First, the format was incorrect. The correct[2] JSON format should be: { "ignore": "rule,rule,..." } However, this format has a known bug[2], therefore I've elected to avoid it and used the options-passing style. 1: https://github.com/codeclimate/csslint/blob/master/src/cli/common.js#L18 2: CSSLint/csslint#567 Second, had this "default" config worked, it would've ignored *every single* check (except the should-be-ignored order-alphabetical, which I believe was an oversight). I doubt very much that was the intention. Using the corrected and relatively conservative blacklist here, twbs/bootstrap has ~502 issues (once you exclude doc, vendor, and minified files), the top offenders of which are: 132 Use of !important [csslint] 80 The property -moz-box-shadow is compatible with -webkit-box-shadow and should be included as well. [csslint] 66 Missing vendor-prefixed CSS gradients for Firefox 3.6+. [csslint] 20 Using height with padding can sometimes make elements larger than you expect. [csslint] 16 The property -moz-transition is compatible with -webkit-transition and -o-transition and should be included as well. [csslint] 12 The universal selector (*) is known to be slow. [csslint] 12 The box-sizing property isn't supported in IE6 and IE7. [csslint] 12 Outlines should only be modified using 12 Missing vendor-prefixed CSS gradients for Firefox 3.6+, Old Webkit (Safari 4+, Chrome). [csslint] 10 The property -moz-appearance is compatible with -webkit-appearance and should be included as well. [csslint] These seem reasonable enough to me.
1 parent e99f492 commit a7467ca

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

config/csslint/.csslintrc

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1 @@
1-
{
2-
"adjoining-classes": false,
3-
"box-model": false,
4-
"box-sizing": false,
5-
"bulletproof-font-face": false,
6-
"compatible-vendor-prefixes": false,
7-
"display-property-grouping": false,
8-
"duplicate-background-images": false,
9-
"duplicate-properties": false,
10-
"empty-rules": false,
11-
"fallback-colors": false,
12-
"floats": false,
13-
"font-faces": false,
14-
"font-sizes": false,
15-
"gradients": false,
16-
"ids": false,
17-
"import": false,
18-
"important": false,
19-
"known-properties": false,
20-
"non-link-hover": false,
21-
"outline-none": false,
22-
"overqualified-elements": false,
23-
"qualified-headings": false,
24-
"regex-selectors": false,
25-
"shorthand": false,
26-
"star-property-hack": false,
27-
"text-indent": false,
28-
"underscore-property-hack": false,
29-
"vendor-prefix": false,
30-
"unique-headings": false,
31-
"universal-selector": false,
32-
"unqualified-attributes": false,
33-
"zero-units": false
34-
}
1+
--ignore=adjoining-classes,ids,order-alphabetical,unqualified-attributes

0 commit comments

Comments
 (0)