@quentinhsu/biome-config 0.3.3 → 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 +56 -56
  4. package/dist/index.mjs +1 -358
  5. package/dist/next.jsonc +60 -60
  6. package/dist/nuxt.jsonc +91 -91
  7. package/dist/react.jsonc +58 -58
  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 +11 -8
  13. package/dist/types/src/generated/biome/no-comment-text-options.d.ts +761 -0
  14. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +97 -97
  15. package/dist/types/src/generated/biome/no-sync-scripts-configuration.d.ts +185 -0
  16. package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → no-useless-constructor-configuration.d.ts} +31 -49
  17. package/dist/types/src/generated/biome/nursery.d.ts +393 -594
  18. package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → pattern-options.d.ts} +252 -179
  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 +35 -17
  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-non-null-assertion-options.d.ts → use-unique-variable-names-options.d.ts} +141 -119
  27. package/dist/types/src/index.d.ts +2 -2
  28. package/dist/vue.jsonc +60 -60
  29. package/package.json +38 -34
  30. package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +0 -241
  31. package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +0 -1116
  32. package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +0 -1148
  33. package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +0 -1440
  34. package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +0 -1341
@@ -0,0 +1,564 @@
1
+ import type { FixKind, RulePlainConfiguration } from './schema.ts';
2
+ import type { NoAmbiguousAnchorTextOptions, NoBeforeInteractiveScriptOutsideDocumentOptions, NoContinueOptions, NoDeprecatedImportsOptions, NoDuplicateDependenciesOptions, NoDuplicatedSpreadPropsOptions, NoEmptySourceOptions, NoEqualsToNullOptions, NoFloatingPromisesOptions, NoForInOptions, NoImportCyclesOptions, NoIncrementDecrementOptions, NoJsxLiteralsOptions, NoJsxPropsBindOptions, NoLeakedRenderOptions, NoMisusedPromisesOptions, NoMultiAssignOptions, NoMultiStrOptions, NoNextAsyncClientComponentOptions, NoParametersOnlyUsedInRecursionOptions, NoProtoOptions, NoReactForwardRefOptions, NoReturnAssignOptions, NoScriptUrlOptions, NoShadowOptions, NoSyncScriptsOptions, NoTernaryOptions, NoUnknownAttributeOptions, NoUnknownUnitOptions, NoUnmatchableAnbSelectorOptions, NoUnnecessaryConditionsOptions, NoUnreachableOptions, NoUnreachableSuperOptions, NoUnresolvedImportsOptions, NoUnsafeFinallyOptions, NoUnsafeOptionalChainingOptions, NoUnusedExpressionsOptions, NoUnusedFunctionParametersOptions, NoUnusedImportsOptions, NoUnusedLabelsOptions, NoUnusedPrivateClassMembersOptions, NoUnusedVariablesOptions, NoUselessCatchBindingOptions, NoUselessUndefinedOptions, NoVoidElementsWithChildrenOptions, NoVoidTypeReturnOptions, NoVueDataObjectDeclarationOptions, NoVueDuplicateKeysOptions, NoVueReservedKeysOptions, NoVueReservedPropsOptions, NoVueSetupPropsReactivityLossOptions, NoVueVIfWithVForOptions, Regex, StableHookResult, UseArraySortCompareOptions, UseAwaitThenableOptions, UseConsistentArrowReturnStyle, UseConsistentGraphqlDescriptionsStyle, UseDeprecatedDateOptions, UseDestructuringOptions, UseExhaustiveSwitchCasesOptions, UseExplicitTypeOptions, UseFindOptions, UseGraphqlNamedOperationsOptions, UseHookAtTopLevelOptions, UseImageSizeOptions, UseImportExtensionsOptions, UseIsNanOptions, UseJsonImportAttributesOptions, UseJsxKeyInIterableOptions, UseMaxParamsOptions, UseParseIntRadixOptions, UseQwikClasslistOptions, UseQwikMethodUsageOptions, UseQwikValidLexicalScopeOptions, UseRegexpExecOptions, UseRequiredScriptsOptions, UseSingleJsDocAsteriskOptions, UseSortedClassesOptions, UseSpreadOptions, UseUniqueArgumentNamesOptions, UseUniqueElementIdsOptions, UseUniqueFieldDefinitionNamesOptions, UseUniqueGraphqlOperationNameOptions, UseUniqueInputFieldNamesOptions, UseValidForDirectionOptions, UseValidTypeofOptions, UseYieldOptions } from './no-global-object-calls-options.ts';
3
+ import type { DeclarationStyle, NoAccumulatingSpreadOptions, NoAwaitInLoopsOptions, NoBarrelFileOptions, NoDeleteOptions, NoDynamicNamespaceImportAccessOptions, NoImgElementOptions, NoNamespaceImportOptions, NoReExportAllOptions, NoUnwantedPolyfillioOptions, UseGoogleFontPreconnectOptions, UseSolidForComponentOptions, UseTopLevelRegexOptions, UseUniqueVariableNamesOptions, UseVueDefineMacrosOrderOptions, UseVueHyphenatedAttributesOptions, UseVueMultiWordComponentNamesOptions, UseVueVForKeyOptions, UseVueValidTemplateRootOptions, UseVueValidVBindOptions, UseVueValidVCloakOptions, UseVueValidVElseIfOptions, UseVueValidVElseOptions, UseVueValidVHtmlOptions, UseVueValidVIfOptions, UseVueValidVOnOptions, UseVueValidVOnceOptions, UseVueValidVPreOptions, UseVueValidVTextOptions, UseVueVaporOptions, VueDirectiveStyle, VueDirectiveStyle2 } from './use-unique-variable-names-options.ts';
4
+ export interface RuleWithNoUnknownUnitOptions {
5
+ level: RulePlainConfiguration;
6
+ options?: NoUnknownUnitOptions;
7
+ }
8
+ export interface RuleWithNoUnmatchableAnbSelectorOptions {
9
+ level: RulePlainConfiguration;
10
+ options?: NoUnmatchableAnbSelectorOptions;
11
+ }
12
+ export interface RuleWithNoUnreachableOptions {
13
+ level: RulePlainConfiguration;
14
+ options?: NoUnreachableOptions;
15
+ }
16
+ export interface RuleWithNoUnreachableSuperOptions {
17
+ level: RulePlainConfiguration;
18
+ options?: NoUnreachableSuperOptions;
19
+ }
20
+ export interface RuleWithNoUnsafeFinallyOptions {
21
+ level: RulePlainConfiguration;
22
+ options?: NoUnsafeFinallyOptions;
23
+ }
24
+ export interface RuleWithNoUnsafeOptionalChainingOptions {
25
+ level: RulePlainConfiguration;
26
+ options?: NoUnsafeOptionalChainingOptions;
27
+ }
28
+ export interface RuleWithNoUnusedFunctionParametersOptions {
29
+ fix?: FixKind | null;
30
+ level: RulePlainConfiguration;
31
+ options?: NoUnusedFunctionParametersOptions;
32
+ }
33
+ export interface RuleWithNoUnusedImportsOptions {
34
+ fix?: FixKind | null;
35
+ level: RulePlainConfiguration;
36
+ options?: NoUnusedImportsOptions;
37
+ }
38
+ export interface RuleWithNoUnusedLabelsOptions {
39
+ fix?: FixKind | null;
40
+ level: RulePlainConfiguration;
41
+ options?: NoUnusedLabelsOptions;
42
+ }
43
+ export interface RuleWithNoUnusedPrivateClassMembersOptions {
44
+ fix?: FixKind | null;
45
+ level: RulePlainConfiguration;
46
+ options?: NoUnusedPrivateClassMembersOptions;
47
+ }
48
+ export interface RuleWithNoUnusedVariablesOptions {
49
+ fix?: FixKind | null;
50
+ level: RulePlainConfiguration;
51
+ options?: NoUnusedVariablesOptions;
52
+ }
53
+ export interface RuleWithNoVoidElementsWithChildrenOptions {
54
+ fix?: FixKind | null;
55
+ level: RulePlainConfiguration;
56
+ options?: NoVoidElementsWithChildrenOptions;
57
+ }
58
+ export interface RuleWithNoVoidTypeReturnOptions {
59
+ level: RulePlainConfiguration;
60
+ options?: NoVoidTypeReturnOptions;
61
+ }
62
+ export interface Hook {
63
+ /**
64
+ * The "position" of the closure function, starting from zero.
65
+ *
66
+ * For example, for React's `useEffect()` hook, the closure index is 0.
67
+ */
68
+ closureIndex?: number | null;
69
+ /**
70
+ * The "position" of the array of dependencies, starting from zero.
71
+ *
72
+ * For example, for React's `useEffect()` hook, the dependencies index is 1.
73
+ */
74
+ dependenciesIndex?: number | null;
75
+ /**
76
+ * The name of the hook.
77
+ */
78
+ name?: string;
79
+ /**
80
+ * Whether the result of the hook is stable.
81
+ *
82
+ * Set to `true` to mark the identity of the hook's return value as stable,
83
+ * or use a number/an array of numbers to mark the "positions" in the
84
+ * return array as stable.
85
+ *
86
+ * For example, for React's `useRef()` hook the value would be `true`,
87
+ * while for `useState()` it would be `[1]`.
88
+ */
89
+ stableResult?: StableHookResult | null;
90
+ }
91
+ export interface RuleWithUseGraphqlNamedOperationsOptions {
92
+ fix?: FixKind | null;
93
+ level: RulePlainConfiguration;
94
+ options?: UseGraphqlNamedOperationsOptions;
95
+ }
96
+ export interface RuleWithUseHookAtTopLevelOptions {
97
+ level: RulePlainConfiguration;
98
+ options?: UseHookAtTopLevelOptions;
99
+ }
100
+ export interface RuleWithUseImageSizeOptions {
101
+ level: RulePlainConfiguration;
102
+ options?: UseImageSizeOptions;
103
+ }
104
+ export interface RuleWithUseImportExtensionsOptions {
105
+ fix?: FixKind | null;
106
+ level: RulePlainConfiguration;
107
+ options?: UseImportExtensionsOptions;
108
+ }
109
+ export interface RuleWithUseIsNanOptions {
110
+ fix?: FixKind | null;
111
+ level: RulePlainConfiguration;
112
+ options?: UseIsNanOptions;
113
+ }
114
+ export interface RuleWithUseJsonImportAttributesOptions {
115
+ fix?: FixKind | null;
116
+ level: RulePlainConfiguration;
117
+ options?: UseJsonImportAttributesOptions;
118
+ }
119
+ export interface RuleWithUseJsxKeyInIterableOptions {
120
+ level: RulePlainConfiguration;
121
+ options?: UseJsxKeyInIterableOptions;
122
+ }
123
+ export interface RuleWithUseParseIntRadixOptions {
124
+ fix?: FixKind | null;
125
+ level: RulePlainConfiguration;
126
+ options?: UseParseIntRadixOptions;
127
+ }
128
+ export interface RuleWithUseQwikClasslistOptions {
129
+ level: RulePlainConfiguration;
130
+ options?: UseQwikClasslistOptions;
131
+ }
132
+ export interface RuleWithUseSingleJsDocAsteriskOptions {
133
+ fix?: FixKind | null;
134
+ level: RulePlainConfiguration;
135
+ options?: UseSingleJsDocAsteriskOptions;
136
+ }
137
+ export interface RuleWithUseUniqueElementIdsOptions {
138
+ level: RulePlainConfiguration;
139
+ options?: UseUniqueElementIdsOptions;
140
+ }
141
+ export interface RuleWithUseValidForDirectionOptions {
142
+ level: RulePlainConfiguration;
143
+ options?: UseValidForDirectionOptions;
144
+ }
145
+ export interface RuleWithUseValidTypeofOptions {
146
+ fix?: FixKind | null;
147
+ level: RulePlainConfiguration;
148
+ options?: UseValidTypeofOptions;
149
+ }
150
+ export interface RuleWithUseYieldOptions {
151
+ level: RulePlainConfiguration;
152
+ options?: UseYieldOptions;
153
+ }
154
+ export interface RuleWithNoAmbiguousAnchorTextOptions {
155
+ level: RulePlainConfiguration;
156
+ options?: NoAmbiguousAnchorTextOptions;
157
+ }
158
+ export interface RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions {
159
+ level: RulePlainConfiguration;
160
+ options?: NoBeforeInteractiveScriptOutsideDocumentOptions;
161
+ }
162
+ export interface RuleWithNoContinueOptions {
163
+ level: RulePlainConfiguration;
164
+ options?: NoContinueOptions;
165
+ }
166
+ export interface RuleWithNoDeprecatedImportsOptions {
167
+ level: RulePlainConfiguration;
168
+ options?: NoDeprecatedImportsOptions;
169
+ }
170
+ export interface RuleWithNoDuplicateDependenciesOptions {
171
+ level: RulePlainConfiguration;
172
+ options?: NoDuplicateDependenciesOptions;
173
+ }
174
+ export interface RuleWithNoDuplicatedSpreadPropsOptions {
175
+ level: RulePlainConfiguration;
176
+ options?: NoDuplicatedSpreadPropsOptions;
177
+ }
178
+ export interface RuleWithNoEmptySourceOptions {
179
+ level: RulePlainConfiguration;
180
+ options?: NoEmptySourceOptions;
181
+ }
182
+ export interface RuleWithNoEqualsToNullOptions {
183
+ fix?: FixKind | null;
184
+ level: RulePlainConfiguration;
185
+ options?: NoEqualsToNullOptions;
186
+ }
187
+ export interface RuleWithNoFloatingPromisesOptions {
188
+ fix?: FixKind | null;
189
+ level: RulePlainConfiguration;
190
+ options?: NoFloatingPromisesOptions;
191
+ }
192
+ export interface RuleWithNoForInOptions {
193
+ level: RulePlainConfiguration;
194
+ options?: NoForInOptions;
195
+ }
196
+ export interface RuleWithNoImportCyclesOptions {
197
+ level: RulePlainConfiguration;
198
+ options?: NoImportCyclesOptions;
199
+ }
200
+ export interface RuleWithNoIncrementDecrementOptions {
201
+ level: RulePlainConfiguration;
202
+ options?: NoIncrementDecrementOptions;
203
+ }
204
+ export interface RuleWithNoJsxLiteralsOptions {
205
+ level: RulePlainConfiguration;
206
+ options?: NoJsxLiteralsOptions;
207
+ }
208
+ export interface RuleWithNoJsxPropsBindOptions {
209
+ level: RulePlainConfiguration;
210
+ options?: NoJsxPropsBindOptions;
211
+ }
212
+ export interface RuleWithNoLeakedRenderOptions {
213
+ level: RulePlainConfiguration;
214
+ options?: NoLeakedRenderOptions;
215
+ }
216
+ export interface RuleWithNoMisusedPromisesOptions {
217
+ fix?: FixKind | null;
218
+ level: RulePlainConfiguration;
219
+ options?: NoMisusedPromisesOptions;
220
+ }
221
+ export interface RuleWithNoMultiAssignOptions {
222
+ level: RulePlainConfiguration;
223
+ options?: NoMultiAssignOptions;
224
+ }
225
+ export interface RuleWithNoMultiStrOptions {
226
+ level: RulePlainConfiguration;
227
+ options?: NoMultiStrOptions;
228
+ }
229
+ export interface RuleWithNoNextAsyncClientComponentOptions {
230
+ level: RulePlainConfiguration;
231
+ options?: NoNextAsyncClientComponentOptions;
232
+ }
233
+ export interface RuleWithNoParametersOnlyUsedInRecursionOptions {
234
+ fix?: FixKind | null;
235
+ level: RulePlainConfiguration;
236
+ options?: NoParametersOnlyUsedInRecursionOptions;
237
+ }
238
+ export interface RuleWithNoProtoOptions {
239
+ level: RulePlainConfiguration;
240
+ options?: NoProtoOptions;
241
+ }
242
+ export interface RuleWithNoReactForwardRefOptions {
243
+ fix?: FixKind | null;
244
+ level: RulePlainConfiguration;
245
+ options?: NoReactForwardRefOptions;
246
+ }
247
+ export interface RuleWithNoReturnAssignOptions {
248
+ level: RulePlainConfiguration;
249
+ options?: NoReturnAssignOptions;
250
+ }
251
+ export interface RuleWithNoScriptUrlOptions {
252
+ level: RulePlainConfiguration;
253
+ options?: NoScriptUrlOptions;
254
+ }
255
+ export interface RuleWithNoShadowOptions {
256
+ level: RulePlainConfiguration;
257
+ options?: NoShadowOptions;
258
+ }
259
+ export interface RuleWithNoSyncScriptsOptions {
260
+ level: RulePlainConfiguration;
261
+ options?: NoSyncScriptsOptions;
262
+ }
263
+ export interface RuleWithNoTernaryOptions {
264
+ level: RulePlainConfiguration;
265
+ options?: NoTernaryOptions;
266
+ }
267
+ export interface NoUndeclaredEnvVarsOptions {
268
+ /**
269
+ * Environment variables that should always be allowed.
270
+ * Use this to specify environment variables that are always available
271
+ * in your environment, even when not declared in turbo.json.
272
+ * Supports regular expressions, e.g. `["MY_ENV_.*"]`.
273
+ */
274
+ allowedEnvVars?: Regex[] | null;
275
+ }
276
+ export interface RuleWithNoUnknownAttributeOptions {
277
+ level: RulePlainConfiguration;
278
+ options?: NoUnknownAttributeOptions;
279
+ }
280
+ export interface RuleWithNoUnnecessaryConditionsOptions {
281
+ level: RulePlainConfiguration;
282
+ options?: NoUnnecessaryConditionsOptions;
283
+ }
284
+ export interface RuleWithNoUnresolvedImportsOptions {
285
+ level: RulePlainConfiguration;
286
+ options?: NoUnresolvedImportsOptions;
287
+ }
288
+ export interface RuleWithNoUnusedExpressionsOptions {
289
+ level: RulePlainConfiguration;
290
+ options?: NoUnusedExpressionsOptions;
291
+ }
292
+ export interface RuleWithNoUselessCatchBindingOptions {
293
+ fix?: FixKind | null;
294
+ level: RulePlainConfiguration;
295
+ options?: NoUselessCatchBindingOptions;
296
+ }
297
+ export interface RuleWithNoUselessUndefinedOptions {
298
+ fix?: FixKind | null;
299
+ level: RulePlainConfiguration;
300
+ options?: NoUselessUndefinedOptions;
301
+ }
302
+ export interface RuleWithNoVueDataObjectDeclarationOptions {
303
+ fix?: FixKind | null;
304
+ level: RulePlainConfiguration;
305
+ options?: NoVueDataObjectDeclarationOptions;
306
+ }
307
+ export interface RuleWithNoVueDuplicateKeysOptions {
308
+ level: RulePlainConfiguration;
309
+ options?: NoVueDuplicateKeysOptions;
310
+ }
311
+ export interface RuleWithNoVueReservedKeysOptions {
312
+ level: RulePlainConfiguration;
313
+ options?: NoVueReservedKeysOptions;
314
+ }
315
+ export interface RuleWithNoVueReservedPropsOptions {
316
+ level: RulePlainConfiguration;
317
+ options?: NoVueReservedPropsOptions;
318
+ }
319
+ export interface RuleWithNoVueSetupPropsReactivityLossOptions {
320
+ level: RulePlainConfiguration;
321
+ options?: NoVueSetupPropsReactivityLossOptions;
322
+ }
323
+ export interface RuleWithNoVueVIfWithVForOptions {
324
+ level: RulePlainConfiguration;
325
+ options?: NoVueVIfWithVForOptions;
326
+ }
327
+ export interface RuleWithUseArraySortCompareOptions {
328
+ level: RulePlainConfiguration;
329
+ options?: UseArraySortCompareOptions;
330
+ }
331
+ export interface RuleWithUseAwaitThenableOptions {
332
+ level: RulePlainConfiguration;
333
+ options?: UseAwaitThenableOptions;
334
+ }
335
+ /**
336
+ * Options for the `useConsistentArrowReturn` rule.
337
+ */
338
+ export interface UseConsistentArrowReturnOptions {
339
+ /**
340
+ * Determines whether the rule enforces a consistent style when the return value is an object literal.
341
+ *
342
+ * This option is only applicable when used in conjunction with the `asNeeded` option.
343
+ */
344
+ requireForObjectLiteral?: boolean | null;
345
+ /**
346
+ * The style to enforce for arrow function return statements.
347
+ */
348
+ style?: UseConsistentArrowReturnStyle | null;
349
+ }
350
+ export interface UseConsistentGraphqlDescriptionsOptions {
351
+ /**
352
+ * The description style to enforce. Defaults to "block"
353
+ */
354
+ style?: UseConsistentGraphqlDescriptionsStyle | null;
355
+ }
356
+ export interface RuleWithUseDeprecatedDateOptions {
357
+ level: RulePlainConfiguration;
358
+ options?: UseDeprecatedDateOptions;
359
+ }
360
+ export interface RuleWithUseDestructuringOptions {
361
+ level: RulePlainConfiguration;
362
+ options?: UseDestructuringOptions;
363
+ }
364
+ export interface RuleWithUseExhaustiveSwitchCasesOptions {
365
+ fix?: FixKind | null;
366
+ level: RulePlainConfiguration;
367
+ options?: UseExhaustiveSwitchCasesOptions;
368
+ }
369
+ export interface RuleWithUseExplicitTypeOptions {
370
+ level: RulePlainConfiguration;
371
+ options?: UseExplicitTypeOptions;
372
+ }
373
+ export interface RuleWithUseFindOptions {
374
+ level: RulePlainConfiguration;
375
+ options?: UseFindOptions;
376
+ }
377
+ export interface RuleWithUseMaxParamsOptions {
378
+ level: RulePlainConfiguration;
379
+ options?: UseMaxParamsOptions;
380
+ }
381
+ export interface RuleWithUseQwikMethodUsageOptions {
382
+ level: RulePlainConfiguration;
383
+ options?: UseQwikMethodUsageOptions;
384
+ }
385
+ export interface RuleWithUseQwikValidLexicalScopeOptions {
386
+ level: RulePlainConfiguration;
387
+ options?: UseQwikValidLexicalScopeOptions;
388
+ }
389
+ export interface RuleWithUseRegexpExecOptions {
390
+ level: RulePlainConfiguration;
391
+ options?: UseRegexpExecOptions;
392
+ }
393
+ export interface RuleWithUseRequiredScriptsOptions {
394
+ level: RulePlainConfiguration;
395
+ options?: UseRequiredScriptsOptions;
396
+ }
397
+ export interface RuleWithUseSortedClassesOptions {
398
+ fix?: FixKind | null;
399
+ level: RulePlainConfiguration;
400
+ options?: UseSortedClassesOptions;
401
+ }
402
+ export interface RuleWithUseSpreadOptions {
403
+ fix?: FixKind | null;
404
+ level: RulePlainConfiguration;
405
+ options?: UseSpreadOptions;
406
+ }
407
+ export interface RuleWithUseUniqueArgumentNamesOptions {
408
+ level: RulePlainConfiguration;
409
+ options?: UseUniqueArgumentNamesOptions;
410
+ }
411
+ export interface RuleWithUseUniqueFieldDefinitionNamesOptions {
412
+ level: RulePlainConfiguration;
413
+ options?: UseUniqueFieldDefinitionNamesOptions;
414
+ }
415
+ export interface RuleWithUseUniqueGraphqlOperationNameOptions {
416
+ level: RulePlainConfiguration;
417
+ options?: UseUniqueGraphqlOperationNameOptions;
418
+ }
419
+ export interface RuleWithUseUniqueInputFieldNamesOptions {
420
+ level: RulePlainConfiguration;
421
+ options?: UseUniqueInputFieldNamesOptions;
422
+ }
423
+ export interface RuleWithUseUniqueVariableNamesOptions {
424
+ level: RulePlainConfiguration;
425
+ options?: UseUniqueVariableNamesOptions;
426
+ }
427
+ export interface UseVueConsistentDefinePropsDeclarationOptions {
428
+ style?: DeclarationStyle | null;
429
+ }
430
+ export interface UseVueConsistentVBindStyleOptions {
431
+ /**
432
+ * Preferred style for `v-bind` usage: "shorthand" or "longhand".
433
+ * If omitted, shorthand is preferred.
434
+ */
435
+ style?: VueDirectiveStyle | null;
436
+ }
437
+ export interface UseVueConsistentVOnStyleOptions {
438
+ /**
439
+ * Preferred style for `v-on` usage: "shorthand" or "longhand".
440
+ * If omitted, shorthand is preferred.
441
+ */
442
+ style?: VueDirectiveStyle2 | null;
443
+ }
444
+ export interface RuleWithUseVueDefineMacrosOrderOptions {
445
+ fix?: FixKind | null;
446
+ level: RulePlainConfiguration;
447
+ options?: UseVueDefineMacrosOrderOptions;
448
+ }
449
+ export interface RuleWithUseVueHyphenatedAttributesOptions {
450
+ fix?: FixKind | null;
451
+ level: RulePlainConfiguration;
452
+ options?: UseVueHyphenatedAttributesOptions;
453
+ }
454
+ export interface RuleWithUseVueMultiWordComponentNamesOptions {
455
+ level: RulePlainConfiguration;
456
+ options?: UseVueMultiWordComponentNamesOptions;
457
+ }
458
+ export interface RuleWithUseVueVForKeyOptions {
459
+ level: RulePlainConfiguration;
460
+ options?: UseVueVForKeyOptions;
461
+ }
462
+ export interface RuleWithUseVueValidTemplateRootOptions {
463
+ fix?: FixKind | null;
464
+ level: RulePlainConfiguration;
465
+ options?: UseVueValidTemplateRootOptions;
466
+ }
467
+ export interface RuleWithUseVueValidVBindOptions {
468
+ level: RulePlainConfiguration;
469
+ options?: UseVueValidVBindOptions;
470
+ }
471
+ export interface RuleWithUseVueValidVCloakOptions {
472
+ fix?: FixKind | null;
473
+ level: RulePlainConfiguration;
474
+ options?: UseVueValidVCloakOptions;
475
+ }
476
+ export interface RuleWithUseVueValidVElseOptions {
477
+ level: RulePlainConfiguration;
478
+ options?: UseVueValidVElseOptions;
479
+ }
480
+ export interface RuleWithUseVueValidVElseIfOptions {
481
+ level: RulePlainConfiguration;
482
+ options?: UseVueValidVElseIfOptions;
483
+ }
484
+ export interface RuleWithUseVueValidVHtmlOptions {
485
+ level: RulePlainConfiguration;
486
+ options?: UseVueValidVHtmlOptions;
487
+ }
488
+ export interface RuleWithUseVueValidVIfOptions {
489
+ level: RulePlainConfiguration;
490
+ options?: UseVueValidVIfOptions;
491
+ }
492
+ export interface RuleWithUseVueValidVOnOptions {
493
+ level: RulePlainConfiguration;
494
+ options?: UseVueValidVOnOptions;
495
+ }
496
+ export interface RuleWithUseVueValidVOnceOptions {
497
+ fix?: FixKind | null;
498
+ level: RulePlainConfiguration;
499
+ options?: UseVueValidVOnceOptions;
500
+ }
501
+ export interface RuleWithUseVueValidVPreOptions {
502
+ fix?: FixKind | null;
503
+ level: RulePlainConfiguration;
504
+ options?: UseVueValidVPreOptions;
505
+ }
506
+ export interface RuleWithUseVueValidVTextOptions {
507
+ level: RulePlainConfiguration;
508
+ options?: UseVueValidVTextOptions;
509
+ }
510
+ export interface RuleWithUseVueVaporOptions {
511
+ fix?: FixKind | null;
512
+ level: RulePlainConfiguration;
513
+ options?: UseVueVaporOptions;
514
+ }
515
+ export interface RuleWithNoAccumulatingSpreadOptions {
516
+ level: RulePlainConfiguration;
517
+ options?: NoAccumulatingSpreadOptions;
518
+ }
519
+ export interface RuleWithNoAwaitInLoopsOptions {
520
+ level: RulePlainConfiguration;
521
+ options?: NoAwaitInLoopsOptions;
522
+ }
523
+ export interface RuleWithNoBarrelFileOptions {
524
+ level: RulePlainConfiguration;
525
+ options?: NoBarrelFileOptions;
526
+ }
527
+ export interface RuleWithNoDeleteOptions {
528
+ fix?: FixKind | null;
529
+ level: RulePlainConfiguration;
530
+ options?: NoDeleteOptions;
531
+ }
532
+ export interface RuleWithNoDynamicNamespaceImportAccessOptions {
533
+ level: RulePlainConfiguration;
534
+ options?: NoDynamicNamespaceImportAccessOptions;
535
+ }
536
+ export interface RuleWithNoImgElementOptions {
537
+ level: RulePlainConfiguration;
538
+ options?: NoImgElementOptions;
539
+ }
540
+ export interface RuleWithNoNamespaceImportOptions {
541
+ level: RulePlainConfiguration;
542
+ options?: NoNamespaceImportOptions;
543
+ }
544
+ export interface RuleWithNoReExportAllOptions {
545
+ level: RulePlainConfiguration;
546
+ options?: NoReExportAllOptions;
547
+ }
548
+ export interface RuleWithNoUnwantedPolyfillioOptions {
549
+ level: RulePlainConfiguration;
550
+ options?: NoUnwantedPolyfillioOptions;
551
+ }
552
+ export interface RuleWithUseGoogleFontPreconnectOptions {
553
+ fix?: FixKind | null;
554
+ level: RulePlainConfiguration;
555
+ options?: UseGoogleFontPreconnectOptions;
556
+ }
557
+ export interface RuleWithUseSolidForComponentOptions {
558
+ level: RulePlainConfiguration;
559
+ options?: UseSolidForComponentOptions;
560
+ }
561
+ export interface RuleWithUseTopLevelRegexOptions {
562
+ level: RulePlainConfiguration;
563
+ options?: UseTopLevelRegexOptions;
564
+ }
@@ -1,11 +1,14 @@
1
1
  export type Schema = string;
