-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.csslintrc
97 lines (66 loc) · 2.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[
// Be careful when using !important declaration
"important",
// Don't use adjoining classes.
"adjoining-classes",
// Properties should be known (listed in CSS specification) or be a vendor-prefixed property.
"known-properties",
// The box-sizing properties isn't supported in IE6 and IE7.
"box-sizing",
// Don't use width or height when using padding or border.
// "box-model",
// Use of outline: none or outline: 0 should be limited to :focus rules.
"outline-none",
// Every background-image should be unique. Use a common class for e.g. sprites.
"duplicate-background-images",
// Include all compatible vendor prefixes to reach a wider range of users.
"compatible-vendor-prefixes",
// Certain properties shouldn't be used with certain display property values.
"display-property-grouping",
// Headings should not be qualified (namespaced).
"qualified-headings",
// For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback color.
"fallback-colors",
// Duplicate properties must appear one after the other.
"duplicate-properties",
// Rules without any properties specified should be removed.
"empty-rules",
// This rule looks for recoverable syntax errors.
"errors",
// Use shorthand properties where possible.
"shorthand",
// Selectors should not contain IDs.
"ids",
// When using a vendor-prefixed gradient, make sure to use them all.
"gradients",
// Checks the number of font-size declarations.
"font-sizes",
// Too many different web fonts in the same stylesheet.
"font-faces",
// This rule tests if the float property is used too many times
"floats",
// Checks for the underscore property hack (targets IE6)
"underscore-property-hack",
// Don't use classes or IDs with elements (a.foo or a#foo).
"overqualified-elements",
// Don't use @import, use <link> instead.
"import",
// Selectors that look like regular expressions are slow and should be avoided.
"regex-selectors",
// Track how many rules there are.
"rules-count",
// Checks for the star property hack (targets IE6/7)
"star-property-hack",
// Checks for text indent less than -99px
"text-indent",
// Headings should be defined only once.
"unique-headings",
// The universal selector (*) is known to be slow.
"universal-selector",
// Unqualified attribute selectors are known to be slow.
"unqualified-attributes",
// When using a vendor-prefixed property, make sure to include the standard one.
"vendor-prefix",
// You don't need to specify units when a value is 0.
"zero-units"
]