@stylelint-types/stylelint-scss 7.0.1 → 7.5.0
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/README.md +1 -1
- package/lib/index.d.ts +136 -252
- package/package.json +42 -38
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
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
2
|
type AtEachKeyValueSingleLineOptions = RuleConfig<true>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
type AtElseClosingBraceNewlineAfterOptions = RuleConfig<'always-last-in-chain', [], {
|
|
4
|
+
/**
|
|
5
|
+
* Disables autofixing for this rule.
|
|
6
|
+
*/
|
|
7
|
+
disableFix?: boolean;
|
|
8
|
+
}>;
|
|
10
9
|
type AtElseEmptyLineBeforeOptions = RuleConfig<'never'>;
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/rules/at-else-if-parentheses-space-before.d.ts
|
|
13
10
|
type AtElseIfParenthesesSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/rules/at-extend-no-missing-placeholder.d.ts
|
|
16
11
|
type AtExtendNoMissingPlaceholderOptions = RuleConfig<true>;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/rules/at-function-named-arguments.d.ts
|
|
19
12
|
type AtFunctionNamedArgumentsOptions = RuleConfig<'always' | 'never', [], {
|
|
20
13
|
ignore?: LiteralUnion<'single-argument'>[];
|
|
21
14
|
/**
|
|
@@ -23,82 +16,43 @@ type AtFunctionNamedArgumentsOptions = RuleConfig<'always' | 'never', [], {
|
|
|
23
16
|
*/
|
|
24
17
|
ignoreFunctions?: string[];
|
|
25
18
|
}>;
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/rules/at-function-parentheses-space-before.d.ts
|
|
28
19
|
type AtFunctionParenthesesSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/rules/at-function-pattern.d.ts
|
|
31
20
|
type AtFunctionPatternOptions = RuleConfig<RegExpLike, [functionName: string, pattern: RegExpLike]>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
type AtIfClosingBraceNewlineAfterOptions = RuleConfig<'always-last-in-chain', [], {
|
|
22
|
+
/**
|
|
23
|
+
* Disables autofixing for this rule.
|
|
24
|
+
*/
|
|
25
|
+
disableFix?: boolean;
|
|
26
|
+
}>;
|
|
37
27
|
type AtIfClosingBraceSpaceAfterOptions = RuleConfig<'always-intermediate' | 'never-intermediate'>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
type
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
28
|
+
type AtIfNoNullOptions = RuleConfig<true>;
|
|
29
|
+
type AtImportPartialExtensionAllowedListOptions = RuleConfig<(LiteralUnion<'css' | 'scss' | 'sass'> | RegExp)[], [ext: string]>;
|
|
30
|
+
type AtImportPartialExtensionDisallowedListOptions = RuleConfig<(LiteralUnion<'css' | 'scss' | 'sass'> | RegExp)[], [ext: string]>;
|
|
31
|
+
type AtMixinArgumentlessCallParenthesesOptions = RuleConfig<'always' | 'never', [mixin: string]>;
|
|
32
|
+
type AtMixinNamedArgumentsOptions = RuleConfig<'always' | 'never', [], {
|
|
33
|
+
ignore?: LiteralUnion<'single-argument'>[];
|
|
34
|
+
}>;
|
|
55
35
|
type AtMixinNoRiskyNestingSelectorOptions = RuleConfig<true>;
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region src/rules/at-mixin-parentheses-space-before.d.ts
|
|
58
36
|
type AtMixinParenthesesSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/rules/at-mixin-pattern.d.ts
|
|
61
37
|
type AtMixinPatternOptions = RuleConfig<RegExpLike, [mixinName: string, pattern: RegExpLike]>;
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/rules/at-root-no-redundant.d.ts
|
|
64
38
|
type AtRootNoRedundantOptions = RuleConfig<true>;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/rules/at-rule-conditional-no-parentheses.d.ts
|
|
67
39
|
type AtRuleConditionalNoParenthesesOptions = RuleConfig<true>;
|
|
68
|
-
|
|
69
|
-
//#region src/rules/at-rule-no-unknown.d.ts
|
|
70
|
-
type AtRuleNoUnknownOptions = RuleConfig<true, [], {
|
|
40
|
+
type AtRuleNoUnknownOptions = RuleConfig<true, [atRule: string], {
|
|
71
41
|
ignoreAtRules?: RegExpLike[];
|
|
72
42
|
}>;
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region src/rules/at-use-no-redundant-alias.d.ts
|
|
75
43
|
type AtUseNoRedundantAliasOptions = RuleConfig<true>;
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/rules/at-use-no-unnamespaced.d.ts
|
|
78
44
|
type AtUseNoUnnamespacedOptions = RuleConfig<true>;
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region src/rules/block-no-redundant-nesting.d.ts
|
|
81
45
|
type BlockNoRedundantNestingOptions = RuleConfig<true>;
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/rules/comment-no-empty.d.ts
|
|
84
46
|
type CommentNoEmptyOptions = RuleConfig<true>;
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/rules/comment-no-loud.d.ts
|
|
87
47
|
type CommentNoLoudOptions = RuleConfig<true>;
|
|
88
|
-
|
|
89
|
-
//#region src/rules/declaration-nested-properties.d.ts
|
|
48
|
+
type DeclarationNestedPropertiesNoDividedGroupsOptions = RuleConfig<true, [prop: string]>;
|
|
90
49
|
type DeclarationNestedPropertiesOptions = RuleConfig<'always' | 'never', [prop: string], {
|
|
91
50
|
/**
|
|
92
51
|
* 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
52
|
*/
|
|
94
53
|
except?: LiteralUnion<'only-of-namespace'>[];
|
|
95
54
|
}>;
|
|
96
|
-
|
|
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, [], {
|
|
55
|
+
type DeclarationPropertyValueNoUnknownOptions = RuleConfig<true, [property: string, value: string], {
|
|
102
56
|
/**
|
|
103
57
|
* Ignore the specified property and value pairs.
|
|
104
58
|
* Keys in the object indicate property names.
|
|
@@ -123,141 +77,82 @@ type DeclarationPropertyValueNoUnknownOptions = RuleConfig<true, [], {
|
|
|
123
77
|
*/
|
|
124
78
|
typesSyntax?: Record<string, string>;
|
|
125
79
|
}>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
//#region src/rules/dollar-variable-colon-space-after.d.ts
|
|
80
|
+
type DimensionNoNonNumericValuesOptions = RuleConfig<true, [unit: string]>;
|
|
81
|
+
type DollarVariableColonNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line', [], {
|
|
82
|
+
/**
|
|
83
|
+
* Disable the fix for this rule.
|
|
84
|
+
*/
|
|
85
|
+
disableFix?: boolean;
|
|
86
|
+
}>;
|
|
134
87
|
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
88
|
type DollarVariableColonSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
138
|
-
|
|
139
|
-
//#region src/rules/dollar-variable-default.d.ts
|
|
140
|
-
type DollarVariableDefaultOptions = RuleConfig<true, [], {
|
|
89
|
+
type DollarVariableDefaultOptions = RuleConfig<true, [variable: string], {
|
|
141
90
|
ignore?: LiteralUnion<'local'>[];
|
|
142
91
|
}>;
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region src/rules/dollar-variable-empty-line-after.d.ts
|
|
145
92
|
type DollarVariableEmptyLineAfterOptions = RuleConfig<'always' | 'never', [], {
|
|
146
93
|
except?: LiteralUnion<'last-nested' | 'before-comment' | 'before-dollar-variable'>[];
|
|
147
94
|
ignore?: LiteralUnion<'before-comment' | 'inside-single-line-block'>[];
|
|
95
|
+
/**
|
|
96
|
+
* Disable the fix for this rule.
|
|
97
|
+
*/
|
|
98
|
+
disableFix?: boolean;
|
|
148
99
|
}>;
|
|
149
|
-
//#endregion
|
|
150
|
-
//#region src/rules/dollar-variable-empty-line-before.d.ts
|
|
151
100
|
type DollarVariableEmptyLineBeforeOptions = RuleConfig<'always' | 'never', [], {
|
|
152
101
|
except?: LiteralUnion<'first-nested' | 'after-comment' | 'after-dollar-variable'>[];
|
|
153
102
|
ignore?: LiteralUnion<'after-comment' | 'inside-single-line-block' | 'after-dollar-variable'>[];
|
|
103
|
+
/**
|
|
104
|
+
* Disable the fix for this rule.
|
|
105
|
+
*/
|
|
106
|
+
disableFix?: boolean;
|
|
154
107
|
}>;
|
|
155
|
-
//#endregion
|
|
156
|
-
//#region src/rules/dollar-variable-first-in-block.d.ts
|
|
157
108
|
type DollarVariableFirstInBlockOptions = RuleConfig<true, [], {
|
|
158
109
|
expect?: LiteralUnion<'root' | 'at-rule' | 'function' | 'mixin' | 'if-else' | 'loops'>[];
|
|
159
110
|
ignore?: LiteralUnion<'comments' | 'imports'>[];
|
|
160
111
|
}>;
|
|
161
|
-
|
|
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
|
|
112
|
+
type DollarVariableNoMissingInterpolationOptions = RuleConfig<true, [nodeName: string, variableName: string]>;
|
|
166
113
|
type DollarVariableNoNamespacedAssignmentOptions = RuleConfig<true>;
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/rules/dollar-variable-pattern.d.ts
|
|
169
114
|
type DollarVariablePatternOptions = RuleConfig<RegExpLike, [variableName: string, pattern: RegExpLike], {
|
|
170
115
|
ignore?: LiteralUnion<'local' | 'global'>;
|
|
171
116
|
}>;
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region src/rules/double-slash-comment-empty-line-before.d.ts
|
|
174
117
|
type DoubleSlashCommentEmptyLineBeforeOptions = RuleConfig<'always' | 'never', [], {
|
|
175
118
|
except?: LiteralUnion<'first-nested' | 'inside-block'>[];
|
|
176
119
|
ignore?: LiteralUnion<'between-comments' | 'stylelint-commands' | 'inside-block'>[];
|
|
177
120
|
}>;
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/rules/double-slash-comment-inline.d.ts
|
|
180
121
|
type DoubleSlashCommentInlineOptions = RuleConfig<'always' | 'never', [], {
|
|
181
122
|
ignore?: LiteralUnion<'stylelint-commands'>[];
|
|
182
123
|
}>;
|
|
183
|
-
//#endregion
|
|
184
|
-
//#region src/rules/double-slash-comment-whitespace-inside.d.ts
|
|
185
124
|
type DoubleSlashCommentWhitespaceInsideOptions = RuleConfig<'always' | 'never'>;
|
|
186
|
-
|
|
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
|
|
125
|
+
type FunctionCalculationNoInterpolationOptions = RuleConfig<true, [func: string]>;
|
|
191
126
|
type FunctionColorChannelOptions = RuleConfig<true>;
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region src/rules/function-color-relative.d.ts
|
|
194
127
|
type FunctionColorRelativeOptions = RuleConfig<true>;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
type FunctionDisallowedListOptions = RuleConfig<Arrayable<RegExpLike>>;
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/rules/function-no-unknown.d.ts
|
|
200
|
-
type FunctionNoUnknownOptions = RuleConfig<true, [], {
|
|
128
|
+
type FunctionDisallowedListOptions = RuleConfig<Arrayable<RegExpLike>, [func: string]>;
|
|
129
|
+
type FunctionNoUnknownOptions = RuleConfig<true, [name: string], {
|
|
201
130
|
ignoreFunctions: RegExpLike[];
|
|
202
131
|
}>;
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/rules/function-quote-no-quoted-strings-inside.d.ts
|
|
205
132
|
type FunctionQuoteNoQuotedStringsInsideOptions = RuleConfig<true>;
|
|
206
|
-
//#endregion
|
|
207
|
-
//#region src/rules/function-unquote-no-unquoted-strings-inside.d.ts
|
|
208
133
|
type FunctionUnquoteNoUnquotedStringsInsideOptions = RuleConfig<true>;
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region src/rules/load-no-partial-leading-underscore.d.ts
|
|
211
134
|
type LoadNoPartialLeadingUnderscoreOptions = RuleConfig<true>;
|
|
212
|
-
|
|
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
|
|
135
|
+
type LoadPartialExtensionOptions = RuleConfig<'always' | 'never', [ext: string, atRuleName: string]>;
|
|
217
136
|
type MapKeysQuotesOptions = RuleConfig<'always'>;
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region src/rules/media-feature-value-dollar-variable.d.ts
|
|
220
137
|
type MediaFeatureValueDollarVariableOptions = RuleConfig<'always' | 'never', [], {
|
|
221
138
|
ignore?: LiteralUnion<'keywords'>[];
|
|
222
139
|
}>;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
type NoDollarVariablesOptions = RuleConfig<true>;
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/rules/no-duplicate-dollar-variables.d.ts
|
|
228
|
-
type NoDuplicateDollarVariablesOptions = RuleConfig<true, [], {
|
|
140
|
+
type NoDollarVariablesOptions = RuleConfig<true, [variable: string]>;
|
|
141
|
+
type NoDuplicateDollarVariablesOptions = RuleConfig<true, [variable: string], {
|
|
229
142
|
ignoreInside?: LiteralUnion<'at-rule' | 'nested-at-rule'>[];
|
|
143
|
+
ignoreInsideAtRules?: string[];
|
|
144
|
+
ignoreDefaults?: boolean;
|
|
230
145
|
}>;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
type
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
type
|
|
237
|
-
|
|
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
|
|
146
|
+
type NoDuplicateLoadRulesOptions = RuleConfig<true, [duplicate: string]>;
|
|
147
|
+
type NoDuplicateMixinsOptions = RuleConfig<true, [mixin: string]>;
|
|
148
|
+
type NoGlobalFunctionNamesOptions = RuleConfig<true, [name: string]>;
|
|
149
|
+
type NoUnusedPrivateMembersOptions = RuleConfig<true, [privateMember: string]>;
|
|
150
|
+
type OperatorNoNewlineAfterOptions = RuleConfig<true, [operator: string]>;
|
|
151
|
+
type OperatorNoNewlineBeforeOptions = RuleConfig<true, [operator: string]>;
|
|
152
|
+
type OperatorNoUnspacedOptions = RuleConfig<true, [operator: string]>;
|
|
254
153
|
type PartialNoImportOptions = RuleConfig<true>;
|
|
255
|
-
//#endregion
|
|
256
|
-
//#region src/rules/percent-placeholder-pattern.d.ts
|
|
257
154
|
type PercentPlaceholderPatternOptions = RuleConfig<RegExpLike, [placeholderName: string, pattern: RegExpLike]>;
|
|
258
|
-
|
|
259
|
-
//#region src/rules/property-no-unknown.d.ts
|
|
260
|
-
type PropertyNoUnknownOptions = RuleConfig<true, [], {
|
|
155
|
+
type PropertyNoUnknownOptions = RuleConfig<true, [property: string], {
|
|
261
156
|
ignoreProperties?: RegExpLike[];
|
|
262
157
|
/**
|
|
263
158
|
* Skips checking properties of the given selectors against this rule.
|
|
@@ -273,34 +168,24 @@ type PropertyNoUnknownOptions = RuleConfig<true, [], {
|
|
|
273
168
|
*/
|
|
274
169
|
checkPrefixed?: boolean;
|
|
275
170
|
}>;
|
|
276
|
-
|
|
277
|
-
//#region src/rules/selector-class-pattern.d.ts
|
|
278
|
-
type SelectorClassPatternOptions = RuleConfig<RegExpLike, [], {
|
|
171
|
+
type SelectorClassPatternOptions = RuleConfig<RegExpLike, [selector: string, pattern: RegExpLike], {
|
|
279
172
|
resolveNestedSelectors?: boolean;
|
|
280
173
|
}>;
|
|
281
|
-
|
|
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
|
|
174
|
+
type SelectorNestCombinatorsOptions = RuleConfig<'always' | 'never', [combinator: string, type: string]>;
|
|
286
175
|
type SelectorNoRedundantNestingSelectorOptions = RuleConfig<true, [], {
|
|
287
176
|
ignoreKeywords?: RegExpLike[];
|
|
288
177
|
}>;
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region src/rules/selector-no-union-class-name.d.ts
|
|
291
178
|
type SelectorNoUnionClassNameOptions = RuleConfig<true>;
|
|
292
|
-
//#endregion
|
|
293
|
-
//#region src/types.d.ts
|
|
294
179
|
interface Extends {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
180
|
+
"stylelint-config-standard-scss": void;
|
|
181
|
+
"stylelint-config-recommended-scss": void;
|
|
182
|
+
"stylelint-config-prettier-scss": void;
|
|
298
183
|
}
|
|
299
184
|
interface Plugins {
|
|
300
|
-
|
|
185
|
+
"stylelint-scss": void;
|
|
301
186
|
}
|
|
302
187
|
interface Syntax {
|
|
303
|
-
|
|
188
|
+
"postcss-scss": void;
|
|
304
189
|
}
|
|
305
190
|
interface RuleOptions {
|
|
306
191
|
/**
|
|
@@ -310,7 +195,7 @@ interface RuleOptions {
|
|
|
310
195
|
*
|
|
311
196
|
* @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
197
|
*/
|
|
313
|
-
|
|
198
|
+
"scss/at-each-key-value-single-line": AtEachKeyValueSingleLineOptions;
|
|
314
199
|
/**
|
|
315
200
|
* Require or disallow a newline after the closing brace of `@else` statements.
|
|
316
201
|
*
|
|
@@ -320,7 +205,7 @@ interface RuleOptions {
|
|
|
320
205
|
*
|
|
321
206
|
* @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
207
|
*/
|
|
323
|
-
|
|
208
|
+
"scss/at-else-closing-brace-newline-after": AtElseClosingBraceNewlineAfterOptions;
|
|
324
209
|
/**
|
|
325
210
|
* Require a single space or disallow whitespace after the closing brace of `@else` statements.
|
|
326
211
|
*
|
|
@@ -328,7 +213,7 @@ interface RuleOptions {
|
|
|
328
213
|
*
|
|
329
214
|
* @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
215
|
*/
|
|
331
|
-
|
|
216
|
+
"scss/at-else-closing-brace-space-after": AtElseClosingBraceNewlineAfterOptions;
|
|
332
217
|
/**
|
|
333
218
|
* Require an empty line or disallow empty lines before `@`-else.
|
|
334
219
|
*
|
|
@@ -336,13 +221,13 @@ interface RuleOptions {
|
|
|
336
221
|
*
|
|
337
222
|
* @see [at-else-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-empty-line-before)
|
|
338
223
|
*/
|
|
339
|
-
|
|
224
|
+
"scss/at-else-empty-line-before": AtElseEmptyLineBeforeOptions;
|
|
340
225
|
/**
|
|
341
226
|
* Require or disallow a space before `@else if` parentheses.
|
|
342
227
|
*
|
|
343
228
|
* @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
229
|
*/
|
|
345
|
-
|
|
230
|
+
"scss/at-else-if-parentheses-space-before": AtElseIfParenthesesSpaceBeforeOptions;
|
|
346
231
|
/**
|
|
347
232
|
* Disallow at-extends (`@extend`) with missing placeholders.
|
|
348
233
|
*
|
|
@@ -350,25 +235,25 @@ interface RuleOptions {
|
|
|
350
235
|
*
|
|
351
236
|
* @see [at-extend-no-missing-placeholder](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-extend-no-missing-placeholder)
|
|
352
237
|
*/
|
|
353
|
-
|
|
238
|
+
"scss/at-extend-no-missing-placeholder": AtExtendNoMissingPlaceholderOptions;
|
|
354
239
|
/**
|
|
355
240
|
* Require named parameters in SCSS function call rule.
|
|
356
241
|
*
|
|
357
242
|
* @see [at-function-named-arguments](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-function-named-arguments)
|
|
358
243
|
*/
|
|
359
|
-
|
|
244
|
+
"scss/at-function-named-arguments": AtFunctionNamedArgumentsOptions;
|
|
360
245
|
/**
|
|
361
246
|
* Require or disallow a space before `@function` parentheses.
|
|
362
247
|
*
|
|
363
248
|
* @see [at-function-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-function-parentheses-space-before)
|
|
364
249
|
*/
|
|
365
|
-
|
|
250
|
+
"scss/at-function-parentheses-space-before": AtFunctionParenthesesSpaceBeforeOptions;
|
|
366
251
|
/**
|
|
367
252
|
* Specify a pattern for Sass/SCSS-like function names.
|
|
368
253
|
*
|
|
369
254
|
* @see [at-function-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-function-pattern)
|
|
370
255
|
*/
|
|
371
|
-
|
|
256
|
+
"scss/at-function-pattern": AtFunctionPatternOptions;
|
|
372
257
|
/**
|
|
373
258
|
* Require or disallow a newline after the closing brace of `@if` statements.
|
|
374
259
|
*
|
|
@@ -382,7 +267,7 @@ interface RuleOptions {
|
|
|
382
267
|
*
|
|
383
268
|
* @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
269
|
*/
|
|
385
|
-
|
|
270
|
+
"scss/at-if-closing-brace-newline-after": AtIfClosingBraceNewlineAfterOptions;
|
|
386
271
|
/**
|
|
387
272
|
* Require a single space or disallow whitespace after the closing brace of `@if` statements.
|
|
388
273
|
*
|
|
@@ -391,13 +276,13 @@ interface RuleOptions {
|
|
|
391
276
|
*
|
|
392
277
|
* @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
278
|
*/
|
|
394
|
-
|
|
279
|
+
"scss/at-if-closing-brace-space-after": AtIfClosingBraceSpaceAfterOptions;
|
|
395
280
|
/**
|
|
396
281
|
* Check for equality to null is unnecessarily explicit since `null` is falsey in Sass.
|
|
397
282
|
*
|
|
398
283
|
* @see [at-if-no-null](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-if-no-null)
|
|
399
284
|
*/
|
|
400
|
-
|
|
285
|
+
"scss/at-if-no-null": AtIfNoNullOptions;
|
|
401
286
|
/**
|
|
402
287
|
* Specify a whitelist of allowed file extensions for partial names in `@import` commands.
|
|
403
288
|
*
|
|
@@ -409,7 +294,7 @@ interface RuleOptions {
|
|
|
409
294
|
*
|
|
410
295
|
* @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
296
|
*/
|
|
412
|
-
|
|
297
|
+
"scss/at-import-partial-extension-allowed-list": AtImportPartialExtensionAllowedListOptions;
|
|
413
298
|
/**
|
|
414
299
|
* Specify a blacklist of disallowed file extensions for partial names in `@import` commands.
|
|
415
300
|
*
|
|
@@ -421,19 +306,19 @@ interface RuleOptions {
|
|
|
421
306
|
*
|
|
422
307
|
* @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
308
|
*/
|
|
424
|
-
|
|
309
|
+
"scss/at-import-partial-extension-disallowed-list": AtImportPartialExtensionDisallowedListOptions;
|
|
425
310
|
/**
|
|
426
311
|
* Require or disallow parentheses in argumentless `@mixin` calls.
|
|
427
312
|
*
|
|
428
313
|
* @see [at-mixin-argumentless-call-parentheses](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-argumentless-call-parentheses)
|
|
429
314
|
*/
|
|
430
|
-
|
|
315
|
+
"scss/at-mixin-argumentless-call-parentheses": AtMixinArgumentlessCallParenthesesOptions;
|
|
431
316
|
/**
|
|
432
317
|
* Require named parameters in at-mixin call rule.
|
|
433
318
|
*
|
|
434
319
|
* @see [at-mixin-named-arguments](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-named-arguments)
|
|
435
320
|
*/
|
|
436
|
-
|
|
321
|
+
"scss/at-mixin-named-arguments": AtMixinNamedArgumentsOptions;
|
|
437
322
|
/**
|
|
438
323
|
* Disallow risky nesting selectors within a mixin.
|
|
439
324
|
*
|
|
@@ -448,19 +333,19 @@ interface RuleOptions {
|
|
|
448
333
|
*
|
|
449
334
|
* @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
335
|
*/
|
|
451
|
-
|
|
336
|
+
"scss/at-mixin-no-risky-nesting-selector": AtMixinNoRiskyNestingSelectorOptions;
|
|
452
337
|
/**
|
|
453
338
|
* Require or disallow a space before `@mixin` parentheses.
|
|
454
339
|
*
|
|
455
340
|
* @see [at-mixin-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-parentheses-space-before)
|
|
456
341
|
*/
|
|
457
|
-
|
|
342
|
+
"scss/at-mixin-parentheses-space-before": AtMixinParenthesesSpaceBeforeOptions;
|
|
458
343
|
/**
|
|
459
344
|
* Specify a pattern for Sass/SCSS-like mixin names.
|
|
460
345
|
*
|
|
461
346
|
* @see [at-mixin-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-pattern)
|
|
462
347
|
*/
|
|
463
|
-
|
|
348
|
+
"scss/at-mixin-pattern": AtMixinPatternOptions;
|
|
464
349
|
/**
|
|
465
350
|
* Disallow redundant `@at-root` rule.
|
|
466
351
|
*
|
|
@@ -471,13 +356,13 @@ interface RuleOptions {
|
|
|
471
356
|
*
|
|
472
357
|
* @see [at-root-no-redundant](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-root-no-redundant)
|
|
473
358
|
*/
|
|
474
|
-
|
|
359
|
+
"scss/at-root-no-redundant": AtRootNoRedundantOptions;
|
|
475
360
|
/**
|
|
476
361
|
* Disallow parentheses in conditional @ rules (if, elsif, while)
|
|
477
362
|
*
|
|
478
363
|
* @see [at-rule-conditional-no-parentheses](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-conditional-no-parentheses)
|
|
479
364
|
*/
|
|
480
|
-
|
|
365
|
+
"scss/at-rule-conditional-no-parentheses": AtRuleConditionalNoParenthesesOptions;
|
|
481
366
|
/**
|
|
482
367
|
* 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
368
|
*
|
|
@@ -496,19 +381,19 @@ interface RuleOptions {
|
|
|
496
381
|
*
|
|
497
382
|
* @see [at-rule-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-no-unknown)
|
|
498
383
|
*/
|
|
499
|
-
|
|
384
|
+
"scss/at-rule-no-unknown": AtRuleNoUnknownOptions;
|
|
500
385
|
/**
|
|
501
386
|
* Disallow redundant namespace aliases.
|
|
502
387
|
*
|
|
503
388
|
* @see [at-use-no-redundant-alias](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-use-no-redundant-alias)
|
|
504
389
|
*/
|
|
505
|
-
|
|
390
|
+
"scss/at-use-no-redundant-alias": AtUseNoRedundantAliasOptions;
|
|
506
391
|
/**
|
|
507
392
|
* Disallow usage of `@use` without a namespace.
|
|
508
393
|
*
|
|
509
394
|
* @see [at-use-no-unnamespaced](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-use-no-unnamespaced)
|
|
510
395
|
*/
|
|
511
|
-
|
|
396
|
+
"scss/at-use-no-unnamespaced": AtUseNoUnnamespacedOptions;
|
|
512
397
|
/**
|
|
513
398
|
* 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
399
|
*
|
|
@@ -524,13 +409,13 @@ interface RuleOptions {
|
|
|
524
409
|
*
|
|
525
410
|
* @see [comment-no-empty](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/comment-no-empty)
|
|
526
411
|
*/
|
|
527
|
-
|
|
412
|
+
"scss/comment-no-empty": CommentNoEmptyOptions;
|
|
528
413
|
/**
|
|
529
414
|
* Disallow nesting a single block if it could be merged with its parent block.
|
|
530
415
|
*
|
|
531
416
|
* @see [block-no-redundant-nesting](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/block-no-redundant-nesting)
|
|
532
417
|
*/
|
|
533
|
-
|
|
418
|
+
"scss/block-no-redundant-nesting": BlockNoRedundantNestingOptions;
|
|
534
419
|
/**
|
|
535
420
|
* Require or disallow properties with `-` in their names to be in a form of a nested group.
|
|
536
421
|
*
|
|
@@ -545,7 +430,7 @@ interface RuleOptions {
|
|
|
545
430
|
*
|
|
546
431
|
* @see [declaration-nested-properties](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-nested-properties)
|
|
547
432
|
*/
|
|
548
|
-
|
|
433
|
+
"scss/declaration-nested-properties": DeclarationNestedPropertiesOptions;
|
|
549
434
|
/**
|
|
550
435
|
* Disallow unknown values for properties within declarations.
|
|
551
436
|
*
|
|
@@ -571,7 +456,7 @@ interface RuleOptions {
|
|
|
571
456
|
*
|
|
572
457
|
* @see [declaration-property-value-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-property-value-no-unknown)
|
|
573
458
|
*/
|
|
574
|
-
|
|
459
|
+
"scss/declaration-property-value-no-unknown": DeclarationPropertyValueNoUnknownOptions;
|
|
575
460
|
/**
|
|
576
461
|
* Disallow `/*`-comments.
|
|
577
462
|
*
|
|
@@ -579,7 +464,7 @@ interface RuleOptions {
|
|
|
579
464
|
*
|
|
580
465
|
* @see [comment-no-loud](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/comment-no-loud)
|
|
581
466
|
*/
|
|
582
|
-
|
|
467
|
+
"scss/comment-no-loud": CommentNoLoudOptions;
|
|
583
468
|
/**
|
|
584
469
|
* Disallow nested properties of the same "namespace" be divided into multiple groups.
|
|
585
470
|
*
|
|
@@ -591,7 +476,7 @@ interface RuleOptions {
|
|
|
591
476
|
*
|
|
592
477
|
* @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
478
|
*/
|
|
594
|
-
|
|
479
|
+
"scss/declaration-nested-properties-no-divided-groups": DeclarationNestedPropertiesNoDividedGroupsOptions;
|
|
595
480
|
/**
|
|
596
481
|
* Interpolating a value with a unit (e.g. `#{$value}px`) results in a
|
|
597
482
|
* _string_ value, not as numeric value. This value then cannot be used in
|
|
@@ -603,31 +488,31 @@ interface RuleOptions {
|
|
|
603
488
|
*
|
|
604
489
|
* @see [dimension-no-non-numeric-values](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dimension-no-non-numeric-values)
|
|
605
490
|
*/
|
|
606
|
-
|
|
491
|
+
"scss/dimension-no-non-numeric-values": DimensionNoNonNumericValuesOptions;
|
|
607
492
|
/**
|
|
608
493
|
* Require a newline after the colon in `$`-variable declarations.
|
|
609
494
|
*
|
|
610
495
|
* @see [dollar-variable-colon-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-newline-after)
|
|
611
496
|
*/
|
|
612
|
-
|
|
497
|
+
"scss/dollar-variable-colon-newline-after": DollarVariableColonNewlineAfterOptions;
|
|
613
498
|
/**
|
|
614
499
|
* Require or disallow whitespace after the colon in `$`-variable declarations.
|
|
615
500
|
*
|
|
616
501
|
* @see [dollar-variable-colon-space-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-space-after)
|
|
617
502
|
*/
|
|
618
|
-
|
|
503
|
+
"scss/dollar-variable-colon-space-after": DollarVariableColonSpaceAfterOptions;
|
|
619
504
|
/**
|
|
620
505
|
* Require a single space or disallow whitespace before the colon in `$`-variable declarations.
|
|
621
506
|
*
|
|
622
507
|
* @see [dollar-variable-colon-space-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-space-before)
|
|
623
508
|
*/
|
|
624
|
-
|
|
509
|
+
"scss/dollar-variable-colon-space-before": DollarVariableColonSpaceBeforeOptions;
|
|
625
510
|
/**
|
|
626
511
|
* Require `!default` flag for `$`-variable declarations
|
|
627
512
|
*
|
|
628
513
|
* @see [dollar-variable-default](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-default)
|
|
629
514
|
*/
|
|
630
|
-
|
|
515
|
+
"scss/dollar-variable-default": DollarVariableDefaultOptions;
|
|
631
516
|
/**
|
|
632
517
|
* Require an empty line or disallow empty lines after `$`-variable declarations.
|
|
633
518
|
*
|
|
@@ -635,13 +520,13 @@ interface RuleOptions {
|
|
|
635
520
|
*
|
|
636
521
|
* @see [dollar-variable-empty-line-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-after)
|
|
637
522
|
*/
|
|
638
|
-
|
|
523
|
+
"scss/dollar-variable-empty-line-after": DollarVariableEmptyLineAfterOptions;
|
|
639
524
|
/**
|
|
640
525
|
* Require `$`-variable declarations to be placed first in a block (root or a rule).
|
|
641
526
|
*
|
|
642
527
|
* @see [dollar-variable-first-in-block](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-first-in-block)
|
|
643
528
|
*/
|
|
644
|
-
|
|
529
|
+
"scss/dollar-variable-first-in-block": DollarVariableFirstInBlockOptions;
|
|
645
530
|
/**
|
|
646
531
|
* Require an empty line or disallow empty lines before `$`-variable declarations.
|
|
647
532
|
*
|
|
@@ -649,7 +534,7 @@ interface RuleOptions {
|
|
|
649
534
|
*
|
|
650
535
|
* @see [dollar-variable-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-before)
|
|
651
536
|
*/
|
|
652
|
-
|
|
537
|
+
"scss/dollar-variable-empty-line-before": DollarVariableEmptyLineBeforeOptions;
|
|
653
538
|
/**
|
|
654
539
|
* This rule flags four situations in which Sass variables require interpolation:
|
|
655
540
|
*
|
|
@@ -662,19 +547,19 @@ interface RuleOptions {
|
|
|
662
547
|
*
|
|
663
548
|
* @see [dollar-variable-no-missing-interpolation](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-missing-interpolation)
|
|
664
549
|
*/
|
|
665
|
-
|
|
550
|
+
"scss/dollar-variable-no-missing-interpolation": DollarVariableNoMissingInterpolationOptions;
|
|
666
551
|
/**
|
|
667
552
|
* Disallow assignment to namespaced variables.
|
|
668
553
|
*
|
|
669
554
|
* @see [dollar-variable-no-namespaced-assignment](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-namespaced-assignment)
|
|
670
555
|
*/
|
|
671
|
-
|
|
556
|
+
"scss/dollar-variable-no-namespaced-assignment": DollarVariableNoNamespacedAssignmentOptions;
|
|
672
557
|
/**
|
|
673
558
|
* Specify a pattern for Sass-like variables.
|
|
674
559
|
*
|
|
675
560
|
* @see [dollar-variable-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-pattern)
|
|
676
561
|
*/
|
|
677
|
-
|
|
562
|
+
"scss/dollar-variable-pattern": DollarVariablePatternOptions;
|
|
678
563
|
/**
|
|
679
564
|
* Require or disallow an empty line before `//`-comments.
|
|
680
565
|
*
|
|
@@ -685,7 +570,7 @@ interface RuleOptions {
|
|
|
685
570
|
*
|
|
686
571
|
* @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
572
|
*/
|
|
688
|
-
|
|
573
|
+
"scss/double-slash-comment-empty-line-before": DoubleSlashCommentEmptyLineBeforeOptions;
|
|
689
574
|
/**
|
|
690
575
|
* Require or disallow `//`-comments to be inline comments.
|
|
691
576
|
*
|
|
@@ -695,7 +580,7 @@ interface RuleOptions {
|
|
|
695
580
|
*
|
|
696
581
|
* @see [double-slash-comment-inline](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-inline)
|
|
697
582
|
*/
|
|
698
|
-
|
|
583
|
+
"scss/double-slash-comment-inline": DoubleSlashCommentInlineOptions;
|
|
699
584
|
/**
|
|
700
585
|
* Require or disallow whitespace after the `//` in `//`-comments
|
|
701
586
|
*
|
|
@@ -707,7 +592,7 @@ interface RuleOptions {
|
|
|
707
592
|
*
|
|
708
593
|
* @see [double-slash-comment-whitespace-inside](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-whitespace-inside)
|
|
709
594
|
*/
|
|
710
|
-
|
|
595
|
+
"scss/double-slash-comment-whitespace-inside": DoubleSlashCommentWhitespaceInsideOptions;
|
|
711
596
|
/**
|
|
712
597
|
* Disallow interpolation in `calc()`, `clamp()`, `min()`, and `max()` functions.
|
|
713
598
|
*
|
|
@@ -718,7 +603,7 @@ interface RuleOptions {
|
|
|
718
603
|
*
|
|
719
604
|
* @see [function-calculation-no-interpolation](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-calculation-no-interpolation)
|
|
720
605
|
*/
|
|
721
|
-
|
|
606
|
+
"scss/function-calculation-no-interpolation": FunctionCalculationNoInterpolationOptions;
|
|
722
607
|
/**
|
|
723
608
|
* Encourage the use of the [color.channel](https://sass-lang.com/documentation/modules/color#channel) function over related deprecated color functions:
|
|
724
609
|
*
|
|
@@ -742,7 +627,7 @@ interface RuleOptions {
|
|
|
742
627
|
*
|
|
743
628
|
* @see [function-color-channel](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-color-channel)
|
|
744
629
|
*/
|
|
745
|
-
|
|
630
|
+
"scss/function-color-channel": FunctionColorChannelOptions;
|
|
746
631
|
/**
|
|
747
632
|
* Encourage the use of the [scale-color](https://sass-lang.com/documentation/modules/color#scale-color) over:
|
|
748
633
|
*
|
|
@@ -757,13 +642,13 @@ interface RuleOptions {
|
|
|
757
642
|
*
|
|
758
643
|
* @see [function-color-relative](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-color-relative)
|
|
759
644
|
*/
|
|
760
|
-
|
|
645
|
+
"scss/function-color-relative": FunctionColorRelativeOptions;
|
|
761
646
|
/**
|
|
762
647
|
* Specify a list of disallowed functions.
|
|
763
648
|
*
|
|
764
649
|
* @see [function-disallowed-list](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-disallowed-list)
|
|
765
650
|
*/
|
|
766
|
-
|
|
651
|
+
"scss/function-disallowed-list": FunctionDisallowedListOptions;
|
|
767
652
|
/**
|
|
768
653
|
* Disallow unknown functions. Should be used **instead of** Stylelint's [function-no-unknown](https://stylelint.io/user-guide/rules/function-no-unknown).
|
|
769
654
|
*
|
|
@@ -785,19 +670,19 @@ interface RuleOptions {
|
|
|
785
670
|
*
|
|
786
671
|
* @see [function-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-no-unknown)
|
|
787
672
|
*/
|
|
788
|
-
|
|
673
|
+
"scss/function-no-unknown": FunctionNoUnknownOptions;
|
|
789
674
|
/**
|
|
790
675
|
* Disallow quoted strings inside the [quote function](https://sass-lang.com/documentation/modules/string#quote)
|
|
791
676
|
*
|
|
792
677
|
* @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
678
|
*/
|
|
794
|
-
|
|
679
|
+
"scss/function-quote-no-quoted-strings-inside": FunctionQuoteNoQuotedStringsInsideOptions;
|
|
795
680
|
/**
|
|
796
681
|
* Disallow unquoted strings inside the [unquote function](https://sass-lang.com/documentation/modules/string#unquote)
|
|
797
682
|
*
|
|
798
683
|
* @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
684
|
*/
|
|
800
|
-
|
|
685
|
+
"scss/function-unquote-no-unquoted-strings-inside": FunctionUnquoteNoUnquotedStringsInsideOptions;
|
|
801
686
|
/**
|
|
802
687
|
* Disallow leading underscore in partial names in `@import`, `@use`, `@forward`,
|
|
803
688
|
* and [`meta.load-css`](https://sass-lang.com/documentation/modules/meta/#load-css) `$url` parameter.
|
|
@@ -810,7 +695,7 @@ interface RuleOptions {
|
|
|
810
695
|
*
|
|
811
696
|
* @see [load-no-partial-leading-underscore](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/load-no-partial-leading-underscore)
|
|
812
697
|
*/
|
|
813
|
-
|
|
698
|
+
"scss/load-no-partial-leading-underscore": LoadNoPartialLeadingUnderscoreOptions;
|
|
814
699
|
/**
|
|
815
700
|
* Require or disallow extension in `@import`, `@use`, `@forward`, and `[meta.load-css]` commands.
|
|
816
701
|
*
|
|
@@ -824,43 +709,43 @@ interface RuleOptions {
|
|
|
824
709
|
*
|
|
825
710
|
* @see [load-partial-extension](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/load-partial-extension)
|
|
826
711
|
*/
|
|
827
|
-
|
|
712
|
+
"scss/load-partial-extension": LoadPartialExtensionOptions;
|
|
828
713
|
/**
|
|
829
714
|
* Require quoted keys in Sass maps.
|
|
830
715
|
*
|
|
831
716
|
* @see [map-keys-quotes](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/map-keys-quotes)
|
|
832
717
|
*/
|
|
833
|
-
|
|
718
|
+
"scss/map-keys-quotes": MapKeysQuotesOptions;
|
|
834
719
|
/**
|
|
835
720
|
* Require a media feature value be a `$`-variable or disallow `$`-variables in media feature values.
|
|
836
721
|
*
|
|
837
722
|
* @see [media-feature-value-dollar-variable](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/media-feature-value-dollar-variable)
|
|
838
723
|
*/
|
|
839
|
-
|
|
724
|
+
"scss/media-feature-value-dollar-variable": MediaFeatureValueDollarVariableOptions;
|
|
840
725
|
/**
|
|
841
726
|
* Disallow dollar variables within a stylesheet.
|
|
842
727
|
*
|
|
843
728
|
* @see [no-dollar-variables](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-dollar-variables)
|
|
844
729
|
*/
|
|
845
|
-
|
|
730
|
+
"scss/no-dollar-variables": NoDollarVariablesOptions;
|
|
846
731
|
/**
|
|
847
732
|
* Disallow duplicate dollar variables within a stylesheet.
|
|
848
733
|
*
|
|
849
734
|
* @see [no-duplicate-dollar-variables](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-dollar-variables)
|
|
850
735
|
*/
|
|
851
|
-
|
|
736
|
+
"scss/no-duplicate-dollar-variables": NoDuplicateDollarVariablesOptions;
|
|
852
737
|
/**
|
|
853
738
|
* Disallow duplicate `@import`, `@use` and `@forward` rules.
|
|
854
739
|
*
|
|
855
740
|
* @see [no-duplicate-load-rules](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-load-rules)
|
|
856
741
|
*/
|
|
857
|
-
|
|
742
|
+
"scss/no-duplicate-load-rules": NoDuplicateLoadRulesOptions;
|
|
858
743
|
/**
|
|
859
744
|
* Disallow duplicate mixins within a stylesheet.
|
|
860
745
|
*
|
|
861
746
|
* @see [no-duplicate-mixins](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-mixins)
|
|
862
747
|
*/
|
|
863
|
-
|
|
748
|
+
"scss/no-duplicate-mixins": NoDuplicateMixinsOptions;
|
|
864
749
|
/**
|
|
865
750
|
* Disallows the use of global function names, as these global functions are now located inside built-in Sass modules.
|
|
866
751
|
*
|
|
@@ -870,7 +755,7 @@ interface RuleOptions {
|
|
|
870
755
|
*
|
|
871
756
|
* @see [no-global-function-names](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-global-function-names)
|
|
872
757
|
*/
|
|
873
|
-
|
|
758
|
+
"scss/no-global-function-names": NoGlobalFunctionNamesOptions;
|
|
874
759
|
/**
|
|
875
760
|
* Disallow unused private members.
|
|
876
761
|
*
|
|
@@ -885,7 +770,7 @@ interface RuleOptions {
|
|
|
885
770
|
*
|
|
886
771
|
* @see [no-unused-private-members](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/no-unused-private-members)
|
|
887
772
|
*/
|
|
888
|
-
|
|
773
|
+
"scss/no-unused-private-members": NoUnusedPrivateMembersOptions;
|
|
889
774
|
/**
|
|
890
775
|
* Disallow linebreaks after Sass operators.
|
|
891
776
|
*
|
|
@@ -902,7 +787,7 @@ interface RuleOptions {
|
|
|
902
787
|
*
|
|
903
788
|
* @see [operator-no-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-newline-after)
|
|
904
789
|
*/
|
|
905
|
-
|
|
790
|
+
"scss/operator-no-newline-after": OperatorNoNewlineAfterOptions;
|
|
906
791
|
/**
|
|
907
792
|
* Disallow linebreaks before Sass operators.
|
|
908
793
|
*
|
|
@@ -919,7 +804,7 @@ interface RuleOptions {
|
|
|
919
804
|
*
|
|
920
805
|
* @see [operator-no-newline-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-newline-before)
|
|
921
806
|
*/
|
|
922
|
-
|
|
807
|
+
"scss/operator-no-newline-before": OperatorNoNewlineBeforeOptions;
|
|
923
808
|
/**
|
|
924
809
|
* Disallow unspaced operators in Sass operations.
|
|
925
810
|
*
|
|
@@ -936,7 +821,7 @@ interface RuleOptions {
|
|
|
936
821
|
*
|
|
937
822
|
* @see [operator-no-unspaced](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-unspaced)
|
|
938
823
|
*/
|
|
939
|
-
|
|
824
|
+
"scss/operator-no-unspaced": OperatorNoUnspacedOptions;
|
|
940
825
|
/**
|
|
941
826
|
* Disallow non-CSS `@import`s in partial files.
|
|
942
827
|
*
|
|
@@ -951,25 +836,25 @@ interface RuleOptions {
|
|
|
951
836
|
*
|
|
952
837
|
* @see [partial-no-import](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/partial-no-import)
|
|
953
838
|
*/
|
|
954
|
-
|
|
839
|
+
"scss/partial-no-import": PartialNoImportOptions;
|
|
955
840
|
/**
|
|
956
841
|
* Specify a pattern for `%`-placeholders.
|
|
957
842
|
*
|
|
958
843
|
* @see [percent-placeholder-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/percent-placeholder-pattern)
|
|
959
844
|
*/
|
|
960
|
-
|
|
845
|
+
"scss/percent-placeholder-pattern": PercentPlaceholderPatternOptions;
|
|
961
846
|
/**
|
|
962
847
|
* Specify a pattern for class selectors.
|
|
963
848
|
*
|
|
964
849
|
* @see [selector-class-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-class-pattern/)
|
|
965
850
|
*/
|
|
966
|
-
|
|
851
|
+
"scss/selector-class-pattern": SelectorClassPatternOptions;
|
|
967
852
|
/**
|
|
968
853
|
* Require or disallow nesting of combinators in selectors
|
|
969
854
|
*
|
|
970
855
|
* @see [selector-nest-combinators](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-nest-combinators)
|
|
971
856
|
*/
|
|
972
|
-
|
|
857
|
+
"scss/selector-nest-combinators": SelectorNestCombinatorsOptions;
|
|
973
858
|
/**
|
|
974
859
|
* Disallow unknown properties. Should be used instead of Stylelint's [property-no-unknown](https://stylelint.io/user-guide/rules/property-no-unknown).
|
|
975
860
|
*
|
|
@@ -984,25 +869,24 @@ interface RuleOptions {
|
|
|
984
869
|
*
|
|
985
870
|
* @see [property-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/property-no-unknown)
|
|
986
871
|
*/
|
|
987
|
-
|
|
872
|
+
"scss/property-no-unknown": PropertyNoUnknownOptions;
|
|
988
873
|
/**
|
|
989
874
|
* Disallow redundant nesting selectors (`&`).
|
|
990
875
|
*
|
|
991
876
|
* @see [selector-no-redundant-nesting-selector](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-redundant-nesting-selector)
|
|
992
877
|
*/
|
|
993
|
-
|
|
878
|
+
"scss/selector-no-redundant-nesting-selector": SelectorNoRedundantNestingSelectorOptions;
|
|
994
879
|
/**
|
|
995
880
|
* Disallow union class names with the parent selector (`&`).
|
|
996
881
|
*
|
|
997
882
|
* @see [selector-no-union-class-name](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-union-class-name)
|
|
998
883
|
*/
|
|
999
|
-
|
|
884
|
+
"scss/selector-no-union-class-name": SelectorNoUnionClassNameOptions;
|
|
1000
885
|
}
|
|
1001
|
-
|
|
1002
|
-
//#region src/index.d.ts
|
|
1003
|
-
declare module 'stylelint-define-config' {
|
|
886
|
+
declare module "stylelint-define-config" {
|
|
1004
887
|
interface CustomPlugins extends Plugins {}
|
|
1005
888
|
interface CustomExtends extends Extends {}
|
|
1006
889
|
interface CustomSyntax extends Syntax {}
|
|
1007
890
|
interface CustomRuleOptions extends RuleOptions {}
|
|
1008
|
-
}
|
|
891
|
+
}
|
|
892
|
+
export type { Extends, Plugins, RuleOptions, Syntax };
|
package/package.json
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylelint-types/stylelint-scss",
|
|
3
|
-
"
|
|
4
|
-
"version": "7.0.1",
|
|
3
|
+
"version": "7.5.0",
|
|
5
4
|
"description": "TypeScript definitions for stylelint-define-config",
|
|
6
|
-
"author": "pengzhanbo <volodymyr@foxmail.com> (https://github.com/pengzhanbo)",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"homepage": "https://github.com/stylelint-types/stylelint-scss#readme",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/stylelint-types/stylelint-scss.git"
|
|
12
|
-
},
|
|
13
|
-
"bugs": "https://github.com/stylelint-types/stylelint-scss/issues",
|
|
14
5
|
"keywords": [
|
|
15
6
|
"config",
|
|
16
|
-
"scss",
|
|
17
7
|
"configuration",
|
|
18
8
|
"define-config",
|
|
19
|
-
"
|
|
9
|
+
"scss",
|
|
20
10
|
"stylelint",
|
|
11
|
+
"stylelint-config",
|
|
21
12
|
"stylelint-scss",
|
|
22
13
|
"stylelintconfig",
|
|
23
14
|
"typed",
|
|
24
15
|
"typescript"
|
|
25
16
|
],
|
|
17
|
+
"homepage": "https://github.com/stylelint-types/stylelint-scss#readme",
|
|
18
|
+
"bugs": "https://github.com/stylelint-types/stylelint-scss/issues",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "pengzhanbo <volodymyr@foxmail.com> (https://github.com/pengzhanbo)",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/stylelint-types/stylelint-scss.git"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"lib"
|
|
27
|
+
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"main": "lib/index.js",
|
|
26
30
|
"exports": {
|
|
27
31
|
".": {
|
|
28
32
|
"types": "./lib/index.d.ts",
|
|
@@ -32,44 +36,44 @@
|
|
|
32
36
|
"types": "./lib/types.d.ts"
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public",
|
|
41
|
+
"provenance": true
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@pengzhanbo/oxc-config": "^2.15.0",
|
|
45
|
+
"bumpp": "^12.3.0",
|
|
46
|
+
"conventional-changelog": "^8.1.3",
|
|
47
|
+
"conventional-changelog-angular": "^9.4.0",
|
|
48
|
+
"oxfmt": "^0.79.0",
|
|
49
|
+
"oxlint": "^1.94.0",
|
|
50
|
+
"oxlint-tsgolint": "^7.0.2007",
|
|
51
|
+
"stylelint": "^18.0.0",
|
|
52
|
+
"stylelint-define-config": "^18.0.0",
|
|
53
|
+
"stylelint-scss": "^7.5.0",
|
|
54
|
+
"tsdown": "^0.23.7",
|
|
55
|
+
"typescript": "^7.0.2"
|
|
43
56
|
},
|
|
44
57
|
"peerDependencies": {
|
|
45
|
-
"stylelint": "
|
|
46
|
-
"stylelint-define-config": "
|
|
58
|
+
"stylelint": "^18.0.0",
|
|
59
|
+
"stylelint-define-config": "^18.0.0"
|
|
47
60
|
},
|
|
48
61
|
"peerDependenciesMeta": {
|
|
49
62
|
"stylelint": {
|
|
50
63
|
"optional": true
|
|
51
64
|
}
|
|
52
65
|
},
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"eslint": "^10.3.0",
|
|
58
|
-
"stylelint": "^17.10.0",
|
|
59
|
-
"stylelint-define-config": "^17.9.0",
|
|
60
|
-
"stylelint-scss": "^7.0.0",
|
|
61
|
-
"tsdown": "^0.21.10",
|
|
62
|
-
"typescript": "^6.0.3"
|
|
63
|
-
},
|
|
64
|
-
"publishConfig": {
|
|
65
|
-
"access": "public",
|
|
66
|
-
"provenance": true
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=20.19.0",
|
|
68
|
+
"npm": ">=9.0.0",
|
|
69
|
+
"pnpm": ">=10.0.0"
|
|
67
70
|
},
|
|
68
71
|
"scripts": {
|
|
69
|
-
"lint": "
|
|
72
|
+
"lint": "oxlint . --type-check --type-aware && oxfmt . --check",
|
|
73
|
+
"format": "oxlint . --type-check --type-aware --fix && oxfmt .",
|
|
70
74
|
"build": "tsdown",
|
|
71
75
|
"release:publish": "pnpm publish",
|
|
72
|
-
"release:changelog": "conventional-changelog -p angular
|
|
76
|
+
"release:changelog": "conventional-changelog -p angular && oxfmt ./CHANGELOG.md",
|
|
73
77
|
"release": "bumpp package.json --execute=\"pnpm release:changelog\" --commit --all --push --tag"
|
|
74
78
|
}
|
|
75
79
|
}
|