2
2
  export type RuleAssistPlainConfiguration = 'off' | 'on';
3
3
  export type NegatablePredefinedSourceMatcher = ':ALIAS:' | ':BUN:' | ':NODE:' | ':PACKAGE:' | ':PACKAGE_WITH_PROTOCOL:' | ':PATH:' | ':URL:' | '!:ALIAS:' | '!:BUN:' | '!:NODE:' | '!:PACKAGE:' | '!:PACKAGE_WITH_PROTOCOL:' | '!:PATH:' | '!:URL:';
4
- export type Glob = string;
5
4
  export type SortOrder = 'natural' | 'lexicographic';
6
5
  export interface UseSortedPropertiesOptions {
7
6
  }
8
7
  export type Bool = boolean;
8
+ /**
9
+ * Normalized Biome glob pattern that strips `./` from the pattern.
10
+ */
11
+ export type NormalizedGlob = string;
9
12
  export type IndentStyle = 'tab' | 'space';
10
13
  export type IndentWidth = number;
11
14
  export type LineEnding = 'lf' | 'crlf' | 'cr' | 'auto';
@@ -40,11 +43,23 @@ export type SelfCloseVoidElements = 'never' | 'always';
40
43
  *
41
44
  * The following two cases won't produce the same output:
42
45
  *
