This repository has been archived by the owner on Oct 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.scss-lint.yml
245 lines (199 loc) · 7.46 KB
/
.scss-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
# Defaults: https://github.com/causes/scss-lint/blob/master/config/default.yml
exclude: [
"*.css",
"core/_normalize.scss"
]
linters:
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#borderzero
BorderZero:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#bangformat
BangFormat:
severity: error
enabled: true
space_before_bang: true
space_after_bang: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#colorkeyword
ColorKeyword:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#comment
Comment:
enabled: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#compass-linters
Compass::*:
enabled: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#debugstatement
DebugStatement:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#declarationorder
DeclarationOrder:
severity: warning
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#duplicateproperty
DuplicateProperty:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#elseplacement
ElsePlacement:
severity: error
enabled: true
style: new_line
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#emptylinebetweenblocks
EmptyLineBetweenBlocks:
severity: error
enabled: true
ignore_single_line_blocks: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#emptyrule
EmptyRule:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#finalnewline
FinalNewline:
enabled: false
present: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#hexlength
HexLength:
enabled: true
style: short
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#hexnotation
HexNotation:
severity: error
enabled: true
style: lowercase
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#idwithextraneousselector
IdWithExtraneousSelector:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#importpath
ImportPath:
severity: error
enabled: true
leading_underscore: false
filename_extension: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#indentation
Indentation:
enabled: true
character: space
width: 2
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#leadingzero
LeadingZero:
severity: error
enabled: true
style: include_zero
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#mergeableselector
MergeableSelector:
severity: error
enabled: true
force_nesting: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#nameformat
NameFormat:
enabled: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#nestingdepth
NestingDepth:
severity: error
enabled: true
max_depth: 3
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#placeholderinextend
PlaceholderInExtend:
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#propertysortorder
PropertySortOrder:
enabled: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#propertyspelling
PropertySpelling:
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#qualifyingelement
QualifyingElement:
severity: warning
enabled: true
allow_element_with_attribute: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#selectordepth
SelectorDepth:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#selectorformat
SelectorFormat:
severity: error
enabled: true
convention: hyphenated_BEM
#ignored_names: ['*js-', '*is-']
ignored_types: placeholder
class_convention: hyphenated_BEM
attribute_convention: hyphenated_lowercase
id_convention: hyphenated_lowercase
placeholder_convention: hyphenated_lowercase
pseudo_convention: hyphenated_lowercase
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#shorthand
Shorthand:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#singlelineperproperty
SingleLinePerProperty:
enabled: false
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#singlelineperselector
SingleLinePerSelector:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#spaceaftercomma
SpaceAfterComma:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#spaceafterpropertycolon
SpaceAfterPropertyColon:
severity: error
enabled: true
style: one_space
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#spaceafterpropertyname
SpaceAfterPropertyName:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#spacebeforebrace
SpaceBeforeBrace:
severity: error
enabled: true
allow_single_line_padding: false
style: space
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#spacebetweenparens
SpaceBetweenParens:
severity: error
enabled: true
spaces: 0
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#stringquotes
StringQuotes:
severity: error
enabled: true
style: double_quotes
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#trailingsemicolon
TrailingSemicolon:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#trailingzero
TrailingZero:
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#unnecessarymantissa
UnnecessaryMantissa:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#unnecessaryparentreference
UnnecessaryParentReference:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#urlformat
UrlFormat:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#urlquotes
UrlQuotes:
severity: error
enabled: true
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#vendorprefixes
VendorPrefixes:
enabled: true
identifier_list: base # include everything that Autoprefixer addresses
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md#zerounit
ZeroUnit:
severity: error
enabled: true