@quentinhsu/biome-config 0.3.5 → 0.4.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.
Files changed (34) hide show
  1. package/dist/131.mjs +358 -0
  2. package/dist/build.mjs +108 -360
  3. package/dist/index.jsonc +1 -1
  4. package/dist/index.mjs +1 -358
  5. package/dist/next.jsonc +1 -1
  6. package/dist/nuxt.jsonc +1 -1
  7. package/dist/react.jsonc +1 -1
  8. package/dist/rslib-runtime.mjs +38 -0
  9. package/dist/types/scripts/tag-release.d.ts +1 -0
  10. package/dist/types/scripts/validate-config-properties.d.ts +1 -0
  11. package/dist/types/src/constants/biome.d.ts +1 -1
  12. package/dist/types/src/generated/biome/index.d.ts +12 -10
  13. package/dist/types/src/generated/biome/{no-label-var-options.d.ts → no-comment-text-options.d.ts} +217 -532
  14. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +74 -75
  15. package/dist/types/src/generated/biome/{use-qwik-classlist-configuration.d.ts → no-sync-scripts-configuration.d.ts} +56 -112
  16. package/dist/types/src/generated/biome/{use-focusable-interactive-configuration.d.ts → no-useless-constructor-configuration.d.ts} +33 -51
  17. package/dist/types/src/generated/biome/nursery.d.ts +822 -0
  18. package/dist/types/src/generated/biome/pattern-options.d.ts +1075 -0
  19. package/dist/types/src/generated/biome/rule-with-no-access-key-options.d.ts +555 -0
  20. package/dist/types/src/generated/biome/rule-with-no-blank-target-options.d.ts +530 -0
  21. package/dist/types/src/generated/biome/rule-with-no-fallthrough-switch-clause-options.d.ts +469 -0
  22. package/dist/types/src/generated/biome/rule-with-no-unknown-unit-options.d.ts +564 -0
  23. package/dist/types/src/generated/biome/schema.d.ts +24 -6
  24. package/dist/types/src/generated/biome/style.d.ts +614 -0
  25. package/dist/types/src/generated/biome/use-for-of-configuration.d.ts +144 -0
  26. package/dist/types/src/generated/biome/{no-magic-numbers-options.d.ts → use-unique-variable-names-options.d.ts} +127 -105
  27. package/dist/vue.jsonc +1 -1
  28. package/package.json +11 -7
  29. package/dist/types/src/generated/biome/linter-configuration.d.ts +0 -181
  30. package/dist/types/src/generated/biome/rule-with-no-confusing-labels-options.d.ts +0 -1236
  31. package/dist/types/src/generated/biome/rule-with-no-excessive-nested-test-suites-options.d.ts +0 -1440
  32. package/dist/types/src/generated/biome/rule-with-no-unused-expressions-options.d.ts +0 -1337
  33. package/dist/types/src/generated/biome/use-consistent-object-definitions-configuration.d.ts +0 -1304
  34. package/dist/types/src/generated/biome/use-shorthand-assign-configuration.d.ts +0 -571