43
- * | | html | output | | -------------- | :------------: | :----------: | | with spaces | `1<b> 2 </b>3` | 1<b> 2 </b>3 | | without spaces | `1<b>2</b>3` | 1<b>2</b>3 |
46
+ * | | html | output |
47
+ * | -------------- | :------------: | :----------: |
48
+ * | with spaces | `1<b> 2 </b>3` | 1<b> 2 </b>3 |
49
+ * | without spaces | `1<b>2</b>3` | 1<b>2</b>3 |
44
50
  *
45
51
  * This happens because whitespace is significant in inline elements.
46
52
  *
47
- * As a consequence of this, the formatter must format blocks that look like this (assume a small line width, <20): ```html <span>really long content</span> ``` as this, where the content hugs the tags: ```html <span >really long content</span > ```
53
+ * As a consequence of this, the formatter must format blocks that look like this (assume a small line width, <20):
54
+ * ```html
55
+ * <span>really long content</span>
56
+ * ```
57
+ * as this, where the content hugs the tags:
58
+ * ```html
59
+ * <span
60
+ * >really long content</span
61
+ * >
62
+ * ```
48
63
  *
49
64
  * Note that this is only necessary for inline elements. Block elements do not have this restriction.
50
65
  */
@@ -54,14 +69,17 @@ export type OperatorLinebreak = 'after' | 'before';
54
69
  export type QuoteProperties = 'asNeeded' | 'preserve';
