@quentinhsu/biome-config 0.3.5 → 0.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/dist/131.mjs +387 -0
- package/dist/build.mjs +108 -360
- package/dist/index.jsonc +1 -1
- package/dist/index.mjs +1 -358
- package/dist/next.jsonc +1 -1
- package/dist/nuxt.jsonc +31 -2
- package/dist/react.jsonc +1 -1
- package/dist/rslib-runtime.mjs +38 -0
- package/dist/types/scripts/tag-release.d.ts +1 -0
- package/dist/types/scripts/validate-config-properties.d.ts +1 -0
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +12 -10
- package/dist/types/src/generated/biome/{no-label-var-options.d.ts → no-comment-text-options.d.ts} +217 -532
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +74 -75
- package/dist/types/src/generated/biome/{use-qwik-classlist-configuration.d.ts → no-sync-scripts-configuration.d.ts} +56 -112
- package/dist/types/src/generated/biome/{use-focusable-interactive-configuration.d.ts → no-useless-constructor-configuration.d.ts} +33 -51
- package/dist/types/src/generated/biome/nursery.d.ts +822 -0
- package/dist/types/src/generated/biome/pattern-options.d.ts +1075 -0
- package/dist/types/src/generated/biome/rule-with-no-access-key-options.d.ts +555 -0
- package/dist/types/src/generated/biome/rule-with-no-blank-target-options.d.ts +530 -0
- package/dist/types/src/generated/biome/rule-with-no-fallthrough-switch-clause-options.d.ts +469 -0
- package/dist/types/src/generated/biome/rule-with-no-unknown-unit-options.d.ts +564 -0
- package/dist/types/src/generated/biome/schema.d.ts +24 -6
- package/dist/types/src/generated/biome/style.d.ts +614 -0
- package/dist/types/src/generated/biome/use-for-of-configuration.d.ts +144 -0
- package/dist/types/src/generated/biome/{no-magic-numbers-options.d.ts → use-unique-variable-names-options.d.ts} +127 -105
- package/dist/vue.jsonc +1 -1
- package/package.json +11 -7
- package/dist/types/src/generated/biome/linter-configuration.d.ts +0 -181
- package/dist/types/src/generated/biome/rule-with-no-confusing-labels-options.d.ts +0 -1236
- package/dist/types/src/generated/biome/rule-with-no-excessive-nested-test-suites-options.d.ts +0 -1440
- package/dist/types/src/generated/biome/rule-with-no-unused-expressions-options.d.ts +0 -1337
- package/dist/types/src/generated/biome/use-consistent-object-definitions-configuration.d.ts +0 -1304
- package/dist/types/src/generated/biome/use-shorthand-assign-configuration.d.ts +0 -571
|
@@ -1,1236 +0,0 @@
|
|
|
1
|
-
import type { AttributePosition, Bool, BracketSameLine, BracketSpacing, Expand, FixKind, IndentStyle, IndentWidth, JsxRuntime, LineEnding, LineWidth, MaxSize, NegatablePredefinedSourceMatcher, RuleAssistPlainConfiguration, RulePlainConfiguration } from './schema.ts';
|
|
2
|
-
import type { NoConfusingLabelsOptions, NoConfusingVoidTypeOptions, NoConsoleOptions, NoConstEnumOptions, NoConstantBinaryExpressionsOptions, NoControlCharactersInRegexOptions, NoDebuggerOptions, NoDocumentCookieOptions, NoDocumentImportInPageOptions, NoDoubleEqualsOptions, NoDuplicateAtImportRulesOptions, NoDuplicateCaseOptions, NoDuplicateClassMembersOptions, NoDuplicateCustomPropertiesOptions, NoDuplicateElseIfOptions, NoDuplicateFieldsOptions, NoDuplicateFontNamesOptions, NoDuplicateJsxPropsOptions, NoDuplicateObjectKeysOptions, NoDuplicateParametersOptions, NoDuplicatePropertiesOptions, NoDuplicateSelectorsKeyframeBlockOptions, NoDuplicateTestHooksOptions, NoEmptyBlockOptions, NoEmptyBlockStatementsOptions, NoEmptyInterfaceOptions, NoEvolvingTypesOptions, NoExplicitAnyOptions, NoExportsInTestOptions, NoExtraNonNullAssertionOptions, NoFallthroughSwitchClauseOptions, NoFocusedTestsOptions, NoFunctionAssignOptions, NoGlobalAssignOptions, NoGlobalIsFiniteOptions, NoGlobalIsNanOptions, NoHeadImportInDocumentOptions, NoImplicitAnyLetOptions, NoImportAssignOptions, NoImportantInKeyframeOptions, NoIrregularWhitespaceOptions } from './no-magic-numbers-options.ts';
|
|
3
|
-
import type { CssAssistConfiguration, CssFormatterConfiguration, CssLinterConfiguration, CssParserConfiguration, GraphqlAssistConfiguration, GraphqlFormatterConfiguration, GraphqlLinterConfiguration, GritAssistConfiguration, GritFormatterConfiguration, GritLinterConfiguration, HtmlAssistConfiguration, HtmlFormatterConfiguration, HtmlLinterConfiguration, HtmlParserConfiguration, ImportSourceGlob, JsAssistConfiguration, JsFormatterConfiguration, JsLinterConfiguration, JsParserConfiguration, JsonAssistConfiguration, JsonFormatterConfiguration, JsonLinterConfiguration, JsonParserConfiguration, NoLabelVarOptions, NoMisleadingCharacterClassOptions, NoMisleadingInstantiatorOptions, NoMisplacedAssertionOptions, NoMisrefactoredShorthandAssignOptions, NoNonNullAssertedOptionalChainOptions, NoOctalEscapeOptions, NoPrototypeBuiltinsOptions, NoQuickfixBiomeOptions, NoReactSpecificPropsOptions, NoRedeclareOptions, NoRedundantUseStrictOptions, NoSelfCompareOptions, NoShadowRestrictedNamesOptions, NoShorthandPropertyOverridesOptions, NoSkippedTestsOptions, NoSparseArrayOptions, NoSuspiciousSemicolonInJsxOptions, NoTemplateCurlyInStringOptions, NoThenPropertyOptions, NoTsIgnoreOptions, NoUnassignedVariablesOptions, NoUnknownAtRulesOptions, NoUnsafeDeclarationMergingOptions, NoUnsafeNegationOptions, NoUselessEscapeInStringOptions, NoUselessRegexBackrefsOptions, NoVarOptions, NoWithOptions, NormalizedGlob, PluginConfiguration, RuleAssistWithOptionsFor_UseSortedPropertiesOptions, RuleWithNoAccessKeyOptions, RuleWithNoAriaHiddenOnFocusableOptions, RuleWithNoAriaUnsupportedElementsOptions, RuleWithNoAutofocusOptions, RuleWithNoDistractingElementsOptions, RuleWithNoHeaderScopeOptions, RuleWithNoInteractiveElementToNoninteractiveRoleOptions, RuleWithNoLabelWithoutControlOptions, RuleWithNoNoninteractiveElementInteractionsOptions, RuleWithNoNoninteractiveElementToInteractiveRoleOptions, RuleWithNoNoninteractiveTabindexOptions, RuleWithNoPositiveTabindexOptions, RuleWithNoRedundantAltOptions, RuleWithNoRedundantRolesOptions, RuleWithNoStaticElementInteractionsOptions, RuleWithNoSvgWithoutTitleOptions, RuleWithUseAltTextOptions, RuleWithUseAnchorContentOptions, RuleWithUseAriaActivedescendantWithTabindexOptions, RuleWithUseAriaPropsForRoleOptions, RuleWithUseAriaPropsSupportedByRoleOptions, RuleWithUseButtonTypeOptions, UseAdjacentOverloadSignaturesOptions, UseAwaitOptions, UseBiomeIgnoreFolderOptions, UseDefaultSwitchClauseLastOptions, UseErrorMessageOptions, UseGetterReturnOptions, UseGoogleFontDisplayOptions, UseGuardForInOptions, UseIsArrayOptions, UseIterableCallbackReturnOptions, UseNamespaceKeywordOptions, UseNumberToFixedDigitsArgumentOptions, UseSortedAttributesOptions, UseSortedKeysOptions, UseStaticResponseMethodsOptions, UseStrictModeOptions, VcsClientKind } from './no-label-var-options.ts';
|
|
4
|
-
export interface RuleWithNoConfusingLabelsOptions {
|
|
5
|
-
/**
|
|
6
|
-
* The severity of the emitted diagnostics by the rule
|
|
7
|
-
*/
|
|
8
|
-
level: RulePlainConfiguration;
|
|
9
|
-
/**
|
|
10
|
-
* Rule's options
|
|
11
|
-
*/
|
|
12
|
-
options?: NoConfusingLabelsOptions;
|
|
13
|
-
}
|
|
14
|
-
export interface RuleWithNoConfusingVoidTypeOptions {
|
|
15
|
-
/**
|
|
16
|
-
* The kind of the code actions emitted by the rule
|
|
17
|
-
*/
|
|
18
|
-
fix?: FixKind | null;
|
|
19
|
-
/**
|
|
20
|
-
* The severity of the emitted diagnostics by the rule
|
|
21
|
-
*/
|
|
22
|
-
level: RulePlainConfiguration;
|
|
23
|
-
/**
|
|
24
|
-
* Rule's options
|
|
25
|
-
*/
|
|
26
|
-
options?: NoConfusingVoidTypeOptions;
|
|
27
|
-
}
|
|
28
|
-
export interface RuleWithNoConsoleOptions {
|
|
29
|
-
/**
|
|
30
|
-
* The kind of the code actions emitted by the rule
|
|
31
|
-
*/
|
|
32
|
-
fix?: FixKind | null;
|
|
33
|
-
/**
|
|
34
|
-
* The severity of the emitted diagnostics by the rule
|
|
35
|
-
*/
|
|
36
|
-
level: RulePlainConfiguration;
|
|
37
|
-
/**
|
|
38
|
-
* Rule's options
|
|
39
|
-
*/
|
|
40
|
-
options?: NoConsoleOptions;
|
|
41
|
-
}
|
|
42
|
-
export interface RuleWithNoConstEnumOptions {
|
|
43
|
-
/**
|
|
44
|
-
* The kind of the code actions emitted by the rule
|
|
45
|
-
*/
|
|
46
|
-
fix?: FixKind | null;
|
|
47
|
-
/**
|
|
48
|
-
* The severity of the emitted diagnostics by the rule
|
|
49
|
-
*/
|
|
50
|
-
level: RulePlainConfiguration;
|
|
51
|
-
/**
|
|
52
|
-
* Rule's options
|
|
53
|
-
*/
|
|
54
|
-
options?: NoConstEnumOptions;
|
|
55
|
-
}
|
|
56
|
-
export interface RuleWithNoConstantBinaryExpressionsOptions {
|
|
57
|
-
/**
|
|
58
|
-
* The severity of the emitted diagnostics by the rule
|
|
59
|
-
*/
|
|
60
|
-
level: RulePlainConfiguration;
|
|
61
|
-
/**
|
|
62
|
-
* Rule's options
|
|
63
|
-
*/
|
|
64
|
-
options?: NoConstantBinaryExpressionsOptions;
|
|
65
|
-
}
|
|
66
|
-
export interface RuleWithNoControlCharactersInRegexOptions {
|
|
67
|
-
/**
|
|
68
|
-
* The severity of the emitted diagnostics by the rule
|
|
69
|
-
*/
|
|
70
|
-
level: RulePlainConfiguration;
|
|
71
|
-
/**
|
|
72
|
-
* Rule's options
|
|
73
|
-
*/
|
|
74
|
-
options?: NoControlCharactersInRegexOptions;
|
|
75
|
-
}
|
|
76
|
-
export interface RuleWithNoDebuggerOptions {
|
|
77
|
-
/**
|
|
78
|
-
* The kind of the code actions emitted by the rule
|
|
79
|
-
*/
|
|
80
|
-
fix?: FixKind | null;
|
|
81
|
-
/**
|
|
82
|
-
* The severity of the emitted diagnostics by the rule
|
|
83
|
-
*/
|
|
84
|
-
level: RulePlainConfiguration;
|
|
85
|
-
/**
|
|
86
|
-
* Rule's options
|
|
87
|
-
*/
|
|
88
|
-
options?: NoDebuggerOptions;
|
|
89
|
-
}
|
|
90
|
-
export interface RuleWithNoDocumentCookieOptions {
|
|
91
|
-
/**
|
|
92
|
-
* The severity of the emitted diagnostics by the rule
|
|
93
|
-
*/
|
|
94
|
-
level: RulePlainConfiguration;
|
|
95
|
-
/**
|
|
96
|
-
* Rule's options
|
|
97
|
-
*/
|
|
98
|
-
options?: NoDocumentCookieOptions;
|
|
99
|
-
}
|
|
100
|
-
export interface RuleWithNoDocumentImportInPageOptions {
|
|
101
|
-
/**
|
|
102
|
-
* The severity of the emitted diagnostics by the rule
|
|
103
|
-
*/
|
|
104
|
-
level: RulePlainConfiguration;
|
|
105
|
-
/**
|
|
106
|
-
* Rule's options
|
|
107
|
-
*/
|
|
108
|
-
options?: NoDocumentImportInPageOptions;
|
|
109
|
-
}
|
|
110
|
-
export interface RuleWithNoDoubleEqualsOptions {
|
|
111
|
-
/**
|
|
112
|
-
* The kind of the code actions emitted by the rule
|
|
113
|
-
*/
|
|
114
|
-
fix?: FixKind | null;
|
|
115
|
-
/**
|
|
116
|
-
* The severity of the emitted diagnostics by the rule
|
|
117
|
-
*/
|
|
118
|
-
level: RulePlainConfiguration;
|
|
119
|
-
/**
|
|
120
|
-
* Rule's options
|
|
121
|
-
*/
|
|
122
|
-
options?: NoDoubleEqualsOptions;
|
|
123
|
-
}
|
|
124
|
-
export interface RuleWithNoDuplicateAtImportRulesOptions {
|
|
125
|
-
/**
|
|
126
|
-
* The severity of the emitted diagnostics by the rule
|
|
127
|
-
*/
|
|
128
|
-
level: RulePlainConfiguration;
|
|
129
|
-
/**
|
|
130
|
-
* Rule's options
|
|
131
|
-
*/
|
|
132
|
-
options?: NoDuplicateAtImportRulesOptions;
|
|
133
|
-
}
|
|
134
|
-
export interface RuleWithNoDuplicateCaseOptions {
|
|
135
|
-
/**
|
|
136
|
-
* The severity of the emitted diagnostics by the rule
|
|
137
|
-
*/
|
|
138
|
-
level: RulePlainConfiguration;
|
|
139
|
-
/**
|
|
140
|
-
* Rule's options
|
|
141
|
-
*/
|
|
142
|
-
options?: NoDuplicateCaseOptions;
|
|
143
|
-
}
|
|
144
|
-
export interface RuleWithNoDuplicateClassMembersOptions {
|
|
145
|
-
/**
|
|
146
|
-
* The severity of the emitted diagnostics by the rule
|
|
147
|
-
*/
|
|
148
|
-
level: RulePlainConfiguration;
|
|
149
|
-
/**
|
|
150
|
-
* Rule's options
|
|
151
|
-
*/
|
|
152
|
-
options?: NoDuplicateClassMembersOptions;
|
|
153
|
-
}
|
|
154
|
-
export interface RuleWithNoDuplicateCustomPropertiesOptions {
|
|
155
|
-
/**
|
|
156
|
-
* The severity of the emitted diagnostics by the rule
|
|
157
|
-
*/
|
|
158
|
-
level: RulePlainConfiguration;
|
|
159
|
-
/**
|
|
160
|
-
* Rule's options
|
|
161
|
-
*/
|
|
162
|
-
options?: NoDuplicateCustomPropertiesOptions;
|
|
163
|
-
}
|
|
164
|
-
export interface RuleWithNoDuplicateElseIfOptions {
|
|
165
|
-
/**
|
|
166
|
-
* The severity of the emitted diagnostics by the rule
|
|
167
|
-
*/
|
|
168
|
-
level: RulePlainConfiguration;
|
|
169
|
-
/**
|
|
170
|
-
* Rule's options
|
|
171
|
-
*/
|
|
172
|
-
options?: NoDuplicateElseIfOptions;
|
|
173
|
-
}
|
|
174
|
-
export interface RuleWithNoDuplicateFieldsOptions {
|
|
175
|
-
/**
|
|
176
|
-
* The severity of the emitted diagnostics by the rule
|
|
177
|
-
*/
|
|
178
|
-
level: RulePlainConfiguration;
|
|
179
|
-
/**
|
|
180
|
-
* Rule's options
|
|
181
|
-
*/
|
|
182
|
-
options?: NoDuplicateFieldsOptions;
|
|
183
|
-
}
|
|
184
|
-
export interface RuleWithNoDuplicateFontNamesOptions {
|
|
185
|
-
/**
|
|
186
|
-
* The severity of the emitted diagnostics by the rule
|
|
187
|
-
*/
|
|
188
|
-
level: RulePlainConfiguration;
|
|
189
|
-
/**
|
|
190
|
-
* Rule's options
|
|
191
|
-
*/
|
|
192
|
-
options?: NoDuplicateFontNamesOptions;
|
|
193
|
-
}
|
|
194
|
-
export interface RuleWithNoDuplicateJsxPropsOptions {
|
|
195
|
-
/**
|
|
196
|
-
* The severity of the emitted diagnostics by the rule
|
|
197
|
-
*/
|
|
198
|
-
level: RulePlainConfiguration;
|
|
199
|
-
/**
|
|
200
|
-
* Rule's options
|
|
201
|
-
*/
|
|
202
|
-
options?: NoDuplicateJsxPropsOptions;
|
|
203
|
-
}
|
|
204
|
-
export interface RuleWithNoDuplicateObjectKeysOptions {
|
|
205
|
-
/**
|
|
206
|
-
* The severity of the emitted diagnostics by the rule
|
|
207
|
-
*/
|
|
208
|
-
level: RulePlainConfiguration;
|
|
209
|
-
/**
|
|
210
|
-
* Rule's options
|
|
211
|
-
*/
|
|
212
|
-
options?: NoDuplicateObjectKeysOptions;
|
|
213
|
-
}
|
|
214
|
-
export interface RuleWithNoDuplicateParametersOptions {
|
|
215
|
-
/**
|
|
216
|
-
* The severity of the emitted diagnostics by the rule
|
|
217
|
-
*/
|
|
218
|
-
level: RulePlainConfiguration;
|
|
219
|
-
/**
|
|
220
|
-
* Rule's options
|
|
221
|
-
*/
|
|
222
|
-
options?: NoDuplicateParametersOptions;
|
|
223
|
-
}
|
|
224
|
-
export interface RuleWithNoDuplicatePropertiesOptions {
|
|
225
|
-
/**
|
|
226
|
-
* The severity of the emitted diagnostics by the rule
|
|
227
|
-
*/
|
|
228
|
-
level: RulePlainConfiguration;
|
|
229
|
-
/**
|
|
230
|
-
* Rule's options
|
|
231
|
-
*/
|
|
232
|
-
options?: NoDuplicatePropertiesOptions;
|
|
233
|
-
}
|
|
234
|
-
export interface RuleWithNoDuplicateSelectorsKeyframeBlockOptions {
|
|
235
|
-
/**
|
|
236
|
-
* The severity of the emitted diagnostics by the rule
|
|
237
|
-
*/
|
|
238
|
-
level: RulePlainConfiguration;
|
|
239
|
-
/**
|
|
240
|
-
* Rule's options
|
|
241
|
-
*/
|
|
242
|
-
options?: NoDuplicateSelectorsKeyframeBlockOptions;
|
|
243
|
-
}
|
|
244
|
-
export interface RuleWithNoDuplicateTestHooksOptions {
|
|
245
|
-
/**
|
|
246
|
-
* The severity of the emitted diagnostics by the rule
|
|
247
|
-
*/
|
|
248
|
-
level: RulePlainConfiguration;
|
|
249
|
-
/**
|
|
250
|
-
* Rule's options
|
|
251
|
-
*/
|
|
252
|
-
options?: NoDuplicateTestHooksOptions;
|
|
253
|
-
}
|
|
254
|
-
export interface RuleWithNoEmptyBlockOptions {
|
|
255
|
-
/**
|
|
256
|
-
* The severity of the emitted diagnostics by the rule
|
|
257
|
-
*/
|
|
258
|
-
level: RulePlainConfiguration;
|
|
259
|
-
/**
|
|
260
|
-
* Rule's options
|
|
261
|
-
*/
|
|
262
|
-
options?: NoEmptyBlockOptions;
|
|
263
|
-
}
|
|
264
|
-
export interface RuleWithNoEmptyBlockStatementsOptions {
|
|
265
|
-
/**
|
|
266
|
-
* The severity of the emitted diagnostics by the rule
|
|
267
|
-
*/
|
|
268
|
-
level: RulePlainConfiguration;
|
|
269
|
-
/**
|
|
270
|
-
* Rule's options
|
|
271
|
-
*/
|
|
272
|
-
options?: NoEmptyBlockStatementsOptions;
|
|
273
|
-
}
|
|
274
|
-
export interface RuleWithNoEmptyInterfaceOptions {
|
|
275
|
-
/**
|
|
276
|
-
* The kind of the code actions emitted by the rule
|
|
277
|
-
*/
|
|
278
|
-
fix?: FixKind | null;
|
|
279
|
-
/**
|
|
280
|
-
* The severity of the emitted diagnostics by the rule
|
|
281
|
-
*/
|
|
282
|
-
level: RulePlainConfiguration;
|
|
283
|
-
/**
|
|
284
|
-
* Rule's options
|
|
285
|
-
*/
|
|
286
|
-
options?: NoEmptyInterfaceOptions;
|
|
287
|
-
}
|
|
288
|
-
export interface RuleWithNoEvolvingTypesOptions {
|
|
289
|
-
/**
|
|
290
|
-
* The severity of the emitted diagnostics by the rule
|
|
291
|
-
*/
|
|
292
|
-
level: RulePlainConfiguration;
|
|
293
|
-
/**
|
|
294
|
-
* Rule's options
|
|
295
|
-
*/
|
|
296
|
-
options?: NoEvolvingTypesOptions;
|
|
297
|
-
}
|
|
298
|
-
export interface RuleWithNoExplicitAnyOptions {
|
|
299
|
-
/**
|
|
300
|
-
* The severity of the emitted diagnostics by the rule
|
|
301
|
-
*/
|
|
302
|
-
level: RulePlainConfiguration;
|
|
303
|
-
/**
|
|
304
|
-
* Rule's options
|
|
305
|
-
*/
|
|
306
|
-
options?: NoExplicitAnyOptions;
|
|
307
|
-
}
|
|
308
|
-
export interface RuleWithNoExportsInTestOptions {
|
|
309
|
-
/**
|
|
310
|
-
* The severity of the emitted diagnostics by the rule
|
|
311
|
-
*/
|
|
312
|
-
level: RulePlainConfiguration;
|
|
313
|
-
/**
|
|
314
|
-
* Rule's options
|
|
315
|
-
*/
|
|
316
|
-
options?: NoExportsInTestOptions;
|
|
317
|
-
}
|
|
318
|
-
export interface RuleWithNoExtraNonNullAssertionOptions {
|
|
319
|
-
/**
|
|
320
|
-
* The kind of the code actions emitted by the rule
|
|
321
|
-
*/
|
|
322
|
-
fix?: FixKind | null;
|
|
323
|
-
/**
|
|
324
|
-
* The severity of the emitted diagnostics by the rule
|
|
325
|
-
*/
|
|
326
|
-
level: RulePlainConfiguration;
|
|
327
|
-
/**
|
|
328
|
-
* Rule's options
|
|
329
|
-
*/
|
|
330
|
-
options?: NoExtraNonNullAssertionOptions;
|
|
331
|
-
}
|
|
332
|
-
export interface RuleWithNoFallthroughSwitchClauseOptions {
|
|
333
|
-
/**
|
|
334
|
-
* The severity of the emitted diagnostics by the rule
|
|
335
|
-
*/
|
|
336
|
-
level: RulePlainConfiguration;
|
|
337
|
-
/**
|
|
338
|
-
* Rule's options
|
|
339
|
-
*/
|
|
340
|
-
options?: NoFallthroughSwitchClauseOptions;
|
|
341
|
-
}
|
|
342
|
-
export interface RuleWithNoFocusedTestsOptions {
|
|
343
|
-
/**
|
|
344
|
-
* The kind of the code actions emitted by the rule
|
|
345
|
-
*/
|
|
346
|
-
fix?: FixKind | null;
|
|
347
|
-
/**
|
|
348
|
-
* The severity of the emitted diagnostics by the rule
|
|
349
|
-
*/
|
|
350
|
-
level: RulePlainConfiguration;
|
|
351
|
-
/**
|
|
352
|
-
* Rule's options
|
|
353
|
-
*/
|
|
354
|
-
options?: NoFocusedTestsOptions;
|
|
355
|
-
}
|
|
356
|
-
export interface RuleWithNoFunctionAssignOptions {
|
|
357
|
-
/**
|
|
358
|
-
* The severity of the emitted diagnostics by the rule
|
|
359
|
-
*/
|
|
360
|
-
level: RulePlainConfiguration;
|
|
361
|
-
/**
|
|
362
|
-
* Rule's options
|
|
363
|
-
*/
|
|
364
|
-
options?: NoFunctionAssignOptions;
|
|
365
|
-
}
|
|
366
|
-
export interface RuleWithNoGlobalAssignOptions {
|
|
367
|
-
/**
|
|
368
|
-
* The severity of the emitted diagnostics by the rule
|
|
369
|
-
*/
|
|
370
|
-
level: RulePlainConfiguration;
|
|
371
|
-
/**
|
|
372
|
-
* Rule's options
|
|
373
|
-
*/
|
|
374
|
-
options?: NoGlobalAssignOptions;
|
|
375
|
-
}
|
|
376
|
-
export interface RuleWithNoGlobalIsFiniteOptions {
|
|
377
|
-
/**
|
|
378
|
-
* The kind of the code actions emitted by the rule
|
|
379
|
-
*/
|
|
380
|
-
fix?: FixKind | null;
|
|
381
|
-
/**
|
|
382
|
-
* The severity of the emitted diagnostics by the rule
|
|
383
|
-
*/
|
|
384
|
-
level: RulePlainConfiguration;
|
|
385
|
-
/**
|
|
386
|
-
* Rule's options
|
|
387
|
-
*/
|
|
388
|
-
options?: NoGlobalIsFiniteOptions;
|
|
389
|
-
}
|
|
390
|
-
export interface RuleWithNoGlobalIsNanOptions {
|
|
391
|
-
/**
|
|
392
|
-
* The kind of the code actions emitted by the rule
|
|
393
|
-
*/
|
|
394
|
-
fix?: FixKind | null;
|
|
395
|
-
/**
|
|
396
|
-
* The severity of the emitted diagnostics by the rule
|
|
397
|
-
*/
|
|
398
|
-
level: RulePlainConfiguration;
|
|
399
|
-
/**
|
|
400
|
-
* Rule's options
|
|
401
|
-
*/
|
|
402
|
-
options?: NoGlobalIsNanOptions;
|
|
403
|
-
}
|
|
404
|
-
export interface RuleWithNoHeadImportInDocumentOptions {
|
|
405
|
-
/**
|
|
406
|
-
* The severity of the emitted diagnostics by the rule
|
|
407
|
-
*/
|
|
408
|
-
level: RulePlainConfiguration;
|
|
409
|
-
/**
|
|
410
|
-
* Rule's options
|
|
411
|
-
*/
|
|
412
|
-
options?: NoHeadImportInDocumentOptions;
|
|
413
|
-
}
|
|
414
|
-
export interface RuleWithNoImplicitAnyLetOptions {
|
|
415
|
-
/**
|
|
416
|
-
* The severity of the emitted diagnostics by the rule
|
|
417
|
-
*/
|
|
418
|
-
level: RulePlainConfiguration;
|
|
419
|
-
/**
|
|
420
|
-
* Rule's options
|
|
421
|
-
*/
|
|
422
|
-
options?: NoImplicitAnyLetOptions;
|
|
423
|
-
}
|
|
424
|
-
export interface RuleWithNoImportAssignOptions {
|
|
425
|
-
/**
|
|
426
|
-
* The severity of the emitted diagnostics by the rule
|
|
427
|
-
*/
|
|
428
|
-
level: RulePlainConfiguration;
|
|
429
|
-
/**
|
|
430
|
-
* Rule's options
|
|
431
|
-
*/
|
|
432
|
-
options?: NoImportAssignOptions;
|
|
433
|
-
}
|
|
434
|
-
export interface RuleWithNoImportantInKeyframeOptions {
|
|
435
|
-
/**
|
|
436
|
-
* The severity of the emitted diagnostics by the rule
|
|
437
|
-
*/
|
|
438
|
-
level: RulePlainConfiguration;
|
|
439
|
-
/**
|
|
440
|
-
* Rule's options
|
|
441
|
-
*/
|
|
442
|
-
options?: NoImportantInKeyframeOptions;
|
|
443
|
-
}
|
|
444
|
-
export interface RuleWithNoIrregularWhitespaceOptions {
|
|
445
|
-
/**
|
|
446
|
-
* The severity of the emitted diagnostics by the rule
|
|
447
|
-
*/
|
|
448
|
-
level: RulePlainConfiguration;
|
|
449
|
-
/**
|
|
450
|
-
* Rule's options
|
|
451
|
-
*/
|
|
452
|
-
options?: NoIrregularWhitespaceOptions;
|
|
453
|
-
}
|
|
454
|
-
export interface RuleWithNoLabelVarOptions {
|
|
455
|
-
/**
|
|
456
|
-
* The severity of the emitted diagnostics by the rule
|
|
457
|
-
*/
|
|
458
|
-
level: RulePlainConfiguration;
|
|
459
|
-
/**
|
|
460
|
-
* Rule's options
|
|
461
|
-
*/
|
|
462
|
-
options?: NoLabelVarOptions;
|
|
463
|
-
}
|
|
464
|
-
export interface RuleWithNoMisleadingCharacterClassOptions {
|
|
465
|
-
/**
|
|
466
|
-
* The kind of the code actions emitted by the rule
|
|
467
|
-
*/
|
|
468
|
-
fix?: FixKind | null;
|
|
469
|
-
/**
|
|
470
|
-
* The severity of the emitted diagnostics by the rule
|
|
471
|
-
*/
|
|
472
|
-
level: RulePlainConfiguration;
|
|
473
|
-
/**
|
|
474
|
-
* Rule's options
|
|
475
|
-
*/
|
|
476
|
-
options?: NoMisleadingCharacterClassOptions;
|
|
477
|
-
}
|
|
478
|
-
export interface RuleWithNoMisleadingInstantiatorOptions {
|
|
479
|
-
/**
|
|
480
|
-
* The severity of the emitted diagnostics by the rule
|
|
481
|
-
*/
|
|
482
|
-
level: RulePlainConfiguration;
|
|
483
|
-
/**
|
|
484
|
-
* Rule's options
|
|
485
|
-
*/
|
|
486
|
-
options?: NoMisleadingInstantiatorOptions;
|
|
487
|
-
}
|
|
488
|
-
export interface RuleWithNoMisplacedAssertionOptions {
|
|
489
|
-
/**
|
|
490
|
-
* The severity of the emitted diagnostics by the rule
|
|
491
|
-
*/
|
|
492
|
-
level: RulePlainConfiguration;
|
|
493
|
-
/**
|
|
494
|
-
* Rule's options
|
|
495
|
-
*/
|
|
496
|
-
options?: NoMisplacedAssertionOptions;
|
|
497
|
-
}
|
|
498
|
-
export interface RuleWithNoMisrefactoredShorthandAssignOptions {
|
|
499
|
-
/**
|
|
500
|
-
* The kind of the code actions emitted by the rule
|
|
501
|
-
*/
|
|
502
|
-
fix?: FixKind | null;
|
|
503
|
-
/**
|
|
504
|
-
* The severity of the emitted diagnostics by the rule
|
|
505
|
-
*/
|
|
506
|
-
level: RulePlainConfiguration;
|
|
507
|
-
/**
|
|
508
|
-
* Rule's options
|
|
509
|
-
*/
|
|
510
|
-
options?: NoMisrefactoredShorthandAssignOptions;
|
|
511
|
-
}
|
|
512
|
-
export interface RuleWithNoNonNullAssertedOptionalChainOptions {
|
|
513
|
-
/**
|
|
514
|
-
* The severity of the emitted diagnostics by the rule
|
|
515
|
-
*/
|
|
516
|
-
level: RulePlainConfiguration;
|
|
517
|
-
/**
|
|
518
|
-
* Rule's options
|
|
519
|
-
*/
|
|
520
|
-
options?: NoNonNullAssertedOptionalChainOptions;
|
|
521
|
-
}
|
|
522
|
-
export interface RuleWithNoOctalEscapeOptions {
|
|
523
|
-
/**
|
|
524
|
-
* The kind of the code actions emitted by the rule
|
|
525
|
-
*/
|
|
526
|
-
fix?: FixKind | null;
|
|
527
|
-
/**
|
|
528
|
-
* The severity of the emitted diagnostics by the rule
|
|
529
|
-
*/
|
|
530
|
-
level: RulePlainConfiguration;
|
|
531
|
-
/**
|
|
532
|
-
* Rule's options
|
|
533
|
-
*/
|
|
534
|
-
options?: NoOctalEscapeOptions;
|
|
535
|
-
}
|
|
536
|
-
export interface RuleWithNoPrototypeBuiltinsOptions {
|
|
537
|
-
/**
|
|
538
|
-
* The kind of the code actions emitted by the rule
|
|
539
|
-
*/
|
|
540
|
-
fix?: FixKind | null;
|
|
541
|
-
/**
|
|
542
|
-
* The severity of the emitted diagnostics by the rule
|
|
543
|
-
*/
|
|
544
|
-
level: RulePlainConfiguration;
|
|
545
|
-
/**
|
|
546
|
-
* Rule's options
|
|
547
|
-
*/
|
|
548
|
-
options?: NoPrototypeBuiltinsOptions;
|
|
549
|
-
}
|
|
550
|
-
export interface RuleWithNoQuickfixBiomeOptions {
|
|
551
|
-
/**
|
|
552
|
-
* The kind of the code actions emitted by the rule
|
|
553
|
-
*/
|
|
554
|
-
fix?: FixKind | null;
|
|
555
|
-
/**
|
|
556
|
-
* The severity of the emitted diagnostics by the rule
|
|
557
|
-
*/
|
|
558
|
-
level: RulePlainConfiguration;
|
|
559
|
-
/**
|
|
560
|
-
* Rule's options
|
|
561
|
-
*/
|
|
562
|
-
options?: NoQuickfixBiomeOptions;
|
|
563
|
-
}
|
|
564
|
-
export interface RuleWithNoReactSpecificPropsOptions {
|
|
565
|
-
/**
|
|
566
|
-
* The kind of the code actions emitted by the rule
|
|
567
|
-
*/
|
|
568
|
-
fix?: FixKind | null;
|
|
569
|
-
/**
|
|
570
|
-
* The severity of the emitted diagnostics by the rule
|
|
571
|
-
*/
|
|
572
|
-
level: RulePlainConfiguration;
|
|
573
|
-
/**
|
|
574
|
-
* Rule's options
|
|
575
|
-
*/
|
|
576
|
-
options?: NoReactSpecificPropsOptions;
|
|
577
|
-
}
|
|
578
|
-
export interface RuleWithNoRedeclareOptions {
|
|
579
|
-
/**
|
|
580
|
-
* The severity of the emitted diagnostics by the rule
|
|
581
|
-
*/
|
|
582
|
-
level: RulePlainConfiguration;
|
|
583
|
-
/**
|
|
584
|
-
* Rule's options
|
|
585
|
-
*/
|
|
586
|
-
options?: NoRedeclareOptions;
|
|
587
|
-
}
|
|
588
|
-
export interface RuleWithNoRedundantUseStrictOptions {
|
|
589
|
-
/**
|
|
590
|
-
* The kind of the code actions emitted by the rule
|
|
591
|
-
*/
|
|
592
|
-
fix?: FixKind | null;
|
|
593
|
-
/**
|
|
594
|
-
* The severity of the emitted diagnostics by the rule
|
|
595
|
-
*/
|
|
596
|
-
level: RulePlainConfiguration;
|
|
597
|
-
/**
|
|
598
|
-
* Rule's options
|
|
599
|
-
*/
|
|
600
|
-
options?: NoRedundantUseStrictOptions;
|
|
601
|
-
}
|
|
602
|
-
export interface RuleWithNoSelfCompareOptions {
|
|
603
|
-
/**
|
|
604
|
-
* The severity of the emitted diagnostics by the rule
|
|
605
|
-
*/
|
|
606
|
-
level: RulePlainConfiguration;
|
|
607
|
-
/**
|
|
608
|
-
* Rule's options
|
|
609
|
-
*/
|
|
610
|
-
options?: NoSelfCompareOptions;
|
|
611
|
-
}
|
|
612
|
-
export interface RuleWithNoShadowRestrictedNamesOptions {
|
|
613
|
-
/**
|
|
614
|
-
* The severity of the emitted diagnostics by the rule
|
|
615
|
-
*/
|
|
616
|
-
level: RulePlainConfiguration;
|
|
617
|
-
/**
|
|
618
|
-
* Rule's options
|
|
619
|
-
*/
|
|
620
|
-
options?: NoShadowRestrictedNamesOptions;
|
|
621
|
-
}
|
|
622
|
-
export interface RuleWithNoShorthandPropertyOverridesOptions {
|
|
623
|
-
/**
|
|
624
|
-
* The severity of the emitted diagnostics by the rule
|
|
625
|
-
*/
|
|
626
|
-
level: RulePlainConfiguration;
|
|
627
|
-
/**
|
|
628
|
-
* Rule's options
|
|
629
|
-
*/
|
|
630
|
-
options?: NoShorthandPropertyOverridesOptions;
|
|
631
|
-
}
|
|
632
|
-
export interface RuleWithNoSkippedTestsOptions {
|
|
633
|
-
/**
|
|
634
|
-
* The kind of the code actions emitted by the rule
|
|
635
|
-
*/
|
|
636
|
-
fix?: FixKind | null;
|
|
637
|
-
/**
|
|
638
|
-
* The severity of the emitted diagnostics by the rule
|
|
639
|
-
*/
|
|
640
|
-
level: RulePlainConfiguration;
|
|
641
|
-
/**
|
|
642
|
-
* Rule's options
|
|
643
|
-
*/
|
|
644
|
-
options?: NoSkippedTestsOptions;
|
|
645
|
-
}
|
|
646
|
-
export interface RuleWithNoSparseArrayOptions {
|
|
647
|
-
/**
|
|
648
|
-
* The kind of the code actions emitted by the rule
|
|
649
|
-
*/
|
|
650
|
-
fix?: FixKind | null;
|
|
651
|
-
/**
|
|
652
|
-
* The severity of the emitted diagnostics by the rule
|
|
653
|
-
*/
|
|
654
|
-
level: RulePlainConfiguration;
|
|
655
|
-
/**
|
|
656
|
-
* Rule's options
|
|
657
|
-
*/
|
|
658
|
-
options?: NoSparseArrayOptions;
|
|
659
|
-
}
|
|
660
|
-
export interface RuleWithNoSuspiciousSemicolonInJsxOptions {
|
|
661
|
-
/**
|
|
662
|
-
* The severity of the emitted diagnostics by the rule
|
|
663
|
-
*/
|
|
664
|
-
level: RulePlainConfiguration;
|
|
665
|
-
/**
|
|
666
|
-
* Rule's options
|
|
667
|
-
*/
|
|
668
|
-
options?: NoSuspiciousSemicolonInJsxOptions;
|
|
669
|
-
}
|
|
670
|
-
export interface RuleWithNoTemplateCurlyInStringOptions {
|
|
671
|
-
/**
|
|
672
|
-
* The severity of the emitted diagnostics by the rule
|
|
673
|
-
*/
|
|
674
|
-
level: RulePlainConfiguration;
|
|
675
|
-
/**
|
|
676
|
-
* Rule's options
|
|
677
|
-
*/
|
|
678
|
-
options?: NoTemplateCurlyInStringOptions;
|
|
679
|
-
}
|
|
680
|
-
export interface RuleWithNoThenPropertyOptions {
|
|
681
|
-
/**
|
|
682
|
-
* The severity of the emitted diagnostics by the rule
|
|
683
|
-
*/
|
|
684
|
-
level: RulePlainConfiguration;
|
|
685
|
-
/**
|
|
686
|
-
* Rule's options
|
|
687
|
-
*/
|
|
688
|
-
options?: NoThenPropertyOptions;
|
|
689
|
-
}
|
|
690
|
-
export interface RuleWithNoTsIgnoreOptions {
|
|
691
|
-
/**
|
|
692
|
-
* The kind of the code actions emitted by the rule
|
|
693
|
-
*/
|
|
694
|
-
fix?: FixKind | null;
|
|
695
|
-
/**
|
|
696
|
-
* The severity of the emitted diagnostics by the rule
|
|
697
|
-
*/
|
|
698
|
-
level: RulePlainConfiguration;
|
|
699
|
-
/**
|
|
700
|
-
* Rule's options
|
|
701
|
-
*/
|
|
702
|
-
options?: NoTsIgnoreOptions;
|
|
703
|
-
}
|
|
704
|
-
export interface RuleWithNoUnassignedVariablesOptions {
|
|
705
|
-
/**
|
|
706
|
-
* The severity of the emitted diagnostics by the rule
|
|
707
|
-
*/
|
|
708
|
-
level: RulePlainConfiguration;
|
|
709
|
-
/**
|
|
710
|
-
* Rule's options
|
|
711
|
-
*/
|
|
712
|
-
options?: NoUnassignedVariablesOptions;
|
|
713
|
-
}
|
|
714
|
-
export interface RuleWithNoUnknownAtRulesOptions {
|
|
715
|
-
/**
|
|
716
|
-
* The severity of the emitted diagnostics by the rule
|
|
717
|
-
*/
|
|
718
|
-
level: RulePlainConfiguration;
|
|
719
|
-
/**
|
|
720
|
-
* Rule's options
|
|
721
|
-
*/
|
|
722
|
-
options?: NoUnknownAtRulesOptions;
|
|
723
|
-
}
|
|
724
|
-
export interface RuleWithNoUnsafeDeclarationMergingOptions {
|
|
725
|
-
/**
|
|
726
|
-
* The severity of the emitted diagnostics by the rule
|
|
727
|
-
*/
|
|
728
|
-
level: RulePlainConfiguration;
|
|
729
|
-
/**
|
|
730
|
-
* Rule's options
|
|
731
|
-
*/
|
|
732
|
-
options?: NoUnsafeDeclarationMergingOptions;
|
|
733
|
-
}
|
|
734
|
-
export interface RuleWithNoUnsafeNegationOptions {
|
|
735
|
-
/**
|
|
736
|
-
* The kind of the code actions emitted by the rule
|
|
737
|
-
*/
|
|
738
|
-
fix?: FixKind | null;
|
|
739
|
-
/**
|
|
740
|
-
* The severity of the emitted diagnostics by the rule
|
|
741
|
-
*/
|
|
742
|
-
level: RulePlainConfiguration;
|
|
743
|
-
/**
|
|
744
|
-
* Rule's options
|
|
745
|
-
*/
|
|
746
|
-
options?: NoUnsafeNegationOptions;
|
|
747
|
-
}
|
|
748
|
-
export interface RuleWithNoUselessEscapeInStringOptions {
|
|
749
|
-
/**
|
|
750
|
-
* The kind of the code actions emitted by the rule
|
|
751
|
-
*/
|
|
752
|
-
fix?: FixKind | null;
|
|
753
|
-
/**
|
|
754
|
-
* The severity of the emitted diagnostics by the rule
|
|
755
|
-
*/
|
|
756
|
-
level: RulePlainConfiguration;
|
|
757
|
-
/**
|
|
758
|
-
* Rule's options
|
|
759
|
-
*/
|
|
760
|
-
options?: NoUselessEscapeInStringOptions;
|
|
761
|
-
}
|
|
762
|
-
export interface RuleWithNoUselessRegexBackrefsOptions {
|
|
763
|
-
/**
|
|
764
|
-
* The severity of the emitted diagnostics by the rule
|
|
765
|
-
*/
|
|
766
|
-
level: RulePlainConfiguration;
|
|
767
|
-
/**
|
|
768
|
-
* Rule's options
|
|
769
|
-
*/
|
|
770
|
-
options?: NoUselessRegexBackrefsOptions;
|
|
771
|
-
}
|
|
772
|
-
export interface RuleWithNoVarOptions {
|
|
773
|
-
/**
|
|
774
|
-
* The kind of the code actions emitted by the rule
|
|
775
|
-
*/
|
|
776
|
-
fix?: FixKind | null;
|
|
777
|
-
/**
|
|
778
|
-
* The severity of the emitted diagnostics by the rule
|
|
779
|
-
*/
|
|
780
|
-
level: RulePlainConfiguration;
|
|
781
|
-
/**
|
|
782
|
-
* Rule's options
|
|
783
|
-
*/
|
|
784
|
-
options?: NoVarOptions;
|
|
785
|
-
}
|
|
786
|
-
export interface RuleWithNoWithOptions {
|
|
787
|
-
/**
|
|
788
|
-
* The severity of the emitted diagnostics by the rule
|
|
789
|
-
*/
|
|
790
|
-
level: RulePlainConfiguration;
|
|
791
|
-
/**
|
|
792
|
-
* Rule's options
|
|
793
|
-
*/
|
|
794
|
-
options?: NoWithOptions;
|
|
795
|
-
}
|
|
796
|
-
export interface RuleWithUseAdjacentOverloadSignaturesOptions {
|
|
797
|
-
/**
|
|
798
|
-
* The severity of the emitted diagnostics by the rule
|
|
799
|
-
*/
|
|
800
|
-
level: RulePlainConfiguration;
|
|
801
|
-
/**
|
|
802
|
-
* Rule's options
|
|
803
|
-
*/
|
|
804
|
-
options?: UseAdjacentOverloadSignaturesOptions;
|
|
805
|
-
}
|
|
806
|
-
export interface RuleWithUseAwaitOptions {
|
|
807
|
-
/**
|
|
808
|
-
* The severity of the emitted diagnostics by the rule
|
|
809
|
-
*/
|
|
810
|
-
level: RulePlainConfiguration;
|
|
811
|
-
/**
|
|
812
|
-
* Rule's options
|
|
813
|
-
*/
|
|
814
|
-
options?: UseAwaitOptions;
|
|
815
|
-
}
|
|
816
|
-
export interface RuleWithUseBiomeIgnoreFolderOptions {
|
|
817
|
-
/**
|
|
818
|
-
* The kind of the code actions emitted by the rule
|
|
819
|
-
*/
|
|
820
|
-
fix?: FixKind | null;
|
|
821
|
-
/**
|
|
822
|
-
* The severity of the emitted diagnostics by the rule
|
|
823
|
-
*/
|
|
824
|
-
level: RulePlainConfiguration;
|
|
825
|
-
/**
|
|
826
|
-
* Rule's options
|
|
827
|
-
*/
|
|
828
|
-
options?: UseBiomeIgnoreFolderOptions;
|
|
829
|
-
}
|
|
830
|
-
export interface RuleWithUseDefaultSwitchClauseLastOptions {
|
|
831
|
-
/**
|
|
832
|
-
* The severity of the emitted diagnostics by the rule
|
|
833
|
-
*/
|
|
834
|
-
level: RulePlainConfiguration;
|
|
835
|
-
/**
|
|
836
|
-
* Rule's options
|
|
837
|
-
*/
|
|
838
|
-
options?: UseDefaultSwitchClauseLastOptions;
|
|
839
|
-
}
|
|
840
|
-
export interface RuleWithUseErrorMessageOptions {
|
|
841
|
-
/**
|
|
842
|
-
* The severity of the emitted diagnostics by the rule
|
|
843
|
-
*/
|
|
844
|
-
level: RulePlainConfiguration;
|
|
845
|
-
/**
|
|
846
|
-
* Rule's options
|
|
847
|
-
*/
|
|
848
|
-
options?: UseErrorMessageOptions;
|
|
849
|
-
}
|
|
850
|
-
export interface RuleWithUseGetterReturnOptions {
|
|
851
|
-
/**
|
|
852
|
-
* The severity of the emitted diagnostics by the rule
|
|
853
|
-
*/
|
|
854
|
-
level: RulePlainConfiguration;
|
|
855
|
-
/**
|
|
856
|
-
* Rule's options
|
|
857
|
-
*/
|
|
858
|
-
options?: UseGetterReturnOptions;
|
|
859
|
-
}
|
|
860
|
-
export interface RuleWithUseGoogleFontDisplayOptions {
|
|
861
|
-
/**
|
|
862
|
-
* The severity of the emitted diagnostics by the rule
|
|
863
|
-
*/
|
|
864
|
-
level: RulePlainConfiguration;
|
|
865
|
-
/**
|
|
866
|
-
* Rule's options
|
|
867
|
-
*/
|
|
868
|
-
options?: UseGoogleFontDisplayOptions;
|
|
869
|
-
}
|
|
870
|
-
export interface RuleWithUseGuardForInOptions {
|
|
871
|
-
/**
|
|
872
|
-
* The severity of the emitted diagnostics by the rule
|
|
873
|
-
*/
|
|
874
|
-
level: RulePlainConfiguration;
|
|
875
|
-
/**
|
|
876
|
-
* Rule's options
|
|
877
|
-
*/
|
|
878
|
-
options?: UseGuardForInOptions;
|
|
879
|
-
}
|
|
880
|
-
export interface RuleWithUseIsArrayOptions {
|
|
881
|
-
/**
|
|
882
|
-
* The kind of the code actions emitted by the rule
|
|
883
|
-
*/
|
|
884
|
-
fix?: FixKind | null;
|
|
885
|
-
/**
|
|
886
|
-
* The severity of the emitted diagnostics by the rule
|
|
887
|
-
*/
|
|
888
|
-
level: RulePlainConfiguration;
|
|
889
|
-
/**
|
|
890
|
-
* Rule's options
|
|
891
|
-
*/
|
|
892
|
-
options?: UseIsArrayOptions;
|
|
893
|
-
}
|
|
894
|
-
export interface RuleWithUseIterableCallbackReturnOptions {
|
|
895
|
-
/**
|
|
896
|
-
* The severity of the emitted diagnostics by the rule
|
|
897
|
-
*/
|
|
898
|
-
level: RulePlainConfiguration;
|
|
899
|
-
/**
|
|
900
|
-
* Rule's options
|
|
901
|
-
*/
|
|
902
|
-
options?: UseIterableCallbackReturnOptions;
|
|
903
|
-
}
|
|
904
|
-
export interface RuleWithUseNamespaceKeywordOptions {
|
|
905
|
-
/**
|
|
906
|
-
* The kind of the code actions emitted by the rule
|
|
907
|
-
*/
|
|
908
|
-
fix?: FixKind | null;
|
|
909
|
-
/**
|
|
910
|
-
* The severity of the emitted diagnostics by the rule
|
|
911
|
-
*/
|
|
912
|
-
level: RulePlainConfiguration;
|
|
913
|
-
/**
|
|
914
|
-
* Rule's options
|
|
915
|
-
*/
|
|
916
|
-
options?: UseNamespaceKeywordOptions;
|
|
917
|
-
}
|
|
918
|
-
export interface RuleWithUseNumberToFixedDigitsArgumentOptions {
|
|
919
|
-
/**
|
|
920
|
-
* The kind of the code actions emitted by the rule
|
|
921
|
-
*/
|
|
922
|
-
fix?: FixKind | null;
|
|
923
|
-
/**
|
|
924
|
-
* The severity of the emitted diagnostics by the rule
|
|
925
|
-
*/
|
|
926
|
-
level: RulePlainConfiguration;
|
|
927
|
-
/**
|
|
928
|
-
* Rule's options
|
|
929
|
-
*/
|
|
930
|
-
options?: UseNumberToFixedDigitsArgumentOptions;
|
|
931
|
-
}
|
|
932
|
-
export interface RuleWithUseStaticResponseMethodsOptions {
|
|
933
|
-
/**
|
|
934
|
-
* The kind of the code actions emitted by the rule
|
|
935
|
-
*/
|
|
936
|
-
fix?: FixKind | null;
|
|
937
|
-
/**
|
|
938
|
-
* The severity of the emitted diagnostics by the rule
|
|
939
|
-
*/
|
|
940
|
-
level: RulePlainConfiguration;
|
|
941
|
-
/**
|
|
942
|
-
* Rule's options
|
|
943
|
-
*/
|
|
944
|
-
options?: UseStaticResponseMethodsOptions;
|
|
945
|
-
}
|
|
946
|
-
export interface RuleWithUseStrictModeOptions {
|
|
947
|
-
/**
|
|
948
|
-
* The kind of the code actions emitted by the rule
|
|
949
|
-
*/
|
|
950
|
-
fix?: FixKind | null;
|
|
951
|
-
/**
|
|
952
|
-
* The severity of the emitted diagnostics by the rule
|
|
953
|
-
*/
|
|
954
|
-
level: RulePlainConfiguration;
|
|
955
|
-
/**
|
|
956
|
-
* Rule's options
|
|
957
|
-
*/
|
|
958
|
-
options?: UseStrictModeOptions;
|
|
959
|
-
}
|
|
960
|
-
export type Plugins = PluginConfiguration[];
|
|
961
|
-
/**
|
|
962
|
-
* Set of properties to integrate Biome with a VCS software.
|
|
963
|
-
*/
|
|
964
|
-
export interface VcsConfiguration {
|
|
965
|
-
/**
|
|
966
|
-
* The kind of client.
|
|
967
|
-
*/
|
|
968
|
-
clientKind?: VcsClientKind | null;
|
|
969
|
-
/**
|
|
970
|
-
* The main branch of the project
|
|
971
|
-
*/
|
|
972
|
-
defaultBranch?: string | null;
|
|
973
|
-
/**
|
|
974
|
-
* Whether Biome should integrate itself with the VCS client
|
|
975
|
-
*/
|
|
976
|
-
enabled?: Bool | null;
|
|
977
|
-
/**
|
|
978
|
-
* The folder where Biome should check for VCS files. By default, Biome will use the same folder where `biome.json` was found.
|
|
979
|
-
*
|
|
980
|
-
* If Biome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Biome won't use the VCS integration, and a diagnostic will be emitted
|
|
981
|
-
*/
|
|
982
|
-
root?: string | null;
|
|
983
|
-
/**
|
|
984
|
-
* Whether Biome should use the VCS ignore file. When [true], Biome will ignore the files specified in the ignore file.
|
|
985
|
-
*/
|
|
986
|
-
useIgnoreFile?: Bool | null;
|
|
987
|
-
}
|
|
988
|
-
export type SourceMatcher = NegatablePredefinedSourceMatcher | ImportSourceGlob;
|
|
989
|
-
/**
|
|
990
|
-
* The configuration of the filesystem
|
|
991
|
-
*/
|
|
992
|
-
export interface FilesConfiguration {
|
|
993
|
-
/**
|
|
994
|
-
* **Deprecated:** Please use _force-ignore syntax_ in `files.includes` instead: <https://biomejs.dev/reference/configuration/#filesincludes>
|
|
995
|
-
*
|
|
996
|
-
* Set of file and folder names that should be unconditionally ignored by Biome's scanner.
|
|
997
|
-
*/
|
|
998
|
-
experimentalScannerIgnores?: string[] | null;
|
|
999
|
-
/**
|
|
1000
|
-
* Tells Biome to not emit diagnostics when handling files that it doesn't know
|
|
1001
|
-
*/
|
|
1002
|
-
ignoreUnknown?: Bool | null;
|
|
1003
|
-
/**
|
|
1004
|
-
* A list of glob patterns. Biome will handle only those files/folders that will match these patterns.
|
|
1005
|
-
*/
|
|
1006
|
-
includes?: NormalizedGlob[] | null;
|
|
1007
|
-
/**
|
|
1008
|
-
* The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
|
|
1009
|
-
*/
|
|
1010
|
-
maxSize?: MaxSize | null;
|
|
1011
|
-
}
|
|
1012
|
-
/**
|
|
1013
|
-
* Generic options applied to all files
|
|
1014
|
-
*/
|
|
1015
|
-
export interface FormatterConfiguration {
|
|
1016
|
-
/**
|
|
1017
|
-
* The attribute position style in HTML-ish languages. Defaults to auto.
|
|
1018
|
-
*/
|
|
1019
|
-
attributePosition?: AttributePosition | null;
|
|
1020
|
-
/**
|
|
1021
|
-
* Put the `>` of a multi-line HTML or JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
|
|
1022
|
-
*/
|
|
1023
|
-
bracketSameLine?: BracketSameLine | null;
|
|
1024
|
-
/**
|
|
1025
|
-
* Whether to insert spaces around brackets in object literals. Defaults to true.
|
|
1026
|
-
*/
|
|
1027
|
-
bracketSpacing?: BracketSpacing | null;
|
|
1028
|
-
enabled?: Bool | null;
|
|
1029
|
-
/**
|
|
1030
|
-
* Whether to expand arrays and objects on multiple lines. When set to `auto`, object literals are formatted on multiple lines if the first property has a newline, and array literals are formatted on a single line if it fits in the line. When set to `always`, these literals are formatted on multiple lines, regardless of length of the list. When set to `never`, these literals are formatted on a single line if it fits in the line. When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
|
|
1031
|
-
*/
|
|
1032
|
-
expand?: Expand | null;
|
|
1033
|
-
/**
|
|
1034
|
-
* Whether formatting should be allowed to proceed if a given file has syntax errors
|
|
1035
|
-
*/
|
|
1036
|
-
formatWithErrors?: Bool | null;
|
|
1037
|
-
/**
|
|
1038
|
-
* A list of glob patterns. The formatter will include files/folders that will match these patterns.
|
|
1039
|
-
*/
|
|
1040
|
-
includes?: NormalizedGlob[] | null;
|
|
1041
|
-
/**
|
|
1042
|
-
* The indent style.
|
|
1043
|
-
*/
|
|
1044
|
-
indentStyle?: IndentStyle | null;
|
|
1045
|
-
/**
|
|
1046
|
-
* The size of the indentation, 2 by default
|
|
1047
|
-
*/
|
|
1048
|
-
indentWidth?: IndentWidth | null;
|
|
1049
|
-
/**
|
|
1050
|
-
* The type of line ending.
|
|
1051
|
-
*/
|
|
1052
|
-
lineEnding?: LineEnding | null;
|
|
1053
|
-
/**
|
|
1054
|
-
* What's the max width of a line. Defaults to 80.
|
|
1055
|
-
*/
|
|
1056
|
-
lineWidth?: LineWidth | null;
|
|
1057
|
-
/**
|
|
1058
|
-
* Use any `.editorconfig` files to configure the formatter. Configuration in `biome.json` will override `.editorconfig` configuration.
|
|
1059
|
-
*
|
|
1060
|
-
* Default: `true`.
|
|
1061
|
-
*/
|
|
1062
|
-
useEditorconfig?: Bool | null;
|
|
1063
|
-
}
|
|
1064
|
-
export interface RuleAssistWithOptionsFor_UseSortedAttributesOptions {
|
|
1065
|
-
/**
|
|
1066
|
-
* The severity of the emitted diagnostics by the rule
|
|
1067
|
-
*/
|
|
1068
|
-
level: RuleAssistPlainConfiguration;
|
|
1069
|
-
/**
|
|
1070
|
-
* Rule's options
|
|
1071
|
-
*/
|
|
1072
|
-
options: UseSortedAttributesOptions;
|
|
1073
|
-
}
|
|
1074
|
-
export interface RuleAssistWithOptionsFor_UseSortedKeysOptions {
|
|
1075
|
-
/**
|
|
1076
|
-
* The severity of the emitted diagnostics by the rule
|
|
1077
|
-
*/
|
|
1078
|
-
level: RuleAssistPlainConfiguration;
|
|
1079
|
-
/**
|
|
1080
|
-
* Rule's options
|
|
1081
|
-
*/
|
|
1082
|
-
options: UseSortedKeysOptions;
|
|
1083
|
-
}
|
|
1084
|
-
export type RuleAssistConfigurationFor_UseSortedPropertiesOptions = RuleAssistPlainConfiguration | RuleAssistWithOptionsFor_UseSortedPropertiesOptions;
|
|
1085
|
-
/**
|
|
1086
|
-
* Options applied to GritQL files
|
|
1087
|
-
*/
|
|
1088
|
-
export interface GritConfiguration {
|
|
1089
|
-
/**
|
|
1090
|
-
* Assist options
|
|
1091
|
-
*/
|
|
1092
|
-
assist?: GritAssistConfiguration | null;
|
|
1093
|
-
/**
|
|
1094
|
-
* Formatting options
|
|
1095
|
-
*/
|
|
1096
|
-
formatter?: GritFormatterConfiguration | null;
|
|
1097
|
-
/**
|
|
1098
|
-
* Formatting options
|
|
1099
|
-
*/
|
|
1100
|
-
linter?: GritLinterConfiguration | null;
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
* Options applied to CSS files
|
|
1104
|
-
*/
|
|
1105
|
-
export interface CssConfiguration {
|
|
1106
|
-
/**
|
|
1107
|
-
* CSS assist options
|
|
1108
|
-
*/
|
|
1109
|
-
assist?: CssAssistConfiguration | null;
|
|
1110
|
-
/**
|
|
1111
|
-
* CSS formatter options
|
|
1112
|
-
*/
|
|
1113
|
-
formatter?: CssFormatterConfiguration | null;
|
|
1114
|
-
/**
|
|
1115
|
-
* CSS globals
|
|
1116
|
-
*/
|
|
1117
|
-
globals?: string[] | null;
|
|
1118
|
-
/**
|
|
1119
|
-
* CSS linter options
|
|
1120
|
-
*/
|
|
1121
|
-
linter?: CssLinterConfiguration | null;
|
|
1122
|
-
/**
|
|
1123
|
-
* CSS parsing options
|
|
1124
|
-
*/
|
|
1125
|
-
parser?: CssParserConfiguration | null;
|
|
1126
|
-
}
|
|
1127
|
-
/**
|
|
1128
|
-
* Options applied to GraphQL files
|
|
1129
|
-
*/
|
|
1130
|
-
export interface GraphqlConfiguration {
|
|
1131
|
-
/**
|
|
1132
|
-
* Assist options
|
|
1133
|
-
*/
|
|
1134
|
-
assist?: GraphqlAssistConfiguration | null;
|
|
1135
|
-
/**
|
|
1136
|
-
* GraphQL formatter options
|
|
1137
|
-
*/
|
|
1138
|
-
formatter?: GraphqlFormatterConfiguration | null;
|
|
1139
|
-
linter?: GraphqlLinterConfiguration | null;
|
|
1140
|
-
}
|
|
1141
|
-
/**
|
|
1142
|
-
* Options applied to HTML files
|
|
1143
|
-
*/
|
|
1144
|
-
export interface HtmlConfiguration {
|
|
1145
|
-
assist?: HtmlAssistConfiguration | null;
|
|
1146
|
-
/**
|
|
1147
|
-
* Enables full support for HTML, Vue, Svelte and Astro files.
|
|
1148
|
-
*/
|
|
1149
|
-
experimentalFullSupportEnabled?: Bool | null;
|
|
1150
|
-
/**
|
|
1151
|
-
* HTML formatter options
|
|
1152
|
-
*/
|
|
1153
|
-
formatter?: HtmlFormatterConfiguration | null;
|
|
1154
|
-
/**
|
|
1155
|
-
* HTML linter options
|
|
1156
|
-
*/
|
|
1157
|
-
linter?: HtmlLinterConfiguration | null;
|
|
1158
|
-
/**
|
|
1159
|
-
* HTML parsing options
|
|
1160
|
-
*/
|
|
1161
|
-
parser?: HtmlParserConfiguration | null;
|
|
1162
|
-
}
|
|
1163
|
-
/**
|
|
1164
|
-
* A set of options applied to the JavaScript files
|
|
1165
|
-
*/
|
|
1166
|
-
export interface JsConfiguration {
|
|
1167
|
-
/**
|
|
1168
|
-
* Assist options
|
|
1169
|
-
*/
|
|
1170
|
-
assist?: JsAssistConfiguration | null;
|
|
1171
|
-
/**
|
|
1172
|
-
* Formatting options
|
|
1173
|
-
*/
|
|
1174
|
-
formatter?: JsFormatterConfiguration | null;
|
|
1175
|
-
/**
|
|
1176
|
-
* A list of global bindings that should be ignored by the analyzers
|
|
1177
|
-
*
|
|
1178
|
-
* If defined here, they should not emit diagnostics.
|
|
1179
|
-
*/
|
|
1180
|
-
globals?: string[] | null;
|
|
1181
|
-
/**
|
|
1182
|
-
* Indicates the type of runtime or transformation used for interpreting JSX.
|
|
1183
|
-
*/
|
|
1184
|
-
jsxRuntime?: JsxRuntime | null;
|
|
1185
|
-
/**
|
|
1186
|
-
* Linter options
|
|
1187
|
-
*/
|
|
1188
|
-
linter?: JsLinterConfiguration | null;
|
|
1189
|
-
/**
|
|
1190
|
-
* Parsing options
|
|
1191
|
-
*/
|
|
1192
|
-
parser?: JsParserConfiguration | null;
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* Options applied to JSON files
|
|
1196
|
-
*/
|
|
1197
|
-
export interface JsonConfiguration {
|
|
1198
|
-
/**
|
|
1199
|
-
* Assist options
|
|
1200
|
-
*/
|
|
1201
|
-
assist?: JsonAssistConfiguration | null;
|
|
1202
|
-
/**
|
|
1203
|
-
* Formatting options
|
|
1204
|
-
*/
|
|
1205
|
-
formatter?: JsonFormatterConfiguration | null;
|
|
1206
|
-
/**
|
|
1207
|
-
* Linting options
|
|
1208
|
-
*/
|
|
1209
|
-
linter?: JsonLinterConfiguration | null;
|
|
1210
|
-
/**
|
|
1211
|
-
* Parsing options
|
|
1212
|
-
*/
|
|
1213
|
-
parser?: JsonParserConfiguration | null;
|
|
1214
|
-
}
|
|
1215
|
-
export type NoAccessKeyConfiguration = RulePlainConfiguration | RuleWithNoAccessKeyOptions;
|
|
1216
|
-
export type NoAriaHiddenOnFocusableConfiguration = RulePlainConfiguration | RuleWithNoAriaHiddenOnFocusableOptions;
|
|
1217
|
-
export type NoAriaUnsupportedElementsConfiguration = RulePlainConfiguration | RuleWithNoAriaUnsupportedElementsOptions;
|
|
1218
|
-
export type NoAutofocusConfiguration = RulePlainConfiguration | RuleWithNoAutofocusOptions;
|
|
1219
|
-
export type NoDistractingElementsConfiguration = RulePlainConfiguration | RuleWithNoDistractingElementsOptions;
|
|
1220
|
-
export type NoHeaderScopeConfiguration = RulePlainConfiguration | RuleWithNoHeaderScopeOptions;
|
|
1221
|
-
export type NoInteractiveElementToNoninteractiveRoleConfiguration = RulePlainConfiguration | RuleWithNoInteractiveElementToNoninteractiveRoleOptions;
|
|
1222
|
-
export type NoLabelWithoutControlConfiguration = RulePlainConfiguration | RuleWithNoLabelWithoutControlOptions;
|
|
1223
|
-
export type NoNoninteractiveElementInteractionsConfiguration = RulePlainConfiguration | RuleWithNoNoninteractiveElementInteractionsOptions;
|
|
1224
|
-
export type NoNoninteractiveElementToInteractiveRoleConfiguration = RulePlainConfiguration | RuleWithNoNoninteractiveElementToInteractiveRoleOptions;
|
|
1225
|
-
export type NoNoninteractiveTabindexConfiguration = RulePlainConfiguration | RuleWithNoNoninteractiveTabindexOptions;
|
|
1226
|
-
export type NoPositiveTabindexConfiguration = RulePlainConfiguration | RuleWithNoPositiveTabindexOptions;
|
|
1227
|
-
export type NoRedundantAltConfiguration = RulePlainConfiguration | RuleWithNoRedundantAltOptions;
|
|
1228
|
-
export type NoRedundantRolesConfiguration = RulePlainConfiguration | RuleWithNoRedundantRolesOptions;
|
|
1229
|
-
export type NoStaticElementInteractionsConfiguration = RulePlainConfiguration | RuleWithNoStaticElementInteractionsOptions;
|
|
1230
|
-
export type NoSvgWithoutTitleConfiguration = RulePlainConfiguration | RuleWithNoSvgWithoutTitleOptions;
|
|
1231
|
-
export type UseAltTextConfiguration = RulePlainConfiguration | RuleWithUseAltTextOptions;
|
|
1232
|
-
export type UseAnchorContentConfiguration = RulePlainConfiguration | RuleWithUseAnchorContentOptions;
|
|
1233
|
-
export type UseAriaActivedescendantWithTabindexConfiguration = RulePlainConfiguration | RuleWithUseAriaActivedescendantWithTabindexOptions;
|
|
1234
|
-
export type UseAriaPropsForRoleConfiguration = RulePlainConfiguration | RuleWithUseAriaPropsForRoleOptions;
|
|
1235
|
-
export type UseAriaPropsSupportedByRoleConfiguration = RulePlainConfiguration | RuleWithUseAriaPropsSupportedByRoleOptions;
|
|
1236
|
-
export type UseButtonTypeConfiguration = RulePlainConfiguration | RuleWithUseButtonTypeOptions;
|