@@ -0,0 +1,822 @@
1
+ import type { FixKind, GroupPlainConfiguration, RuleAssistPlainConfiguration, RulePlainConfiguration, SortOrder } from './schema.ts';
2
+ import type { Paths } from './rule-with-no-blank-target-options.ts';
3
+ import type { NoAmbiguousAnchorTextConfiguration, NoBeforeInteractiveScriptOutsideDocumentConfiguration, NoChildrenPropConfiguration, NoConstAssignConfiguration, NoConstantConditionConfiguration, NoConstantMathMinMaxClampConfiguration, NoConstructorReturnConfiguration, NoContinueConfiguration, NoDeprecatedImportsConfiguration, NoDuplicateDependenciesConfiguration, NoDuplicatedSpreadPropsConfiguration, NoEmptyCharacterClassInRegexConfiguration, NoEmptyPatternConfiguration, NoEmptySourceConfiguration, NoEqualsToNullConfiguration, NoFloatingPromisesConfiguration, NoForInConfiguration, NoGlobalDirnameFilenameConfiguration, NoGlobalObjectCallsConfiguration, NoImportCyclesConfiguration, NoIncrementDecrementConfiguration, NoInnerDeclarationsConfiguration, NoInvalidBuiltinInstantiationConfiguration, NoInvalidConstructorSuperConfiguration, NoInvalidDirectionInLinearGradientConfiguration, NoInvalidGridAreasConfiguration, NoInvalidPositionAtImportRuleConfiguration, NoInvalidUseBeforeDeclarationConfiguration, NoJsxLiteralsConfiguration, NoJsxPropsBindConfiguration, NoLeakedRenderConfiguration, NoMissingVarFunctionConfiguration, NoMisusedPromisesConfiguration, NoMultiAssignConfiguration, NoMultiStrConfiguration, NoNestedComponentDefinitionsConfiguration, NoNextAsyncClientComponentConfiguration, NoNodejsModulesConfiguration, NoNonoctalDecimalEscapeConfiguration, NoParametersOnlyUsedInRecursionConfiguration, NoPrecisionLossConfiguration, NoProcessGlobalConfiguration, NoProtoConfiguration, NoQwikUseVisibleTaskConfiguration, NoReactForwardRefConfiguration, NoReactPropAssignmentsConfiguration, NoRenderReturnValueConfiguration, NoReturnAssignConfiguration, NoScriptUrlConfiguration, NoSelfAssignConfiguration, NoSetterReturnConfiguration, NoShadowConfiguration, NoSolidDestructuredPropsConfiguration, NoStringCaseMismatchConfiguration, NoSwitchDeclarationsConfiguration, NoUndeclaredVariablesConfiguration, NoUnknownFunctionConfiguration, NoUnknownMediaFeatureNameConfiguration, NoUnknownPropertyConfiguration, NoUnknownPseudoClassConfiguration, NoUnknownPseudoElementConfiguration, NoUnknownTypeSelectorConfiguration, NoUnknownUnitConfiguration, NoUnmatchableAnbSelectorConfiguration, NoUnreachableConfiguration, NoUnreachableSuperConfiguration, NoUnsafeFinallyConfiguration, NoUnsafeOptionalChainingConfiguration, NoUnusedFunctionParametersConfiguration, NoUnusedImportsConfiguration, NoUnusedLabelsConfiguration, NoUnusedPrivateClassMembersConfiguration, NoUnusedVariablesConfiguration, NoVoidElementsWithChildrenConfiguration, NoVoidTypeReturnConfiguration, UseGraphqlNamedOperationsConfiguration, UseHookAtTopLevelConfiguration, UseImageSizeConfiguration, UseImportExtensionsConfiguration, UseIsNanConfiguration, UseJsonImportAttributesConfiguration, UseJsxKeyInIterableConfiguration, UseParseIntRadixConfiguration, UseQwikClasslistConfiguration, UseSingleJsDocAsteriskConfiguration, UseUniqueElementIdsConfiguration, UseValidForDirectionConfiguration, UseValidTypeofConfiguration, UseYieldConfiguration } from './no-useless-constructor-configuration.ts';
4
+ import type { NoSyncScriptsConfiguration, NoTernaryConfiguration, NoUnknownAttributeConfiguration, NoUnnecessaryConditionsConfiguration, NoUnresolvedImportsConfiguration, NoUnusedExpressionsConfiguration, NoUselessCatchBindingConfiguration, NoUselessUndefinedConfiguration, NoVueDataObjectDeclarationConfiguration, NoVueDuplicateKeysConfiguration, NoVueReservedKeysConfiguration, NoVueReservedPropsConfiguration, NoVueSetupPropsReactivityLossConfiguration, NoVueVIfWithVForConfiguration, UseArraySortCompareConfiguration, UseAwaitThenableConfiguration, UseDeprecatedDateConfiguration, UseDestructuringConfiguration, UseExhaustiveSwitchCasesConfiguration, UseExplicitTypeConfiguration, UseFindConfiguration, UseMaxParamsConfiguration, UseQwikMethodUsageConfiguration, UseQwikValidLexicalScopeConfiguration, UseRegexpExecConfiguration, UseRequiredScriptsConfiguration, UseSortedClassesConfiguration, UseSpreadConfiguration, UseUniqueArgumentNamesConfiguration, UseUniqueFieldDefinitionNamesConfiguration, UseUniqueGraphqlOperationNameConfiguration, UseUniqueInputFieldNamesConfiguration, UseUniqueVariableNamesConfiguration, UseVueDefineMacrosOrderConfiguration, UseVueHyphenatedAttributesConfiguration, UseVueMultiWordComponentNamesConfiguration, UseVueVForKeyConfiguration, UseVueValidTemplateRootConfiguration, UseVueValidVBindConfiguration, UseVueValidVCloakConfiguration, UseVueValidVElseConfiguration, UseVueValidVElseIfConfiguration, UseVueValidVHtmlConfiguration, UseVueValidVIfConfiguration, UseVueValidVOnConfiguration, UseVueValidVOnceConfiguration, UseVueValidVPreConfiguration, UseVueValidVTextConfiguration, UseVueVaporConfiguration } from './no-sync-scripts-configuration.ts';
5
+ import type { Convention, GroupMatcher, NoPrivateImportsConfiguration, NoRestrictedElementsConfiguration, NoUndeclaredDependenciesConfiguration, NoUndeclaredEnvVarsConfiguration, Patterns, Performance, RuleWithNoRestrictedTypesOptions, RuleWithUseFilenamingConventionOptions, Security, Suspicious, UseConsistentArrowReturnConfiguration, UseConsistentGraphqlDescriptionsConfiguration, UseExhaustiveDependenciesConfiguration, UseVueConsistentDefinePropsDeclarationConfiguration, UseVueConsistentVBindStyleConfiguration, UseVueConsistentVOnStyleConfiguration } from './pattern-options.ts';
6
+ /**
7
+ * A list of rules that belong to this group
8
+ */
9
+ export interface Nursery {
10
+ /**
11
+ * Disallow ambiguous anchor descriptions.
12
+ * See <https://biomejs.dev/linter/rules/no-ambiguous-anchor-text>
13
+ */
14
+ noAmbiguousAnchorText?: NoAmbiguousAnchorTextConfiguration | null;
15
+ /**
16
+ * Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js in a Next.js project.
17
+ * See <https://biomejs.dev/linter/rules/no-before-interactive-script-outside-document>
18
+ */
19
+ noBeforeInteractiveScriptOutsideDocument?: NoBeforeInteractiveScriptOutsideDocumentConfiguration | null;
20
+ /**
21
+ * Disallow continue statements.
22
+ * See <https://biomejs.dev/linter/rules/no-continue>
23
+ */
24
+ noContinue?: NoContinueConfiguration | null;
25
+ /**
26
+ * Restrict imports of deprecated exports.
27
+ * See <https://biomejs.dev/linter/rules/no-deprecated-imports>
28
+ */
29
+ noDeprecatedImports?: NoDeprecatedImportsConfiguration | null;
30
+ /**
31
+ * Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
32
+ * See <https://biomejs.dev/linter/rules/no-duplicate-dependencies>
33
+ */
34
+ noDuplicateDependencies?: NoDuplicateDependenciesConfiguration | null;
35
+ /**
36
+ * Disallow JSX prop spreading the same identifier multiple times.
37
+ * See <https://biomejs.dev/linter/rules/no-duplicated-spread-props>
38
+ */
39
+ noDuplicatedSpreadProps?: NoDuplicatedSpreadPropsConfiguration | null;
40
+ /**
41
+ * Disallow empty sources.
42
+ * See <https://biomejs.dev/linter/rules/no-empty-source>
43
+ */
44
+ noEmptySource?: NoEmptySourceConfiguration | null;
45
+ /**
46
+ * Require the use of === or !== for comparison with null.
47
+ * See <https://biomejs.dev/linter/rules/no-equals-to-null>
48
+ */
49
+ noEqualsToNull?: NoEqualsToNullConfiguration | null;
50
+ /**
51
+ * Require Promise-like statements to be handled appropriately.
52
+ * See <https://biomejs.dev/linter/rules/no-floating-promises>
53
+ */
54
+ noFloatingPromises?: NoFloatingPromisesConfiguration | null;
55
+ /**
56
+ * Disallow iterating using a for-in loop.
57
+ * See <https://biomejs.dev/linter/rules/no-for-in>
58
+ */
59
+ noForIn?: NoForInConfiguration | null;
60
+ /**
61
+ * Prevent import cycles.
62
+ * See <https://biomejs.dev/linter/rules/no-import-cycles>
63
+ */
64
+ noImportCycles?: NoImportCyclesConfiguration | null;
65
+ /**
66
+ * Disallows the usage of the unary operators ++ and --.
67
+ * See <https://biomejs.dev/linter/rules/no-increment-decrement>
68
+ */
69
+ noIncrementDecrement?: NoIncrementDecrementConfiguration | null;
70
+ /**
71
+ * Disallow string literals inside JSX elements.
72
+ * See <https://biomejs.dev/linter/rules/no-jsx-literals>
73
+ */
74
+ noJsxLiterals?: NoJsxLiteralsConfiguration | null;
75
+ /**
76
+ * Disallow .bind(), arrow functions, or function expressions in JSX props.
77
+ * See <https://biomejs.dev/linter/rules/no-jsx-props-bind>
78
+ */
79
+ noJsxPropsBind?: NoJsxPropsBindConfiguration | null;
80
+ /**
81
+ * Prevent problematic leaked values from being rendered.
82
+ * See <https://biomejs.dev/linter/rules/no-leaked-render>
83
+ */
84
+ noLeakedRender?: NoLeakedRenderConfiguration | null;
85
+ /**
86
+ * Disallow Promises to be used in places where they are almost certainly a mistake.
87
+ * See <https://biomejs.dev/linter/rules/no-misused-promises>
88
+ */
89
+ noMisusedPromises?: NoMisusedPromisesConfiguration | null;
90
+ /**
91
+ * Disallow use of chained assignment expressions.
92
+ * See <https://biomejs.dev/linter/rules/no-multi-assign>
93
+ */
94
+ noMultiAssign?: NoMultiAssignConfiguration | null;
95
+ /**
96
+ * Disallow creating multiline strings by escaping newlines.
97
+ * See <https://biomejs.dev/linter/rules/no-multi-str>
98
+ */
99
+ noMultiStr?: NoMultiStrConfiguration | null;
100
+ /**
101
+ * Prevent client components from being async functions.
102
+ * See <https://biomejs.dev/linter/rules/no-next-async-client-component>
103
+ */
104
+ noNextAsyncClientComponent?: NoNextAsyncClientComponentConfiguration | null;
105
+ /**
106
+ * Disallow function parameters that are only used in recursive calls.
107
+ * See <https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion>
108
+ */
109
+ noParametersOnlyUsedInRecursion?: NoParametersOnlyUsedInRecursionConfiguration | null;
110
+ /**
111
+ * Disallow the use of the deprecated __proto__ object property.
112
+ * See <https://biomejs.dev/linter/rules/no-proto>
113
+ */
114
+ noProto?: NoProtoConfiguration | null;
115
+ /**
116
+ * Replaces usages of forwardRef with passing ref as a prop.
117
+ * See <https://biomejs.dev/linter/rules/no-react-forward-ref>
118
+ */
119
+ noReactForwardRef?: NoReactForwardRefConfiguration | null;
120
+ /**
121
+ * Disallow assignments in return statements.
122
+ * See <https://biomejs.dev/linter/rules/no-return-assign>
123
+ */
124
+ noReturnAssign?: NoReturnAssignConfiguration | null;
125
+ /**
126
+ * Disallow javascript: URLs in HTML.
127
+ * See <https://biomejs.dev/linter/rules/no-script-url>
128
+ */
129
+ noScriptUrl?: NoScriptUrlConfiguration | null;
130
+ /**
131
+ * Disallow variable declarations from shadowing variables declared in the outer scope.
132
+ * See <https://biomejs.dev/linter/rules/no-shadow>
133
+ */
134
+ noShadow?: NoShadowConfiguration | null;
135
+ /**
136
+ * Prevent the usage of synchronous scripts.
137
+ * See <https://biomejs.dev/linter/rules/no-sync-scripts>
138
+ */
139
+ noSyncScripts?: NoSyncScriptsConfiguration | null;
140
+ /**
141
+ * Disallow ternary operators.
142
+ * See <https://biomejs.dev/linter/rules/no-ternary>
143
+ */
144
+ noTernary?: NoTernaryConfiguration | null;
145
+ /**
146
+ * Disallow the use of undeclared environment variables.
147
+ * See <https://biomejs.dev/linter/rules/no-undeclared-env-vars>
148
+ */
149
+ noUndeclaredEnvVars?: NoUndeclaredEnvVarsConfiguration | null;
150
+ /**
151
+ * Disallow unknown DOM properties.
152
+ * See <https://biomejs.dev/linter/rules/no-unknown-attribute>
153
+ */
154
+ noUnknownAttribute?: NoUnknownAttributeConfiguration | null;
155
+ /**
156
+ * Disallow unnecessary type-based conditions that can be statically determined as redundant.
157
+ * See <https://biomejs.dev/linter/rules/no-unnecessary-conditions>
158
+ */
159
+ noUnnecessaryConditions?: NoUnnecessaryConditionsConfiguration | null;
160
+ /**
161
+ * Warn when importing non-existing exports.
162
+ * See <https://biomejs.dev/linter/rules/no-unresolved-imports>
163
+ */
164
+ noUnresolvedImports?: NoUnresolvedImportsConfiguration | null;
165
+ /**
166
+ * Disallow expression statements that are neither a function call nor an assignment.
167
+ * See <https://biomejs.dev/linter/rules/no-unused-expressions>
168
+ */
169
+ noUnusedExpressions?: NoUnusedExpressionsConfiguration | null;
170
+ /**
171
+ * Disallow unused catch bindings.
172
+ * See <https://biomejs.dev/linter/rules/no-useless-catch-binding>
173
+ */
174
+ noUselessCatchBinding?: NoUselessCatchBindingConfiguration | null;
175
+ /**
176
+ * Disallow the use of useless undefined.
177
+ * See <https://biomejs.dev/linter/rules/no-useless-undefined>
178
+ */
179
+ noUselessUndefined?: NoUselessUndefinedConfiguration | null;
180
+ /**
181
+ * Enforce that Vue component data options are declared as functions.
182
+ * See <https://biomejs.dev/linter/rules/no-vue-data-object-declaration>
183
+ */
184
+ noVueDataObjectDeclaration?: NoVueDataObjectDeclarationConfiguration | null;
185
+ /**
186
+ * Disallow duplicate keys in Vue component data, methods, computed properties, and other options.
187
+ * See <https://biomejs.dev/linter/rules/no-vue-duplicate-keys>
188
+ */
189
+ noVueDuplicateKeys?: NoVueDuplicateKeysConfiguration | null;
190
+ /**
191
+ * Disallow reserved keys in Vue component data and computed properties.
192
+ * See <https://biomejs.dev/linter/rules/no-vue-reserved-keys>
193
+ */
194
+ noVueReservedKeys?: NoVueReservedKeysConfiguration | null;
195
+ /**
196
+ * Disallow reserved names to be used as props.
197
+ * See <https://biomejs.dev/linter/rules/no-vue-reserved-props>
198
+ */
199
+ noVueReservedProps?: NoVueReservedPropsConfiguration | null;
200
+ /**
201
+ * Disallow destructuring of props passed to setup in Vue projects.
202
+ * See <https://biomejs.dev/linter/rules/no-vue-setup-props-reactivity-loss>
203
+ */
204
+ noVueSetupPropsReactivityLoss?: NoVueSetupPropsReactivityLossConfiguration | null;
205
+ /**
206
+ * Disallow using v-if and v-for directives on the same element.
207
+ * See <https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for>
208
+ */
209
+ noVueVIfWithVFor?: NoVueVIfWithVForConfiguration | null;
210
+ /**
211
+ * Enables the recommended rules for this group
212
+ */
213
+ recommended?: boolean | null;
214
+ /**
215
+ * Require Array#sort and Array#toSorted calls to always provide a compareFunction.
216
+ * See <https://biomejs.dev/linter/rules/use-array-sort-compare>
217
+ */
218
+ useArraySortCompare?: UseArraySortCompareConfiguration | null;
219
+ /**
220
+ * Enforce that await is only used on Promise values.
221
+ * See <https://biomejs.dev/linter/rules/use-await-thenable>
222
+ */
223
+ useAwaitThenable?: UseAwaitThenableConfiguration | null;
224
+ /**
225
+ * Enforce consistent arrow function bodies.
226
+ * See <https://biomejs.dev/linter/rules/use-consistent-arrow-return>
227
+ */
228
+ useConsistentArrowReturn?: UseConsistentArrowReturnConfiguration | null;
229
+ /**
230
+ * Require all descriptions to follow the same style (either block or inline) to maintain consistency and improve readability across the schema.
231
+ * See <https://biomejs.dev/linter/rules/use-consistent-graphql-descriptions>
232
+ */
233
+ useConsistentGraphqlDescriptions?: UseConsistentGraphqlDescriptionsConfiguration | null;
234
+ /**
235
+ * Require the @deprecated directive to specify a deletion date.
236
+ * See <https://biomejs.dev/linter/rules/use-deprecated-date>
237
+ */
238
+ useDeprecatedDate?: UseDeprecatedDateConfiguration | null;
239
+ /**
240
+ * Require destructuring from arrays and/or objects.
241
+ * See <https://biomejs.dev/linter/rules/use-destructuring>
242
+ */
243
+ useDestructuring?: UseDestructuringConfiguration | null;
244
+ /**
245
+ * Require switch-case statements to be exhaustive.
246
+ * See <https://biomejs.dev/linter/rules/use-exhaustive-switch-cases>
247
+ */
248
+ useExhaustiveSwitchCases?: UseExhaustiveSwitchCasesConfiguration | null;
249
+ /**
250
+ * Enforce types in functions, methods, variables, and parameters.
251
+ * See <https://biomejs.dev/linter/rules/use-explicit-type>
252
+ */
253
+ useExplicitType?: UseExplicitTypeConfiguration | null;
254
+ /**
255
+ * Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.
256
+ * See <https://biomejs.dev/linter/rules/use-find>
257
+ */
258
+ useFind?: UseFindConfiguration | null;
259
+ /**
260
+ * Enforce a maximum number of parameters in function definitions.
261
+ * See <https://biomejs.dev/linter/rules/use-max-params>
262
+ */
263
+ useMaxParams?: UseMaxParamsConfiguration | null;
264
+ /**
265
+ * Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
266
+ * See <https://biomejs.dev/linter/rules/use-qwik-method-usage>
267
+ */
268
+ useQwikMethodUsage?: UseQwikMethodUsageConfiguration | null;
269
+ /**
270
+ * Disallow unserializable expressions in Qwik dollar ($) scopes.
271
+ * See <https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope>
272
+ */
273
+ useQwikValidLexicalScope?: UseQwikValidLexicalScopeConfiguration | null;
274
+ /**
275
+ * Enforce RegExp#exec over String#match if no global flag is provided.
276
+ * See <https://biomejs.dev/linter/rules/use-regexp-exec>
277
+ */
278
+ useRegexpExec?: UseRegexpExecConfiguration | null;
279
+ /**
280
+ * Enforce the presence of required scripts in package.json.
281
+ * See <https://biomejs.dev/linter/rules/use-required-scripts>
282
+ */
283
+ useRequiredScripts?: UseRequiredScriptsConfiguration | null;
284
+ /**
285
+ * Enforce the sorting of CSS utility classes.
286
+ * See <https://biomejs.dev/linter/rules/use-sorted-classes>
287
+ */
288
+ useSortedClasses?: UseSortedClassesConfiguration | null;
289
+ /**
290
+ * Enforce the use of the spread operator over .apply().
291
+ * See <https://biomejs.dev/linter/rules/use-spread>
292
+ */
293
+ useSpread?: UseSpreadConfiguration | null;
294
+ /**
295
+ * Require all argument names for fields & directives to be unique.
296
+ * See <https://biomejs.dev/linter/rules/use-unique-argument-names>
297
+ */
298
+ useUniqueArgumentNames?: UseUniqueArgumentNamesConfiguration | null;
299
+ /**
300
+ * Require all fields of a type to be unique.
301
+ * See <https://biomejs.dev/linter/rules/use-unique-field-definition-names>
302
+ */
303
+ useUniqueFieldDefinitionNames?: UseUniqueFieldDefinitionNamesConfiguration | null;
304
+ /**
305
+ * Enforce unique operation names across a GraphQL document.
306
+ * See <https://biomejs.dev/linter/rules/use-unique-graphql-operation-name>
307
+ */
308
+ useUniqueGraphqlOperationName?: UseUniqueGraphqlOperationNameConfiguration | null;
309
+ /**
310
+ * Require fields within an input object to be unique.
311
+ * See <https://biomejs.dev/linter/rules/use-unique-input-field-names>
312
+ */
313
+ useUniqueInputFieldNames?: UseUniqueInputFieldNamesConfiguration | null;
314
+ /**
315
+ * Require all variable definitions to be unique.
316
+ * See <https://biomejs.dev/linter/rules/use-unique-variable-names>
317
+ */
318
+ useUniqueVariableNames?: UseUniqueVariableNamesConfiguration | null;
319
+ /**
320
+ * Enforce consistent defineProps declaration style.
321
+ * See <https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration>
322
+ */
323
+ useVueConsistentDefinePropsDeclaration?: UseVueConsistentDefinePropsDeclarationConfiguration | null;
324
+ /**
325
+ * Enforce a consistent style for v-bind in Vue templates.
326
+ * See <https://biomejs.dev/linter/rules/use-vue-consistent-v-bind-style>
327
+ */
328
+ useVueConsistentVBindStyle?: UseVueConsistentVBindStyleConfiguration | null;
329
+ /**
330
+ * Enforce a consistent style for v-on in Vue templates.
331
+ * See <https://biomejs.dev/linter/rules/use-vue-consistent-v-on-style>
332
+ */
333
+ useVueConsistentVOnStyle?: UseVueConsistentVOnStyleConfiguration | null;
334
+ /**
335
+ * Enforce specific order of Vue compiler macros.
336
+ * See <https://biomejs.dev/linter/rules/use-vue-define-macros-order>
337
+ */
338
+ useVueDefineMacrosOrder?: UseVueDefineMacrosOrderConfiguration | null;
339
+ /**
340
+ * Enforce hyphenated (kebab-case) attribute names in Vue templates.
341
+ * See <https://biomejs.dev/linter/rules/use-vue-hyphenated-attributes>
342
+ */
343
+ useVueHyphenatedAttributes?: UseVueHyphenatedAttributesConfiguration | null;
344
+ /**
345
+ * Enforce multi-word component names in Vue components.
346
+ * See <https://biomejs.dev/linter/rules/use-vue-multi-word-component-names>
347
+ */
348
+ useVueMultiWordComponentNames?: UseVueMultiWordComponentNamesConfiguration | null;
349
+ /**
350
+ * Enforce that elements using v-for also specify a unique key.
351
+ * See <https://biomejs.dev/linter/rules/use-vue-v-for-key>
352
+ */
353
+ useVueVForKey?: UseVueVForKeyConfiguration | null;
354
+ /**
355
+ * Enforce valid Vue \<template> root usage.
356
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-template-root>
357
+ */
358
+ useVueValidTemplateRoot?: UseVueValidTemplateRootConfiguration | null;
359
+ /**
360
+ * Forbids v-bind directives with missing arguments or invalid modifiers.
361
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-bind>
362
+ */
363
+ useVueValidVBind?: UseVueValidVBindConfiguration | null;
364
+ /**
365
+ * Enforce valid v-cloak Vue directives.
366
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-cloak>
367
+ */
368
+ useVueValidVCloak?: UseVueValidVCloakConfiguration | null;
369
+ /**
370
+ * Enforce valid usage of v-else.
371
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-else>
372
+ */
373
+ useVueValidVElse?: UseVueValidVElseConfiguration | null;
374
+ /**
375
+ * Enforce valid v-else-if directives.
376
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-else-if>
377
+ */
378
+ useVueValidVElseIf?: UseVueValidVElseIfConfiguration | null;
379
+ /**
380
+ * Enforce valid v-html directives.
381
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-html>
382
+ */
383
+ useVueValidVHtml?: UseVueValidVHtmlConfiguration | null;
384
+ /**
385
+ * Enforces valid v-if usage for Vue templates.
386
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-if>
387
+ */
388
+ useVueValidVIf?: UseVueValidVIfConfiguration | null;
389
+ /**
390
+ * Enforce valid v-on directives with proper arguments, modifiers, and handlers.
391
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-on>
392
+ */
393
+ useVueValidVOn?: UseVueValidVOnConfiguration | null;
394
+ /**
395
+ * Enforce valid v-once Vue directives.
396
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-once>
397
+ */
398
+ useVueValidVOnce?: UseVueValidVOnceConfiguration | null;
399
+ /**
400
+ * Enforce valid v-pre Vue directives.
401
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-pre>
402
+ */
403
+ useVueValidVPre?: UseVueValidVPreConfiguration | null;
404
+ /**
405
+ * Enforce valid v-text Vue directives.
406
+ * See <https://biomejs.dev/linter/rules/use-vue-valid-v-text>
407
+ */
408
+ useVueValidVText?: UseVueValidVTextConfiguration | null;
409
+ /**
410
+ * Enforce opting in to Vue Vapor mode in \<script setup> blocks.
411
+ * See <https://biomejs.dev/linter/rules/use-vue-vapor>
412
+ */
413
+ useVueVapor?: UseVueVaporConfiguration | null;
414
+ }
415
+ export type SeverityOrPerformance = GroupPlainConfiguration | Performance;
416
+ export type SeverityOrSecurity = GroupPlainConfiguration | Security;
417
+ export type NoRestrictedTypesConfiguration = RulePlainConfiguration | RuleWithNoRestrictedTypesOptions;
418
+ export type UseFilenamingConventionConfiguration = RulePlainConfiguration | RuleWithUseFilenamingConventionOptions;
419
+ /**
420
+ * Rule's options.
421
+ */
422
+ export interface UseNamingConventionOptions {
423
+ /**
424
+ * Custom conventions.
425
+ */
426
+ conventions?: Convention[] | null;
427
+ /**
428
+ * If `false`, then non-ASCII characters are allowed.
429
+ */
430
+ requireAscii?: boolean | null;
431
+ /**
432
+ * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases.
433
+ * This does not affect other [Case].
434
+ */
435
+ strictCase?: boolean | null;
436
+ }
437
+ export type SeverityOrSuspicious = GroupPlainConfiguration | Suspicious;
438
+ export type ImportGroup = null | GroupMatcher | GroupMatcher[];
439
+ export interface NoRestrictedImportsOptions {
440
+ /**
441
+ * A list of import paths that should trigger the rule.
442
+ */
443
+ paths?: {
444
+ [k: string]: Paths;
445
+ } | null;
446
+ /**
447
+ * gitignore-style patterns that should trigger the rule.
448
+ */
449
+ patterns?: Patterns[] | null;
450
+ }
451
+ /**
452
+ * A list of rules that belong to this group
453
+ */
454
+ export interface Correctness {
455
+ /**
456
+ * Prevent passing of children as props.
457
+ * See <https://biomejs.dev/linter/rules/no-children-prop>
458
+ */
459
+ noChildrenProp?: NoChildrenPropConfiguration | null;
460
+ /**
461
+ * Prevents from having const variables being re-assigned.
462
+ * See <https://biomejs.dev/linter/rules/no-const-assign>
463
+ */
464
+ noConstAssign?: NoConstAssignConfiguration | null;
465
+ /**
466
+ * Disallow constant expressions in conditions.
467
+ * See <https://biomejs.dev/linter/rules/no-constant-condition>
468
+ */
469
+ noConstantCondition?: NoConstantConditionConfiguration | null;
470
+ /**
471
+ * Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
472
+ * See <https://biomejs.dev/linter/rules/no-constant-math-min-max-clamp>
473
+ */
474
+ noConstantMathMinMaxClamp?: NoConstantMathMinMaxClampConfiguration | null;
475
+ /**
476
+ * Disallow returning a value from a constructor.
477
+ * See <https://biomejs.dev/linter/rules/no-constructor-return>
478
+ */
479
+ noConstructorReturn?: NoConstructorReturnConfiguration | null;
480
+ /**
481
+ * Disallow empty character classes in regular expression literals.
482
+ * See <https://biomejs.dev/linter/rules/no-empty-character-class-in-regex>
483
+ */
484
+ noEmptyCharacterClassInRegex?: NoEmptyCharacterClassInRegexConfiguration | null;
485
+ /**
486
+ * Disallows empty destructuring patterns.
487
+ * See <https://biomejs.dev/linter/rules/no-empty-pattern>
488
+ */
489
+ noEmptyPattern?: NoEmptyPatternConfiguration | null;
490
+ /**
491
+ * Disallow the use of __dirname and __filename in the global scope.
492
+ * See <https://biomejs.dev/linter/rules/no-global-dirname-filename>
493
+ */
494
+ noGlobalDirnameFilename?: NoGlobalDirnameFilenameConfiguration | null;
495
+ /**
496
+ * Disallow calling global object properties as functions.
497
+ * See <https://biomejs.dev/linter/rules/no-global-object-calls>
498
+ */
499
+ noGlobalObjectCalls?: NoGlobalObjectCallsConfiguration | null;
500
+ /**
501
+ * Disallow function and var declarations that are accessible outside their block.
502
+ * See <https://biomejs.dev/linter/rules/no-inner-declarations>
503
+ */
504
+ noInnerDeclarations?: NoInnerDeclarationsConfiguration | null;
505
+ /**
506
+ * Ensure that builtins are correctly instantiated.
507
+ * See <https://biomejs.dev/linter/rules/no-invalid-builtin-instantiation>
508
+ */
509
+ noInvalidBuiltinInstantiation?: NoInvalidBuiltinInstantiationConfiguration | null;
510
+ /**
511
+ * Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.
512
+ * See <https://biomejs.dev/linter/rules/no-invalid-constructor-super>
513
+ */
514
+ noInvalidConstructorSuper?: NoInvalidConstructorSuperConfiguration | null;
515
+ /**
516
+ * Disallow non-standard direction values for linear gradient functions.
517
+ * See <https://biomejs.dev/linter/rules/no-invalid-direction-in-linear-gradient>
518
+ */
519
+ noInvalidDirectionInLinearGradient?: NoInvalidDirectionInLinearGradientConfiguration | null;
520
+ /**
521
+ * Disallows invalid named grid areas in CSS Grid Layouts.
522
+ * See <https://biomejs.dev/linter/rules/no-invalid-grid-areas>
523
+ */
524
+ noInvalidGridAreas?: NoInvalidGridAreasConfiguration | null;
525
+ /**
526
+ * Disallow the use of @import at-rules in invalid positions.
527
+ * See <https://biomejs.dev/linter/rules/no-invalid-position-at-import-rule>
528
+ */
529
+ noInvalidPositionAtImportRule?: NoInvalidPositionAtImportRuleConfiguration | null;
530
+ /**
531
+ * Disallow the use of variables, function parameters, classes, and enums before their declaration.
532
+ * See <https://biomejs.dev/linter/rules/no-invalid-use-before-declaration>
533
+ */
534
+ noInvalidUseBeforeDeclaration?: NoInvalidUseBeforeDeclarationConfiguration | null;
535
+ /**
536
+ * Disallow missing var function for css variables.
537
+ * See <https://biomejs.dev/linter/rules/no-missing-var-function>
538
+ */
539
+ noMissingVarFunction?: NoMissingVarFunctionConfiguration | null;
540
+ /**
541
+ * Disallows defining React components inside other components.
542
+ * See <https://biomejs.dev/linter/rules/no-nested-component-definitions>
543
+ */
544
+ noNestedComponentDefinitions?: NoNestedComponentDefinitionsConfiguration | null;
545
+ /**
546
+ * Forbid the use of Node.js builtin modules.
547
+ * See <https://biomejs.dev/linter/rules/no-nodejs-modules>
548
+ */
549
+ noNodejsModules?: NoNodejsModulesConfiguration | null;
550
+ /**
551
+ * Disallow \8 and \9 escape sequences in string literals.
552
+ * See <https://biomejs.dev/linter/rules/no-nonoctal-decimal-escape>
553
+ */
554
+ noNonoctalDecimalEscape?: NoNonoctalDecimalEscapeConfiguration | null;
555
+ /**
556
+ * Disallow literal numbers that lose precision.
557
+ * See <https://biomejs.dev/linter/rules/no-precision-loss>
558
+ */
559
+ noPrecisionLoss?: NoPrecisionLossConfiguration | null;
560
+ /**
561
+ * Restrict imports of private exports.
562
+ * See <https://biomejs.dev/linter/rules/no-private-imports>
563
+ */
564
+ noPrivateImports?: NoPrivateImportsConfiguration | null;
565
+ /**
566
+ * Disallow the use of process global.
567
+ * See <https://biomejs.dev/linter/rules/no-process-global>
568
+ */
569
+ noProcessGlobal?: NoProcessGlobalConfiguration | null;
570
+ /**
571
+ * Disallow useVisibleTask$() functions in Qwik components.
572
+ * See <https://biomejs.dev/linter/rules/no-qwik-use-visible-task>
573
+ */
574
+ noQwikUseVisibleTask?: NoQwikUseVisibleTaskConfiguration | null;
575
+ /**
576
+ * Disallow assigning to React component props.
577
+ * See <https://biomejs.dev/linter/rules/no-react-prop-assignments>
578
+ */
579
+ noReactPropAssignments?: NoReactPropAssignmentsConfiguration | null;
580
+ /**
581
+ * Prevent the usage of the return value of React.render.
582
+ * See <https://biomejs.dev/linter/rules/no-render-return-value>
583
+ */
584
+ noRenderReturnValue?: NoRenderReturnValueConfiguration | null;
585
+ /**
586
+ * Disallow the use of configured elements.
587
+ * See <https://biomejs.dev/linter/rules/no-restricted-elements>
588
+ */
589
+ noRestrictedElements?: NoRestrictedElementsConfiguration | null;
590
+ /**
591
+ * Disallow assignments where both sides are exactly the same.
592
+ * See <https://biomejs.dev/linter/rules/no-self-assign>
593
+ */
594
+ noSelfAssign?: NoSelfAssignConfiguration | null;
595
+ /**
596
+ * Disallow returning a value from a setter.
597
+ * See <https://biomejs.dev/linter/rules/no-setter-return>
598
+ */
599
+ noSetterReturn?: NoSetterReturnConfiguration | null;
600
+ /**
601
+ * Disallow destructuring props inside JSX components in Solid projects.
602
+ * See <https://biomejs.dev/linter/rules/no-solid-destructured-props>
603
+ */
604
+ noSolidDestructuredProps?: NoSolidDestructuredPropsConfiguration | null;
605
+ /**
606
+ * Disallow comparison of expressions modifying the string case with non-compliant value.
607
+ * See <https://biomejs.dev/linter/rules/no-string-case-mismatch>
608
+ */
609
+ noStringCaseMismatch?: NoStringCaseMismatchConfiguration | null;
610
+ /**
611
+ * Disallow lexical declarations in switch clauses.
612
+ * See <https://biomejs.dev/linter/rules/no-switch-declarations>
613
+ */
614
+ noSwitchDeclarations?: NoSwitchDeclarationsConfiguration | null;
615
+ /**
616
+ * Disallow the use of dependencies that aren't specified in the package.json.
617
+ * See <https://biomejs.dev/linter/rules/no-undeclared-dependencies>
618
+ */
619
+ noUndeclaredDependencies?: NoUndeclaredDependenciesConfiguration | null;
620
+ /**
621
+ * Prevents the usage of variables that haven't been declared inside the document.
622
+ * See <https://biomejs.dev/linter/rules/no-undeclared-variables>
623
+ */
624
+ noUndeclaredVariables?: NoUndeclaredVariablesConfiguration | null;
625
+ /**
626
+ * Disallow unknown CSS value functions.
627
+ * See <https://biomejs.dev/linter/rules/no-unknown-function>
628
+ */
629
+ noUnknownFunction?: NoUnknownFunctionConfiguration | null;
630
+ /**
631
+ * Disallow unknown media feature names.
632
+ * See <https://biomejs.dev/linter/rules/no-unknown-media-feature-name>
633
+ */
634
+ noUnknownMediaFeatureName?: NoUnknownMediaFeatureNameConfiguration | null;
635
+ /**
636
+ * Disallow unknown properties.
637
+ * See <https://biomejs.dev/linter/rules/no-unknown-property>
638
+ */
639
+ noUnknownProperty?: NoUnknownPropertyConfiguration | null;
640
+ /**
641
+ * Disallow unknown pseudo-class selectors.
642
+ * See <https://biomejs.dev/linter/rules/no-unknown-pseudo-class>
643
+ */
644
+ noUnknownPseudoClass?: NoUnknownPseudoClassConfiguration | null;
645
+ /**
646
+ * Disallow unknown pseudo-element selectors.
647
+ * See <https://biomejs.dev/linter/rules/no-unknown-pseudo-element>
648
+ */
649
+ noUnknownPseudoElement?: NoUnknownPseudoElementConfiguration | null;
650
+ /**
651
+ * Disallow unknown type selectors.
652
+ * See <https://biomejs.dev/linter/rules/no-unknown-type-selector>
653
+ */
654
+ noUnknownTypeSelector?: NoUnknownTypeSelectorConfiguration | null;
655
+ /**
656
+ * Disallow unknown CSS units.
657
+ * See <https://biomejs.dev/linter/rules/no-unknown-unit>
658
+ */
659
+ noUnknownUnit?: NoUnknownUnitConfiguration | null;
660
+ /**
661
+ * Disallow unmatchable An+B selectors.
662
+ * See <https://biomejs.dev/linter/rules/no-unmatchable-anb-selector>
663
+ */
664
+ noUnmatchableAnbSelector?: NoUnmatchableAnbSelectorConfiguration | null;
665
+ /**
666
+ * Disallow unreachable code.
667
+ * See <https://biomejs.dev/linter/rules/no-unreachable>
668
+ */
669
+ noUnreachable?: NoUnreachableConfiguration | null;
670
+ /**
671
+ * Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass.
672
+ * See <https://biomejs.dev/linter/rules/no-unreachable-super>
673
+ */
674
+ noUnreachableSuper?: NoUnreachableSuperConfiguration | null;
675
+ /**
676
+ * Disallow control flow statements in finally blocks.
677
+ * See <https://biomejs.dev/linter/rules/no-unsafe-finally>
678
+ */
679
+ noUnsafeFinally?: NoUnsafeFinallyConfiguration | null;
680
+ /**
681
+ * Disallow the use of optional chaining in contexts where the undefined value is not allowed.
682
+ * See <https://biomejs.dev/linter/rules/no-unsafe-optional-chaining>
683
+ */
684
+ noUnsafeOptionalChaining?: NoUnsafeOptionalChainingConfiguration | null;
685
+ /**
686
+ * Disallow unused function parameters.
687
+ * See <https://biomejs.dev/linter/rules/no-unused-function-parameters>
688
+ */
689
+ noUnusedFunctionParameters?: NoUnusedFunctionParametersConfiguration | null;
690
+ /**
691
+ * Disallow unused imports.
692
+ * See <https://biomejs.dev/linter/rules/no-unused-imports>
693
+ */
694
+ noUnusedImports?: NoUnusedImportsConfiguration | null;
695
+ /**
696
+ * Disallow unused labels.
697
+ * See <https://biomejs.dev/linter/rules/no-unused-labels>
698
+ */
699
+ noUnusedLabels?: NoUnusedLabelsConfiguration | null;
700
+ /**
701
+ * Disallow unused private class members.
702
+ * See <https://biomejs.dev/linter/rules/no-unused-private-class-members>
703
+ */
704
+ noUnusedPrivateClassMembers?: NoUnusedPrivateClassMembersConfiguration | null;
705
+ /**
706
+ * Disallow unused variables.
707
+ * See <https://biomejs.dev/linter/rules/no-unused-variables>
708
+ */
709
+ noUnusedVariables?: NoUnusedVariablesConfiguration | null;
710
+ /**
711
+ * This rules prevents void elements (AKA self-closing elements) from having children.
712
+ * See <https://biomejs.dev/linter/rules/no-void-elements-with-children>
713
+ */
714
+ noVoidElementsWithChildren?: NoVoidElementsWithChildrenConfiguration | null;
715
+ /**
716
+ * Disallow returning a value from a function with the return type 'void'.
717
+ * See <https://biomejs.dev/linter/rules/no-void-type-return>
718
+ */
719
+ noVoidTypeReturn?: NoVoidTypeReturnConfiguration | null;
720
+ /**
721
+ * Enables the recommended rules for this group
722
+ */
723
+ recommended?: boolean | null;
724
+ /**
725
+ * Enforce correct dependency usage within React hooks.
726
+ * See <https://biomejs.dev/linter/rules/use-exhaustive-dependencies>
727
+ */
728
+ useExhaustiveDependencies?: UseExhaustiveDependenciesConfiguration | null;
729
+ /**
730
+ * Enforce specifying the name of GraphQL operations.
731
+ * See <https://biomejs.dev/linter/rules/use-graphql-named-operations>
732
+ */
733
+ useGraphqlNamedOperations?: UseGraphqlNamedOperationsConfiguration | null;
734
+ /**
735
+ * Enforce that all React hooks are being called from the Top Level component functions.
736
+ * See <https://biomejs.dev/linter/rules/use-hook-at-top-level>
737
+ */
738
+ useHookAtTopLevel?: UseHookAtTopLevelConfiguration | null;
739
+ /**
740
+ * Enforces that \<img> elements have both width and height attributes.
741
+ * See <https://biomejs.dev/linter/rules/use-image-size>
742
+ */
743
+ useImageSize?: UseImageSizeConfiguration | null;
744
+ /**
745
+ * Enforce file extensions for relative imports.
746
+ * See <https://biomejs.dev/linter/rules/use-import-extensions>
747
+ */
748
+ useImportExtensions?: UseImportExtensionsConfiguration | null;
749
+ /**
750
+ * Require calls to isNaN() when checking for NaN.
751
+ * See <https://biomejs.dev/linter/rules/use-is-nan>
752
+ */
753
+ useIsNan?: UseIsNanConfiguration | null;
754
+ /**
755
+ * Enforces the use of with { type: "json" } for JSON module imports.
756
+ * See <https://biomejs.dev/linter/rules/use-json-import-attributes>
757
+ */
758
+ useJsonImportAttributes?: UseJsonImportAttributesConfiguration | null;
759
+ /**
760
+ * Disallow missing key props in iterators/collection literals.
761
+ * See <https://biomejs.dev/linter/rules/use-jsx-key-in-iterable>
762
+ */
763
+ useJsxKeyInIterable?: UseJsxKeyInIterableConfiguration | null;
764
+ /**
765
+ * Enforce the consistent use of the radix argument when using parseInt().
766
+ * See <https://biomejs.dev/linter/rules/use-parse-int-radix>
767
+ */
768
+ useParseIntRadix?: UseParseIntRadixConfiguration | null;
769
+ /**
770
+ * Prefer using the class prop as a classlist over the classnames helper.
771
+ * See <https://biomejs.dev/linter/rules/use-qwik-classlist>
772
+ */
773
+ useQwikClasslist?: UseQwikClasslistConfiguration | null;
774
+ /**
775
+ * Enforce JSDoc comment lines to start with a single asterisk, except for the first one.
776
+ * See <https://biomejs.dev/linter/rules/use-single-js-doc-asterisk>
777
+ */
778
+ useSingleJsDocAsterisk?: UseSingleJsDocAsteriskConfiguration | null;
779
+ /**
780
+ * Prevent the usage of static string literal id attribute on elements.
781
+ * See <https://biomejs.dev/linter/rules/use-unique-element-ids>
782
+ */
783
+ useUniqueElementIds?: UseUniqueElementIdsConfiguration | null;
784
+ /**
785
+ * Enforce "for" loop update clause moving the counter in the right direction.
786
+ * See <https://biomejs.dev/linter/rules/use-valid-for-direction>
787
+ */
788
+ useValidForDirection?: UseValidForDirectionConfiguration | null;
789
+ /**
790
+ * This rule checks that the result of a typeof expression is compared to a valid value.
791
+ * See <https://biomejs.dev/linter/rules/use-valid-typeof>
792
+ */
793
+ useValidTypeof?: UseValidTypeofConfiguration | null;
794
+ /**
795
+ * Require generator functions to contain yield.
796
+ * See <https://biomejs.dev/linter/rules/use-yield>
797
+ */
798
+ useYield?: UseYieldConfiguration | null;
799
+ }
800
+ export type SeverityOrNursery = GroupPlainConfiguration | Nursery;
801
+ export interface RuleWithUseNamingConventionOptions {
802
+ fix?: FixKind | null;
803
+ level: RulePlainConfiguration;
804
+ options?: UseNamingConventionOptions;
805
+ }
806
+ export type ImportGroups = ImportGroup[];
807
+ export interface RuleWithNoRestrictedImportsOptions {
808
+ level: RulePlainConfiguration;
809
+ options?: NoRestrictedImportsOptions;
810
+ }
811
+ export type SeverityOrCorrectness = GroupPlainConfiguration | Correctness;
812
+ export type UseNamingConventionConfiguration = RulePlainConfiguration | RuleWithUseNamingConventionOptions;
813
+ export interface OrganizeImportsOptions {
814
+ groups?: ImportGroups | null;
815
+ identifierOrder?: SortOrder | null;
816
+ }
817
+ export type NoRestrictedImportsConfiguration = RulePlainConfiguration | RuleWithNoRestrictedImportsOptions;
818
+ export interface RuleAssistWithOrganizeImportsOptions {
819
+ level: RuleAssistPlainConfiguration;
820
+ options: OrganizeImportsOptions;
821
+ [k: string]: unknown;
822
+ }