forked from stephrdev/django-cruditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sass-lint.yml
471 lines (405 loc) · 11.9 KB
/
.sass-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
# https://github.com/sasstools/sass-lint/tree/master/docs/rules
options:
formatter: stylish
merge-default-rules: false
rules:
# Rule will enforce how many elements a BEM selector can contain.
bem-depth: 2
# Rule will enforce whether one should use 0 or none when specifying a zero border value
border-zero:
- 2
- convention: '0'
# Rule will enforce the use of the chosen brace style.
brace-style:
- 2
- allow-single-line: false
style: '1tbs'
# Rule will enforce a convention for class names.
class-name-format:
- 2
- convention: hyphenatedlowercase
# Rule will enforce whether or not @import paths should have leading underscores
# and/or filename extensions.
clean-import-paths:
- 2
- filename-extension: false
leading-underscore: false
# Rule will enforce whether or not parenthesis should be included if no arguments
# are defined or used, when declaring or invoking a mixin.
empty-args:
- 2
- include: true
# Rule empty-line-between-blocks will enforce whether or not nested blocks
# should include a space between the last non-comment declaration or not.
empty-line-between-blocks:
- 2
- include: true
- ignore-single-line-rulesets: false
# Rule will enforce that extends should be written before declarations in a ruleset.
extends-before-declarations: 2
# Rule will enforce that extends should be written before mixins in a ruleset.
extends-before-mixins: 2
# Rule will enforce whether or not files should end with a newline.
final-newline:
- 2
- include: true
# Rule will enforce the nesting of attributes
force-attribute-nesting: 2
# Rule will enforce the nesting of elements
force-element-nesting: 0
# Rule will enforce the nesting of pseudo elements/classes.
force-pseudo-nesting: 0
# Rule will enforce a convention for function names.
function-name-format:
- 2
- allow-leading-underscore: true
convention: hyphenatedlowercase
# Rule will enforce the length of hexadecimal values
hex-length:
- 2
- style: long
# Rule will enforce the case of hexadecimal values
hex-notation:
- 2
- style: uppercase
# Rule will enforce a convention for id names.
id-name-format:
- 2
- convention: hyphenatedlowercase
# Rule will enforce an indentation size (in spaces) and ensure that tabs and spaces are not mixed.
indentation:
- 0
- size: 2
# Rule will enforce whether or not decimal numbers should include a leading zero.
leading-zero:
- 2
- include: true
# Rule will enforce a convention for mixin names.
mixin-name-format:
- 2
- allow-leading-underscore: true
convention: hyphenatedlowercase
# Rule will enforce that mixins should be written before declarations in a ruleset.
mixins-before-declarations:
- 2
- exclude: ['grid-break', 'media-retina']
# Rule will enforce how deeply a selector can be nested.
nesting-depth:
- 2
- max-depth: 8
# Rule will enforce the use of hexadecimal color values rather than literals.
no-color-keywords: 2
# Rule will disallow the use of color literals and basic color functions in any
# declarations other than variables or maps/lists.
no-color-literals:
- 2
- allow-rgba: true
# Rule will enforce the use of Sass single-line comments and disallow CSS comments.
# Bang comments (/*! */, will be printed even in minified mode) are still allowed.
no-css-comments: 0
# Rule will enforce that @debug statements are not allowed to be used.
no-debug: 2
# Rule will enforce that duplicate properties are not allowed within the same block.
no-duplicate-properties:
- 2
- exclude:
- src
# Rule will enforce that rulesets are not empty.
no-empty-rulesets: 2
# Rule will enforce that extends are not allowed to be used.
no-extends: 0
# Rule will enforce that ID selectors are not allowed to be used.
no-ids: 2
# Rule will enforce that important declarations are not allowed to be used.
no-important: 0
# Rule will enforce that only valid of hexadecimal values are written.
no-invalid-hex: 2
# Rule will enforce that selectors aren't repeated and that their properties are
# merged. You may also pass a whitelist of selectors you wish to exclude from merging.
no-mergeable-selectors: 2
# Rule will enforce the correct spelling of CSS properties and prevent the use
# of unknown CSS properties.
no-misspelled-properties:
- 2
- extra-properties: ['animation-', 'overflow-scrolling', 'touch-callout']
# Rule will enforce that selectors are not allowed to have qualifying elements.
no-qualifying-elements:
- 2
- allow-element-with-attribute: false
allow-element-with-class: false
allow-element-with-id: false
# Rule will enforce that trailing whitespace is not allowed.
no-trailing-whitespace: 2
# Rule will enforce that trailing zeros are not allowed.
no-trailing-zero: 2
# Rule will enforce whether the keyword all can be used with the transition or
# transition-property property.
no-transition-all: 0
# Rule will enforce that protocols and domains are not used within urls.
no-url-protocols: 2
# Rule will enforce that vendor prefixes are not allowed to be used.
no-vendor-prefixes:
- 0
- additional-identifiers: []
excluded-identifiers: []
# Rule will enforce that @warn statements are not allowed to be used.
no-warn: 2
# Rule will enforce that new declarations must begin on new lines.
one-declaration-per-line: 2
# Rule will enforce whether extends should only include placeholder selectors.
placeholder-in-extend: 0
# Rule will enforce a convention for placeholder names.
placeholder-name-format:
- 2
- convention: hyphenatedlowercase
# Rule will enforce the order in which declarations are written.
property-sort-order:
- 2
- ignore-custom-properties: true
order:
- animation
- animation-name
- animation-duration
- animation-delay
- animation-direction
- animation-fill-mode
- animation-iteration-count
- animation-play-state
- animation-timing-function
- transition
- transition-delay
- transition-duration
- transition-property
- transition-timing-function
- appearance
- content
- speak
- counter-reset
- counter-increment
- cursor
- pointer-events
- user-select
- touch-action
- touch-callout
- tap-highlight-color
- box-sizing
- zoom
- display
- table-layout
- flex
- flex-basis
- flex-direction
- flex-grow
- flex-shrink
- flex-wrap
- align-self
- align-content
- align-items
- justify-content
- order
- overflow
- overflow-x
- overflow-y
- overflow-scrolling
- visibility
- opacity
- float
- clear
- backface-visibility
- transform
- transform-origin
- transform-style
- perspective
- perspective-origin
- position
- top
- right
- bottom
- left
- z-index
- margin
- margin-top
- margin-right
- margin-bottom
- margin-left
- padding
- padding-top
- padding-right
- padding-bottom
- padding-left
- width
- min-width
- max-width
- height
- min-height
- max-height
- background
- background-color
- background-image
- background-repeat
- background-position
- background-attachment
- background-size
- border
- border-top
- border-right
- border-bottom
- border-left
- border-width
- border-style
- border-color
- border-image
- border-radius
- outline
- outline-width
- outline-style
- outline-color
- outline-offset
- box-shadow
- color
- font
- font-family
- font-size
- font-weight
- font-style
- font-variant
- line-height
- list-style
- list-style-type
- list-style-position
- list-style-image
- text-align
- text-transform
- text-decoration
- text-indent
- text-shadow
- vertical-align
- white-space
- word-break
- word-spacing
- word-wrap
# Rule will disallow the use of units not specified in global or per-property.
# Units specified per-property will override the global units for that property.
property-units:
- 2
- global:
# Font-relative lengths
- ch
- em
- ex
- rem
# Absolute lengths
- cm
- in
- mm
- pc
- pt
- px
- q
# Viewport-percentage lengths
- vh
- vw
- vmin
- vmax
# Angle
- deg
- grad
- rad
- turn
# Duration
- ms
- s
# Frequency
- Hz
- kHz
# Resolution
- dpi
- dpcm
- dppx
# Other
- '%'
per-property:
border:
- px
- em
- rem
font:
- em
- rem
line-height: []
margin:
- px
- em
- rem
- '%'
padding:
- px
- em
- rem
- '%'
# Rule will enforce whether single quotes ('') or double quotes ("") should be
# used for all strings.
quotes:
- 2
- style: single
# Rule will enforce that values in their shorthand form are as concise as specified.
shorthand-values: 2
# Rule will enforce whether selectors should be placed on a new line.
single-line-per-selector: 2
# Rule will enforce whether or not a space should be included after a bang (!).
space-after-bang:
- 2
- include: false
# Rule will enforce whether or not a space should be included after a colon (:).
space-after-colon:
- 2
- include: true
# Rule will enforce whether or not a space should be included after a comma (,).
space-after-comma: 2
# Rule will enforce whether or not a single space should be included before and
# after the following operators: +, -, /, *, %, <, > ==, !=, <= and >=.
space-around-operator:
- 2
- include: true
# Rule will enforce whether or not a space should be included before a bang (!).
space-before-bang:
- 2
- include: true
# Rule will enforce whether or not a space should be included before a brace ({).
space-before-brace:
- 2
- include: true
# Rule will enforce whether or not a space should be included before a colon (:).
space-before-colon: 0
# Rule will enforce whether or not a space should be included before the first
# item and after the last item inside parenthesis (()).
space-between-parens:
- 2
- include: false
# Rule will enforce whether the last declaration in a block should include a
# semicolon (;) or not (.sass syntax excluded).
trailing-semicolon:
- 2
- include: true
# Rule will enforce that URLs are wrapped in quotes.
url-quotes: 2
# Rule will enforce the use of variables for the values of specified properties.
# There are no properties by default, except for reserved words listed below
# which are always whitelisted:
# - inherit
# - initial
# - transparent
# - none
# - currentColor
variable-for-property:
- 2
- properties:
- color
- font-family
# Rule will enforce a convention for variable names.
variable-name-format:
- 2
- allow-leading-underscore: true
convention: hyphenatedlowercase
# Rule will enforce whether or not values of 0 used for length should be unitless.
zero-unit: 2