55
70
  export type Semicolons = 'always' | 'asNeeded';
56
71
  /**
57
- * Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
72
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures for JavaScript/TypeScript files.
58
73
  */
59
- export type TrailingCommas = 'all' | 'es5' | 'none';
74
+ export type JsTrailingCommas = 'all' | 'es5' | 'none';
60
75
  /**
61
76
  * Indicates the type of runtime or transformation used for interpreting JSX.
62
77
  */
63
78
  export type JsxRuntime = 'transparent' | 'reactClassic';
64
- export type TrailingCommas2 = 'none' | 'all';
79
+ /**
80
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures for JSON files.
81
+ */
82
+ export type JsonTrailingCommas = 'none' | 'all';
65
83
  export type RuleDomainValue = 'all' | 'none' | 'recommended';
66
84
  export type GroupPlainConfiguration = 'off' | 'on' | 'info' | 'warn' | 'error';
67
85
  export type RulePlainConfiguration = 'off' | 'on' | 'info' | 'warn' | 'error';
@@ -87,15 +105,15 @@ export interface NoLabelWithoutControlOptions {
87
105
  /**
88
106
  * Array of component names that should be considered the same as an `input` element.
89
107
  */
90
- inputComponents?: string[];
108
+ inputComponents?: string[] | null;
91
109
  /**
92
110
  * Array of attributes that should be treated as the `label` accessible text content.
93
111
  */
94
- labelAttributes?: string[];
112
+ labelAttributes?: string[] | null;
95
113
  /**
96
114
  * Array of component names that should be considered the same as a `label` element.
97
115
  */
98
- labelComponents?: string[];
116
+ labelComponents?: string[] | null;
99
117
  }
