This repository has been archived by the owner on May 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.stylelintrc
439 lines (439 loc) · 20.2 KB
/
.stylelintrc
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
{
"syntax": "scss",
"plugins": ["stylelint-order"],
"rules": {
"order/properties-order": [
{
"properties": [
"content",
"box-sizing",
"display",
"flex",
"flex-wrap",
"flex-basis",
"flex-direction",
"flex-flow",
"flex-grow",
"flex-shrink",
"align-content",
"align-items",
"align-self",
"justify-content",
"order",
"grid",
"grid-area",
"grid-auto-*",
"grid-column",
"grid-column-*",
"grid-gap",
"grid-row",
"grid-row-*",
"grid-template",
"grid-template-*",
"position",
"z-index",
"top",
"right",
"bottom",
"left",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"overflow",
"overflow-*",
"margin",
"margin-*",
"border",
"border-*",
"padding",
"padding-*",
]
},
{
"emptyLineBefore": "always",
"properties": [
"transform",
"transform-*",
"backface-visibility",
"perspective",
"perspective-origin",
"transition",
"transition-*",
"animation",
"animation-*",
]
}
],
"color-hex-case": ["lower", {
"severity": "warning",
"message": "HEX color lower case letters should be"
}],
"color-named": ["never", {
"message": "Colors keywords or names can not write"
}],
"color-no-invalid-hex": [true, {
"message": "HEX colors must be correctly written"
}],
"font-family-name-quotes": ["always-where-recommended", {
"message": "Specify whether or not quotation marks should be used around font family names."
}],
"font-family-no-duplicate-names": [true, {
"message": "Disallow duplicate font family names."
}],
"font-weight-notation": ["numeric", {
"message": "Require numeric or named (where possible) font-weight values. Also, when named values are expected, require only valid names.",
"ignore": ["relative"]
}],
"function-calc-no-unspaced-operator": [true, {
"message": "Disallow an unspaced operator within calc functions."
}],
"function-linear-gradient-no-nonstandard-direction": [true, {
"message": "Disallow direction values in linear-gradient() calls that are not valid according to the standard syntax."
}],
"function-comma-space-after": ["always", {
"message": "Require a single space or disallow whitespace after the commas of functions (Autofixable)."
}],
"function-comma-space-before": ["never", {
"message": "Require a single space or disallow whitespace before the commas of functions (Autofixable)."
}],
"function-comma-newline-before": ["never-multi-line", {
"message": "Require a newline or disallow whitespace before the commas of functions (Autofixable)."
}],
"function-comma-newline-after": ["never-multi-line", {
"message": "Require a newline or disallow whitespace after the commas of functions (Autofixable)."
}],
"function-parentheses-newline-inside": ["never-multi-line", {
"message": "Require a newline or disallow whitespace on the inside of the parentheses of functions (Autofixable)."
}],
"function-max-empty-lines": [0, {
"message": "Limit the number of adjacent empty lines within functions (Autofixable)."
}],
"function-name-case": ["lower", {
"message": "Specify lowercase or uppercase for function names (Autofixable)."
}],
"function-whitespace-after": ["always", {
"message": "Require or disallow whitespace after functions (Autofixable)."
}],
"function-url-scheme-whitelist": [["data", "/^https/"], {
"message": "Specify a whitelist of allowed URL schemes."
}],
"number-leading-zero": ["always", {
"message": "Require or disallow a leading zero for fractional numbers less than 1 (Autofixable)."
}],
"number-max-precision": [6, {
"message": "Limit the number of decimal places allowed in numbers."
}],
"number-no-trailing-zeros": [true, {
"message": "Disallow trailing zeros in numbers (Autofixable)."
}],
"string-no-newline": [true, {
"message": "Disallow (unescaped) newlines in strings."
}],
"string-quotes": ["single", {
"message": "Specify single or double quotes around strings (Autofixable)."
}],
"length-zero-no-unit": [true, {
"message": "Disallow units for zero lengths (Autofixable)."
}],
"time-min-milliseconds": [100, {
"message": "Specify the minimum number of milliseconds for time values."
}],
"unit-case": ["lower", {
"message": "Specify lowercase or uppercase for units (Autofixable)."
}],
"value-keyword-case": ["lower", {
"message": "Specify lowercase or uppercase for keywords values (Autofixable).",
"ignoreProperties": ["/font-/", ]
}],
"unit-no-unknown": [true, {
"message": "Disallow unknown units."
}],
"value-no-vendor-prefix": [true, {
"message": "Disallow vendor prefixes for values."
}],
"property-no-vendor-prefix": [true, {
"message": "Disallow vendor prefixes for properties."
}],
"value-list-comma-newline-after": ["always-multi-line", {
"message": "Require a newline or disallow whitespace after the commas of value lists (Autofixable)."
}],
"value-list-comma-newline-before": ["never-multi-line", {
"message": "Require a newline or disallow whitespace before the commas of value lists."
}],
"value-list-comma-space-after": ["always-single-line", {
"message": "Require a single space or disallow whitespace after the commas of value lists (Autofixable)."
}],
"value-list-comma-space-before": ["never", {
"message": "Require a single space or disallow whitespace before the commas of value lists (Autofixable)."
}],
"property-blacklist": [["text-rendering", ], {
"message": "Specify a blacklist of disallowed properties."
}],
"property-case": ["lower", {
"message": "Specify lowercase or uppercase for properties (Autofixable)."
}],
"property-no-unknown": [true, {
"message": "Disallow unknown properties."
}],
"declaration-bang-space-after": ["never", {
"message": "Require a single space or disallow whitespace after the bang of declarations (Autofixable)."
}],
"declaration-bang-space-before": ["always", {
"message": "Require a single space or disallow whitespace before the bang of declarations (Autofixable)."
}],
"declaration-colon-newline-after": ["always-multi-line", {
"message": "Require a newline or disallow whitespace after the colon of declarations (Autofixable)."
}],
"declaration-colon-space-after": ["always-single-line", {
"message": "Require a single space or disallow whitespace after the colon of declarations (Autofixable)."
}],
"declaration-colon-space-before": ["never", {
"message": "Require a single space or disallow whitespace before the colon of declarations (Autofixable)."
}],
"declaration-property-unit-blacklist": [{
"font-size": ["pt"],
"/^animation/": ["ms"],
"/^padding/": ["%"]
}, {
"message": "Specify a blacklist of disallowed property and unit pairs within declarations."
}],
"unit-blacklist": [["mm","cm","in","pc",], {
"message": "Specify a blacklist of disallowed units."
}],
"declaration-block-no-duplicate-properties": [true, {
"message": "Disallow duplicate properties within declaration blocks."
}],
"declaration-block-no-shorthand-property-overrides": [true, {
"message": "Disallow shorthand properties that override related longhand properties."
}],
"declaration-block-semicolon-newline-after": ["always", {
"message": "Require a newline or disallow whitespace after the semicolons of declaration blocks (Autofixable)."
}],
"declaration-block-single-line-max-declarations": [1, {
"message": "Limit the number of declarations within a single-line declaration block."
}],
"declaration-block-trailing-semicolon": ["always", {
"message": "Require or disallow a trailing semicolon within declaration blocks (Autofixable)."
}],
"block-closing-brace-empty-line-before": ["never", {
"message": "Require or disallow an empty line before the closing brace of blocks (Autofixable)."
}],
"block-closing-brace-newline-after": ["always", {
"message": "Require a newline or disallow whitespace after the closing brace of blocks (Autofixable)."
}],
"block-closing-brace-newline-before": ["always", {
"message": "Require a newline or disallow whitespace before the closing brace of blocks (Autofixable)."
}],
"block-opening-brace-newline-after": ["always", {
"message": "Require a newline after the opening brace of blocks (Autofixable)."
}],
"block-opening-brace-space-before": ["always", {
"message": "Require a single space or disallow whitespace before the opening brace of blocks (Autofixable)."
}],
"selector-attribute-brackets-space-inside": ["never", {
"message": "Require a single space or disallow whitespace on the inside of the brackets within attribute selectors (Autofixable)."
}],
"selector-attribute-operator-space-after": ["never", {
"message": "Require a single space or disallow whitespace after operators within attribute selectors (Autofixable)."
}],
"selector-attribute-operator-space-before": ["never", {
"message": "Require a single space or disallow whitespace before operators within attribute selectors (Autofixable)."
}],
"selector-combinator-space-after": ["always", {
"message": "Require a single space or disallow whitespace after the combinators of selectors (Autofixable)."
}],
"selector-combinator-space-before": ["always", {
"message": "Require a single space or disallow whitespace before the combinators of selectors (Autofixable)."
}],
"selector-attribute-operator-blacklist": [["id"], {
"message": "Specify a blacklist of disallowed attribute operators."
}],
"selector-max-compound-selectors": [3, {
"severity": "warning",
"message": "Limit the number of compound selectors in a selector."
}],
"selector-pseudo-class-case": ["lower", {
"message": "Specify lowercase or uppercase for pseudo-class selectors (Autofixable)."
}],
"selector-pseudo-class-no-unknown": [true, {
"message": "Disallow unknown pseudo-class selectors."
}],
"selector-pseudo-class-parentheses-space-inside": ["never", {
"message": "Require a single space or disallow whitespace on the inside of the parentheses within pseudo-class selectors (Autofixable)."
}],
"selector-pseudo-element-case": ["lower", {
"message": "Specify lowercase or uppercase for pseudo-element selectors."
}],
"selector-pseudo-element-no-unknown": [true, {
"message": "Disallow unknown pseudo-element selectors."
}],
"selector-type-case": ["lower", {
"message": "Specify lowercase or uppercase for type selectors (Autofixable)."
}],
"selector-type-no-unknown": [true, {
"message": "Disallow unknown type selectors."
}],
"selector-max-empty-lines": [0, {
"message": "Limit the number of adjacent empty lines within selectors (Autofixable)."
}],
"selector-list-comma-newline-after": ["always", {
"message": "Require a newline or disallow whitespace after the commas of selector lists (Autofixable)."
}],
"selector-list-comma-newline-before": ["never-multi-line", {
"message": "Require a newline or disallow whitespace before the commas of selector lists (Autofixable)."
}],
"selector-list-comma-space-after": ["always-single-line", {
"message": "Require a single space or disallow whitespace after the commas of selector lists (Autofixable)."
}],
"selector-list-comma-space-before": ["never", {
"message": "Require a single space or disallow whitespace before the commas of selector lists (Autofixable)."
}],
"rule-empty-line-before": ["always", {
"message": "Require or disallow an empty line before rules (Autofixable).",
"ignore": ["after-comment"]
}],
"media-feature-colon-space-after": ["always", {
"message": "Require a single space or disallow whitespace after the colon in media features (Autofixable)."
}],
"media-feature-colon-space-before": ["never", {
"message": "Require a single space or disallow whitespace before the colon in media features (Autofixable)."
}],
"media-feature-name-case": ["lower", {
"message": "Specify lowercase or uppercase for media feature names (Autofixable)."
}],
"media-feature-name-no-vendor-prefix": [true, {
"severity": "warning",
"message": "Disallow vendor prefixes for media feature names."
}],
"media-feature-parentheses-space-inside": ["never", {
"message": "Require a single space or disallow whitespace on the inside of the parentheses within media features (Autofixable)."
}],
"media-feature-range-operator-space-after": ["always", {
"message": "Require a single space or disallow whitespace after the range operator in media features (Autofixable)."
}],
"media-feature-range-operator-space-before": ["always", {
"message": "Require a single space or disallow whitespace before the range operator in media features (Autofixable)."
}],
"at-rule-blacklist": [["extend", ], {
"message": "В чёрном списке @-правило это"
}],
"at-rule-empty-line-before": ["always", {
"message": "Require or disallow an empty line before at-rules (Autofixable).",
"ignoreAtRules": ["import", "include", "function", "return", "if", "else"],
"ignore": ["after-comment"]
}],
"at-rule-name-case": ["lower", {
"message": "Specify lowercase or uppercase for at-rules names (Autofixable)."
}],
"at-rule-name-space-after": ["always", {
"message": "Require a single space after at-rule names (Autofixable)."
}],
"at-rule-no-unknown": [true, {
"message": "Disallow unknown at-rules.",
"ignoreAtRules": [
"/^at-/",
"/^mixin/",
"/^include/",
"/^if/",
"/^else/",
"/^function/",
"/^return/",
"/^each/",
"/^while/",
]
}],
"at-rule-no-vendor-prefix": [true, {
"message": "Disallow vendor prefixes for at-rules."
}],
"at-rule-semicolon-newline-after": ["always", {
"message": "Require or disallow an empty line before at-rules (Autofixable)."
}],
"at-rule-semicolon-space-before": ["never", {
"message": "Require a single space or disallow whitespace before the semicolons of at-rules."
}],
"comment-empty-line-before": ["always", {
"message": "Require or disallow an empty line before comments (Autofixable).",
"except": ["first-nested"],
"ignore": ["stylelint-commands"]
}],
"comment-no-empty": [true, {
"message": "Disallow empty comments."
}],
"comment-whitespace-inside": ["always", {
"message": "Require or disallow whitespace on the inside of comment markers (Autofixable)."
}],
"indentation": [2, {
"message": "Specify indentation (Autofixable)."
}],
"max-empty-lines": [3, {
"message": "Limit the number of adjacent empty lines within functions (Autofixable)."
}],
"max-nesting-depth": [3, {
"message": "Limit the depth of nesting.",
"severity": "warning",
"ignore": ["blockless-at-rules"]
}],
"no-duplicate-selectors": [true, {
"message": "Disallow duplicate selectors within a stylesheet."
}],
"no-eol-whitespace": [true, {
"message": "Disallow end-of-line whitespace (Autofixable)"
}],
"no-extra-semicolons": [true, {
"message": "Disallow extra semicolons (Autofixable)."
}],
"no-missing-end-of-source-newline": [true, {
"message": "Disallow missing end-of-source newlines (Autofixable)."
}],
"media-feature-name-no-unknown": [true, {
"message": "There are no such media conditions on the light side."
}],
"keyframe-declaration-no-important": [true, {
"message": "!important in keyframe is ignored by some browsers"
}],
"no-duplicate-at-import-rules": [true, {
"message": "Re-import the file"
}],
"no-empty-source": [true, {
"message": "Empty files"
}],
"shorthand-property-no-redundant-values": [true, {
"message": "In the property value, redundancy is superfluous; in short, you can write"
}],
"selector-max-attribute": [1, {
"severity": "warning",
"message": "Attributes in the selector more than one should not be used"
}],
"selector-max-type": [2, {
"severity": "warning",
"message": "Selectors on the tag more than two should not be used"
}],
"selector-max-combinators": [2, {
"severity": "warning",
"message": "Combinators in the selector more than two should not be used"
}],
"selector-pseudo-class-blacklist": [["/^nth-/", ], {
"severity": "warning",
"message": "Pseudo-class is not worth using"
}],
"value-list-max-empty-lines": [0, {
"message": "Пустые строки в значениях свойств недопустимы"
}],
"declaration-block-semicolon-newline-before": ["never-multi-line", {
"message": "Carriage in front of the symbol, not allowed"
}],
"declaration-block-semicolon-space-before": ["never", {
"message": "Space before the character, not allowed"
}],
"selector-descendant-combinator-no-non-space": [true, {
"message": "Combined selectors should be separated by a single space."
}],
"linebreaks": ["unix", {
"severity": "warning",
"message": "Line endings must be LF."
}]
}
}