@quentinhsu/biome-config 0.2.0 → 0.2.1

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