-
Notifications
You must be signed in to change notification settings - Fork 42
/
.sass-lint.yml
326 lines (243 loc) · 13.2 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
# Frost SASS linting config
# v1.0.0
options:
formatter: stylish
# This file already includes the default rules to be more explicit
merge-default-rules: false
files:
include: '+(addon|app|tests)/**/styles/**/*.s+(a|c)ss'
ignore:
- '**/dummy/app/styles//**/*.s+(a|c)ss'
- '**/_normalize.scss'
# Documentation on all rules available here: https://github.com/sasstools/sass-lint/blob/master/docs/rules
# 0 - disabled
# 1 - warning
# 2 - error
rules:
# =======================================================
# Extends
# =======================================================
# enforce that extends should be written before mixins in a ruleset.
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/extends-before-mixins.md
extends-before-mixins: 2
# enforce that extends should be written before declarations in a ruleset
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/extends-before-declarations.md
extends-before-declarations: 2
# enforce whether extends should only include placeholder selectors
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/placeholder-in-extend.md
placeholder-in-extend: 2
# =======================================================
# Mixins
# =======================================================
# enforce that mixins should be written before declarations in a ruleset
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/mixins-before-declarations.md
mixins-before-declarations: 2
# =======================================================
# Line Spacing
# =======================================================
# enforce that new declarations must begin on new lines
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/one-declaration-per-line.md
one-declaration-per-line: 2
# will enforce whether or not nested blocks should include a space between the last non-comment declaration or not
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/empty-line-between-blocks.md
empty-line-between-blocks: 2
# enforce whether selectors should be placed on a new line
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/single-line-per-selector.md
single-line-per-selector: 2
# =======================================================
# Disallows
# =======================================================
# enforce the use of hexadecimal color values rather than literals
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-color-keywords.md
no-color-keywords: 2
# disallow the use of color literals and basic color functions in any declarations other than variables or maps/lists
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-color-literals.md
no-color-literals: 2
# enforce the use of Sass single-line comments and disallow CSS comments.
# Bang comments (/*! */, will be printed even in minified mode) are still allowed
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-css-comments.md
no-css-comments: 2
# enforce that @debug statements are not allowed to be used
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-debug.md
no-debug: 2
# enforce that duplicate properties are not allowed within the same block
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-duplicate-properties.md
no-duplicate-properties: 2
# enforce that rulesets are not empty
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-empty-rulesets.md
no-empty-rulesets: 2
# enforce that extends are not allowed to be used
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-extends.md
no-extends: 0
# enforce that ID selectors are not allowed to be used
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-ids.md
no-ids: 2
# enforce that important declarations are not allowed to be used
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-important.md
no-important: 2
# enforce that only valid of hexadecimal values are written
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-invalid-hex.md
no-invalid-hex: 2
# 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
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-mergeable-selectors.md
no-mergeable-selectors: 2
# enforce the correct spelling of CSS properties and prevent the use of unknown CSS properties
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-misspelled-properties.md
no-misspelled-properties: 2
# enforce that selectors are not allowed to have qualifying elements
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-qualifying-elements.md
no-qualifying-elements: 2
# enforce that trailing whitespace is not allowed
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-trailing-whitespace.md
no-trailing-whitespace: 2
# enforce that trailing zeros are not allowed
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-trailing-zero.md
no-trailing-zero: 2
# enforce whether the keyword all can be used with the transition or transition-property property
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-transition-all.md
no-transition-all: 2
# enforce that protocols and domains are not used within urls
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-url-protocols.md
no-url-protocols: 2
# enforce that vendor prefixes are not allowed to be used
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-vendor-prefixes.md
no-vendor-prefixes: 2
# enforce that @warn statements are not allowed to be used
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-warn.md
no-warn: 2
# disallow the use of units not specified in global or per-property.
# Units specified per-property will override the global units for that property
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/property-units.md
property-units: 0
# =======================================================
# Nesting
# =======================================================
# enforce the nesting of attributes
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/force-attribute-nesting.md
force-attribute-nesting: 2
# enforce the nesting of elements
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/force-element-nesting.md
force-element-nesting: 2
# enforce the nesting of pseudo elements/classes
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/force-pseudo-nesting.md
force-pseudo-nesting: 2
# =======================================================
# Name Formats
# =======================================================
# enforce a convention for class names
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/class-name-format.md
class-name-format: 2
# enforce a convention for function names
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/function-name-format.md
function-name-format: 2
# enforce a convention for ids
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/id-name-format.md
id-name-format: 0
# enforce a convention for mixin names
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/mixin-name-format.md
mixin-name-format: 2
# enforce a convention for placeholder names
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/placeholder-name-format.md
placeholder-name-format: 2
# enforce a convention for variable names
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/variable-name-format.md
variable-name-format: 2
# =======================================================
# Style Guide
# =======================================================
# enforce how many elements a BEM selector can contain
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/bem-depth.md
bem-depth: 0
# enforce whether one should use 0 or none when specifying a zero border value
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/border-zero.md
border-zero: 2
# enforce the use of the chosen brace style
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/brace-style.md
brace-style: 2
# enforce whether or not @import paths should have leading underscores and/or filename extensions
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/clean-import-paths.md
clean-import-paths: 2
# enforce whether or not parenthesis should be included if no arguments are defined or used,
# when declaring or invoking a mixin
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/empty-args.md
empty-args: 2
# enforce the length of hexadecimal values (defaults to short)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/hex-length.md
hex-length: 2
# enforce the case of hexadecimal values
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/hex-notation.md
hex-notation: 2
# enforce an indentation size (in spaces) and ensure that tabs and spaces are not mixed
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/indentation.md
indentation: 2
# enforce whether or not decimal numbers should include a leading zero
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/leading-zero.md
leading-zero: 2
# enforce how deeply a selector can be nested (defaults to 2)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/nesting-depth.md
nesting-depth:
- 2
-
max-depth: 5
# enforce the order in which declarations are written (default alphabetical)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/property-sort-order.md
property-sort-order:
- 2
-
order: smacss
# enforce whether single quotes ('') or double quotes ("") should be used for all strings (defaults single)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/quotes.md
quotes: 2
# enforce that values in their shorthand form are as concise as specified
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/shorthand-values.md
shorthand-values: 2
# enforce that URLs are wrapped in quotes
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/url-quotes.md
url-quotes: 2
# 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 ]
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/variable-for-property.md
variable-for-property: 2
# enforce whether or not values of 0 used for length should be unitless (defaults to unitless)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/zero-unit.md
zero-unit: 2
# =======================================================
# Inner Spacing
# =======================================================
# enforce whether or not a space should be included after a comma (,) (default true)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-after-comma.md
space-after-comma: 2
# enforce whether or not a space should be included before a colon (:) (default false)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-before-colon.md
space-before-colon: 2
# enforce whether or not a space should be included after a colon (:) (default true)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-after-colon.md
space-after-colon: 2
# enforce whether or not a space should be included before a brace ({) (default true)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-before-brace.md
space-before-brace: 2
# enforce whether or not a space should be included before a bang (!) (default true)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-before-bang.md
space-before-bang: 2
# enforce whether or not a space should be included after a bang (!) (default false)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-after-bang.md
space-after-bang: 2
# enforce whether or not a space should be included before the first item and after the last item
# inside parenthesis (()) (default false)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-between-parens.md
space-between-parens: 2
# enforce whether or not a single space should be included before and after the following operators:
# +, -, /, *, %, <, > ==, !=, <= and >= (default true)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/space-around-operator.md
space-around-operator: 2
# =======================================================
# Final Items
# =======================================================
# enforce whether the last declaration in a block should include a semicolon (;) or not (default true)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/trailing-semicolon.md
trailing-semicolon: 2
# enforce whether or not files should end with a newline (default true)
# https://github.com/sasstools/sass-lint/blob/master/docs/rules/final-newline.md
final-newline: 2