@quentinhsu/biome-config 0.3.2 → 0.3.3

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