-
Notifications
You must be signed in to change notification settings - Fork 4
/
.sass-lint.yml
285 lines (285 loc) · 6.57 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
# Linter Options
options:
# Cache config
cache-config: true
# Set the formatter to pretty CLI
formatter: stylish
# File Options
# files:
# include: 'src/**/*.scss'
# Rule Configuration
rules:
# Don't use quotes on attribute value (eg: span[lang=pt])
attribute-quotes:
- 2 # Error
-
include: false
# Force maximum BEM depth
bem-depth:
- 2
-
max-depth: 2
# Force border: none
border-zero:
- 2
-
convention: 'none'
# Force braces style (same as standardJS)
brace-style:
- 2
-
style: '1tbs'
allow-single-line: false
# Force class names convention
class-name-format:
- 2
-
allow-leading-underscore: false
convention: hyphenatedbem
convention-explanation: 'Class must contain only lowercase letters, underscores and hyphens'
# Force no underscores neither file extension on imports
clean-import-paths:
- 2
-
leading-underscore: false
filename-extension: false
# Force no parenthesis if no args
empty-args:
- 2
-
include: false
# Force empty line between non-comment declaration
empty-line-between-blocks:
- 2
-
include: true
allow-single-line-rulesets: false
# Force extend before declarations
extends-before-declarations: 2
# Force extend before mixins
extends-before-mixins: 2
# Force file end with newline
final-newline:
- 2
-
include: true
# Don't force attribute nesting
force-attribute-nesting: 0 # Disabled
# Force element nesting (eg: NO div span {})
force-element-nesting: 2
# Force pseudo-element nesting (eg: NO div:hover {})
force-pseudo-nesting: 2
# Force functions name convention
function-name-format:
- 2
-
allow-leading-underscore: false
convention: hyphenatedlowercase
convention-explanation: 'Functions must contain only lowercase letters and hyphens'
# Force long hexadecimal values (eg: NO #111)
hex-length:
- 2
-
style: long
# Force hexadecimal values to uppercase
hex-notation:
- 2
-
style: uppercase
# Force identifier name format
id-name-format:
- 2
-
allow-leading-underscore: false
convention: hyphenatedlowercase
convention-explanation: 'IDs must contain only lowercase letters and hyphens'
# Force indentation to 2 spaces
indentation:
- 2
-
size: 2
# Force leading zero
leading-zero:
- 2
-
include: true
# Force mixins name convention
mixin-name-format:
- 2
-
allow-leading-underscore: false
convention: hyphenatedlowercase
convention-explanation: 'Mixins must contain only lowercase letters and hyphens'
# Force include mixin before declarations
mixins-before-declarations: 2
# Force nesting depth
nesting-depth:
- 2
-
max-depth: 4
# Disallow no attribute selectors
no-attribute-selectors: 0
# Disallow color keywords (eg: red, blue, etc…)
no-color-keywords: 2
# Disallow color literals (eg: no rgb, rgba, hsl, hsla — MUST use variables)
no-color-literals:
- 2
-
allow-map-identifiers: true
allow-rgba: false
allow-variable-identifiers: true
# Disallow combinators (eg: > ~ + [ESPACE])
no-combinators: 0
# Don't disable CSS comments
no-css-comments: 0
# Disallow debug
no-debug: 1 # Warning
# Disallow properties
no-disallowed-properties:
- 2
-
properties: []
# Disallow duplicates properties
no-duplicate-properties:
- 2
-
exclude: []
# Disallow empty ruleset
no-empty-rulesets: 2
# Allow extends
no-extends: 0
# Allow IDs
no-ids: 0
# Allow !important
no-important: 0
# Disallow invalid hex
no-invalid-hex: 2
# Disallow mergeable and duplicates
no-mergeable-selectors:
- 2
-
whitelist: []
# Disallow mispelled properties
no-misspelled-properties:
- 2
-
extra-properties: []
# Allow element with attribute but not with class nor id
no-qualifying-elements:
- 2
-
allow-element-with-attribute: true
allow-element-with-class: false
allow-element-with-id: false
# No trailing whitespaces
no-trailing-whitespace: 2
# No trailing zero
no-trailing-zero: 2
# Disallow transition to target all
no-transition-all: 2
# Allow universal selector
no-universal-selectors: 0
# Disallow protocols and domains for url
no-url-protocols: 2
# Disallow vendor prefixes
no-vendor-prefixes:
- 2
-
additional-identifiers: []
excluded-identifiers: []
ignore-non-standard: false
# Disallow warn
no-warn: 2
# Force one declaration per line
one-declaration-per-line: 2
# Allow anything else than placeholder in extend
placeholder-in-extend: 0
# Force placeholder name convention
placeholder-name-format:
- 2
-
allow-leading-underscore: false
convention: hyphenatedlowercase
convention-explanation: 'Placeholders must contain only lowercase letters and hyphens'
# Do not force property sort order
property-sort-order: 0
# Only allow some units
property-units:
- 2
-
global: ['em', 'rem', '%', 'px']
# Force correct syntax for pseudo-elements and pseudo-classes (eg: ::before and :hover)
pseudo-element: 2
# Force single quotes
quotes:
- 2
-
style: single
# Do not force shorthand values
shorthand-values: 0
# Force single line per selector
single-line-per-selector: 2
# Disallow space after bang
space-after-bang:
- 2
-
include: false
# Force space after colon
space-after-colon:
- 2
-
include: true
# Force space after comma
space-after-comma:
- 2
-
include: true
# Force space around operator
space-around-operator:
- 2
-
include: true
# Force space before bang
space-before-bang:
- 2
-
include: true
# Force space before brace
space-before-brace:
- 2
-
include: true
# Disallow space before colon
space-before-colon:
- 2
-
include: false
# Disallow space between parenthesis
space-between-parens:
- 2
-
include: false
# Force trailing semicolon
trailing-semicolon:
- 2
-
include: true
# Force quotes for url
url-quotes: 2
# Force properties to use variables
variable-for-property:
- 2
-
properties: [] # TODO
# Force variables name convention
variable-name-format:
- 2
-
allow-leading-underscore: false
convention: hyphenatedlowercase
convention-explanation: 'Variables must contain only lowercase letters and hyphens'
# Force no unit if value 0
zero-unit:
- 2
-
include: false