UNPKG

7.76 kBYAMLView Raw
1# The following scss-lint Linters are not yet supported by sass-lint:
2# ElsePlacement, PropertyCount, SelectorDepth, UnnecessaryParentReference
3#
4# The following settings/values are unsupported by sass-lint:
5# Linter Indentation, option "allow_non_nested_indentation"
6# Linter Indentation, option "character"
7# Linter PropertySortOrder, option "separate_groups"
8# Linter SpaceBeforeBrace, option "allow_single_line_padding"
9
10files:
11 include: 'scss/**/*.scss'
12
13options:
14 formatter: stylish
15 merge-default-rules: false
16
17rules:
18 border-zero:
19 - 1
20 - convention: '0'
21
22 brace-style:
23 - 1
24 - style: stroustrup
25 - allow-single-line: true
26
27 class-name-format:
28 - 1
29 - convention: '([a-z0-9]+-?)+'
30
31 clean-import-paths:
32 - 1
33 - filename-extension: false
34 leading-underscore: false
35
36 empty-line-between-blocks:
37 - 1
38 - ignore-single-line-rulesets: true
39
40 extends-before-declarations: 1
41
42 extends-before-mixins: 1
43
44 final-newline:
45 - 1
46 - include: true
47
48 force-attribute-nesting: 1
49
50 force-element-nesting: 1
51
52 force-pseudo-nesting: 1
53
54 function-name-format:
55 - 1
56 - allow-leading-underscore: true
57 convention: hyphenatedlowercase
58
59 hex-length:
60 - 1
61 - style: short
62
63 hex-notation:
64 - 1
65 - style: lowercase
66
67 id-name-format:
68 - 1
69 - convention: '([a-z0-9]+-?)+'
70
71 indentation:
72 - 1
73 - size: 2
74
75 leading-zero:
76 - 1
77 - include: true
78
79 mixin-name-format:
80 - 1
81 - allow-leading-underscore: true
82 convention: hyphenatedlowercase
83
84 mixins-before-declarations: 1
85
86 nesting-depth:
87 - 1
88 - max-depth: 3
89
90 no-color-keywords: 1
91
92 no-color-literals: 1
93
94 no-css-comments: 0
95
96 no-debug: 1
97
98 no-duplicate-properties: 1
99
100 no-empty-rulesets: 1
101
102 no-ids: 1
103
104 no-important: 0
105
106 no-invalid-hex: 1
107
108 no-mergeable-selectors: 1
109
110 no-misspelled-properties:
111 - 1
112 - extra-properties: []
113
114 no-qualifying-elements:
115 - 1
116 - allow-element-with-attribute: false
117 allow-element-with-class: false
118 allow-element-with-id: false
119
120 no-trailing-zero: 1
121
122 no-url-protocols: 1
123
124 no-vendor-prefixes:
125 - 1
126 - ignore-non-standard: true
127
128 placeholder-in-extend: 1
129
130 placeholder-name-format:
131 - 1
132 - convention: '([a-z0-9]+-?)+'
133
134 property-sort-order:
135 - 1
136 -
137 ignore-custom-properties: true
138 order:
139 # Specific - CSS property order
140 # https://gist.github.com/ncoden/d42f55df7c7970f548a02cd3468f9c86
141
142 # Position
143 - 'position'
144 - 'top'
145 - 'right'
146 - 'bottom'
147 - 'left'
148 - 'z-index'
149
150 # Disposition
151 - 'display'
152
153 - 'flex'
154 - 'flex-basis'
155 - 'flex-direction'
156 - 'flex-flow'
157 - 'flex-grow'
158 - 'flex-shrink'
159 - 'flex-wrap'
160 - 'justify-content'
161 - 'order'
162
163 - 'box-align'
164 - 'box-flex'
165 - 'box-orient'
166 - 'box-pack'
167
168 - 'align-content'
169 - 'align-items'
170 - 'align-self'
171
172 - 'columns'
173 - 'column-gap'
174 - 'column-fill'
175 - 'column-rule'
176 - 'column-span'
177 - 'column-count'
178 - 'column-width'
179
180 - 'vertical-align'
181 - 'float'
182 - 'clear'
183
184 # Dimension
185 - 'box-sizing'
186
187 - 'width'
188 - 'min-width'
189 - 'max-width'
190
191 - 'height'
192 - 'min-height'
193 - 'max-height'
194
195 - 'margin'
196 - 'margin-top'
197 - 'margin-right'
198 - 'margin-bottom'
199 - 'margin-left'
200 - 'margin-collapse'
201 - 'margin-top-collapse'
202 - 'margin-right-collapse'
203 - 'margin-bottom-collapse'
204 - 'margin-left-collapse'
205
206 - 'padding'
207 - 'padding-top'
208 - 'padding-right'
209 - 'padding-bottom'
210 - 'padding-left'
211
212
213 # Global appearance
214 - 'appearance'
215 - 'opacity'
216 - 'filter'
217 - 'visibility'
218
219 - 'size'
220 - 'resize'
221 - 'zoom'
222
223 - 'transform'
224 - 'transform-box'
225 - 'transform-origin'
226 - 'transform-style'
227
228 # Border
229 - 'outline'
230 - 'outline-color'
231 - 'outline-offset'
232 - 'outline-style'
233 - 'outline-width'
234
235 - 'border'
236 - 'border-top'
237 - 'border-right'
238 - 'border-bottom'
239 - 'border-left'
240 - 'border-width'
241 - 'border-top-width'
242 - 'border-right-width'
243 - 'border-bottom-width'
244 - 'border-left-width'
245
246 - 'border-style'
247 - 'border-top-style'
248 - 'border-right-style'
249 - 'border-bottom-style'
250 - 'border-left-style'
251
252 - 'border-radius'
253 - 'border-top-left-radius'
254 - 'border-top-right-radius'
255 - 'border-bottom-right-radius'
256 - 'border-bottom-left-radius'
257 - 'border-radius-topleft'
258 - 'border-radius-topright'
259 - 'border-radius-bottomright'
260 - 'border-radius-bottomleft'
261
262 - 'border-color'
263 - 'border-top-color'
264 - 'border-right-color'
265 - 'border-bottom-color'
266 - 'border-left-color'
267
268 - 'border-collapse'
269 - 'border-spacing'
270
271 # Background
272 - 'background'
273 - 'background-image'
274 - 'background-color'
275 - 'background-attachment'
276 - 'background-clip'
277 - 'background-origin'
278 - 'background-position'
279 - 'background-repeat'
280 - 'background-size'
281
282 # Shadow
283 - 'box-shadow'
284
285 # Animation
286 - 'animation'
287 - 'animation-delay'
288 - 'animation-duration'
289 - 'animation-iteration-count'
290 - 'animation-name'
291 - 'animation-play-state'
292 - 'animation-timing-function'
293 - 'animation-fill-mode'
294
295 - 'transition'
296 - 'transition-delay'
297 - 'transition-duration'
298 - 'transition-property'
299 - 'transition-timing-function'
300
301
302 # Content
303 - 'content'
304
305 - 'list-style'
306 - 'list-style-image'
307 - 'list-style-position'
308 - 'list-style-type'
309
310 - 'overflow'
311 - 'overflow-x'
312 - 'overflow-y'
313 - 'clip'
314
315 # Text
316 - 'font'
317 - 'font-family'
318 - 'font-size'
319 - 'font-smoothing'
320 - 'osx-font-smoothing'
321 - 'font-style'
322 - 'font-variant'
323 - 'font-weight'
324 - 'src'
325
326 - 'word-spacing'
327 - 'letter-spacing'
328 - 'line-height'
329
330 - 'color'
331 - 'direction'
332 - 'text-align'
333 - 'text-decoration'
334 - 'text-indent'
335 - 'text-overflow'
336 - 'text-rendering'
337 - 'text-size-adjust'
338 - 'text-shadow'
339 - 'text-transform'
340
341 - 'white-space'
342 - 'word-break'
343 - 'word-wrap'
344 - 'hyphens'
345 - 'quotes'
346
347 # Divers
348 - 'pointer-events'
349 - 'cursor'
350
351 - 'backface-visibility'
352 - 'caption-side'
353 - 'empty-cells'
354 - 'table-layout'
355 - 'user-select'
356
357 - 'interpolation-mode'
358 - 'marks'
359 - 'page'
360 - 'set-link-source'
361 - 'unicode-bidi'
362 - 'speak'
363
364 quotes:
365 - 1
366 - style: single
367
368 shorthand-values: 1
369
370 single-line-per-selector: 0
371
372 space-after-bang:
373 - 1
374 - include: false
375
376 space-after-colon:
377 - 1
378 - include: true
379
380 space-after-comma: 1
381
382 space-before-bang:
383 - 1
384 - include: true
385
386 space-before-brace:
387 - 1
388 - include: true
389
390 space-before-colon: 1
391
392 space-between-parens:
393 - 1
394 - include: false
395
396 trailing-semicolon: 1
397
398 url-quotes: 1
399
400 variable-for-property:
401 - 0
402 - properties: []
403
404 variable-name-format:
405 - 1
406 - allow-leading-underscore: true
407 convention: hyphenatedlowercase
408
409 zero-unit: 1