This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
.sass-lint.yml
executable file
·247 lines (198 loc) · 4.82 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
# Custom configuration for Sass lint.
# https://github.com/sasstools/sass-lint
options:
formatter: stylish
merge-default-rules: true
# For all rules, setting their severity to 0 turns it off,
# setting to 1 sets it as a warning (something that should not be committed in),
# and setting to 2 set it to an error (something that should not be written).
#
# More info can be found here:
# https://github.com/sasstools/sass-lint/tree/develop/docs/rules
rules:
# Prefer the terser border: 0 over border: none.
border-zero:
- 1
- convention: '0'
# Prefer
#
# .foo {
# content: 'foo';
# }
#
# over
#
# .foo
# {
# content: 'foo';
# }
# Allow single line for one off cases.
brace-style:
- 1
-
style: stroustrup
allow-single-line: true
# Prefer @import paths without leading underscores and/or
# file extensions.
clean-import-paths:
- 1
-
filename-extension: false
leading-underscore: false
# Prefer empty lines between code blocks when nestings.
empty-line-between-blocks:
- 1
- include: true
# Prefer newline at the end of a file.
final-newline:
- 1
- include: true
# Don't enforce attribute nesting.
force-attribute-nesting: 0
# Don't enforce element nesting.
force-element-nesting: 0
# Don't enforce pseudo nesting.
force-pseudo-nesting: 0
# Prefer function name formatting with dashes.
function-name-format:
- 1
-
allow-leading-underscore: true
convention: hyphenatedlowercase
# Prefer short hexadecimal values for colors.
# #FFF vs #FFFFFF
hex-length:
- 0
- style: short
# Don't enforce hex-notation.
# #FFF vs #fff
hex-notation:
- 0
- style: lowercase
# Prefer two spaces for indentation.
indentation:
- 1
- width: 2
# Prefer leading zero for readability.
leading-zero:
- 1
- include: true
# Prefer mixin names with dashes.
mixin-name-format:
- 1
-
allow-leading-underscore: true
convention: hyphenatedlowercase
# Prefer a max-depth of 3 for nesting. 2 would really be best.
nesting-depth:
- 1
- max-depth: 3
# No preference for color keywords.
no-color-keyword: 0
# No preference for color literals.
no-color-literals: 0
# Allow css comments.
no-css-comments: 0
# Prefer debug not be used.
no-debug: 1
# Prefer no duplicate properties except display.
no-duplicate-properties:
- 1
-
exclude:
- display
- background
# Enforce no empty rulesets.
no-empty-rulesets: 2
# Let's just go ahead and say 'no extends'.
no-extends: 1
# Prefer no ID selectors.
no-ids: 1
# Prefer no importants.
no-important: 1
# Enforce that all hex values must be valid.
no-invalid-hex: 2
# Prefer no duplicate selectors that can be merged.
no-mergeable-selectors: 1
# Enforce that all properties are spelled correctly.
no-misspelled-properties:
- 2
-
extra-properties: []
# Prefer only allowing elements to be qualified with attributes.
no-qualifying-elements:
- 1
-
allow-element-with-attribute: true
allow-element-with-class: false
allow-element-with-id: false
class-name-format:
- 2
- allow-leading-underscore: false
convention: hyphenatedbem
# No preference for trailing zeros.
no-trailing-zero: 0
# Prefer no url absolute url paths.
no-url-protocols: 1
# No preference for property sort order.
property-sort-order: 0
# Prefer single quotes.
quotes:
- 1
- style: single
# Prefer shorthand values be as concise as possible.
#
# margin: 1px 1px 1px 1px;
#
# // Will be enforced to 1 value
# margin: 1px;
shorthand-values: 1
# Prefer single line per selector.
single-line-per-selector: 1
# Prefer no space after bang(!).
space-after-bang:
- 1
- include: false
# Prefer space after colon.
space-after-colon:
- 1
- include: true
# Prefer space after comma.
space-after-comma:
- 1
- include: true
# Prefer space before bang(!).
space-before-bang:
- 1
- include: true
# Prefer space before a brace.
space-before-brace:
- 1
- include: true
# Prefer NO space before colon.
space-before-colon: 1
# Prefer NO space between parenthesis(()).
space-between-parens:
- 1
- include: false
# Enforce ending each declaration with a semicolon(;).
trailing-semicolon: 2
# Prefer that url() uses quotes.
#
# .foo {
# background-image: url('foo.png');
# }
url-quotes: 1
# No preference for forcing certain properties to use variables.
variable-for-property:
- 0
- properties: []
# Prefer hyphenated lowercase for variable names.
variable-name-format:
- 1
-
allow-leading-underscore: true
convention: hyphenatedlowercase
# Prefer zero values to be unitless.
# 0 vs 0px
zero-unit: 1