100
118
  export interface NoNoninteractiveElementInteractionsOptions {
101
119
  }
@@ -151,11 +169,11 @@ export interface UseValidAriaRoleOptions {
151
169
  /**
152
170
  * It allows specifying a list of roles that might be invalid otherwise
153
171
  */
154
- allowInvalidRoles?: string[];
172
+ allowInvalidRoles?: string[] | null;
155
173
  /**
156
174
  * Use this option to ignore non-DOM elements, such as custom components
157
175
  */
158
- ignoreNonDom?: boolean;
176
+ ignoreNonDom?: boolean | null;
159
177
  }
160
178
  export interface UseValidAriaValuesOptions {
161
179
  }
@@ -163,7 +181,7 @@ export interface UseValidAutocompleteOptions {
163
181
  /**
164
182
  * `input` like custom components that should be checked.
165
183
  */
166
- inputComponents?: string[];
184
+ inputComponents?: string[] | null;
167
185
  }
168
186
  export interface UseValidLangOptions {
169
187
  }
@@ -181,21 +199,21 @@ export interface NoExcessiveCognitiveComplexityOptions {
181
199
  /**
182
200
  * The maximum complexity score that we allow. Anything higher is considered excessive.
183
201
  */
184
- maxAllowedComplexity?: number;
202
+ maxAllowedComplexity?: number | null;
185
203
  }
186
204
  export interface NoExcessiveLinesPerFunctionOptions {
187
205
  /**
188
206
  * The maximum number of lines allowed in a function body.
189
207
  */
190
- maxLines?: number;
208
+ maxLines?: number | null;
191
209
  /**
192
210
  * When this options is set to `true`, blank lines in the function body are not counted towards the maximum line limit.
193
211
  */
194
- skipBlankLines?: boolean;
212
+ skipBlankLines?: boolean | null;
195
213
  /**
196
214
  * When this option is set to `true`, Immediately Invoked Function Expressions (IIFEs) are not checked for the maximum line limit.
197
215
  */
198
- skipIifes?: boolean;
216
+ skipIifes?: boolean | null;
199
217
  }
200
218
  export interface NoExcessiveNestedTestSuitesOptions {
201
219
  }
@@ -207,7 +225,7 @@ export interface NoForEachOptions {
207
225
  /**
208
226
  * A list of variable names allowed for `forEach` calls.
209
227
  */
210
- allowedIdentifiers?: string[];
228
+ allowedIdentifiers?: string[] | null;
211
229
  }
212
230
  export interface NoImplicitCoercionsOptions {
213
231
  }