-
Notifications
You must be signed in to change notification settings - Fork 3
/
.csslintrc
51 lines (45 loc) · 1.91 KB
/
.csslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
// false: ignore
// true: warning
// 2: error
// Possible Errors
"box-model": false,
"display-property-grouping": 2, //test if it works above media queries
"duplicate-properties": 2,
"empty-rules": 2,
"known-properties": false, // intern css parser, ignores prefix !ATTENTION doesn"t know svg
// properties
// Compatibility
"adjoining-classes": false,
"box-sizing": false,
"compatible-vendor-prefixes": false, // use of autoprefix
"gradients": false,
"text-indent": false, // no negative text-indent to hide elements (text-indent: -1em;) is ok
"vendor-prefix": false, // standard property must be after vendor
"fallback-colors": false,
"star-property-hack": 2, // disallow <IE8 Hack *width: 100px;
"underscore-property-hack": 2, // disallow IE7 Hack _width:100px
"bulletproof-font-face": false,
// Performance
"font-faces": false, //no more then 5 Font Faces
"import": false, // disallow css import -> instead use SCSS @import
"regex-selectors": false, // disallow regex in a attr selector ex .mybox[class~=xxx]
"universal-selector": false, // disallow astrix selector as key
"unqualified-attributes": false, // .class [type=text]
"zero-units": 2, // warning when 0 has a unit ex 0px => 0
"overqualified-elements": 2, // disallow div.myclass, but allows div.myclass { color: blue }
// && p.myclass [ color:red }
"shorthand": 2, // margin-t r b l or padding-t r b l is set, than shorten to one property
// margin or padding
"duplicate-background-images": false,
"floats": false, // warn when more than 10 floats, could throw error with our grid
//@BUG 2 still be just a warning
"font-sizes": false, // no more than 10 different sizes
"ids": false,
"important": false,
// Accessibility
"outline-none": false,
// OOCSS
"qualified-headings": false,
"unique-headings": false
}