-
Notifications
You must be signed in to change notification settings - Fork 4
/
.scss-lint.yml
599 lines (539 loc) Β· 13 KB
/
.scss-lint.yml
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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
# Default application configuration that all configurations inherit from.
scss_files: "**/*.scss"
plugin_directories: ['.scss-linters']
# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []
linters:
BangFormat:
enabled: false # Handled by stylelint
space_before_bang: true
space_after_bang: false
severity: warning
BemDepth:
enabled: false # Handled by stylelint
max_elements: 1
severity: warning
BorderZero:
enabled: false # Handled by stylelint
convention: zero # or `none`
severity: warning
ColorKeyword:
enabled: false # Handled by stylelint
severity: warning
ColorVariable:
enabled: true
severity: warning
Comment:
enabled: true
severity: error
DebugStatement:
enabled: true
severity: error
DeclarationOrder:
enabled: true
severity: warning
DisableLinterReason:
enabled: true
severity: warning
DuplicateProperty:
enabled: false # Handled by stylelint
severity: error
ElsePlacement:
enabled: true
style: new_line # or 'same_line'
severity: error
EmptyLineBetweenBlocks:
enabled: false # Handled by stylelint
ignore_single_line_blocks: true
severity: warning
EmptyRule:
enabled: false # Handled by stylelint
severity: error
ExtendDirective:
enabled: false
FinalNewline:
enabled: true
present: true
severity: warning # Should be automatically inserted via editorconfig
HexLength:
enabled: false # Handled by stylelint
style: long # or 'short'
severity: warning
HexNotation:
enabled: false # Handled by stylelint
style: lowercase # or 'uppercase'
severity: warning
HexValidation:
enabled: false # Handled by stylelint
severity: warning
IdSelector:
enabled: false # Handled by stylelint
severity: error
ImportantRule:
enabled: true
severity: error
ImportPath:
enabled: true
leading_underscore: false
filename_extension: false
severity: error
Indentation:
enabled: false # Handled by editorconfig
allow_non_nested_indentation: true
character: space # or 'tab'
width: 4
LeadingZero:
enabled: false # Handled by stylelint
style: include_zero # or 'exclude_zero'
severity: warning
MergeableSelector:
enabled: true
force_nesting: true
severity: error
NameFormat:
enabled: true
allow_leading_underscore: true
convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern
NestingDepth:
enabled: false # Handled by stylelint
max_depth: 3
ignore_parent_selectors: false
severity: warning
PlaceholderInExtend:
enabled: true
severity: error
PropertyCount:
enabled: true
include_nested: false
max_properties: 10
severity: warning
PropertySortOrder:
enabled: true
ignore_unspecified: true # Uses SMACSS-inspired grouping: https://smacss.com/book/formatting#grouping
order:
- all
- revert
- # Grid
- grid
- grid-auto-columns
- grid-auto-flow
- grid-auto-rows
- grid-column-gap
- grid-gap
- grid-row-gap
- grid-template
- grid-template-areas
- grid-template-columns
- grid-template-rows
- # Box
- align-content
- align-items
- align-self
- block-size
- box-decoration-break
- box-sizing
- break-after
- break-before
- break-inside
- clear
- column-count
- column-fill
- column-gap
- column-span
- column-width
- columns
- display
- flex
- flex-basis
- flex-direction
- flex-flow
- flex-grow
- flex-shrink
- flex-wrap
- float
- height
- inherit
- initial
- inline-size
- isolate
- justify-content
- margin
- margin-top
- margin-right
- margin-bottom
- margin-left
- margin-block-end
- margin-block-start
- margin-inline-end
- margin-inline-start
- max-block-size
- max-height
- max-inline-size
- max-width
- max-zoom
- min-block-size
- min-height
- min-inline-size
- min-width
- min-width
- min-zoom
- offset-block-end
- offset-block-start
- offset-inline-end
- offset-inline-start
- order
- orientation
- padding
- padding-top
- padding-right
- padding-bottom
- padding-left
- padding-block-end
- padding-block-start
- padding-inline-end
- padding-inline-start
- perspective
- perspective-origin
- resize
- ruby-align
- ruby-merge
- ruby-position
- scroll-behavior
- scroll-snap-coordinate
- scroll-snap-destination
- scroll-snap-type
- touch-action
- user-zoom
- vertical-align
- visibility
- width
- writing-mode
- z-index
- zoom
- # Generated Content
- additive-symbols
- content
- counter-increment
- counter-reset
- cursor
- fallback
- hyphens
- pad
- prefix
- quotes
- range
- speak-as
- suffix
- symbols
- system
- # Images
- image-orientation
- image-rendering
- image-resolution
- # Border
- border
- border-top
- border-right
- border-bottom
- border-left
- border-block-end
- border-block-end-color
- border-block-end-style
- border-block-end-width
- border-block-start
- border-block-start-color
- border-block-start-style
- border-block-start-width
- border-bottom-color
- border-bottom-left-radius
- border-bottom-right-radius
- border-bottom-style
- border-bottom-width
- border-collapse
- border-color
- border-image
- border-image-outset
- border-image-repeat
- border-image-slice
- border-image-source
- border-image-width
- border-inline-end
- border-inline-end-color
- border-inline-end-style
- border-inline-end-width
- border-inline-start
- border-inline-start-color
- border-inline-start-style
- border-inline-start-width
- border-left-color
- border-left-style
- border-left-width
- border-radius
- border-right-color
- border-right-style
- border-right-width
- border-spacing
- border-style
- border-top-color
- border-top-left-radius
- border-top-right-radius
- border-top-style
- border-top-width
- border-width
- column-rule
- column-rule-color
- column-rule-style
- column-rule-width
- outline
- outline-color
- outline-offset
- outline-style
- outline-width
- # Background
- backface-visibility
- background
- background-attachment
- background-blend-mode
- background-clip
- background-color
- background-image
- background-origin
- background-position
- background-repeat
- background-size
- box-shadow
- mask
- mask-clip
- mask-composite
- mask-image
- mask-mode
- mask-origin
- mask-position
- mask-repeat
- mask-size
- mask-type
- mix-blend-mode
- object-fit
- object-position
- overflow
- overflow-wrap
- overflow-x
- overflow-y
- pointer-events
- position
- top
- right
- bottom
- left
- # Type
- color
- direction
- font
- font-family
- font-feature-settings
- font-kerning
- font-language-override
- font-size
- font-size-adjust
- font-stretch
- font-style
- font-style
- font-synthesis
- font-variant
- font-variant-alternates
- font-variant-caps
- font-variant-east-asian
- font-variant-ligatures
- font-variant-numeric
- font-variant-position
- font-weight
- letter-spacing
- line-break
- line-height
- list-style
- list-style-image
- list-style-position
- list-style-type
- tab-size
- text-align
- text-align-last
- text-combine-upright
- text-decoration
- text-decoration-color
- text-decoration-line
- text-decoration-style
- text-emphasis
- text-emphasis-color
- text-emphasis-position
- text-emphasis-style
- text-indent
- text-orientation
- text-overflow
- text-rendering
- text-shadow
- text-transform
- text-underline-position
- unicode-bidi
- unicode-range
- white-space
- word-break
- word-spacing
- word-wrap
- # Table
- caption-side
- empty-cells
- table-layout
- # Filters
- filter
- opacity
- # Animation
- animation
- animation-delay
- animation-direction
- animation-duration
- animation-fill-mode
- animation-iteration-count
- animation-name
- animation-play-state
- animation-timing-function
- transform
- transform-box
- transform-origin
- transform-style
- transition
- transition-delay
- transition-duration
- transition-property
- transition-timing-function
- will-change
- # Print Media
- orphans
- page-break-after
- page-break-before
- page-break-inside
- widows
min_properties: 3
separate_groups: true
PropertySpelling:
enabled: true
extra_properties: []
severity: error
PropertyUnits:
enabled: true
global: [
'ch', 'em', 'ex', 'rem', # Font-relative lengths
'cm', 'in', 'mm', 'q', # Absolute lengths
'vh', 'vw', 'vmin', 'vmax', # Viewport-percentage lengths
'deg', 'grad', 'rad', 'turn', # Angle
'ms', 's', # Duration
'Hz', 'kHz', # Frequency
'dpi', 'dpcm', 'dppx', # Resolution
'fr', '%'] # Other
properties:
counter-reset: []
counter-increment: []
font-weight: []
line-height: []
pitch-range: []
richness: []
stress: []
volume: []
z-index: []
severity: error
PseudoElement:
enabled: false # Handled by stylelint
severity: warning
QualifyingElement:
enabled: true
allow_element_with_attribute: true
allow_element_with_class: false
allow_element_with_id: false
severity: error
SelectorDepth:
enabled: false # Handled by stylelint
max_depth: 3
severity: warning
SelectorFormat:
enabled: true
convention: hyphenated_BEM # or 'hyphenated_lowercase, or' 'strict_BEM', or 'snake_case', or 'camel_case', or a regex pattern
Shorthand:
enabled: true
allowed_shorthands: [1, 2, 3]
severity: error
SingleLinePerProperty:
enabled: false # Handled by stylelint
allow_single_line_rule_sets: true
severity: error
SingleLinePerSelector:
enabled: false # Handled by stylelint
severity: error
SpaceAfterComma:
enabled: false # Handled by stylelint
style: one_space # or 'no_space', or 'at_least_one_space'
severity: error
SpaceAfterPropertyColon:
enabled: false # Handled by stylelint
style: one_space # or 'no_space', or 'at_least_one_space', or 'aligned'
severity: error
SpaceAfterPropertyName:
enabled: false # Handled by stylelint
severity: error
SpaceAfterVariableName:
enabled: false # Handled by stylelint
severity: error
SpaceAroundOperator:
enabled: false # Handled by stylelint
style: one_space # or 'no_space'
severity: error
SpaceBeforeBrace:
enabled: false # Handled by stylelint
style: space # or 'new_line'
allow_single_line_padding: false
severity: error
SpaceBetweenParens:
enabled: false # Handled by stylelint
spaces: 0
severity: warning
StringQuotes:
enabled: false # Handled by stylelint
style: single_quotes # or double_quotes
severity: error
TrailingSemicolon:
enabled: false # Handled by stylelint
severity: error
TrailingWhitespace:
enabled: false # Handled by stylelint
severity: warning
TrailingZero:
enabled: false # Handled by stylelint
severity: warning
TransitionAll:
enabled: true
severity: warning
UnnecessaryMantissa:
enabled: false # Handled by stylelint
severity: warning
UnnecessaryParentReference:
enabled: true
severity: warning
UrlFormat:
enabled: true
severity: warning
UrlQuotes:
enabled: true
severity: warning
VariableForProperty:
enabled: false
properties:
VendorPrefix:
enabled: false # Handled by stylelint
identifier_list: base
additional_identifiers: []
excluded_identifiers: []
severity: warning
ZeroUnit:
enabled: false # Handled by stylelint
severity: error
Compass::*:
enabled: false