@stylelint-types/stylelint-scss 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +999 -1035
- package/lib/index.js +1 -0
- package/package.json +9 -9
package/lib/index.d.ts
CHANGED
|
@@ -1,1044 +1,1008 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type AtElseIfParenthesesSpaceBeforeOptions = RuleConfig<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
type
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
type
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
type
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
type
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
type
|
|
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
|
-
type
|
|
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
|
-
type
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
type
|
|
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
|
-
type
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
type
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
type
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
type
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
type
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
true,
|
|
295
|
-
[],
|
|
296
|
-
{
|
|
297
|
-
ignoreProperties?: RegExpLike[]
|
|
298
|
-
/**
|
|
299
|
-
* Skips checking properties of the given selectors against this rule.
|
|
300
|
-
*/
|
|
301
|
-
ignoreSelectors?: RegExpLike[]
|
|
302
|
-
/**
|
|
303
|
-
* Ignores properties nested within specified at-rules.
|
|
304
|
-
*/
|
|
305
|
-
ignoreAtRules?: (AtRules | RegExp)[]
|
|
306
|
-
/**
|
|
307
|
-
* If `true`, this rule will check vendor-prefixed properties.
|
|
308
|
-
* @default false
|
|
309
|
-
*/
|
|
310
|
-
checkPrefixed?: boolean
|
|
311
|
-
}
|
|
312
|
-
>
|
|
313
|
-
|
|
314
|
-
type SelectorClassPatternOptions = RuleConfig<
|
|
315
|
-
RegExpLike,
|
|
316
|
-
[],
|
|
317
|
-
{
|
|
318
|
-
resolveNestedSelectors?: boolean
|
|
319
|
-
}
|
|
320
|
-
>
|
|
321
|
-
|
|
322
|
-
type SelectorNestCombinatorsOptions = RuleConfig<
|
|
323
|
-
'always' | 'never'
|
|
324
|
-
>
|
|
325
|
-
|
|
326
|
-
type SelectorNoRedundantNestingSelectorOptions = RuleConfig<
|
|
327
|
-
true,
|
|
328
|
-
[],
|
|
329
|
-
{
|
|
330
|
-
ignoreKeywords?: RegExpLike[]
|
|
331
|
-
}
|
|
332
|
-
>
|
|
333
|
-
|
|
334
|
-
type SelectorNoUnionClassNameOptions = RuleConfig<true>
|
|
335
|
-
|
|
1
|
+
import { Arrayable, AtRules, CSSPropertiesMap, LiteralUnion, RegExpLike, RuleConfig } from "stylelint-define-config";
|
|
2
|
+
|
|
3
|
+
//#region src/rules/at-each-key-value-single-line.d.ts
|
|
4
|
+
type AtEachKeyValueSingleLineOptions = RuleConfig<true>;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/rules/at-else-closing-brace-newline-after.d.ts
|
|
7
|
+
type AtElseClosingBraceNewlineAfterOptions = RuleConfig<'always-last-in-chain'>;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/rules/at-else-empty-line-before.d.ts
|
|
10
|
+
type AtElseEmptyLineBeforeOptions = RuleConfig<'never'>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/rules/at-else-if-parentheses-space-before.d.ts
|
|
13
|
+
type AtElseIfParenthesesSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/rules/at-extend-no-missing-placeholder.d.ts
|
|
16
|
+
type AtExtendNoMissingPlaceholderOptions = RuleConfig<true>;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/rules/at-function-named-arguments.d.ts
|
|
19
|
+
type AtFunctionNamedArgumentsOptions = RuleConfig<'always' | 'never', [], {
|
|
20
|
+
ignore?: LiteralUnion<'single-argument'>[];
|
|
21
|
+
/**
|
|
22
|
+
* ["/regex/", "string"]
|
|
23
|
+
*/
|
|
24
|
+
ignoreFunctions?: string[];
|
|
25
|
+
}>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/rules/at-function-parentheses-space-before.d.ts
|
|
28
|
+
type AtFunctionParenthesesSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/rules/at-function-pattern.d.ts
|
|
31
|
+
type AtFunctionPatternOptions = RuleConfig<RegExpLike, [functionName: string, pattern: RegExpLike]>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/rules/at-if-closing-brace-newline-after.d.ts
|
|
34
|
+
type AtIfClosingBraceNewlineAfterOptions = RuleConfig<'always-last-in-chain'>;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/rules/at-if-closing-brace-space-after.d.ts
|
|
37
|
+
type AtIfClosingBraceSpaceAfterOptions = RuleConfig<'always-intermediate' | 'never-intermediate'>;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/rules/at-if-no-null.d.ts
|
|
40
|
+
type AtIfNoNullOptions = RuleConfig<(LiteralUnion<'css' | 'less' | 'scss'> | RegExp)[]>;
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/rules/at-import-partial-extension-allowed-list.d.ts
|
|
43
|
+
type AtImportPartialExtensionAllowedListOptions = RuleConfig<(LiteralUnion<'css' | 'scss' | 'sass'> | RegExp)[]>;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/rules/at-import-partial-extension-disallowed-list.d.ts
|
|
46
|
+
type AtImportPartialExtensionDisallowedListOptions = RuleConfig<(LiteralUnion<'css' | 'scss' | 'sass'> | RegExp)[]>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/rules/at-mixin-argumentless-call-parentheses.d.ts
|
|
49
|
+
type AtMixinArgumentlessCallParenthesesOptions = RuleConfig<'always' | 'never'>;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/rules/at-mixin-named-arguments.d.ts
|
|
52
|
+
type AtMixinNamedArgumentsOptions = RuleConfig<'always' | 'never'>;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/rules/at-mixin-no-risky-nesting-selector.d.ts
|
|
55
|
+
type AtMixinNoRiskyNestingSelectorOptions = RuleConfig<true>;
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/rules/at-mixin-parentheses-space-before.d.ts
|
|
58
|
+
type AtMixinParenthesesSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/rules/at-mixin-pattern.d.ts
|
|
61
|
+
type AtMixinPatternOptions = RuleConfig<RegExpLike, [mixinName: string, pattern: RegExpLike]>;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/rules/at-root-no-redundant.d.ts
|
|
64
|
+
type AtRootNoRedundantOptions = RuleConfig<true>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/rules/at-rule-conditional-no-parentheses.d.ts
|
|
67
|
+
type AtRuleConditionalNoParenthesesOptions = RuleConfig<true>;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/rules/at-rule-no-unknown.d.ts
|
|
70
|
+
type AtRuleNoUnknownOptions = RuleConfig<true, [], {
|
|
71
|
+
ignoreAtRules?: RegExpLike[];
|
|
72
|
+
}>;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/rules/at-use-no-redundant-alias.d.ts
|
|
75
|
+
type AtUseNoRedundantAliasOptions = RuleConfig<true>;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/rules/at-use-no-unnamespaced.d.ts
|
|
78
|
+
type AtUseNoUnnamespacedOptions = RuleConfig<true>;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/rules/block-no-redundant-nesting.d.ts
|
|
81
|
+
type BlockNoRedundantNestingOptions = RuleConfig<true>;
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/rules/comment-no-empty.d.ts
|
|
84
|
+
type CommentNoEmptyOptions = RuleConfig<true>;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/rules/comment-no-loud.d.ts
|
|
87
|
+
type CommentNoLoudOptions = RuleConfig<true>;
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/rules/declaration-nested-properties.d.ts
|
|
90
|
+
type DeclarationNestedPropertiesOptions = RuleConfig<'always' | 'never', [prop: string], {
|
|
91
|
+
/**
|
|
92
|
+
* Works only with `"always"` and reverses its effect for a property if it is the only one with the corresponding "namespace" (e.g. `margin` in `margin-top`) in a ruleset.
|
|
93
|
+
*/
|
|
94
|
+
except?: LiteralUnion<'only-of-namespace'>[];
|
|
95
|
+
}>;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/rules/declaration-nested-properties-no-divided-groups.d.ts
|
|
98
|
+
type DeclarationNestedPropertiesNoDividedGroupsOptions = RuleConfig<true>;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/rules/declaration-property-value-no-unknown.d.ts
|
|
101
|
+
type DeclarationPropertyValueNoUnknownOptions = RuleConfig<true, [], {
|
|
102
|
+
/**
|
|
103
|
+
* Ignore the specified property and value pairs.
|
|
104
|
+
* Keys in the object indicate property names.
|
|
105
|
+
* If a string in the object is surrounded with `"/"`,
|
|
106
|
+
* it's interpreted as a regular expression.
|
|
107
|
+
*
|
|
108
|
+
* For example, `"/.+/"` matches any strings.
|
|
109
|
+
*/
|
|
110
|
+
ignoreProperties?: Record<CSSPropertiesMap, Arrayable<RegExpLike>>;
|
|
111
|
+
/**
|
|
112
|
+
* Extend or alter the properties syntax dictionary.
|
|
113
|
+
* [CSS Value Definition Syntax](https://github.com/csstree/csstree/blob/master/docs/definition-syntax.md) is used to define a value's syntax.
|
|
114
|
+
* If a definition starts with `|` it is added to the [existing definition value](https://csstree.github.io/docs/syntax/) if any.
|
|
115
|
+
*/
|
|
116
|
+
propertiesSyntax?: Record<CSSPropertiesMap, string>;
|
|
117
|
+
/**
|
|
118
|
+
* Extend or alter the types syntax dictionary.
|
|
119
|
+
* [CSS Value Definition Syntax](https://github.com/csstree/csstree/blob/master/docs/definition-syntax.md) is used to define a value's syntax.
|
|
120
|
+
* If a definition starts with `|` it is added to the [existing definition value](https://csstree.github.io/docs/syntax/) if any.
|
|
121
|
+
*
|
|
122
|
+
* Types are something like a preset which allows you to reuse a definition across other definitions. So, you'll likely want to also use the `propertiesSyntax` option when using this option.
|
|
123
|
+
*/
|
|
124
|
+
typesSyntax?: Record<string, string>;
|
|
125
|
+
}>;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/rules/dimension-no-non-numeric-values.d.ts
|
|
128
|
+
type DimensionNoNonNumericValuesOptions = RuleConfig<true>;
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/rules/dollar-variable-colon-newline-after.d.ts
|
|
131
|
+
type DollarVariableColonNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line'>;
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/rules/dollar-variable-colon-space-after.d.ts
|
|
134
|
+
type DollarVariableColonSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'at-least-one-space'>;
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/rules/dollar-variable-colon-space-before.d.ts
|
|
137
|
+
type DollarVariableColonSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/rules/dollar-variable-default.d.ts
|
|
140
|
+
type DollarVariableDefaultOptions = RuleConfig<true, [], {
|
|
141
|
+
ignore?: LiteralUnion<'local'>[];
|
|
142
|
+
}>;
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/rules/dollar-variable-empty-line-after.d.ts
|
|
145
|
+
type DollarVariableEmptyLineAfterOptions = RuleConfig<'always' | 'never', [], {
|
|
146
|
+
except?: LiteralUnion<'last-nested' | 'before-comment' | 'before-dollar-variable'>[];
|
|
147
|
+
ignore?: LiteralUnion<'before-comment' | 'inside-single-line-block'>[];
|
|
148
|
+
}>;
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/rules/dollar-variable-empty-line-before.d.ts
|
|
151
|
+
type DollarVariableEmptyLineBeforeOptions = RuleConfig<'always' | 'never', [], {
|
|
152
|
+
except?: LiteralUnion<'first-nested' | 'after-comment' | 'after-dollar-variable'>[];
|
|
153
|
+
ignore?: LiteralUnion<'after-comment' | 'inside-single-line-block' | 'after-dollar-variable'>[];
|
|
154
|
+
}>;
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/rules/dollar-variable-first-in-block.d.ts
|
|
157
|
+
type DollarVariableFirstInBlockOptions = RuleConfig<true, [], {
|
|
158
|
+
expect?: LiteralUnion<'root' | 'at-rule' | 'function' | 'mixin' | 'if-else' | 'loops'>[];
|
|
159
|
+
ignore?: LiteralUnion<'comments' | 'imports'>[];
|
|
160
|
+
}>;
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/rules/dollar-variable-no-missing-interpolation.d.ts
|
|
163
|
+
type DollarVariableNoMissingInterpolationOptions = RuleConfig<true>;
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/rules/dollar-variable-no-namespaced-assignment.d.ts
|
|
166
|
+
type DollarVariableNoNamespacedAssignmentOptions = RuleConfig<true>;
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/rules/dollar-variable-pattern.d.ts
|
|
169
|
+
type DollarVariablePatternOptions = RuleConfig<RegExpLike, [variableName: string, pattern: RegExpLike], {
|
|
170
|
+
ignore?: LiteralUnion<'local' | 'global'>;
|
|
171
|
+
}>;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/rules/double-slash-comment-empty-line-before.d.ts
|
|
174
|
+
type DoubleSlashCommentEmptyLineBeforeOptions = RuleConfig<'always' | 'never', [], {
|
|
175
|
+
except?: LiteralUnion<'first-nested' | 'inside-block'>[];
|
|
176
|
+
ignore?: LiteralUnion<'between-comments' | 'stylelint-commands' | 'inside-block'>[];
|
|
177
|
+
}>;
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/rules/double-slash-comment-inline.d.ts
|
|
180
|
+
type DoubleSlashCommentInlineOptions = RuleConfig<'always' | 'never', [], {
|
|
181
|
+
ignore?: LiteralUnion<'stylelint-commands'>[];
|
|
182
|
+
}>;
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/rules/double-slash-comment-whitespace-inside.d.ts
|
|
185
|
+
type DoubleSlashCommentWhitespaceInsideOptions = RuleConfig<'always' | 'never'>;
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/rules/function-calculation-no-interpolation.d.ts
|
|
188
|
+
type FunctionCalculationNoInterpolationOptions = RuleConfig<true>;
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/rules/function-color-channel.d.ts
|
|
191
|
+
type FunctionColorChannelOptions = RuleConfig<true>;
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/rules/function-color-relative.d.ts
|
|
194
|
+
type FunctionColorRelativeOptions = RuleConfig<true>;
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/rules/function-disallowed-list.d.ts
|
|
197
|
+
type FunctionDisallowedListOptions = RuleConfig<Arrayable<RegExpLike>>;
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/rules/function-no-unknown.d.ts
|
|
200
|
+
type FunctionNoUnknownOptions = RuleConfig<true, [], {
|
|
201
|
+
ignoreFunctions: RegExpLike[];
|
|
202
|
+
}>;
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/rules/function-quote-no-quoted-strings-inside.d.ts
|
|
205
|
+
type FunctionQuoteNoQuotedStringsInsideOptions = RuleConfig<true>;
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/rules/function-unquote-no-unquoted-strings-inside.d.ts
|
|
208
|
+
type FunctionUnquoteNoUnquotedStringsInsideOptions = RuleConfig<true>;
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/rules/load-no-partial-leading-underscore.d.ts
|
|
211
|
+
type LoadNoPartialLeadingUnderscoreOptions = RuleConfig<true>;
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/rules/load-partial-extension.d.ts
|
|
214
|
+
type LoadPartialExtensionOptions = RuleConfig<'always' | 'never'>;
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/rules/map-keys-quotes.d.ts
|
|
217
|
+
type MapKeysQuotesOptions = RuleConfig<'always'>;
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/rules/media-feature-value-dollar-variable.d.ts
|
|
220
|
+
type MediaFeatureValueDollarVariableOptions = RuleConfig<'always' | 'never', [], {
|
|
221
|
+
ignore?: LiteralUnion<'keywords'>[];
|
|
222
|
+
}>;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/rules/no-dollar-variables.d.ts
|
|
225
|
+
type NoDollarVariablesOptions = RuleConfig<true>;
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/rules/no-duplicate-dollar-variables.d.ts
|
|
228
|
+
type NoDuplicateDollarVariablesOptions = RuleConfig<true, [], {
|
|
229
|
+
ignoreInside?: LiteralUnion<'at-rule' | 'nested-at-rule'>[];
|
|
230
|
+
}>;
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/rules/no-duplicate-load-rules.d.ts
|
|
233
|
+
type NoDuplicateLoadRulesOptions = RuleConfig<true>;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/rules/no-duplicate-mixins.d.ts
|
|
236
|
+
type NoDuplicateMixinsOptions = RuleConfig<true>;
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/rules/no-global-function-names.d.ts
|
|
239
|
+
type NoGlobalFunctionNamesOptions = RuleConfig<true>;
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region src/rules/no-unused-private-members.d.ts
|
|
242
|
+
type NoUnusedPrivateMembersOptions = RuleConfig<true>;
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/rules/operator-no-newline-after.d.ts
|
|
245
|
+
type OperatorNoNewlineAfterOptions = RuleConfig<true>;
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region src/rules/operator-no-newline-before.d.ts
|
|
248
|
+
type OperatorNoNewlineBeforeOptions = RuleConfig<true>;
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/rules/operator-no-unspaced.d.ts
|
|
251
|
+
type OperatorNoUnspacedOptions = RuleConfig<true>;
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/rules/partial-no-import.d.ts
|
|
254
|
+
type PartialNoImportOptions = RuleConfig<true>;
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/rules/percent-placeholder-pattern.d.ts
|
|
257
|
+
type PercentPlaceholderPatternOptions = RuleConfig<RegExpLike, [placeholderName: string, pattern: RegExpLike]>;
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/rules/property-no-unknown.d.ts
|
|
260
|
+
type PropertyNoUnknownOptions = RuleConfig<true, [], {
|
|
261
|
+
ignoreProperties?: RegExpLike[];
|
|
262
|
+
/**
|
|
263
|
+
* Skips checking properties of the given selectors against this rule.
|
|
264
|
+
*/
|
|
265
|
+
ignoreSelectors?: RegExpLike[];
|
|
266
|
+
/**
|
|
267
|
+
* Ignores properties nested within specified at-rules.
|
|
268
|
+
*/
|
|
269
|
+
ignoreAtRules?: (AtRules | RegExp)[];
|
|
270
|
+
/**
|
|
271
|
+
* If `true`, this rule will check vendor-prefixed properties.
|
|
272
|
+
* @default false
|
|
273
|
+
*/
|
|
274
|
+
checkPrefixed?: boolean;
|
|
275
|
+
}>;
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/rules/selector-class-pattern.d.ts
|
|
278
|
+
type SelectorClassPatternOptions = RuleConfig<RegExpLike, [], {
|
|
279
|
+
resolveNestedSelectors?: boolean;
|
|
280
|
+
}>;
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/rules/selector-nest-combinators.d.ts
|
|
283
|
+
type SelectorNestCombinatorsOptions = RuleConfig<'always' | 'never'>;
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region src/rules/selector-no-redundant-nesting-selector.d.ts
|
|
286
|
+
type SelectorNoRedundantNestingSelectorOptions = RuleConfig<true, [], {
|
|
287
|
+
ignoreKeywords?: RegExpLike[];
|
|
288
|
+
}>;
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/rules/selector-no-union-class-name.d.ts
|
|
291
|
+
type SelectorNoUnionClassNameOptions = RuleConfig<true>;
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/types.d.ts
|
|
336
294
|
interface Extends {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
295
|
+
'stylelint-config-standard-scss': void;
|
|
296
|
+
'stylelint-config-recommended-scss': void;
|
|
297
|
+
'stylelint-config-prettier-scss': void;
|
|
340
298
|
}
|
|
341
299
|
interface Plugins {
|
|
342
|
-
|
|
300
|
+
'stylelint-scss': void;
|
|
343
301
|
}
|
|
344
302
|
interface Syntax {
|
|
345
|
-
|
|
303
|
+
'postcss-scss': void;
|
|
346
304
|
}
|
|
347
305
|
interface RuleOptions {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
306
|
+
/**
|
|
307
|
+
* This is a rule that checks for situations where users have:
|
|
308
|
+
* - Done a loop using map-keys
|
|
309
|
+
* - Grabbed the value for that key inside of the loop.
|
|
310
|
+
*
|
|
311
|
+
* @see [at-each-key-value-single-line](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-each-key-value-single-line)
|
|
312
|
+
*/
|
|
313
|
+
'scss/at-each-key-value-single-line': AtEachKeyValueSingleLineOptions;
|
|
314
|
+
/**
|
|
315
|
+
* Require or disallow a newline after the closing brace of `@else` statements.
|
|
316
|
+
*
|
|
317
|
+
* This rule might have conflicts with Stylelint's core rule [`block-closing-brace-newline-after`](https://stylelint.io/user-guide/rules/block-closing-brace-newline-after) if it doesn't have `"ignoreAtRules": ["else"]` in a `.stylelintrc` config file. That's because an `@else { ... }` statement can be successfully parsed as an at-rule with a block. You might also want to set `"ignoreAtRules": ["else"]` for another Stylelint's core rule - [`at-rule-empty-line-before`](https://stylelint.io/user-guide/rules/at-rule-empty-line-before) that could be forcing empty lines before at-rules (including `@else`s that follow `@if`s or other `@else`s).
|
|
318
|
+
*
|
|
319
|
+
* This rule doesn't have usual `"always"` and `"never"` main option values, because if you don't need special behavior for `@if` and `@else` you could just use [`block-closing-brace-newline-after`](https://stylelint.io/user-guide/rules/block-closing-brace-newline-after) set to `"always"` or any other value.
|
|
320
|
+
*
|
|
321
|
+
* @see [at-else-closing-brace-newline-after](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-closing-brace-space-after)
|
|
322
|
+
*/
|
|
323
|
+
'scss/at-else-closing-brace-newline-after': AtElseClosingBraceNewlineAfterOptions;
|
|
324
|
+
/**
|
|
325
|
+
* Require a single space or disallow whitespace after the closing brace of `@else` statements.
|
|
326
|
+
*
|
|
327
|
+
* This rule might have conflicts with Stylelint's core [`block-closing-brace-space-after`](https://stylelint.io/user-guide/rules/block-closing-brace-space-after) rule if the latter is set up in your `.stylelintrc` config file.
|
|
328
|
+
*
|
|
329
|
+
* @see [at-else-closing-brace-space-after](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-closing-brace-space-after)
|
|
330
|
+
*/
|
|
331
|
+
'scss/at-else-closing-brace-space-after': AtElseClosingBraceNewlineAfterOptions;
|
|
332
|
+
/**
|
|
333
|
+
* Require an empty line or disallow empty lines before `@`-else.
|
|
334
|
+
*
|
|
335
|
+
* `@if` and `@else` statements might need to have different behavior than all the other at-rules. For that you might need to set `"ignoreAtRules": ["else"]` for Stylelint's core rule [`at-rule-empty-line-before`](https://stylelint.io/user-guide/rules/at-rule-empty-line-before). But that would make you unable to disallow empty lines before `@else` while forcing it to be on a new line. This rule is designed to solve exactly that.
|
|
336
|
+
*
|
|
337
|
+
* @see [at-else-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-empty-line-before)
|
|
338
|
+
*/
|
|
339
|
+
'scss/at-else-empty-line-before': AtElseEmptyLineBeforeOptions;
|
|
340
|
+
/**
|
|
341
|
+
* Require or disallow a space before `@else if` parentheses.
|
|
342
|
+
*
|
|
343
|
+
* @see [at-else-if-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-if-parentheses-space-before)
|
|
344
|
+
*/
|
|
345
|
+
'scss/at-else-if-parentheses-space-before': AtElseIfParenthesesSpaceBeforeOptions;
|
|
346
|
+
/**
|
|
347
|
+
* Disallow at-extends (`@extend`) with missing placeholders.
|
|
348
|
+
*
|
|
349
|
+
* Using a class selector with the `@extend` directive usually results in more generated CSS than when using a placeholder selector. Furthermore, Sass specifically introduced placeholder selectors in order to be used with `@extend`.
|
|
350
|
+
*
|
|
351
|
+
* @see [at-extend-no-missing-placeholder](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-extend-no-missing-placeholder)
|
|
352
|
+
*/
|
|
353
|
+
'scss/at-extend-no-missing-placeholder': AtExtendNoMissingPlaceholderOptions;
|
|
354
|
+
/**
|
|
355
|
+
* Require named parameters in SCSS function call rule.
|
|
356
|
+
*
|
|
357
|
+
* @see [at-function-named-arguments](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-function-named-arguments)
|
|
358
|
+
*/
|
|
359
|
+
'scss/at-function-named-arguments': AtFunctionNamedArgumentsOptions;
|
|
360
|
+
/**
|
|
361
|
+
* Require or disallow a space before `@function` parentheses.
|
|
362
|
+
*
|
|
363
|
+
* @see [at-function-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-function-parentheses-space-before)
|
|
364
|
+
*/
|
|
365
|
+
'scss/at-function-parentheses-space-before': AtFunctionParenthesesSpaceBeforeOptions;
|
|
366
|
+
/**
|
|
367
|
+
* Specify a pattern for Sass/SCSS-like function names.
|
|
368
|
+
*
|
|
369
|
+
* @see [at-function-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-function-pattern)
|
|
370
|
+
*/
|
|
371
|
+
'scss/at-function-pattern': AtFunctionPatternOptions;
|
|
372
|
+
/**
|
|
373
|
+
* Require or disallow a newline after the closing brace of `@if` statements.
|
|
374
|
+
*
|
|
375
|
+
* This rule might have conflicts with Stylelint's core rule
|
|
376
|
+
* [`block-closing-brace-newline-after`](https://stylelint.io/user-guide/rules/block-closing-brace-newline-after)
|
|
377
|
+
* if it doesn't have `"ignoreAtRules": ["if"]` in a `.stylelintrc` config file.
|
|
378
|
+
* That's because an `@if { ... }` statement can be successfully parsed as an at-rule with a block.
|
|
379
|
+
* You might also want to set `"ignoreAtRules": ["else"]` for another stylelint's core rule -
|
|
380
|
+
* [`at-rule-empty-line-before`](https://stylelint.io/user-guide/rules/at-rule-empty-line-before)
|
|
381
|
+
* that could be forcing empty lines before at-rules (including `@else`s that follow `@if`s or other `@else`s).
|
|
382
|
+
*
|
|
383
|
+
* @see [at-if-closing-brace-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-if-closing-brace-newline-after)
|
|
384
|
+
*/
|
|
385
|
+
'scss/at-if-closing-brace-newline-after': AtIfClosingBraceNewlineAfterOptions;
|
|
386
|
+
/**
|
|
387
|
+
* Require a single space or disallow whitespace after the closing brace of `@if` statements.
|
|
388
|
+
*
|
|
389
|
+
* This rule might have conflicts with Stylelint's core
|
|
390
|
+
* [`block-closing-brace-space-after`](https://stylelint.io/user-guide/rules/block-closing-brace-space-after) rule if the latter is set up in your `.stylelintrc` config file.
|
|
391
|
+
*
|
|
392
|
+
* @see [at-if-closing-brace-space-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-if-closing-brace-space-after)
|
|
393
|
+
*/
|
|
394
|
+
'scss/at-if-closing-brace-space-after': AtIfClosingBraceSpaceAfterOptions;
|
|
395
|
+
/**
|
|
396
|
+
* Check for equality to null is unnecessarily explicit since `null` is falsey in Sass.
|
|
397
|
+
*
|
|
398
|
+
* @see [at-if-no-null](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-if-no-null)
|
|
399
|
+
*/
|
|
400
|
+
'scss/at-if-no-null': AtIfNoNullOptions;
|
|
401
|
+
/**
|
|
402
|
+
* Specify a whitelist of allowed file extensions for partial names in `@import` commands.
|
|
403
|
+
*
|
|
404
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
405
|
+
* - If the file’s extension is `.css`.
|
|
406
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
407
|
+
* - If the filename is a `url()`.
|
|
408
|
+
* - If the `@import` has any media queries.
|
|
409
|
+
*
|
|
410
|
+
* @see [at-import-partial-extension-allowed-list](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-import-partial-extension-allowed-list)
|
|
411
|
+
*/
|
|
412
|
+
'scss/at-import-partial-extension-allowed-list': AtImportPartialExtensionAllowedListOptions;
|
|
413
|
+
/**
|
|
414
|
+
* Specify a blacklist of disallowed file extensions for partial names in `@import` commands.
|
|
415
|
+
*
|
|
416
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
417
|
+
* - If the file’s extension is `.css`.
|
|
418
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
419
|
+
* - If the filename is a `url()`.
|
|
420
|
+
* - If the `@import` has any media queries.
|
|
421
|
+
*
|
|
422
|
+
* @see [at-import-partial-extension-disallowed-list](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-import-partial-extension-disallowed-list)
|
|
423
|
+
*/
|
|
424
|
+
'scss/at-import-partial-extension-disallowed-list': AtImportPartialExtensionDisallowedListOptions;
|
|
425
|
+
/**
|
|
426
|
+
* Require or disallow parentheses in argumentless `@mixin` calls.
|
|
427
|
+
*
|
|
428
|
+
* @see [at-mixin-argumentless-call-parentheses](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-argumentless-call-parentheses)
|
|
429
|
+
*/
|
|
430
|
+
'scss/at-mixin-argumentless-call-parentheses': AtMixinArgumentlessCallParenthesesOptions;
|
|
431
|
+
/**
|
|
432
|
+
* Require named parameters in at-mixin call rule.
|
|
433
|
+
*
|
|
434
|
+
* @see [at-mixin-named-arguments](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-named-arguments)
|
|
435
|
+
*/
|
|
436
|
+
'scss/at-mixin-named-arguments': AtMixinNamedArgumentsOptions;
|
|
437
|
+
/**
|
|
438
|
+
* Disallow risky nesting selectors within a mixin.
|
|
439
|
+
*
|
|
440
|
+
* If a mixin contains a parent selector within another style rule,
|
|
441
|
+
* and is used in a nested context, the output selector may include the outermost
|
|
442
|
+
* parent selector in an unexpected way.
|
|
443
|
+
*
|
|
444
|
+
* This only occurs when a parent selector meets all of the following conditions:
|
|
445
|
+
* - Is within a `@mixin` rule.
|
|
446
|
+
* - Is nested within another style rule.
|
|
447
|
+
* - Is not positioned at the beginning of a complex selector.
|
|
448
|
+
*
|
|
449
|
+
* @see [at-mixin-no-risky-nesting-selector](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-no-risky-nesting-selector)
|
|
450
|
+
*/
|
|
451
|
+
'scss/at-mixin-no-risky-nesting-selector': AtMixinNoRiskyNestingSelectorOptions;
|
|
452
|
+
/**
|
|
453
|
+
* Require or disallow a space before `@mixin` parentheses.
|
|
454
|
+
*
|
|
455
|
+
* @see [at-mixin-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-parentheses-space-before)
|
|
456
|
+
*/
|
|
457
|
+
'scss/at-mixin-parentheses-space-before': AtMixinParenthesesSpaceBeforeOptions;
|
|
458
|
+
/**
|
|
459
|
+
* Specify a pattern for Sass/SCSS-like mixin names.
|
|
460
|
+
*
|
|
461
|
+
* @see [at-mixin-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-pattern)
|
|
462
|
+
*/
|
|
463
|
+
'scss/at-mixin-pattern': AtMixinPatternOptions;
|
|
464
|
+
/**
|
|
465
|
+
* Disallow redundant `@at-root` rule.
|
|
466
|
+
*
|
|
467
|
+
* The `@at-root` rule is redundant in the following cases:
|
|
468
|
+
* - If `@at-root` is already at the root of the document.
|
|
469
|
+
* - If any `@at-root` selector contains the parent selector, [`&`](https://sass-lang.com/documentation/style-rules/parent-selector/), outside interpolation.
|
|
470
|
+
* - If `@at-root` is nested within a `@keyframes` block.
|
|
471
|
+
*
|
|
472
|
+
* @see [at-root-no-redundant](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-root-no-redundant)
|
|
473
|
+
*/
|
|
474
|
+
'scss/at-root-no-redundant': AtRootNoRedundantOptions;
|
|
475
|
+
/**
|
|
476
|
+
* Disallow parentheses in conditional @ rules (if, elsif, while)
|
|
477
|
+
*
|
|
478
|
+
* @see [at-rule-conditional-no-parentheses](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-conditional-no-parentheses)
|
|
479
|
+
*/
|
|
480
|
+
'scss/at-rule-conditional-no-parentheses': AtRuleConditionalNoParenthesesOptions;
|
|
481
|
+
/**
|
|
482
|
+
* Disallow unknown at-rules. Should be used **instead of** Stylelint's [at-rule-no-unknown](https://stylelint.io/user-guide/rules/at-rule-no-unknown).
|
|
483
|
+
*
|
|
484
|
+
* This rule is basically a wrapper around the mentioned core rule,
|
|
485
|
+
* but with added SCSS-specific `@`-directives. So if you use the core rule, `@if`,
|
|
486
|
+
* `@extend` and other Sass-y things will get warnings. You must disable Stylelint's core
|
|
487
|
+
* rule to make this rule work:
|
|
488
|
+
* ```json
|
|
489
|
+
* {
|
|
490
|
+
* "rules": {
|
|
491
|
+
* "at-rule-no-unknown": null,
|
|
492
|
+
* "scss/at-rule-no-unknown": true
|
|
493
|
+
* }
|
|
494
|
+
* }
|
|
495
|
+
* ```
|
|
496
|
+
*
|
|
497
|
+
* @see [at-rule-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-no-unknown)
|
|
498
|
+
*/
|
|
499
|
+
'scss/at-rule-no-unknown': AtRuleNoUnknownOptions;
|
|
500
|
+
/**
|
|
501
|
+
* Disallow redundant namespace aliases.
|
|
502
|
+
*
|
|
503
|
+
* @see [at-use-no-redundant-alias](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-use-no-redundant-alias)
|
|
504
|
+
*/
|
|
505
|
+
'scss/at-use-no-redundant-alias': AtUseNoRedundantAliasOptions;
|
|
506
|
+
/**
|
|
507
|
+
* Disallow usage of `@use` without a namespace.
|
|
508
|
+
*
|
|
509
|
+
* @see [at-use-no-unnamespaced](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-use-no-unnamespaced)
|
|
510
|
+
*/
|
|
511
|
+
'scss/at-use-no-unnamespaced': AtUseNoUnnamespacedOptions;
|
|
512
|
+
/**
|
|
513
|
+
* Disallow empty comments. Should be used **instead of** the Stylelint's [comment-no-empty](https://stylelint.io/user-guide/rules/comment-no-empty) because the core rule ignores SCSS-like comments.
|
|
514
|
+
*
|
|
515
|
+
* To avoid duplicate issues, you must disable the core rule as follows:
|
|
516
|
+
* ```json
|
|
517
|
+
* {
|
|
518
|
+
* "rules": {
|
|
519
|
+
* "comment-no-empty": null,
|
|
520
|
+
* "scss/comment-no-empty": true
|
|
521
|
+
* }
|
|
522
|
+
* }
|
|
523
|
+
* ```
|
|
524
|
+
*
|
|
525
|
+
* @see [comment-no-empty](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/comment-no-empty)
|
|
526
|
+
*/
|
|
527
|
+
'scss/comment-no-empty': CommentNoEmptyOptions;
|
|
528
|
+
/**
|
|
529
|
+
* Disallow nesting a single block if it could be merged with its parent block.
|
|
530
|
+
*
|
|
531
|
+
* @see [block-no-redundant-nesting](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/block-no-redundant-nesting)
|
|
532
|
+
*/
|
|
533
|
+
'scss/block-no-redundant-nesting': BlockNoRedundantNestingOptions;
|
|
534
|
+
/**
|
|
535
|
+
* Require or disallow properties with `-` in their names to be in a form of a nested group.
|
|
536
|
+
*
|
|
537
|
+
* ```scss
|
|
538
|
+
* //This is properties nesting:
|
|
539
|
+
* font: {
|
|
540
|
+
* size: 16px;
|
|
541
|
+
* weight: 700;
|
|
542
|
+
* }
|
|
543
|
+
* ```
|
|
544
|
+
* [Sass official docs on nested properties](https://sass-lang.com/documentation/style-rules/declarations#nesting).
|
|
545
|
+
*
|
|
546
|
+
* @see [declaration-nested-properties](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-nested-properties)
|
|
547
|
+
*/
|
|
548
|
+
'scss/declaration-nested-properties': DeclarationNestedPropertiesOptions;
|
|
549
|
+
/**
|
|
550
|
+
* Disallow unknown values for properties within declarations.
|
|
551
|
+
*
|
|
552
|
+
* ```scss
|
|
553
|
+
* a { top: unknown; }
|
|
554
|
+
* // ^^^ ^^^^^^^
|
|
555
|
+
* // property and value pairs like these
|
|
556
|
+
* ```
|
|
557
|
+
*
|
|
558
|
+
* This rule considers values for properties defined within the CSS specifications to be known. You can use the `propertiesSyntax` and `typesSyntax` secondary options to extend the syntax.
|
|
559
|
+
*
|
|
560
|
+
* This rule is only appropriate for CSS. You should not turn it on for CSS-like languages, such as Sass or Less, as they have their own syntaxes.
|
|
561
|
+
*
|
|
562
|
+
* This rule is experimental with some false negatives that we'll patch in minor releases.
|
|
563
|
+
*
|
|
564
|
+
* It sometimes overlaps with:
|
|
565
|
+
* - [`color-no-invalid-hex`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/color-no-invalid-hex/README.md)
|
|
566
|
+
* - [`function-no-unknown`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-no-unknown/README.md)
|
|
567
|
+
* - [`string-no-newline`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/string-no-newline/README.md)
|
|
568
|
+
* - [`unit-no-unknown`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/unit-no-unknown/README.md)
|
|
569
|
+
*
|
|
570
|
+
* If duplicate problems are flagged, you can turn off the corresponding rule.
|
|
571
|
+
*
|
|
572
|
+
* @see [declaration-property-value-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-property-value-no-unknown)
|
|
573
|
+
*/
|
|
574
|
+
'scss/declaration-property-value-no-unknown': DeclarationPropertyValueNoUnknownOptions;
|
|
575
|
+
/**
|
|
576
|
+
* Disallow `/*`-comments.
|
|
577
|
+
*
|
|
578
|
+
* This rule only works on CSS comments (`\/* *\/`) and ignores all double-slash (`//`) comments.
|
|
579
|
+
*
|
|
580
|
+
* @see [comment-no-loud](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/comment-no-loud)
|
|
581
|
+
*/
|
|
582
|
+
'scss/comment-no-loud': CommentNoLoudOptions;
|
|
583
|
+
/**
|
|
584
|
+
* Disallow nested properties of the same "namespace" be divided into multiple groups.
|
|
585
|
+
*
|
|
586
|
+
* A "namespace" is everything before the first `-` in property names,
|
|
587
|
+
* e.g. `margin` in `margin-bottom`. It is the "namespace" that is used as a root identifier
|
|
588
|
+
* for a nested properties group (`font` in the example above).
|
|
589
|
+
*
|
|
590
|
+
*[Sass official docs on nested properties](https://sass-lang.com/documentation/style-rules/declarations#nesting).
|
|
591
|
+
*
|
|
592
|
+
* @see [declaration-nested-properties-no-divided-groups](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-nested-properties-no-divided-groups)
|
|
593
|
+
*/
|
|
594
|
+
'scss/declaration-nested-properties-no-divided-groups': DeclarationNestedPropertiesNoDividedGroupsOptions;
|
|
595
|
+
/**
|
|
596
|
+
* Interpolating a value with a unit (e.g. `#{$value}px`) results in a
|
|
597
|
+
* _string_ value, not as numeric value. This value then cannot be used in
|
|
598
|
+
* numerical operations. It is better to use arithmetic to apply a unit to a
|
|
599
|
+
* number (e.g. `$value * 1px`).
|
|
600
|
+
*
|
|
601
|
+
* This rule requires that all interpolation for values should be in the format
|
|
602
|
+
* `$value * 1<unit>` instead of `#{value}<unit>`
|
|
603
|
+
*
|
|
604
|
+
* @see [dimension-no-non-numeric-values](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dimension-no-non-numeric-values)
|
|
605
|
+
*/
|
|
606
|
+
'scss/dimension-no-non-numeric-values': DimensionNoNonNumericValuesOptions;
|
|
607
|
+
/**
|
|
608
|
+
* Require a newline after the colon in `$`-variable declarations.
|
|
609
|
+
*
|
|
610
|
+
* @see [dollar-variable-colon-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-newline-after)
|
|
611
|
+
*/
|
|
612
|
+
'scss/dollar-variable-colon-newline-after': DollarVariableColonNewlineAfterOptions;
|
|
613
|
+
/**
|
|
614
|
+
* Require or disallow whitespace after the colon in `$`-variable declarations.
|
|
615
|
+
*
|
|
616
|
+
* @see [dollar-variable-colon-space-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-space-after)
|
|
617
|
+
*/
|
|
618
|
+
'scss/dollar-variable-colon-space-after': DollarVariableColonSpaceAfterOptions;
|
|
619
|
+
/**
|
|
620
|
+
* Require a single space or disallow whitespace before the colon in `$`-variable declarations.
|
|
621
|
+
*
|
|
622
|
+
* @see [dollar-variable-colon-space-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-space-before)
|
|
623
|
+
*/
|
|
624
|
+
'scss/dollar-variable-colon-space-before': DollarVariableColonSpaceBeforeOptions;
|
|
625
|
+
/**
|
|
626
|
+
* Require `!default` flag for `$`-variable declarations
|
|
627
|
+
*
|
|
628
|
+
* @see [dollar-variable-default](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-default)
|
|
629
|
+
*/
|
|
630
|
+
'scss/dollar-variable-default': DollarVariableDefaultOptions;
|
|
631
|
+
/**
|
|
632
|
+
* Require an empty line or disallow empty lines after `$`-variable declarations.
|
|
633
|
+
*
|
|
634
|
+
* If the `$`-variable declaration is the last declaration in a file, it's ignored.
|
|
635
|
+
*
|
|
636
|
+
* @see [dollar-variable-empty-line-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-after)
|
|
637
|
+
*/
|
|
638
|
+
'scss/dollar-variable-empty-line-after': DollarVariableEmptyLineAfterOptions;
|
|
639
|
+
/**
|
|
640
|
+
* Require `$`-variable declarations to be placed first in a block (root or a rule).
|
|
641
|
+
*
|
|
642
|
+
* @see [dollar-variable-first-in-block](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-first-in-block)
|
|
643
|
+
*/
|
|
644
|
+
'scss/dollar-variable-first-in-block': DollarVariableFirstInBlockOptions;
|
|
645
|
+
/**
|
|
646
|
+
* Require an empty line or disallow empty lines before `$`-variable declarations.
|
|
647
|
+
*
|
|
648
|
+
* If the `$`-variable declaration is the first declaration in a file, it's ignored.
|
|
649
|
+
*
|
|
650
|
+
* @see [dollar-variable-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-before)
|
|
651
|
+
*/
|
|
652
|
+
'scss/dollar-variable-empty-line-before': DollarVariableEmptyLineBeforeOptions;
|
|
653
|
+
/**
|
|
654
|
+
* This rule flags four situations in which Sass variables require interpolation:
|
|
655
|
+
*
|
|
656
|
+
* - String-valued variables with custom identifier properties,
|
|
657
|
+
* - Variables in custom identifier at-rules,
|
|
658
|
+
* - Variables in `@supports` conditions, and
|
|
659
|
+
* - Variables in CSS custom properties.
|
|
660
|
+
*
|
|
661
|
+
* **Note**: For scenarios 1 and 3 regarding string-valued variables, this rule can only check variables that are defined in the same file where they are used, since it needs to determine if the variable's value is a string. Scenarios 2 and 4 check all variables regardless of where they are defined.
|
|
662
|
+
*
|
|
663
|
+
* @see [dollar-variable-no-missing-interpolation](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-missing-interpolation)
|
|
664
|
+
*/
|
|
665
|
+
'scss/dollar-variable-no-missing-interpolation': DollarVariableNoMissingInterpolationOptions;
|
|
666
|
+
/**
|
|
667
|
+
* Disallow assignment to namespaced variables.
|
|
668
|
+
*
|
|
669
|
+
* @see [dollar-variable-no-namespaced-assignment](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-namespaced-assignment)
|
|
670
|
+
*/
|
|
671
|
+
'scss/dollar-variable-no-namespaced-assignment': DollarVariableNoNamespacedAssignmentOptions;
|
|
672
|
+
/**
|
|
673
|
+
* Specify a pattern for Sass-like variables.
|
|
674
|
+
*
|
|
675
|
+
* @see [dollar-variable-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-pattern)
|
|
676
|
+
*/
|
|
677
|
+
'scss/dollar-variable-pattern': DollarVariablePatternOptions;
|
|
678
|
+
/**
|
|
679
|
+
* Require or disallow an empty line before `//`-comments.
|
|
680
|
+
*
|
|
681
|
+
* This rule only works with SCSS-like [single-line comments](https://sass-lang.com/documentation/syntax/comments) and ignores:
|
|
682
|
+
* - comments that are the very first nodes in a file;
|
|
683
|
+
* - CSS comments (`\/* *\/`);
|
|
684
|
+
* - comments that are on the same line as some non-comment code (inline comments).
|
|
685
|
+
*
|
|
686
|
+
* @see [double-slash-comment-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-empty-line-before)
|
|
687
|
+
*/
|
|
688
|
+
'scss/double-slash-comment-empty-line-before': DoubleSlashCommentEmptyLineBeforeOptions;
|
|
689
|
+
/**
|
|
690
|
+
* Require or disallow `//`-comments to be inline comments.
|
|
691
|
+
*
|
|
692
|
+
* An inline comment in terms of this rule is a comment that is placed on the same line with any other code, either before or after it.
|
|
693
|
+
*
|
|
694
|
+
* This rule only works with SCSS-like [single-line comments](https://sass-lang.com/documentation/syntax/comments) and ignores CSS comments (`\/* *\/`).
|
|
695
|
+
*
|
|
696
|
+
* @see [double-slash-comment-inline](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-inline)
|
|
697
|
+
*/
|
|
698
|
+
'scss/double-slash-comment-inline': DoubleSlashCommentInlineOptions;
|
|
699
|
+
/**
|
|
700
|
+
* Require or disallow whitespace after the `//` in `//`-comments
|
|
701
|
+
*
|
|
702
|
+
* This rule only works with SCSS-like [single-line comments](https://sass-lang.com/documentation/syntax/comments) and ignores CSS comments (`\/* *\/`).
|
|
703
|
+
*
|
|
704
|
+
* Any number of slashes are allowed at the beginning of the comment. So `/// comment` is treated the same way as `// comment`.
|
|
705
|
+
*
|
|
706
|
+
* Note that a newline is not possible as a whitespace in terms of this rule as `//` - comments are intended to be single - line.
|
|
707
|
+
*
|
|
708
|
+
* @see [double-slash-comment-whitespace-inside](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-whitespace-inside)
|
|
709
|
+
*/
|
|
710
|
+
'scss/double-slash-comment-whitespace-inside': DoubleSlashCommentWhitespaceInsideOptions;
|
|
711
|
+
/**
|
|
712
|
+
* Disallow interpolation in `calc()`, `clamp()`, `min()`, and `max()` functions.
|
|
713
|
+
*
|
|
714
|
+
* Since the release of [first-class `calc()`](https://sass-lang.com/documentation/values/calculations/),
|
|
715
|
+
* calculation functions `calc()`, `clamp()`, `min()`, and `max()` accept variables
|
|
716
|
+
* nd function calls as arguments. This rule disallows interpolation to avoid
|
|
717
|
+
* extra verbose or even invalid CSS.
|
|
718
|
+
*
|
|
719
|
+
* @see [function-calculation-no-interpolation](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-calculation-no-interpolation)
|
|
720
|
+
*/
|
|
721
|
+
'scss/function-calculation-no-interpolation': FunctionCalculationNoInterpolationOptions;
|
|
722
|
+
/**
|
|
723
|
+
* Encourage the use of the [color.channel](https://sass-lang.com/documentation/modules/color#channel) function over related deprecated color functions:
|
|
724
|
+
*
|
|
725
|
+
* - [color.alpha](https://sass-lang.com/documentation/modules/color#alpha) / [alpha](https://sass-lang.com/documentation/modules/color#alpha) / [opacity](https://sass-lang.com/documentation/modules/color#opacity)
|
|
726
|
+
* - [color.blackness](https://sass-lang.com/documentation/modules/color#blackness) / [blackness](https://sass-lang.com/documentation/modules/color#blackness)
|
|
727
|
+
* - [color.blue](https://sass-lang.com/documentation/modules/color#blue) / [blue](https://sass-lang.com/documentation/modules/color#blue)
|
|
728
|
+
* - [color.green](https://sass-lang.com/documentation/modules/color#green) / [green](https://sass-lang.com/documentation/modules/color#green)
|
|
729
|
+
* - [color.hue](https://sass-lang.com/documentation/modules/color#hue) / [hue](https://sass-lang.com/documentation/modules/color#hue)
|
|
730
|
+
* - [color.lightness](https://sass-lang.com/documentation/modules/color#lightness) / [lightness](https://sass-lang.com/documentation/modules/color#lightness)
|
|
731
|
+
* - [color.red](https://sass-lang.com/documentation/modules/color#red) / [red](https://sass-lang.com/documentation/modules/color#red)
|
|
732
|
+
* - [color.saturation](https://sass-lang.com/documentation/modules/color#saturation) / [saturation](https://sass-lang.com/documentation/modules/color#saturation)
|
|
733
|
+
* - [color.whiteness](https://sass-lang.com/documentation/modules/color#whiteness)
|
|
734
|
+
*
|
|
735
|
+
* ```scss
|
|
736
|
+
* p {
|
|
737
|
+
* opacity: opacity(rgb(210, 225, 221, 0.4));
|
|
738
|
+
* // ^^^^^^^
|
|
739
|
+
* // This function should be color.channel
|
|
740
|
+
* }
|
|
741
|
+
* ```
|
|
742
|
+
*
|
|
743
|
+
* @see [function-color-channel](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-color-channel)
|
|
744
|
+
*/
|
|
745
|
+
'scss/function-color-channel': FunctionColorChannelOptions;
|
|
746
|
+
/**
|
|
747
|
+
* Encourage the use of the [scale-color](https://sass-lang.com/documentation/modules/color#scale-color) over:
|
|
748
|
+
*
|
|
749
|
+
* - [darken](https://sass-lang.com/documentation/modules/color#darken)
|
|
750
|
+
* - [desaturate](https://sass-lang.com/documentation/modules/color#desaturate)
|
|
751
|
+
* - [fade-in](https://sass-lang.com/documentation/modules/color#fade-in)
|
|
752
|
+
* - [fade-out](https://sass-lang.com/documentation/modules/color#fade-out)
|
|
753
|
+
* - [lighten](https://sass-lang.com/documentation/modules/color#lighten)
|
|
754
|
+
* - [opacify](https://sass-lang.com/documentation/modules/color#opacify)
|
|
755
|
+
* - [saturate](https://sass-lang.com/documentation/modules/color#saturate)
|
|
756
|
+
* - [transparentize](https://sass-lang.com/documentation/modules/color#transparentize)
|
|
757
|
+
*
|
|
758
|
+
* @see [function-color-relative](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-color-relative)
|
|
759
|
+
*/
|
|
760
|
+
'scss/function-color-relative': FunctionColorRelativeOptions;
|
|
761
|
+
/**
|
|
762
|
+
* Specify a list of disallowed functions.
|
|
763
|
+
*
|
|
764
|
+
* @see [function-disallowed-list](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-disallowed-list)
|
|
765
|
+
*/
|
|
766
|
+
'scss/function-disallowed-list': FunctionDisallowedListOptions;
|
|
767
|
+
/**
|
|
768
|
+
* Disallow unknown functions. Should be used **instead of** Stylelint's [function-no-unknown](https://stylelint.io/user-guide/rules/function-no-unknown).
|
|
769
|
+
*
|
|
770
|
+
* ```scss
|
|
771
|
+
* a { color: unknown(1); }
|
|
772
|
+
* // ^^^^^^^
|
|
773
|
+
* // Functions like this
|
|
774
|
+
* ```
|
|
775
|
+
*
|
|
776
|
+
* This rule is basically a wrapper around the mentioned core rule. You must disable Stylelint's core rule to make this rule work:
|
|
777
|
+
* ```json
|
|
778
|
+
* {
|
|
779
|
+
* "rules": {
|
|
780
|
+
* "function-no-unknown": null,
|
|
781
|
+
* "scss/function-no-unknown": true
|
|
782
|
+
* }
|
|
783
|
+
* }
|
|
784
|
+
* ```
|
|
785
|
+
*
|
|
786
|
+
* @see [function-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-no-unknown)
|
|
787
|
+
*/
|
|
788
|
+
'scss/function-no-unknown': FunctionNoUnknownOptions;
|
|
789
|
+
/**
|
|
790
|
+
* Disallow quoted strings inside the [quote function](https://sass-lang.com/documentation/modules/string#quote)
|
|
791
|
+
*
|
|
792
|
+
* @see [function-quote-no-quoted-strings-inside](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-quote-no-quoted-strings-inside)
|
|
793
|
+
*/
|
|
794
|
+
'scss/function-quote-no-quoted-strings-inside': FunctionQuoteNoQuotedStringsInsideOptions;
|
|
795
|
+
/**
|
|
796
|
+
* Disallow unquoted strings inside the [unquote function](https://sass-lang.com/documentation/modules/string#unquote)
|
|
797
|
+
*
|
|
798
|
+
* @see [function-unquote-no-unquoted-strings-inside](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-unquote-no-unquoted-strings-inside)
|
|
799
|
+
*/
|
|
800
|
+
'scss/function-unquote-no-unquoted-strings-inside': FunctionUnquoteNoUnquotedStringsInsideOptions;
|
|
801
|
+
/**
|
|
802
|
+
* Disallow leading underscore in partial names in `@import`, `@use`, `@forward`,
|
|
803
|
+
* and [`meta.load-css`](https://sass-lang.com/documentation/modules/meta/#load-css) `$url` parameter.
|
|
804
|
+
*
|
|
805
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
806
|
+
* - If the file’s extension is `.css`.
|
|
807
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
808
|
+
* - If the filename is a `url()`.
|
|
809
|
+
* - If the `@import` has any media queries.
|
|
810
|
+
*
|
|
811
|
+
* @see [load-no-partial-leading-underscore](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/load-no-partial-leading-underscore)
|
|
812
|
+
*/
|
|
813
|
+
'scss/load-no-partial-leading-underscore': LoadNoPartialLeadingUnderscoreOptions;
|
|
814
|
+
/**
|
|
815
|
+
* Require or disallow extension in `@import`, `@use`, `@forward`, and `[meta.load-css]` commands.
|
|
816
|
+
*
|
|
817
|
+
* The [`fix` option](https://stylelint.io/user-guide/usage/options#fix) can automatically fix all of the problems reported by this rule only when `"never"` is given.
|
|
818
|
+
*
|
|
819
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
820
|
+
* - If the file’s extension is `.css`.
|
|
821
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
822
|
+
* - If the filename is a `url()`.
|
|
823
|
+
* - If the `@import` has any media queries.
|
|
824
|
+
*
|
|
825
|
+
* @see [load-partial-extension](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/load-partial-extension)
|
|
826
|
+
*/
|
|
827
|
+
'scss/load-partial-extension': LoadPartialExtensionOptions;
|
|
828
|
+
/**
|
|
829
|
+
* Require quoted keys in Sass maps.
|
|
830
|
+
*
|
|
831
|
+
* @see [map-keys-quotes](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/map-keys-quotes)
|
|
832
|
+
*/
|
|
833
|
+
'scss/map-keys-quotes': MapKeysQuotesOptions;
|
|
834
|
+
/**
|
|
835
|
+
* Require a media feature value be a `$`-variable or disallow `$`-variables in media feature values.
|
|
836
|
+
*
|
|
837
|
+
* @see [media-feature-value-dollar-variable](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/media-feature-value-dollar-variable)
|
|
838
|
+
*/
|
|
839
|
+
'scss/media-feature-value-dollar-variable': MediaFeatureValueDollarVariableOptions;
|
|
840
|
+
/**
|
|
841
|
+
* Disallow dollar variables within a stylesheet.
|
|
842
|
+
*
|
|
843
|
+
* @see [no-dollar-variables](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-dollar-variables)
|
|
844
|
+
*/
|
|
845
|
+
'scss/no-dollar-variables': NoDollarVariablesOptions;
|
|
846
|
+
/**
|
|
847
|
+
* Disallow duplicate dollar variables within a stylesheet.
|
|
848
|
+
*
|
|
849
|
+
* @see [no-duplicate-dollar-variables](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-dollar-variables)
|
|
850
|
+
*/
|
|
851
|
+
'scss/no-duplicate-dollar-variables': NoDuplicateDollarVariablesOptions;
|
|
852
|
+
/**
|
|
853
|
+
* Disallow duplicate `@import`, `@use` and `@forward` rules.
|
|
854
|
+
*
|
|
855
|
+
* @see [no-duplicate-load-rules](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-load-rules)
|
|
856
|
+
*/
|
|
857
|
+
'scss/no-duplicate-load-rules': NoDuplicateLoadRulesOptions;
|
|
858
|
+
/**
|
|
859
|
+
* Disallow duplicate mixins within a stylesheet.
|
|
860
|
+
*
|
|
861
|
+
* @see [no-duplicate-mixins](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-mixins)
|
|
862
|
+
*/
|
|
863
|
+
'scss/no-duplicate-mixins': NoDuplicateMixinsOptions;
|
|
864
|
+
/**
|
|
865
|
+
* Disallows the use of global function names, as these global functions are now located inside built-in Sass modules.
|
|
866
|
+
*
|
|
867
|
+
* A full list of disallowed names (and their alternatives) is located [here](https://github.com/sass/sass/blob/main/accepted/module-system.md#built-in-modules-1)
|
|
868
|
+
*
|
|
869
|
+
* It is recommended to use the [Sass migrator](https://sass-lang.com/documentation/cli/migrator) to change these global function names automatically.
|
|
870
|
+
*
|
|
871
|
+
* @see [no-global-function-names](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-global-function-names)
|
|
872
|
+
*/
|
|
873
|
+
'scss/no-global-function-names': NoGlobalFunctionNamesOptions;
|
|
874
|
+
/**
|
|
875
|
+
* Disallow unused private members.
|
|
876
|
+
*
|
|
877
|
+
* [Private members](https://sass-lang.com/documentation/at-rules/use/#private-members),
|
|
878
|
+
* such as functions, mixins, variables, and selector placeholders are defined with names that
|
|
879
|
+
* start with either `-` or `_` (in the case of variables the name follows `$`, and the same
|
|
880
|
+
* applies to the `%` prefix for selector placeholders). These private members remain confined
|
|
881
|
+
* within the module, therefore, if they go unused within the module, they are considered unused.
|
|
882
|
+
*
|
|
883
|
+
* This rule ignores files using `@import` since all files loaded through it are consolidated
|
|
884
|
+
* within the same module. This setup makes it tricky to ensure all usages of private members.
|
|
885
|
+
*
|
|
886
|
+
* @see [no-unused-private-members](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/no-unused-private-members)
|
|
887
|
+
*/
|
|
888
|
+
'scss/no-unused-private-members': NoUnusedPrivateMembersOptions;
|
|
889
|
+
/**
|
|
890
|
+
* Disallow linebreaks after Sass operators.
|
|
891
|
+
*
|
|
892
|
+
* This rule checks math operators (`+`, `-`, `/`, `*`, `%`) and comparison operators (`>`, `<`, `!=`, `==`, `>=`, `<=`).
|
|
893
|
+
*
|
|
894
|
+
* Not all symbols that correspond to math operators are actually considered operators by Sass. Some of the exceptions are:
|
|
895
|
+
*
|
|
896
|
+
* - `+` and `-` as signs before values;
|
|
897
|
+
* - `+` and `-` as signs in [space-delimited lists](https://sass-lang.com/documentation/operators/string);
|
|
898
|
+
* - `-` as part of [a string](https://sass-lang.com/documentation/operators/string) or [a Sass identifier](https://sass-lang.com/documentation/operators/numeric#unary-operators), e.g. a variable;
|
|
899
|
+
* - `/` as a CSS delimiter in property values like `font: 10px/1.2 Arial;` ([read more](https://sass-lang.com/documentation/operators/numeric#slash-separated-values)).
|
|
900
|
+
*
|
|
901
|
+
* For more details refer to [Sass official documentation](https://sass-lang.com/documentation). An online Sass compiler - [Sassmeister](https://www.sassmeister.com/) - could also come in handy.
|
|
902
|
+
*
|
|
903
|
+
* @see [operator-no-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-newline-after)
|
|
904
|
+
*/
|
|
905
|
+
'scss/operator-no-newline-after': OperatorNoNewlineAfterOptions;
|
|
906
|
+
/**
|
|
907
|
+
* Disallow linebreaks before Sass operators.
|
|
908
|
+
*
|
|
909
|
+
* This rule checks math operators (`+`, `-`, `/`, `*`, `%`) and comparison operators (`>`, `<`, `!=`, `==`, `>=`, `<=`).
|
|
910
|
+
*
|
|
911
|
+
* Not all symbols that correspond to math operators are actually considered operators by Sass. Some of the exceptions are:
|
|
912
|
+
*
|
|
913
|
+
* - `+` and `-` as signs before values;
|
|
914
|
+
* - `+` and `-` as signs in [space-delimited lists](https://sass-lang.com/documentation/operators/string);
|
|
915
|
+
* - `-` as part of [a string](https://sass-lang.com/documentation/operators/string) or [a Sass identifier](https://sass-lang.com/documentation/operators/numeric#unary-operators), e.g. a variable;
|
|
916
|
+
* - `/` as a CSS delimiter in property values like `font: 10px/1.2 Arial;` ([read more](https://sass-lang.com/documentation/operators/numeric#slash-separated-values)).
|
|
917
|
+
*
|
|
918
|
+
* For more details refer to [Sass official documentation](https://sass-lang.com/documentation). An online Sass compiler - [Sassmeister](https://www.sassmeister.com/) - could also come in handy.
|
|
919
|
+
*
|
|
920
|
+
* @see [operator-no-newline-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-newline-before)
|
|
921
|
+
*/
|
|
922
|
+
'scss/operator-no-newline-before': OperatorNoNewlineBeforeOptions;
|
|
923
|
+
/**
|
|
924
|
+
* Disallow unspaced operators in Sass operations.
|
|
925
|
+
*
|
|
926
|
+
* This rule checks math operators (`+`, `-`, `/`, `*`, `%`) and comparison operators (`>`, `<`, `!=`, `==`, `>=`, `<=`).
|
|
927
|
+
*
|
|
928
|
+
* Not all symbols that correspond to math operators are actually considered operators by Sass. Some of the exceptions are:
|
|
929
|
+
*
|
|
930
|
+
* - `+` and `-` as signs before values;
|
|
931
|
+
* - `+` and `-` as signs in [space-delimited lists](https://sass-lang.com/documentation/operators/string);
|
|
932
|
+
* - `-` as part of [a string](https://sass-lang.com/documentation/operators/string) or [a Sass identifier](https://sass-lang.com/documentation/operators/numeric#unary-operators), e.g. a variable;
|
|
933
|
+
* - `/` as a CSS delimiter in property values like `font: 10px/1.2 Arial;` ([read more](https://sass-lang.com/documentation/operators/numeric#slash-separated-values)).
|
|
934
|
+
*
|
|
935
|
+
* For more details refer to [Sass official documentation](https://sass-lang.com/documentation/file.SASS_REFERENCE.html). An online Sass compiler - [Sassmeister](https://www.sassmeister.com/) - could also come in handy.
|
|
936
|
+
*
|
|
937
|
+
* @see [operator-no-unspaced](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-unspaced)
|
|
938
|
+
*/
|
|
939
|
+
'scss/operator-no-unspaced': OperatorNoUnspacedOptions;
|
|
940
|
+
/**
|
|
941
|
+
* Disallow non-CSS `@import`s in partial files.
|
|
942
|
+
*
|
|
943
|
+
* The rule skips CSS files (doesn't report any `@import`s in them).
|
|
944
|
+
*
|
|
945
|
+
* The rule also ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
946
|
+
*
|
|
947
|
+
* - If the file’s extension is `.css`.
|
|
948
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
949
|
+
* - If the filename is a `url()`.
|
|
950
|
+
* - If the `@import` has any media queries.
|
|
951
|
+
*
|
|
952
|
+
* @see [partial-no-import](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/partial-no-import)
|
|
953
|
+
*/
|
|
954
|
+
'scss/partial-no-import': PartialNoImportOptions;
|
|
955
|
+
/**
|
|
956
|
+
* Specify a pattern for `%`-placeholders.
|
|
957
|
+
*
|
|
958
|
+
* @see [percent-placeholder-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/percent-placeholder-pattern)
|
|
959
|
+
*/
|
|
960
|
+
'scss/percent-placeholder-pattern': PercentPlaceholderPatternOptions;
|
|
961
|
+
/**
|
|
962
|
+
* Specify a pattern for class selectors.
|
|
963
|
+
*
|
|
964
|
+
* @see [selector-class-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-class-pattern/)
|
|
965
|
+
*/
|
|
966
|
+
'scss/selector-class-pattern': SelectorClassPatternOptions;
|
|
967
|
+
/**
|
|
968
|
+
* Require or disallow nesting of combinators in selectors
|
|
969
|
+
*
|
|
970
|
+
* @see [selector-nest-combinators](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-nest-combinators)
|
|
971
|
+
*/
|
|
972
|
+
'scss/selector-nest-combinators': SelectorNestCombinatorsOptions;
|
|
973
|
+
/**
|
|
974
|
+
* Disallow unknown properties. Should be used instead of Stylelint's [property-no-unknown](https://stylelint.io/user-guide/rules/property-no-unknown).
|
|
975
|
+
*
|
|
976
|
+
* This rule considers properties defined in the [CSS Specifications and browser specific properties](https://github.com/betit/known-css-properties#source) to be known.
|
|
977
|
+
*
|
|
978
|
+
* This rule ignores:
|
|
979
|
+
*
|
|
980
|
+
* - variables (`$sass`, `@less`, `--custom-property`)
|
|
981
|
+
* - vendor-prefixed properties (e.g., `-moz-align-self`, `-webkit-align-self`)
|
|
982
|
+
*
|
|
983
|
+
* Use option `checkPrefixed` described below to turn on checking of vendor-prefixed properties.
|
|
984
|
+
*
|
|
985
|
+
* @see [property-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/property-no-unknown)
|
|
986
|
+
*/
|
|
987
|
+
'scss/property-no-unknown': PropertyNoUnknownOptions;
|
|
988
|
+
/**
|
|
989
|
+
* Disallow redundant nesting selectors (`&`).
|
|
990
|
+
*
|
|
991
|
+
* @see [selector-no-redundant-nesting-selector](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-redundant-nesting-selector)
|
|
992
|
+
*/
|
|
993
|
+
'scss/selector-no-redundant-nesting-selector': SelectorNoRedundantNestingSelectorOptions;
|
|
994
|
+
/**
|
|
995
|
+
* Disallow union class names with the parent selector (`&`).
|
|
996
|
+
*
|
|
997
|
+
* @see [selector-no-union-class-name](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-union-class-name)
|
|
998
|
+
*/
|
|
999
|
+
'scss/selector-no-union-class-name': SelectorNoUnionClassNameOptions;
|
|
1033
1000
|
}
|
|
1034
|
-
|
|
1001
|
+
//#endregion
|
|
1002
|
+
//#region src/index.d.ts
|
|
1035
1003
|
declare module 'stylelint-define-config' {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}
|
|
1042
|
-
interface CustomRuleOptions extends RuleOptions {
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1004
|
+
interface CustomPlugins extends Plugins {}
|
|
1005
|
+
interface CustomExtends extends Extends {}
|
|
1006
|
+
interface CustomSyntax extends Syntax {}
|
|
1007
|
+
interface CustomRuleOptions extends RuleOptions {}
|
|
1008
|
+
}
|