forked from kobotoolbox/kpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.json
260 lines (260 loc) · 9.24 KB
/
.stylelintrc.json
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
{
"rules": {
"at-rule-empty-line-before": [
"always",
{
"except": [
"blockless-after-same-name-blockless",
"first-nested"
],
"ignore": ["after-comment"],
"severity": "warning"
}
],
"at-rule-name-case": ["lower", { "severity": "warning" }],
"at-rule-name-space-after": [
"always-single-line",
{ "severity": "warning" }
],
"at-rule-semicolon-newline-after": [
"always",
{ "severity": "warning" }
],
"block-no-empty": true,
"block-closing-brace-empty-line-before": [
"never",
{ "severity": "warning" }
],
"block-closing-brace-newline-after": [
"always",
{ "severity": "warning" }
],
"block-closing-brace-newline-before": [
"always-multi-line",
{ "severity": "warning" }
],
"block-closing-brace-space-before": [
"always-single-line",
{ "severity": "warning" }
],
"block-opening-brace-newline-after": [
"always-multi-line",
{ "severity": "warning" }
],
"block-opening-brace-space-after": [
"always-single-line",
{ "severity": "warning" }
],
"block-opening-brace-space-before": [
"always",
{ "severity": "warning" }
],
"color-no-invalid-hex": true,
"color-hex-case": ["lower", { "severity": "warning" }],
"comment-no-empty": true,
"comment-empty-line-before": [
"always",
{
"except": ["first-nested"],
"ignore": ["stylelint-commands"],
"severity": "warning"
}
],
"comment-whitespace-inside": ["always", { "severity": "warning" }],
"custom-property-empty-line-before": [
"always",
{
"except": ["after-custom-property", "first-nested"],
"ignore": ["after-comment", "inside-single-line-block"],
"severity": "warning"
}
],
"declaration-block-no-duplicate-properties": [
true,
{ "severity": "warning" }
],
"declaration-block-no-shorthand-property-overrides": true,
"declaration-bang-space-after": ["never", { "severity": "warning" }],
"declaration-bang-space-before": ["always", { "severity": "warning" }],
"declaration-block-semicolon-newline-after": [
"always-multi-line",
{ "severity": "warning" }
],
"declaration-block-semicolon-space-after": [
"always-single-line",
{ "severity": "warning" }
],
"declaration-block-semicolon-space-before": [
"never",
{ "severity": "warning" }
],
"declaration-block-single-line-max-declarations": [
1,
{ "severity": "warning" }
],
"declaration-block-trailing-semicolon": [
"always",
{ "severity": "warning" }
],
"declaration-colon-newline-after": [
"always-multi-line",
{ "severity": "warning" }
],
"declaration-colon-space-after": [
"always-single-line",
{ "severity": "warning" }
],
"declaration-colon-space-before": ["never", { "severity": "warning" }],
"declaration-empty-line-before": [
"always",
{
"except": ["after-declaration", "first-nested"],
"ignore": ["after-comment", "inside-single-line-block"],
"severity": "warning"
}
],
"font-family-no-duplicate-names": true,
"font-family-no-missing-generic-family-keyword": [
true,
{ "severity": "warning" }
],
"function-calc-no-unspaced-operator": [true, { "severity": "warning" }],
"function-linear-gradient-no-nonstandard-direction": true,
"function-comma-newline-after": [
"always-multi-line",
{ "severity": "warning" }
],
"function-comma-space-after": [
"always-single-line",
{ "severity": "warning" }
],
"function-comma-space-before": ["never", { "severity": "warning" }],
"function-max-empty-lines": [0, { "severity": "warning" }],
"function-name-case": ["lower", { "severity": "warning" }],
"function-parentheses-newline-inside": [
"always-multi-line",
{ "severity": "warning" }
],
"function-parentheses-space-inside": [
"never-single-line",
{ "severity": "warning" }
],
"function-whitespace-after": ["always", { "severity": "warning" }],
"keyframe-declaration-no-important": [true, { "severity": "warning" }],
"length-zero-no-unit": [true, { "severity": "warning" }],
"max-empty-lines": [1, { "severity": "warning" }],
"media-feature-name-no-unknown": true,
"media-feature-colon-space-after": [
"always",
{ "severity": "warning" }
],
"media-feature-colon-space-before": [
"never",
{ "severity": "warning" }
],
"media-feature-name-case": ["lower", { "severity": "warning" }],
"media-feature-parentheses-space-inside": [
"never",
{ "severity": "warning" }
],
"media-feature-range-operator-space-after": [
"always",
{ "severity": "warning" }
],
"media-feature-range-operator-space-before": [
"always",
{ "severity": "warning" }
],
"media-query-list-comma-newline-after": [
"always-multi-line",
{ "severity": "warning" }
],
"media-query-list-comma-space-after": [
"always-single-line",
{ "severity": "warning" }
],
"media-query-list-comma-space-before": [
"never",
{ "severity": "warning" }
],
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": [true, { "severity": "warning" }],
"no-empty-source": true,
"no-extra-semicolons": [true, { "severity": "warning" }],
"no-eol-whitespace": [true, { "severity": "warning" }],
"no-missing-end-of-source-newline": [true, { "severity": "warning" }],
"no-invalid-double-slash-comments": [true, { "severity": "warning" }],
"number-leading-zero": ["always", { "severity": "warning" }],
"number-no-trailing-zeros": [true, { "severity": "warning" }],
"property-no-unknown": [true, { "severity": "warning" }],
"property-case": ["lower", { "severity": "warning" }],
"rule-empty-line-before": [
"always-multi-line",
{
"except": ["first-nested"],
"ignore": ["after-comment"],
"severity": "warning"
}
],
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-no-unknown": true,
"selector-type-no-unknown": true,
"selector-attribute-brackets-space-inside": [
"never",
{ "severity": "warning" }
],
"selector-attribute-operator-space-after": [
"never",
{ "severity": "warning" }
],
"selector-attribute-operator-space-before": [
"never",
{ "severity": "warning" }
],
"selector-combinator-space-after": [
"always",
{ "severity": "warning" }
],
"selector-combinator-space-before": [
"always",
{ "severity": "warning" }
],
"selector-descendant-combinator-no-non-space": [
true,
{ "severity": "warning" }
],
"selector-list-comma-newline-after": [
"always",
{ "severity": "warning" }
],
"selector-list-comma-space-before": [
"never",
{ "severity": "warning" }
],
"selector-max-empty-lines": [0, { "severity": "warning" }],
"selector-pseudo-class-case": ["lower", { "severity": "warning" }],
"selector-pseudo-class-parentheses-space-inside": [
"never",
{ "severity": "warning" }
],
"selector-pseudo-element-case": ["lower", { "severity": "warning" }],
"selector-pseudo-element-colon-notation": [
"double",
{ "severity": "warning" }
],
"selector-type-case": ["lower", { "severity": "warning" }],
"string-no-newline": [true, { "severity": "warning" }],
"unit-no-unknown": true,
"unit-case": ["lower", { "severity": "warning" }],
"value-list-comma-newline-after": [
"always-multi-line",
{ "severity": "warning" }
],
"value-list-comma-space-after": [
"always-single-line",
{ "severity": "warning" }
],
"value-list-comma-space-before": ["never", { "severity": "warning" }],
"value-list-max-empty-lines": [0, { "severity": "warning" }]
}
}