@stylelint-types/stylelint-stylistic 5.3.0 → 6.0.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/lib/index.d.ts +133 -162
- package/package.json +12 -12
package/lib/index.d.ts
CHANGED
|
@@ -1,93 +1,54 @@
|
|
|
1
|
-
import { AtRules, LiteralUnion, RegExpLike, RuleConfig } from "stylelint-define-config";
|
|
2
|
-
|
|
1
|
+
import { Arrayable, AtRules, LiteralUnion, RegExpLike, RuleConfig } from "stylelint-define-config";
|
|
2
|
+
type AspectRatioNotationOptions = RuleConfig<'ratio' | 'number-where-possible' | 'as-written', [], {
|
|
3
|
+
/**
|
|
4
|
+
* The two numbers of the ratio must be the smallest pair of whole numbers the same ratio can be written with.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
smallestIntegers?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Leave the `<ratio>` of a media feature alone, and read the value of the property only.
|
|
10
|
+
*/
|
|
11
|
+
ignore?: LiteralUnion<'at-rules'>[];
|
|
12
|
+
}>;
|
|
3
13
|
type AtRuleNameCaseOptions = RuleConfig<'lower' | 'upper', [name: string, expectedName: string]>;
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region src/rules/at-rule-name-newline-after.d.ts
|
|
6
14
|
type AtRuleNameNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line'>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/rules/at-rule-name-space-after.d.ts
|
|
9
15
|
type AtRuleNameSpaceAfterOptions = RuleConfig<'always' | 'always-single-line'>;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/rules/at-rule-semicolon-newline-after.d.ts
|
|
12
16
|
type AtRuleSemicolonNewlineAfterOptions = RuleConfig<'always'>;
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/rules/at-rule-semicolon-space-before.d.ts
|
|
15
17
|
type AtRuleSemicolonSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region src/rules/block-closing-brace-empty-line-before.d.ts
|
|
18
18
|
type BlockClosingBraceEmptyLineBeforeOptions = RuleConfig<'always-multi-line' | 'never', [], {
|
|
19
|
-
except?: LiteralUnion<'after-closing-brace'>[];
|
|
19
|
+
except?: LiteralUnion<'after-closing-brace' | 'last-nested'>[];
|
|
20
20
|
}>;
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/rules/block-closing-brace-newline-after.d.ts
|
|
23
21
|
type BlockClosingBraceNewlineAfterOptions = RuleConfig<'always' | 'always-single-line' | 'never-single-line' | 'always-multi-line' | 'never-multi-line', [], {
|
|
24
22
|
ignoreAtRules?: AtRules[];
|
|
25
23
|
}>;
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/rules/block-closing-brace-newline-before.d.ts
|
|
28
24
|
type BlockClosingBraceNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/rules/block-closing-brace-space-after.d.ts
|
|
31
25
|
type BlockClosingBraceSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line' | 'always-multi-line' | 'never-multi-line'>;
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/rules/block-closing-brace-space-before.d.ts
|
|
34
26
|
type BlockClosingBraceSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line' | 'always-multi-line' | 'never-multi-line'>;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/rules/block-opening-brace-newline-after.d.ts
|
|
37
27
|
type BlockOpeningBraceNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line', [], {
|
|
38
28
|
ignore?: LiteralUnion<'rules'>[];
|
|
39
29
|
}>;
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/rules/block-opening-brace-newline-before.d.ts
|
|
42
30
|
type BlockOpeningBraceNewlineBeforeOptions = RuleConfig<'always' | 'always-single-line' | 'never-single-line' | 'always-multi-line' | 'never-multi-line'>;
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/rules/block-opening-brace-space-after.d.ts
|
|
45
31
|
type BlockOpeningBraceSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line' | 'always-multi-line' | 'never-multi-line', [], {
|
|
46
32
|
ignore?: LiteralUnion<'at-rules'>[];
|
|
47
33
|
}>;
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/rules/block-opening-brace-space-before.d.ts
|
|
50
34
|
type BlockOpeningBraceSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line' | 'always-multi-line' | 'never-multi-line', [], {
|
|
51
35
|
ignoreAtRules?: (AtRules | RegExp)[];
|
|
52
36
|
ignoreSelectors?: RegExpLike[];
|
|
53
37
|
}>;
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/rules/color-hex-case.d.ts
|
|
56
38
|
type ColorHexCaseOptions = RuleConfig<'lower' | 'upper', [value: string, expected: string]>;
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region src/rules/declaration-bang-space-after.d.ts
|
|
59
39
|
type DeclarationBangSpaceAfterOptions = RuleConfig<'always' | 'never'>;
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/rules/declaration-bang-space-before.d.ts
|
|
62
40
|
type DeclarationBangSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/rules/declaration-block-semicolon-newline-after.d.ts
|
|
65
41
|
type DeclarationBlockSemicolonNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/rules/declaration-block-semicolon-newline-before.d.ts
|
|
68
42
|
type DeclarationBlockSemicolonNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/rules/declaration-block-semicolon-space-after.d.ts
|
|
71
43
|
type DeclarationBlockSemicolonSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/rules/declaration-block-semicolon-space-before.d.ts
|
|
74
44
|
type DeclarationBlockSemicolonSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
75
|
-
|
|
76
|
-
//#region src/rules/declaration-block-trailing-semicolon.d.ts
|
|
45
|
+
type DeclarationBlockSingleLineMaxDeclarationsOptions = RuleConfig<number>;
|
|
77
46
|
type DeclarationBlockTrailingSemicolonOptions = RuleConfig<'always' | 'never', [], {
|
|
78
47
|
ignore?: LiteralUnion<'single-declaration'>[];
|
|
79
48
|
}>;
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/rules/declaration-colon-newline-after.d.ts
|
|
82
49
|
type DeclarationColonNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line'>;
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region src/rules/declaration-colon-space-after.d.ts
|
|
85
50
|
type DeclarationColonSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line'>;
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region src/rules/declaration-colon-space-before.d.ts
|
|
88
51
|
type DeclarationColonSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/rules/function-comma-newline-after.d.ts
|
|
91
52
|
type FunctionCommaNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line', [], {
|
|
92
53
|
/**
|
|
93
54
|
* Ignore the commas of specified functions, including the commas of any function nested within them.
|
|
@@ -96,8 +57,6 @@ type FunctionCommaNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line
|
|
|
96
57
|
*/
|
|
97
58
|
ignoreFunctions?: RegExpLike[];
|
|
98
59
|
}>;
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/rules/function-comma-newline-before.d.ts
|
|
101
60
|
type FunctionCommaNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line', [], {
|
|
102
61
|
/**
|
|
103
62
|
* Ignore the commas of specified functions, including the commas of any function nested within them.
|
|
@@ -106,8 +65,6 @@ type FunctionCommaNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-lin
|
|
|
106
65
|
*/
|
|
107
66
|
ignoreFunctions?: RegExpLike[];
|
|
108
67
|
}>;
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region src/rules/function-comma-space-after.d.ts
|
|
111
68
|
type FunctionCommaSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line', [], {
|
|
112
69
|
/**
|
|
113
70
|
* Ignore the commas of specified functions, including the commas of any function nested within them.
|
|
@@ -116,8 +73,6 @@ type FunctionCommaSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-si
|
|
|
116
73
|
*/
|
|
117
74
|
ignoreFunctions?: RegExpLike[];
|
|
118
75
|
}>;
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/rules/function-comma-space-before.d.ts
|
|
121
76
|
type FunctionCommaSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line', [], {
|
|
122
77
|
/**
|
|
123
78
|
* Ignore the commas of specified functions, including the commas of any function nested within them.
|
|
@@ -126,20 +81,10 @@ type FunctionCommaSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-s
|
|
|
126
81
|
*/
|
|
127
82
|
ignoreFunctions?: RegExpLike[];
|
|
128
83
|
}>;
|
|
129
|
-
//#endregion
|
|
130
|
-
//#region src/rules/function-max-empty-lines.d.ts
|
|
131
84
|
type FunctionMaxEmptyLinesOptions = RuleConfig<number, [primary: number]>;
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/rules/function-parentheses-newline-inside.d.ts
|
|
134
85
|
type FunctionParenthesesNewlineInsideOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region src/rules/function-parentheses-space-inside.d.ts
|
|
137
86
|
type FunctionParenthesesSpaceInsideOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/rules/function-whitespace-after.d.ts
|
|
140
87
|
type FunctionWhitespaceAfterOptions = RuleConfig<'always' | 'never'>;
|
|
141
|
-
//#endregion
|
|
142
|
-
//#region src/rules/indentation.d.ts
|
|
143
88
|
type IndentationOptions = RuleConfig<LiteralUnion<2 | 4, number> | 'tab', [expectation: string], {
|
|
144
89
|
baseIndentLevel?: number | 'auto';
|
|
145
90
|
indentInsideParens?: LiteralUnion<'twice' | 'once-at-root-twice-in-block'>;
|
|
@@ -147,152 +92,132 @@ type IndentationOptions = RuleConfig<LiteralUnion<2 | 4, number> | 'tab', [expec
|
|
|
147
92
|
except?: LiteralUnion<'block' | 'param' | 'value'>[];
|
|
148
93
|
ignore?: LiteralUnion<'inside-parens' | 'param' | 'value'>[];
|
|
149
94
|
}>;
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/rules/linebreaks.d.ts
|
|
152
95
|
type LinebreaksOptions = RuleConfig<number, [emptyLines: string]>;
|
|
153
|
-
//#endregion
|
|
154
|
-
//#region src/rules/max-empty-lines.d.ts
|
|
155
96
|
type MaxEmptyLinesOptions = RuleConfig<LiteralUnion<1 | 2, number>, [], {
|
|
156
97
|
ignore?: LiteralUnion<'comments'>[];
|
|
157
98
|
}>;
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/rules/max-line-length.d.ts
|
|
160
99
|
type MaxLineLengthOptions = RuleConfig<number, [lineLength: number], {
|
|
100
|
+
/**
|
|
101
|
+
* Only enforce the line-length limit for lines that are not comments.
|
|
102
|
+
*/
|
|
161
103
|
ignore?: LiteralUnion<'non-comments' | 'comments'>[];
|
|
104
|
+
/**
|
|
105
|
+
* gnore any line that matches the given regex pattern,
|
|
106
|
+
* regardless of whether it is comment or not.
|
|
107
|
+
* The regex may be passed as a string (for JSON configuration) by enclosing in
|
|
108
|
+
* forward-slashes, or an ordinary JavaScript RegExp may be used.
|
|
109
|
+
*/
|
|
162
110
|
ignorePattern?: RegExpLike[];
|
|
111
|
+
/**
|
|
112
|
+
* Measure a tab as reaching the next tab stop of the given width,
|
|
113
|
+
* the way an editor with that tab size shows it, instead of as a single character.
|
|
114
|
+
*/
|
|
115
|
+
tabSize?: number;
|
|
163
116
|
}>;
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/rules/media-feature-colon-space-after.d.ts
|
|
166
117
|
type MediaFeatureColonSpaceAfterOptions = RuleConfig<'always' | 'never'>;
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/rules/media-feature-colon-space-before.d.ts
|
|
169
118
|
type MediaFeatureColonSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region src/rules/media-feature-name-case.d.ts
|
|
172
119
|
type MediaFeatureNameCaseOptions = RuleConfig<'lower' | 'upper', [name: string, expectedName: string]>;
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/rules/media-feature-parentheses-space-inside.d.ts
|
|
175
120
|
type MediaFeatureParenthesesSpaceInsideOptions = RuleConfig<'always' | 'never'>;
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region src/rules/media-feature-range-operator-space-after.d.ts
|
|
178
121
|
type MediaFeatureRangeOperatorSpaceAfterOptions = RuleConfig<'always' | 'never'>;
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region src/rules/media-feature-range-operator-space-before.d.ts
|
|
181
122
|
type MediaFeatureRangeOperatorSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
182
|
-
|
|
183
|
-
|
|
123
|
+
type MediaFeatureSlashSpaceAfterOptions = RuleConfig<'always' | 'never'>;
|
|
124
|
+
type MediaFeatureSlashSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
184
125
|
type MediaQueryListCommaNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
185
|
-
//#endregion
|
|
186
|
-
//#region src/rules/media-query-list-comma-newline-before.d.ts
|
|
187
126
|
type MediaQueryListCommaNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region src/rules/media-query-list-comma-space-after.d.ts
|
|
190
127
|
type MediaQueryListCommaSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/rules/media-query-list-comma-space-before.d.ts
|
|
193
128
|
type MediaQueryListCommaSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/rules/named-grid-areas-alignment.d.ts
|
|
196
129
|
type NamedGridAreasAlignmentOptions = RuleConfig<true, [], {
|
|
130
|
+
/**
|
|
131
|
+
* Specifies the number of spaces between cell tokens
|
|
132
|
+
* @default 1
|
|
133
|
+
*/
|
|
197
134
|
gap?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Whether to align an ending quotes
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
198
139
|
alignQuotes?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the line names and the sizes beside the rows of a grid-template or grid shorthand
|
|
142
|
+
* are laid out as columns of a table
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
alignColumns?: boolean;
|
|
199
146
|
}>;
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region src/rules/no-empty-first-line.d.ts
|
|
202
147
|
type NoEmptyFirstLineOptions = RuleConfig<true>;
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/rules/no-eol-whitespace.d.ts
|
|
205
148
|
type NoEolWhitespaceOptions = RuleConfig<true, [], {
|
|
206
149
|
ignore?: LiteralUnion<'empty-lines'>[];
|
|
207
150
|
}>;
|
|
208
|
-
//#endregion
|
|
209
|
-
//#region src/rules/no-extra-semicolons.d.ts
|
|
210
151
|
type NoExtraSemicolonsOptions = RuleConfig<true>;
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/rules/no-missing-end-of-source-newline.d.ts
|
|
213
152
|
type NoMissingEndOfSourceNewlineOptions = RuleConfig<true>;
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region src/rules/no-multiple-whitespaces.d.ts
|
|
216
153
|
type NoMultipleWhitespacesOptions = RuleConfig<true>;
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/rules/number-leading-zero.d.ts
|
|
219
154
|
type NumberLeadingZeroOptions = RuleConfig<'always' | 'never'>;
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/rules/number-no-trailing-zeros.d.ts
|
|
222
155
|
type NumberNoTrailingZerosOptions = RuleConfig<true>;
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/rules/property-case.d.ts
|
|
225
156
|
type PropertyCaseOptions = RuleConfig<'lower' | 'upper', [property: string, expectedProperty: string]>;
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/rules/selector-attribute-brackets-space-inside.d.ts
|
|
228
157
|
type SelectorAttributeBracketsSpaceInsideOptions = RuleConfig<'always' | 'never'>;
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region src/rules/selector-attribute-operator-space-after.d.ts
|
|
231
158
|
type SelectorAttributeOperatorSpaceAfterOptions = RuleConfig<'always' | 'never'>;
|
|
232
|
-
//#endregion
|
|
233
|
-
//#region src/rules/selector-attribute-operator-space-before.d.ts
|
|
234
159
|
type SelectorAttributeOperatorSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region src/rules/selector-combinator-space-after.d.ts
|
|
237
160
|
type SelectorCombinatorSpaceAfterOptions = RuleConfig<'always' | 'never'>;
|
|
238
|
-
//#endregion
|
|
239
|
-
//#region src/rules/selector-combinator-space-before.d.ts
|
|
240
161
|
type SelectorCombinatorSpaceBeforeOptions = RuleConfig<'always' | 'never'>;
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region src/rules/selector-descendant-combinator-no-non-space.d.ts
|
|
243
162
|
type SelectorDescendantCombinatorNoNonSpaceOptions = RuleConfig<true, [value: string]>;
|
|
244
|
-
//#endregion
|
|
245
|
-
//#region src/rules/selector-list-comma-newline-after.d.ts
|
|
246
163
|
type SelectorListCommaNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
247
|
-
//#endregion
|
|
248
|
-
//#region src/rules/selector-list-comma-newline-before.d.ts
|
|
249
164
|
type SelectorListCommaNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/rules/selector-list-comma-space-after.d.ts
|
|
252
165
|
type SelectorListCommaSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
253
|
-
//#endregion
|
|
254
|
-
//#region src/rules/selector-list-comma-space-before.d.ts
|
|
255
166
|
type SelectorListCommaSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/rules/selector-max-empty-lines.d.ts
|
|
258
167
|
type SelectorMaxEmptyLinesOptions = RuleConfig<LiteralUnion<0 | 1, number>, [max: number]>;
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/rules/selector-pseudo-class-case.d.ts
|
|
261
168
|
type SelectorPseudoClassCaseOptions = RuleConfig<'lower' | 'upper', [pseudoClass: string, expectedPseudoClass: string]>;
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/rules/selector-pseudo-class-parentheses-space-inside.d.ts
|
|
264
169
|
type SelectorPseudoClassParenthesesSpaceInsideOptions = RuleConfig<'always' | 'never'>;
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region src/rules/selector-pseudo-element-case.d.ts
|
|
267
170
|
type SelectorPseudoElementCaseOptions = RuleConfig<'lower' | 'upper', [pseudoElement: string, expectedPseudoElement: string]>;
|
|
268
|
-
//#endregion
|
|
269
|
-
//#region src/rules/string-quotes.d.ts
|
|
270
171
|
type StringQuotesOptions = RuleConfig<'single' | 'double', [quotes: string], {
|
|
271
172
|
avoidEscape?: boolean;
|
|
272
173
|
}>;
|
|
273
|
-
//#endregion
|
|
274
|
-
//#region src/rules/unicode-bom.d.ts
|
|
275
174
|
type UnicodeBomOptions = RuleConfig<'always' | 'never'>;
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region src/rules/unit-case.d.ts
|
|
278
175
|
type UnitCaseOptions = RuleConfig<'lower' | 'upper', [unit: string, expectedUnit: string]>;
|
|
279
|
-
//#endregion
|
|
280
|
-
//#region src/rules/value-list-comma-newline-after.d.ts
|
|
281
176
|
type ValueListCommaNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/rules/value-list-comma-newline-before.d.ts
|
|
284
177
|
type ValueListCommaNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line'>;
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region src/rules/value-list-comma-space-after.d.ts
|
|
287
178
|
type ValueListCommaSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region src/rules/value-list-comma-space-before.d.ts
|
|
290
179
|
type ValueListCommaSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line'>;
|
|
291
|
-
//#endregion
|
|
292
|
-
//#region src/rules/value-list-max-empty-lines.d.ts
|
|
293
180
|
type ValueListMaxEmptyLinesOptions = RuleConfig<number, [max: number]>;
|
|
294
|
-
|
|
295
|
-
|
|
181
|
+
type ValueSlashNewlineAfterOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line', [], {
|
|
182
|
+
/**
|
|
183
|
+
* Ignore the solidi inside the specified functions, including those of any function nested within them.
|
|
184
|
+
*/
|
|
185
|
+
ignoreFunctions?: RegExpLike[];
|
|
186
|
+
/**
|
|
187
|
+
* Ignore the solidi in the values of the specified properties.
|
|
188
|
+
*/
|
|
189
|
+
ignoreProperties?: RegExpLike[];
|
|
190
|
+
}>;
|
|
191
|
+
type ValueSlashNewlineBeforeOptions = RuleConfig<'always' | 'always-multi-line' | 'never-multi-line', [], {
|
|
192
|
+
/**
|
|
193
|
+
* Ignore the solidi inside the specified functions, including those of any function nested within them.
|
|
194
|
+
*/
|
|
195
|
+
ignoreFunctions?: RegExpLike[];
|
|
196
|
+
/**
|
|
197
|
+
* Ignore the solidi in the values of the specified properties.
|
|
198
|
+
*/
|
|
199
|
+
ignoreProperties?: RegExpLike[];
|
|
200
|
+
}>;
|
|
201
|
+
type ValueSlashSpaceAfterOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line', [], {
|
|
202
|
+
/**
|
|
203
|
+
* Ignore the solidi inside the specified functions, including those of any function nested within them.
|
|
204
|
+
*/
|
|
205
|
+
ignoreFunctions?: RegExpLike[];
|
|
206
|
+
/**
|
|
207
|
+
* Ignore the solidi in the values of the specified properties.
|
|
208
|
+
*/
|
|
209
|
+
ignoreProperties?: RegExpLike[];
|
|
210
|
+
}>;
|
|
211
|
+
type ValueSlashSpaceBeforeOptions = RuleConfig<'always' | 'never' | 'always-single-line' | 'never-single-line', [], {
|
|
212
|
+
/**
|
|
213
|
+
* Ignore the solidi inside the specified functions, including those of any function nested within them.
|
|
214
|
+
*/
|
|
215
|
+
ignoreFunctions?: Arrayable<RegExpLike>;
|
|
216
|
+
/**
|
|
217
|
+
* Ignore the solidi in the values of the specified properties.
|
|
218
|
+
*/
|
|
219
|
+
ignoreProperties?: Arrayable<RegExpLike>;
|
|
220
|
+
}>;
|
|
296
221
|
interface Extends {
|
|
297
222
|
"@stylistic/stylelint-config": void;
|
|
298
223
|
}
|
|
@@ -300,6 +225,12 @@ interface Plugins {
|
|
|
300
225
|
"@stylistic/stylelint-plugin": void;
|
|
301
226
|
}
|
|
302
227
|
interface RuleOptions {
|
|
228
|
+
/**
|
|
229
|
+
* Specify the notation for the value of aspect-ratio.
|
|
230
|
+
*
|
|
231
|
+
* @see [aspect-ratio-notation](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/aspect-ratio-notation)
|
|
232
|
+
*/
|
|
233
|
+
"@stylistic/aspect-ratio-notation": AspectRatioNotationOptions;
|
|
303
234
|
/**
|
|
304
235
|
* Specify lowercase or uppercase for at-rules names.
|
|
305
236
|
*
|
|
@@ -426,6 +357,12 @@ interface RuleOptions {
|
|
|
426
357
|
* @see [declaration-block-semicolon-space-before](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/declaration-block-semicolon-space-before)
|
|
427
358
|
*/
|
|
428
359
|
"@stylistic/declaration-block-semicolon-space-before": DeclarationBlockSemicolonSpaceBeforeOptions;
|
|
360
|
+
/**
|
|
361
|
+
* Limit the number of declarations within a single-line declaration block.
|
|
362
|
+
*
|
|
363
|
+
* @see [declaration-block-single-line-max-declarations](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/declaration-block-single-line-max-declarations)
|
|
364
|
+
*/
|
|
365
|
+
"@stylistic/declaration-block-single-line-max-declarations": DeclarationBlockSingleLineMaxDeclarationsOptions;
|
|
429
366
|
/**
|
|
430
367
|
* Require or disallow a trailing semicolon within declaration blocks.
|
|
431
368
|
*
|
|
@@ -560,6 +497,18 @@ interface RuleOptions {
|
|
|
560
497
|
* @see [media-feature-range-operator-space-before](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/media-feature-range-operator-space-before)
|
|
561
498
|
*/
|
|
562
499
|
"@stylistic/media-feature-range-operator-space-before": MediaFeatureRangeOperatorSpaceBeforeOptions;
|
|
500
|
+
/**
|
|
501
|
+
* Require a single space or disallow whitespace after the solidus of a ratio in media features.
|
|
502
|
+
*
|
|
503
|
+
* @see [media-feature-slash-space-after](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/media-feature-slash-space-after)
|
|
504
|
+
*/
|
|
505
|
+
"@stylistic/media-feature-slash-space-after": MediaFeatureSlashSpaceAfterOptions;
|
|
506
|
+
/**
|
|
507
|
+
* Require a single space or disallow whitespace before the solidus of a ratio in media features.
|
|
508
|
+
*
|
|
509
|
+
* @see [media-feature-slash-space-before](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/media-feature-slash-space-before)
|
|
510
|
+
*/
|
|
511
|
+
"@stylistic/media-feature-slash-space-before": MediaFeatureSlashSpaceBeforeOptions;
|
|
563
512
|
/**
|
|
564
513
|
* Require a newline or disallow whitespace after the commas of media query lists.
|
|
565
514
|
*
|
|
@@ -770,12 +719,34 @@ interface RuleOptions {
|
|
|
770
719
|
* @see [value-list-max-empty-lines](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/value-list-max-empty-lines)
|
|
771
720
|
*/
|
|
772
721
|
"@stylistic/value-list-max-empty-lines": ValueListMaxEmptyLinesOptions;
|
|
722
|
+
/**
|
|
723
|
+
* Require a newline or disallow whitespace after the solidus that separates the parts of a value.
|
|
724
|
+
*
|
|
725
|
+
* @see [value-slash-newline-after](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/value-slash-newline-after)
|
|
726
|
+
*/
|
|
727
|
+
"@stylistic/value-slash-newline-after": ValueSlashNewlineAfterOptions;
|
|
728
|
+
/**
|
|
729
|
+
* Require a newline or disallow whitespace before the solidus that separates the parts of a value.
|
|
730
|
+
*
|
|
731
|
+
* @see [value-slash-newline-before](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/value-slash-newline-before)
|
|
732
|
+
*/
|
|
733
|
+
"@stylistic/value-slash-newline-before": ValueSlashNewlineBeforeOptions;
|
|
734
|
+
/**
|
|
735
|
+
* Require a single space or disallow whitespace after the solidus that separates the parts of a value.
|
|
736
|
+
*
|
|
737
|
+
* @see [value-slash-space-after](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/value-slash-space-after)
|
|
738
|
+
*/
|
|
739
|
+
"@stylistic/value-slash-space-after": ValueSlashSpaceAfterOptions;
|
|
740
|
+
/**
|
|
741
|
+
* Require a single space or disallow whitespace before the solidus that separates the parts of a value.
|
|
742
|
+
*
|
|
743
|
+
* @see [value-slash-space-before](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/value-slash-space-before)
|
|
744
|
+
*/
|
|
745
|
+
"@stylistic/value-slash-space-before": ValueSlashSpaceBeforeOptions;
|
|
773
746
|
}
|
|
774
|
-
//#endregion
|
|
775
|
-
//#region src/index.d.ts
|
|
776
747
|
declare module "stylelint-define-config" {
|
|
777
748
|
interface CustomPlugins extends Plugins {}
|
|
778
749
|
interface CustomExtends extends Extends {}
|
|
779
750
|
interface CustomRuleOptions extends RuleOptions {}
|
|
780
751
|
}
|
|
781
|
-
|
|
752
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylelint-types/stylelint-stylistic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "TypeScript definitions for stylelint-define-config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -42,22 +42,22 @@
|
|
|
42
42
|
"provenance": true
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@pengzhanbo/oxc-config": "^2.
|
|
46
|
-
"@stylistic/stylelint-plugin": "^
|
|
45
|
+
"@pengzhanbo/oxc-config": "^2.15.0",
|
|
46
|
+
"@stylistic/stylelint-plugin": "^6.0.1",
|
|
47
47
|
"bumpp": "^12.3.0",
|
|
48
48
|
"conventional-changelog": "^8.1.3",
|
|
49
49
|
"conventional-changelog-angular": "^9.4.0",
|
|
50
|
-
"oxfmt": "^0.
|
|
51
|
-
"oxlint": "^1.
|
|
52
|
-
"oxlint-tsgolint": "^7.0.
|
|
53
|
-
"stylelint": "^
|
|
54
|
-
"stylelint-define-config": "^
|
|
55
|
-
"tsdown": "^0.23.
|
|
50
|
+
"oxfmt": "^0.78.0",
|
|
51
|
+
"oxlint": "^1.93.0",
|
|
52
|
+
"oxlint-tsgolint": "^7.0.2006",
|
|
53
|
+
"stylelint": "^18.0.0",
|
|
54
|
+
"stylelint-define-config": "^18.0.0",
|
|
55
|
+
"tsdown": "^0.23.7",
|
|
56
56
|
"typescript": "^7.0.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"stylelint": ">=
|
|
60
|
-
"stylelint-define-config": ">=
|
|
59
|
+
"stylelint": ">=18",
|
|
60
|
+
"stylelint-define-config": ">=18"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"stylelint": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=20.19.0",
|
|
69
69
|
"npm": ">=9.0.0",
|
|
70
|
-
"pnpm": ">=
|
|
70
|
+
"pnpm": ">=10.0.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"lint": "oxlint . --type-check --type-aware && oxfmt . --check",
|