@@ -3,6 +3,8 @@ ignoreFiles:
3
3
4
4
defaultSeverity : warning
5
5
6
+ customSyntax : postcss-scss
7
+
6
8
plugins :
7
9
- stylelint-scss
8
10
- stylelint-order
12
14
# Specify percentage or number notation for alpha-values.
13
15
alpha-value-notation : number
14
16
17
+ # Disallow unknown annotations.
18
+ # annotation-no-unknown: true
19
+
15
20
# Specify a list of disallowed at-rules.
16
21
at-rule-disallowed-list :
17
22
- debug
@@ -89,10 +94,10 @@ rules:
89
94
# Disallow empty blocks.
90
95
block-no-empty : true
91
96
92
- # equire a newline after the opening brace of blocks.
97
+ # Require a newline after the opening brace of blocks.
93
98
block-opening-brace-newline-after : always-multi-line
94
99
95
- # Require a newline or disallow whitespace before the opening brace of blocks.
100
+ # Require a newline or disallow whitespace before the opening brace of blocks.
96
101
# block-opening-brace-newline-before:
97
102
98
103
# Require a single space or disallow whitespace after the opening brace of blocks.
@@ -104,6 +109,9 @@ rules:
104
109
# Specify modern or legacy notation for applicable color-functions.
105
110
color-function-notation : modern
106
111
112
+ # Require or disallow alpha channel for hex colors.
113
+ # color-hex-alpha: never
114
+
107
115
# Specify lowercase or uppercase for hexadecimal color values.
108
116
color-hex-case : lower
109
117
@@ -125,9 +133,6 @@ rules:
125
133
# Disallow empty comments.
126
134
comment-no-empty : true
127
135
128
- # Specify a pattern for comments.
129
- # comment-pattern:
130
-
131
136
# Require or disallow whitespace on the inside of comment markers.
132
137
comment-whitespace-inside : always
133
138
@@ -140,6 +145,9 @@ rules:
140
145
# Require or disallow an empty line before custom properties (Autofixable).
141
146
custom-property-empty-line-before : never
142
147
148
+ # Disallow missing `var` function for custom properties.
149
+ # custom-property-no-missing-var-function: true
150
+
143
151
# Specify a pattern for custom properties.
144
152
# custom-property-pattern:
145
153
@@ -194,6 +202,9 @@ rules:
194
202
# Disallow `!important` within declarations.
195
203
# declaration-no-important:
196
204
205
+ # Limit the number of values for a list of properties within declarations.
206
+ # declaration-property-max-values:
207
+
197
208
# Specify a blacklist of disallowed property and unit pairs within declarations.
198
209
# declaration-property-unit-blacklist:
199
210
@@ -224,9 +235,6 @@ rules:
224
235
# Specify a blacklist of disallowed functions.
225
236
# function-blacklist:
226
237
227
- # Disallow an invalid expression within `calc` functions.
228
- function-calc-no-invalid : true
229
-
230
238
# Disallow an unspaced operator within `calc` functions.
231
239
function-calc-no-unspaced-operator : true
232
240
@@ -251,6 +259,9 @@ rules:
251
259
# Specify lowercase or uppercase for function names.
252
260
function-name-case : lower
253
261
262
+ # Disallow unknown functions.
263
+ # function-no-unknown: true
264
+
254
265
# Require a newline or disallow whitespace on the inside of the parentheses of functions.
255
266
function-parentheses-newline-inside : always-multi-line
256
267
@@ -278,12 +289,21 @@ rules:
278
289
# Specify number or angle notation for degree hues.
279
290
hue-degree-notation : number
280
291
292
+ # Specify string or URL notation for `@import` rules.
293
+ # import-notation: url
294
+
281
295
# Specify indentation.
282
296
indentation : 4
283
297
298
+ # Disallow duplicate selectors within keyframe blocks.
299
+ keyframe-block-no-duplicate-selectors : true
300
+
284
301
# Disallow `!important` within keyframe declarations.
285
302
keyframe-declaration-no-important : true
286
303
304
+ # Specify keyword or percentage notation for keyframe selectors.
305
+ keyframe-selector-notation : percentage-unless-within-keyword-only-block
306
+
287
307
# Specify a pattern for keyframe names.
288
308
# keyframes-name-pattern:
289
309
@@ -372,10 +392,10 @@ rules:
372
392
no-extra-semicolons : true
373
393
374
394
# Disallow double-slash comments (`//`) which are not supported by CSS.
375
- no-invalid-double-slash-comments : true
395
+ # no-invalid-double-slash-comments: true
376
396
377
397
# Disallow invalid position `@import` rules within a stylesheet.
378
- # no-invalid-position-at-import-rule:
398
+ # no-invalid-position-at-import-rule: true
379
399
380
400
# Disallow irregular whitespaces.
381
401
no-irregular-whitespace : true
@@ -421,12 +441,12 @@ rules:
421
441
except :
422
442
- first-nested
423
443
444
+ # Specify a list of disallowed properties for selectors within rules.
445
+ # rule-selector-property-disallowed-list:
446
+
424
447
# Require a single space or disallow whitespace on the inside of the brackets within attribute selectors.
425
448
selector-attribute-brackets-space-inside : never
426
449
427
- # Specify a list of disallowed attribute names.
428
- # selector-attribute-name-disallowed-list:
429
-
430
450
# Specify a blacklist of disallowed attribute operators.
431
451
# selector-attribute-operator-blacklist:
432
452
@@ -517,6 +537,9 @@ rules:
517
537
# Disallow vendor prefixes for selectors.
518
538
selector-no-vendor-prefix : true
519
539
540
+ # Specify simple or complex notation for `:not()` pseudo-class selectors.
541
+ selector-not-notation : complex
542
+
520
543
# Specify a blacklist of disallowed pseudo-class selectors.
521
544
# selector-pseudo-class-blacklist:
522
545
@@ -1076,6 +1099,9 @@ rules:
1076
1099
# Require a single space or disallow whitespace before the colon in `$`-variable declarations.
1077
1100
scss/dollar-variable-colon-space-before : never
1078
1101
1102
+ # Require `!default` flag for `$`-variable declarations.
1103
+ scss/dollar-variable-default : true
1104
+
1079
1105
# Disallow Sass variables that are used without interpolation with CSS features that use custom identifiers.
1080
1106
scss/dollar-variable-no-missing-interpolation : true
1081
1107
@@ -1088,6 +1114,9 @@ rules:
1088
1114
# Disallow duplicate mixins within a stylesheet.
1089
1115
scss/no-duplicate-mixins : true
1090
1116
1117
+ # Disallows the use of global function names, as these global functions are now located inside built-in Sass modules.
1118
+ scss/no-global-function-names : true
1119
+
1091
1120
# Disallow linebreaks after Sass operators.
1092
1121
scss/operator-no-newline-after : true
1093
1122
@@ -1097,5 +1126,8 @@ rules:
1097
1126
# Disallow unspaced operators in Sass operations.
1098
1127
scss/operator-no-unspaced : true
1099
1128
1129
+ # Disallow non-CSS `@import`s in partial files.
1130
+ scss/partial-no-import : true
1131
+
1100
1132
# Prevents unneeded nesting selectors.
1101
1133
scss/selector-no-redundant-nesting-selector : true
0 commit comments