@quentinhsu/biome-config 0.3.2 → 0.3.5

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/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 +12 -0
  13. package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
  14. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +321 -0
  15. package/dist/types/src/generated/biome/no-label-var-options.d.ts +1076 -0
  16. package/dist/types/src/generated/biome/no-magic-numbers-options.d.ts +291 -0
  17. package/dist/types/src/generated/biome/rule-with-no-confusing-labels-options.d.ts +1236 -0
  18. package/dist/types/src/generated/biome/rule-with-no-excessive-nested-test-suites-options.d.ts +1440 -0
  19. package/dist/types/src/generated/biome/rule-with-no-unused-expressions-options.d.ts +1337 -0
  20. package/dist/types/src/generated/biome/schema.d.ts +291 -0
  21. package/dist/types/src/generated/biome/use-consistent-object-definitions-configuration.d.ts +1304 -0
  22. package/dist/types/src/generated/biome/use-focusable-interactive-configuration.d.ts +163 -0
  23. package/dist/types/src/generated/biome/use-qwik-classlist-configuration.d.ts +241 -0
  24. package/dist/types/src/generated/biome/use-shorthand-assign-configuration.d.ts +571 -0
  25. package/dist/types/src/index.d.ts +15 -0
  26. package/dist/types/src/presets/next.d.ts +1 -0
  27. package/dist/types/src/presets/nuxt.d.ts +1 -0
  28. package/dist/types/src/presets/react.d.ts +1 -0
  29. package/dist/types/src/presets/vue.d.ts +1 -0
  30. package/dist/types/src/source/index.d.ts +2 -0
  31. package/dist/types/src/types.d.ts +1 -0
  32. package/dist/types/src/utils/merge.d.ts +2 -0
  33. package/dist/vue.jsonc +177 -0
  34. package/package.json +29 -28
@@ -0,0 +1,1076 @@
1
+ import type { ArrowParentheses, AttributePosition, Bool, BracketSameLine, BracketSpacing, Expand, FixKind, Glob, IndentScriptAndStyle, IndentStyle, IndentWidth, LineEnding, LineWidth, MaxSize, NoAccessKeyOptions, NoAdjacentSpacesInRegexOptions, NoArgumentsOptions, NoAriaHiddenOnFocusableOptions, NoAriaUnsupportedElementsOptions, NoAutofocusOptions, NoBannedTypesOptions, NoCommaOperatorOptions, NoDistractingElementsOptions, NoEmptyTypeParametersOptions, NoExcessiveCognitiveComplexityOptions, NoExcessiveLinesPerFunctionOptions, NoHeaderScopeOptions, NoInteractiveElementToNoninteractiveRoleOptions, NoLabelWithoutControlOptions, NoNoninteractiveElementInteractionsOptions, NoNoninteractiveElementToInteractiveRoleOptions, NoNoninteractiveTabindexOptions, NoPositiveTabindexOptions, NoRedundantAltOptions, NoRedundantRolesOptions, NoStaticElementInteractionsOptions, NoSvgWithoutTitleOptions, OperatorLinebreak, QuoteProperties, QuoteStyle, RuleAssistPlainConfiguration, RuleDomainValue, RulePlainConfiguration, SelfCloseVoidElements, Semicolons, SortOrder, TrailingCommas, TrailingCommas2, UseAltTextOptions, UseAnchorContentOptions, UseAriaActivedescendantWithTabindexOptions, UseAriaPropsForRoleOptions, UseAriaPropsSupportedByRoleOptions, UseButtonTypeOptions, UseFocusableInteractiveOptions, UseGenericFontNamesOptions, UseHeadingContentOptions, UseHtmlLangOptions, UseIframeTitleOptions, UseKeyWithClickEventsOptions, UseKeyWithMouseEventsOptions, UseMediaCaptionOptions, UseSemanticElementsOptions, UseSortedPropertiesOptions, UseValidAnchorOptions, UseValidAriaPropsOptions, UseValidAriaRoleOptions, UseValidAriaValuesOptions, UseValidAutocompleteOptions, UseValidLangOptions, WhitespaceSensitivity } from './schema.ts';
2
+ export interface NoLabelVarOptions {
3
+ }
4
+ export interface NoMisleadingCharacterClassOptions {
5
+ }
6
+ export interface NoMisleadingInstantiatorOptions {
7
+ }
8
+ export interface NoMisplacedAssertionOptions {
9
+ }
10
+ export interface NoMisrefactoredShorthandAssignOptions {
11
+ }
12
+ export interface NoNonNullAssertedOptionalChainOptions {
13
+ }
14
+ export interface NoOctalEscapeOptions {
15
+ }
16
+ export interface NoPrototypeBuiltinsOptions {
17
+ }
18
+ export interface NoQuickfixBiomeOptions {
19
+ /**
20
+ * A list of additional JSON files that should be checked.
21
+ */
22
+ additionalPaths?: string[];
23
+ }
24
+ export interface NoReactSpecificPropsOptions {
25
+ }
26
+ export interface NoRedeclareOptions {
27
+ }
28
+ export interface NoRedundantUseStrictOptions {
29
+ }
30
+ export interface NoSelfCompareOptions {
31
+ }
32
+ export interface NoShadowRestrictedNamesOptions {
33
+ }
34
+ export interface NoShorthandPropertyOverridesOptions {
35
+ }
36
+ export interface NoSkippedTestsOptions {
37
+ }
38
+ export interface NoSparseArrayOptions {
39
+ }
40
+ export interface NoSuspiciousSemicolonInJsxOptions {
41
+ }
42
+ export interface NoTemplateCurlyInStringOptions {
43
+ }
44
+ export interface NoThenPropertyOptions {
45
+ }
46
+ export interface NoTsIgnoreOptions {
47
+ }
48
+ export interface NoUnassignedVariablesOptions {
49
+ }
50
+ export interface NoUnknownAtRulesOptions {
51
+ /**
52
+ * A list of unknown at-rule names to ignore (case-insensitive).
53
+ */
54
+ ignore?: string[];
55
+ }
56
+ export interface NoUnsafeDeclarationMergingOptions {
57
+ }
58
+ export interface NoUnsafeNegationOptions {
59
+ }
60
+ export interface NoUselessEscapeInStringOptions {
61
+ }
62
+ export interface NoUselessRegexBackrefsOptions {
63
+ }
64
+ export interface NoVarOptions {
65
+ }
66
+ export interface NoWithOptions {
67
+ }
68
+ export interface UseAdjacentOverloadSignaturesOptions {
69
+ }
70
+ export interface UseAwaitOptions {
71
+ }
72
+ export interface UseBiomeIgnoreFolderOptions {
73
+ }
74
+ export interface UseDefaultSwitchClauseLastOptions {
75
+ }
76
+ export interface UseErrorMessageOptions {
77
+ }
78
+ export interface UseGetterReturnOptions {
79
+ }
80
+ export interface UseGoogleFontDisplayOptions {
81
+ }
82
+ export interface UseGuardForInOptions {
83
+ }
84
+ export interface UseIsArrayOptions {
85
+ }
86
+ export interface UseIterableCallbackReturnOptions {
87
+ }
88
+ export interface UseNamespaceKeywordOptions {
89
+ }
90
+ export interface UseNumberToFixedDigitsArgumentOptions {
91
+ }
92
+ export interface UseStaticResponseMethodsOptions {
93
+ }
94
+ export interface UseStrictModeOptions {
95
+ }
96
+ export type PluginConfiguration = string;
97
+ export type VcsClientKind = 'git';
98
+ /**
99
+ * Glob to match against import sources.
100
+ */
101
+ export type ImportSourceGlob = Glob;
102
+ /**
103
+ * Normalized Biome glob pattern that strips `./` from the pattern.
104
+ */
105
+ export type NormalizedGlob = Glob;
106
+ export type OverrideGlobs = Glob[];
107
+ export interface UseSortedAttributesOptions {
108
+ sortOrder?: SortOrder | null;
109
+ }
110
+ export interface UseSortedKeysOptions {
111
+ sortOrder?: SortOrder | null;
112
+ }
113
+ export interface RuleAssistWithOptionsFor_UseSortedPropertiesOptions {
114
+ /**
115
+ * The severity of the emitted diagnostics by the rule
116
+ */
117
+ level: RuleAssistPlainConfiguration;
118
+ /**
119
+ * Rule's options
120
+ */
121
+ options: UseSortedPropertiesOptions;
122
+ }
123
+ /**
124
+ * Options that changes how the CSS assist behaves
125
+ */
126
+ export interface CssAssistConfiguration {
127
+ /**
128
+ * Control the assist for CSS files.
129
+ */
130
+ enabled?: Bool | null;
131
+ }
132
+ /**
133
+ * Options that changes how the CSS linter behaves
134
+ */
135
+ export interface CssLinterConfiguration {
136
+ /**
137
+ * Control the linter for CSS files.
138
+ */
139
+ enabled?: Bool | null;
140
+ }
141
+ /**
142
+ * Options that changes how the CSS parser behaves
143
+ */
144
+ export interface CssParserConfiguration {
145
+ /**
146
+ * Allow comments to appear on incorrect lines in `.css` files
147
+ */
148
+ allowWrongLineComments?: Bool | null;
149
+ /**
150
+ * Enables parsing of CSS Modules specific features.
151
+ */
152
+ cssModules?: Bool | null;
153
+ /**
154
+ * Enables parsing of Tailwind CSS 4.0 directives and functions.
155
+ */
156
+ tailwindDirectives?: Bool | null;
157
+ }
158
+ /**
159
+ * Options that changes how the GraphQL linter behaves
160
+ */
161
+ export interface GraphqlAssistConfiguration {
162
+ /**
163
+ * Control the formatter for GraphQL files.
164
+ */
165
+ enabled?: Bool | null;
166
+ }
167
+ /**
168
+ * Options that change how the GraphQL linter behaves.
169
+ */
170
+ export interface GraphqlLinterConfiguration {
171
+ /**
172
+ * Control the formatter for GraphQL files.
173
+ */
174
+ enabled?: Bool | null;
175
+ }
176
+ export interface GritAssistConfiguration {
177
+ /**
178
+ * Control the assist functionality for Grit files.
179
+ */
180
+ enabled?: Bool | null;
181
+ }
182
+ export interface GritLinterConfiguration {
183
+ /**
184
+ * Control the linter for Grit files.
185
+ */
186
+ enabled?: Bool | null;
187
+ }
188
+ /**
189
+ * Options that changes how the HTML assist behaves
190
+ */
191
+ export interface HtmlAssistConfiguration {
192
+ /**
193
+ * Control the assist for HTML (and its super languages) files.
194
+ */
195
+ enabled?: Bool | null;
196
+ }
197
+ /**
198
+ * Options that changes how the HTML linter behaves
199
+ */
200
+ export interface HtmlLinterConfiguration {
201
+ /**
202
+ * Control the linter for HTML (and its super languages) files.
203
+ */
204
+ enabled?: Bool | null;
205
+ }
206
+ /**
207
+ * Options that changes how the HTML parser behaves
208
+ */
209
+ export interface HtmlParserConfiguration {
210
+ /**
211
+ * Enables the parsing of double text expressions such as `{{ expression }}` inside `.html` files
212
+ */
213
+ interpolation?: Bool | null;
214
+ }
215
+ /**
216
+ * Assist options specific to the JavaScript assist
217
+ */
218
+ export interface JsAssistConfiguration {
219
+ /**
220
+ * Control the assist for JavaScript (and its super languages) files.
221
+ */
222
+ enabled?: Bool | null;
223
+ }
224
+ /**
225
+ * Linter options specific to the JavaScript linter
226
+ */
227
+ export interface JsLinterConfiguration {
228
+ /**
229
+ * Control the linter for JavaScript (and its super languages) files.
230
+ */
231
+ enabled?: Bool | null;
232
+ }
233
+ /**
234
+ * Options that changes how the JavaScript parser behaves
235
+ */
236
+ export interface JsParserConfiguration {
237
+ /**
238
+ * Enables parsing of Grit metavariables. Defaults to `false`.
239
+ */
240
+ gritMetavariables?: Bool | null;
241
+ /**
242
+ * When enabled, files like `.js`/`.mjs`/`.cjs` may contain JSX syntax.
243
+ *
244
+ * Defaults to `true`.
245
+ */
246
+ jsxEverywhere?: Bool | null;
247
+ /**
248
+ * It enables the experimental and unsafe parsing of parameter decorators
249
+ *
250
+ * These decorators belong to an old proposal, and they are subject to change.
251
+ */
252
+ unsafeParameterDecoratorsEnabled?: Bool | null;
253
+ }
254
+ /**
255
+ * Assist options specific to the JSON linter
256
+ */
257
+ export interface JsonAssistConfiguration {
258
+ /**
259
+ * Control the assist for JSON (and its super languages) files.
260
+ */
261
+ enabled?: Bool | null;
262
+ }
263
+ /**
264
+ * Linter options specific to the JSON linter
265
+ */
266
+ export interface JsonLinterConfiguration {
267
+ /**
268
+ * Control the linter for JSON (and its super languages) files.
269
+ */
270
+ enabled?: Bool | null;
271
+ }
272
+ /**
273
+ * Options that changes how the JSON parser behaves
274
+ */
275
+ export interface JsonParserConfiguration {
276
+ /**
277
+ * Allow parsing comments in `.json` files
278
+ */
279
+ allowComments?: Bool | null;
280
+ /**
281
+ * Allow parsing trailing commas in `.json` files
282
+ */
283
+ allowTrailingCommas?: Bool | null;
284
+ }
285
+ export interface GritFormatterConfiguration {
286
+ /**
287
+ * Control the formatter for Grit files.
288
+ */
289
+ enabled?: Bool | null;
290
+ /**
291
+ * The indent style applied to Grit files.
292
+ */
293
+ indentStyle?: IndentStyle | null;
294
+ /**
295
+ * The size of the indentation applied to Grit files. Default to 2.
296
+ */
297
+ indentWidth?: IndentWidth | null;
298
+ /**
299
+ * The type of line ending applied to Grit files.
300
+ */
301
+ lineEnding?: LineEnding | null;
302
+ /**
303
+ * What's the max width of a line applied to Grit files. Defaults to 80.
304
+ */
305
+ lineWidth?: LineWidth | null;
306
+ }
307
+ /**
308
+ * Options that changes how the CSS formatter behaves
309
+ */
310
+ export interface CssFormatterConfiguration {
311
+ /**
312
+ * Control the formatter for CSS (and its super languages) files.
313
+ */
314
+ enabled?: Bool | null;
315
+ /**
316
+ * The indent style applied to CSS (and its super languages) files.
317
+ */
318
+ indentStyle?: IndentStyle | null;
319
+ /**
320
+ * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
321
+ */
322
+ indentWidth?: IndentWidth | null;
323
+ /**
324
+ * The type of line ending applied to CSS (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
325
+ */
326
+ lineEnding?: LineEnding | null;
327
+ /**
328
+ * What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
329
+ */
330
+ lineWidth?: LineWidth | null;
331
+ /**
332
+ * The type of quotes used in CSS code. Defaults to double.
333
+ */
334
+ quoteStyle?: QuoteStyle | null;
335
+ }
336
+ export interface OverrideFilesConfiguration {
337
+ /**
338
+ * File size limit in bytes
339
+ */
340
+ maxSize?: MaxSize | null;
341
+ }
342
+ /**
343
+ * Options that changes how the GraphQL formatter behaves
344
+ */
345
+ export interface GraphqlFormatterConfiguration {
346
+ /**
347
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
348
+ */
349
+ bracketSpacing?: BracketSpacing | null;
350
+ /**
351
+ * Control the formatter for GraphQL files.
352
+ */
353
+ enabled?: Bool | null;
354
+ /**
355
+ * The indent style applied to GraphQL files.
356
+ */
357
+ indentStyle?: IndentStyle | null;
358
+ /**
359
+ * The size of the indentation applied to GraphQL files. Default to 2.
360
+ */
361
+ indentWidth?: IndentWidth | null;
362
+ /**
363
+ * The type of line ending applied to GraphQL files. `auto` uses CRLF on Windows and LF on other platforms.
364
+ */
365
+ lineEnding?: LineEnding | null;
366
+ /**
367
+ * What's the max width of a line applied to GraphQL files. Defaults to 80.
368
+ */
369
+ lineWidth?: LineWidth | null;
370
+ /**
371
+ * The type of quotes used in GraphQL code. Defaults to double.
372
+ */
373
+ quoteStyle?: QuoteStyle | null;
374
+ }
375
+ export interface OverrideFormatterConfiguration {
376
+ /**
377
+ * The attribute position style.
378
+ */
379
+ attributePosition?: AttributePosition | null;
380
+ /**
381
+ * 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).
382
+ */
383
+ bracketSameLine?: BracketSameLine | null;
384
+ /**
385
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
386
+ */
387
+ bracketSpacing?: BracketSpacing | null;
388
+ enabled?: Bool | null;
389
+ /**
390
+ * 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".
391
+ */
392
+ expand?: Expand | null;
393
+ /**
394
+ * Stores whether formatting should be allowed to proceed if a given file has syntax errors
395
+ */
396
+ formatWithErrors?: Bool | null;
397
+ /**
398
+ * The size of the indentation, 2 by default (deprecated, use `indent-width`)
399
+ */
400
+ indentSize?: IndentWidth | null;
401
+ /**
402
+ * The indent style.
403
+ */
404
+ indentStyle?: IndentStyle | null;
405
+ /**
406
+ * The size of the indentation, 2 by default
407
+ */
408
+ indentWidth?: IndentWidth | null;
409
+ /**
410
+ * The type of line ending.
411
+ */
412
+ lineEnding?: LineEnding | null;
413
+ /**
414
+ * What's the max width of a line. Defaults to 80.
415
+ */
416
+ lineWidth?: LineWidth | null;
417
+ }
418
+ /**
419
+ * Options that changes how the HTML formatter behaves
420
+ */
421
+ export interface HtmlFormatterConfiguration {
422
+ /**
423
+ * The attribute position style in HTML elements. Defaults to auto.
424
+ */
425
+ attributePosition?: AttributePosition | null;
426
+ /**
427
+ * Whether to hug the closing bracket of multiline HTML tags to the end of the last line, rather than being alone on the following line. Defaults to false.
428
+ */
429
+ bracketSameLine?: BracketSameLine | null;
430
+ /**
431
+ * Control the formatter for HTML (and its super languages) files.
432
+ */
433
+ enabled?: Bool | null;
434
+ /**
435
+ * Whether to indent the `<script>` and `<style>` tags for HTML (and its super languages). Defaults to false.
436
+ */
437
+ indentScriptAndStyle?: IndentScriptAndStyle | null;
438
+ /**
439
+ * The indent style applied to HTML (and its super languages) files.
440
+ */
441
+ indentStyle?: IndentStyle | null;
442
+ /**
443
+ * The size of the indentation applied to HTML (and its super languages) files. Default to 2.
444
+ */
445
+ indentWidth?: IndentWidth | null;
446
+ /**
447
+ * The type of line ending applied to HTML (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
448
+ */
449
+ lineEnding?: LineEnding | null;
450
+ /**
451
+ * What's the max width of a line applied to HTML (and its super languages) files. Defaults to 80.
452
+ */
453
+ lineWidth?: LineWidth | null;
454
+ /**
455
+ * Whether void elements should be self-closed. Defaults to never.
456
+ */
457
+ selfCloseVoidElements?: SelfCloseVoidElements | null;
458
+ /**
459
+ * Whether to account for whitespace sensitivity when formatting HTML (and its super languages). Defaults to "css".
460
+ */
461
+ whitespaceSensitivity?: WhitespaceSensitivity | null;
462
+ }
463
+ /**
464
+ * Formatting options specific to the JavaScript files
465
+ */
466
+ export interface JsFormatterConfiguration {
467
+ /**
468
+ * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
469
+ */
470
+ arrowParentheses?: ArrowParentheses | null;
471
+ /**
472
+ * The attribute position style in JSX elements. Defaults to auto.
473
+ */
474
+ attributePosition?: AttributePosition | null;
475
+ /**
476
+ * Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line. Defaults to false.
477
+ */
478
+ bracketSameLine?: BracketSameLine | null;
479
+ /**
480
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
481
+ */
482
+ bracketSpacing?: BracketSpacing | null;
483
+ /**
484
+ * Control the formatter for JavaScript (and its super languages) files.
485
+ */
486
+ enabled?: Bool | null;
487
+ /**
488
+ * 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".
489
+ */
490
+ expand?: Expand | null;
491
+ /**
492
+ * The indent style applied to JavaScript (and its super languages) files.
493
+ */
494
+ indentStyle?: IndentStyle | null;
495
+ /**
496
+ * The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
497
+ */
498
+ indentWidth?: IndentWidth | null;
499
+ /**
500
+ * The type of quotes used in JSX. Defaults to double.
501
+ */
502
+ jsxQuoteStyle?: QuoteStyle | null;
503
+ /**
504
+ * The type of line ending applied to JavaScript (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
505
+ */
506
+ lineEnding?: LineEnding | null;
507
+ /**
508
+ * What's the max width of a line applied to JavaScript (and its super languages) files. Defaults to 80.
509
+ */
510
+ lineWidth?: LineWidth | null;
511
+ /**
512
+ * When breaking binary expressions into multiple lines, whether to break them before or after the binary operator. Defaults to "after".
513
+ */
514
+ operatorLinebreak?: OperatorLinebreak | null;
515
+ /**
516
+ * When properties in objects are quoted. Defaults to asNeeded.
517
+ */
518
+ quoteProperties?: QuoteProperties | null;
519
+ /**
520
+ * The type of quotes used in JavaScript code. Defaults to double.
521
+ */
522
+ quoteStyle?: QuoteStyle | null;
523
+ /**
524
+ * Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.
525
+ */
526
+ semicolons?: Semicolons | null;
527
+ /**
528
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
529
+ */
530
+ trailingCommas?: TrailingCommas | null;
531
+ }
532
+ export interface JsonFormatterConfiguration {
533
+ /**
534
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
535
+ */
536
+ bracketSpacing?: BracketSpacing | null;
537
+ /**
538
+ * Control the formatter for JSON (and its super languages) files.
539
+ */
540
+ enabled?: Bool | null;
541
+ /**
542
+ * 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".
543
+ */
544
+ expand?: Expand | null;
545
+ /**
546
+ * The indent style applied to JSON (and its super languages) files.
547
+ */
548
+ indentStyle?: IndentStyle | null;
549
+ /**
550
+ * The size of the indentation applied to JSON (and its super languages) files. Default to 2.
551
+ */
552
+ indentWidth?: IndentWidth | null;
553
+ /**
554
+ * The type of line ending applied to JSON (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
555
+ */
556
+ lineEnding?: LineEnding | null;
557
+ /**
558
+ * What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.
559
+ */
560
+ lineWidth?: LineWidth | null;
561
+ /**
562
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "none".
563
+ */
564
+ trailingCommas?: TrailingCommas2 | null;
565
+ }
566
+ export interface RuleDomains {
567
+ [k: string]: RuleDomainValue;
568
+ }
569
+ export interface RuleWithNoAccessKeyOptions {
570
+ /**
571
+ * The kind of the code actions emitted by the rule
572
+ */
573
+ fix?: FixKind | null;
574
+ /**
575
+ * The severity of the emitted diagnostics by the rule
576
+ */
577
+ level: RulePlainConfiguration;
578
+ /**
579
+ * Rule's options
580
+ */
581
+ options?: NoAccessKeyOptions;
582
+ }
583
+ export interface RuleWithNoAriaHiddenOnFocusableOptions {
584
+ /**
585
+ * The kind of the code actions emitted by the rule
586
+ */
587
+ fix?: FixKind | null;
588
+ /**
589
+ * The severity of the emitted diagnostics by the rule
590
+ */
591
+ level: RulePlainConfiguration;
592
+ /**
593
+ * Rule's options
594
+ */
595
+ options?: NoAriaHiddenOnFocusableOptions;
596
+ }
597
+ export interface RuleWithNoAriaUnsupportedElementsOptions {
598
+ /**
599
+ * The kind of the code actions emitted by the rule
600
+ */
601
+ fix?: FixKind | null;
602
+ /**
603
+ * The severity of the emitted diagnostics by the rule
604
+ */
605
+ level: RulePlainConfiguration;
606
+ /**
607
+ * Rule's options
608
+ */
609
+ options?: NoAriaUnsupportedElementsOptions;
610
+ }
611
+ export interface RuleWithNoAutofocusOptions {
612
+ /**
613
+ * The kind of the code actions emitted by the rule
614
+ */
615
+ fix?: FixKind | null;
616
+ /**
617
+ * The severity of the emitted diagnostics by the rule
618
+ */
619
+ level: RulePlainConfiguration;
620
+ /**
621
+ * Rule's options
622
+ */
623
+ options?: NoAutofocusOptions;
624
+ }
625
+ export interface RuleWithNoDistractingElementsOptions {
626
+ /**
627
+ * The kind of the code actions emitted by the rule
628
+ */
629
+ fix?: FixKind | null;
630
+ /**
631
+ * The severity of the emitted diagnostics by the rule
632
+ */
633
+ level: RulePlainConfiguration;
634
+ /**
635
+ * Rule's options
636
+ */
637
+ options?: NoDistractingElementsOptions;
638
+ }
639
+ export interface RuleWithNoHeaderScopeOptions {
640
+ /**
641
+ * The kind of the code actions emitted by the rule
642
+ */
643
+ fix?: FixKind | null;
644
+ /**
645
+ * The severity of the emitted diagnostics by the rule
646
+ */
647
+ level: RulePlainConfiguration;
648
+ /**
649
+ * Rule's options
650
+ */
651
+ options?: NoHeaderScopeOptions;
652
+ }
653
+ export interface RuleWithNoInteractiveElementToNoninteractiveRoleOptions {
654
+ /**
655
+ * The kind of the code actions emitted by the rule
656
+ */
657
+ fix?: FixKind | null;
658
+ /**
659
+ * The severity of the emitted diagnostics by the rule
660
+ */
661
+ level: RulePlainConfiguration;
662
+ /**
663
+ * Rule's options
664
+ */
665
+ options?: NoInteractiveElementToNoninteractiveRoleOptions;
666
+ }
667
+ export interface RuleWithNoLabelWithoutControlOptions {
668
+ /**
669
+ * The severity of the emitted diagnostics by the rule
670
+ */
671
+ level: RulePlainConfiguration;
672
+ /**
673
+ * Rule's options
674
+ */
675
+ options?: NoLabelWithoutControlOptions;
676
+ }
677
+ export interface RuleWithNoNoninteractiveElementInteractionsOptions {
678
+ /**
679
+ * The severity of the emitted diagnostics by the rule
680
+ */
681
+ level: RulePlainConfiguration;
682
+ /**
683
+ * Rule's options
684
+ */
685
+ options?: NoNoninteractiveElementInteractionsOptions;
686
+ }
687
+ export interface RuleWithNoNoninteractiveElementToInteractiveRoleOptions {
688
+ /**
689
+ * The kind of the code actions emitted by the rule
690
+ */
691
+ fix?: FixKind | null;
692
+ /**
693
+ * The severity of the emitted diagnostics by the rule
694
+ */
695
+ level: RulePlainConfiguration;
696
+ /**
697
+ * Rule's options
698
+ */
699
+ options?: NoNoninteractiveElementToInteractiveRoleOptions;
700
+ }
701
+ export interface RuleWithNoNoninteractiveTabindexOptions {
702
+ /**
703
+ * The kind of the code actions emitted by the rule
704
+ */
705
+ fix?: FixKind | null;
706
+ /**
707
+ * The severity of the emitted diagnostics by the rule
708
+ */
709
+ level: RulePlainConfiguration;
710
+ /**
711
+ * Rule's options
712
+ */
713
+ options?: NoNoninteractiveTabindexOptions;
714
+ }
715
+ export interface RuleWithNoPositiveTabindexOptions {
716
+ /**
717
+ * The kind of the code actions emitted by the rule
718
+ */
719
+ fix?: FixKind | null;
720
+ /**
721
+ * The severity of the emitted diagnostics by the rule
722
+ */
723
+ level: RulePlainConfiguration;
724
+ /**
725
+ * Rule's options
726
+ */
727
+ options?: NoPositiveTabindexOptions;
728
+ }
729
+ export interface RuleWithNoRedundantAltOptions {
730
+ /**
731
+ * The severity of the emitted diagnostics by the rule
732
+ */
733
+ level: RulePlainConfiguration;
734
+ /**
735
+ * Rule's options
736
+ */
737
+ options?: NoRedundantAltOptions;
738
+ }
739
+ export interface RuleWithNoRedundantRolesOptions {
740
+ /**
741
+ * The kind of the code actions emitted by the rule
742
+ */
743
+ fix?: FixKind | null;
744
+ /**
745
+ * The severity of the emitted diagnostics by the rule
746
+ */
747
+ level: RulePlainConfiguration;
748
+ /**
749
+ * Rule's options
750
+ */
751
+ options?: NoRedundantRolesOptions;
752
+ }
753
+ export interface RuleWithNoStaticElementInteractionsOptions {
754
+ /**
755
+ * The severity of the emitted diagnostics by the rule
756
+ */
757
+ level: RulePlainConfiguration;
758
+ /**
759
+ * Rule's options
760
+ */
761
+ options?: NoStaticElementInteractionsOptions;
762
+ }
763
+ export interface RuleWithNoSvgWithoutTitleOptions {
764
+ /**
765
+ * The severity of the emitted diagnostics by the rule
766
+ */
767
+ level: RulePlainConfiguration;
768
+ /**
769
+ * Rule's options
770
+ */
771
+ options?: NoSvgWithoutTitleOptions;
772
+ }
773
+ export interface RuleWithUseAltTextOptions {
774
+ /**
775
+ * The severity of the emitted diagnostics by the rule
776
+ */
777
+ level: RulePlainConfiguration;
778
+ /**
779
+ * Rule's options
780
+ */
781
+ options?: UseAltTextOptions;
782
+ }
783
+ export interface RuleWithUseAnchorContentOptions {
784
+ /**
785
+ * The kind of the code actions emitted by the rule
786
+ */
787
+ fix?: FixKind | null;
788
+ /**
789
+ * The severity of the emitted diagnostics by the rule
790
+ */
791
+ level: RulePlainConfiguration;
792
+ /**
793
+ * Rule's options
794
+ */
795
+ options?: UseAnchorContentOptions;
796
+ }
797
+ export interface RuleWithUseAriaActivedescendantWithTabindexOptions {
798
+ /**
799
+ * The kind of the code actions emitted by the rule
800
+ */
801
+ fix?: FixKind | null;
802
+ /**
803
+ * The severity of the emitted diagnostics by the rule
804
+ */
805
+ level: RulePlainConfiguration;
806
+ /**
807
+ * Rule's options
808
+ */
809
+ options?: UseAriaActivedescendantWithTabindexOptions;
810
+ }
811
+ export interface RuleWithUseAriaPropsForRoleOptions {
812
+ /**
813
+ * The severity of the emitted diagnostics by the rule
814
+ */
815
+ level: RulePlainConfiguration;
816
+ /**
817
+ * Rule's options
818
+ */
819
+ options?: UseAriaPropsForRoleOptions;
820
+ }
821
+ export interface RuleWithUseAriaPropsSupportedByRoleOptions {
822
+ /**
823
+ * The severity of the emitted diagnostics by the rule
824
+ */
825
+ level: RulePlainConfiguration;
826
+ /**
827
+ * Rule's options
828
+ */
829
+ options?: UseAriaPropsSupportedByRoleOptions;
830
+ }
831
+ export interface RuleWithUseButtonTypeOptions {
832
+ /**
833
+ * The severity of the emitted diagnostics by the rule
834
+ */
835
+ level: RulePlainConfiguration;
836
+ /**
837
+ * Rule's options
838
+ */
839
+ options?: UseButtonTypeOptions;
840
+ }
841
+ export interface RuleWithUseFocusableInteractiveOptions {
842
+ /**
843
+ * The severity of the emitted diagnostics by the rule
844
+ */
845
+ level: RulePlainConfiguration;
846
+ /**
847
+ * Rule's options
848
+ */
849
+ options?: UseFocusableInteractiveOptions;
850
+ }
851
+ export interface RuleWithUseGenericFontNamesOptions {
852
+ /**
853
+ * The severity of the emitted diagnostics by the rule
854
+ */
855
+ level: RulePlainConfiguration;
856
+ /**
857
+ * Rule's options
858
+ */
859
+ options?: UseGenericFontNamesOptions;
860
+ }
861
+ export interface RuleWithUseHeadingContentOptions {
862
+ /**
863
+ * The severity of the emitted diagnostics by the rule
864
+ */
865
+ level: RulePlainConfiguration;
866
+ /**
867
+ * Rule's options
868
+ */
869
+ options?: UseHeadingContentOptions;
870
+ }
871
+ export interface RuleWithUseHtmlLangOptions {
872
+ /**
873
+ * The severity of the emitted diagnostics by the rule
874
+ */
875
+ level: RulePlainConfiguration;
876
+ /**
877
+ * Rule's options
878
+ */
879
+ options?: UseHtmlLangOptions;
880
+ }
881
+ export interface RuleWithUseIframeTitleOptions {
882
+ /**
883
+ * The severity of the emitted diagnostics by the rule
884
+ */
885
+ level: RulePlainConfiguration;
886
+ /**
887
+ * Rule's options
888
+ */
889
+ options?: UseIframeTitleOptions;
890
+ }
891
+ export interface RuleWithUseKeyWithClickEventsOptions {
892
+ /**
893
+ * The severity of the emitted diagnostics by the rule
894
+ */
895
+ level: RulePlainConfiguration;
896
+ /**
897
+ * Rule's options
898
+ */
899
+ options?: UseKeyWithClickEventsOptions;
900
+ }
901
+ export interface RuleWithUseKeyWithMouseEventsOptions {
902
+ /**
903
+ * The severity of the emitted diagnostics by the rule
904
+ */
905
+ level: RulePlainConfiguration;
906
+ /**
907
+ * Rule's options
908
+ */
909
+ options?: UseKeyWithMouseEventsOptions;
910
+ }
911
+ export interface RuleWithUseMediaCaptionOptions {
912
+ /**
913
+ * The severity of the emitted diagnostics by the rule
914
+ */
915
+ level: RulePlainConfiguration;
916
+ /**
917
+ * Rule's options
918
+ */
919
+ options?: UseMediaCaptionOptions;
920
+ }
921
+ export interface RuleWithUseSemanticElementsOptions {
922
+ /**
923
+ * The severity of the emitted diagnostics by the rule
924
+ */
925
+ level: RulePlainConfiguration;
926
+ /**
927
+ * Rule's options
928
+ */
929
+ options?: UseSemanticElementsOptions;
930
+ }
931
+ export interface RuleWithUseValidAnchorOptions {
932
+ /**
933
+ * The severity of the emitted diagnostics by the rule
934
+ */
935
+ level: RulePlainConfiguration;
936
+ /**
937
+ * Rule's options
938
+ */
939
+ options?: UseValidAnchorOptions;
940
+ }
941
+ export interface RuleWithUseValidAriaPropsOptions {
942
+ /**
943
+ * The kind of the code actions emitted by the rule
944
+ */
945
+ fix?: FixKind | null;
946
+ /**
947
+ * The severity of the emitted diagnostics by the rule
948
+ */
949
+ level: RulePlainConfiguration;
950
+ /**
951
+ * Rule's options
952
+ */
953
+ options?: UseValidAriaPropsOptions;
954
+ }
955
+ export interface RuleWithUseValidAriaRoleOptions {
956
+ /**
957
+ * The kind of the code actions emitted by the rule
958
+ */
959
+ fix?: FixKind | null;
960
+ /**
961
+ * The severity of the emitted diagnostics by the rule
962
+ */
963
+ level: RulePlainConfiguration;
964
+ /**
965
+ * Rule's options
966
+ */
967
+ options?: UseValidAriaRoleOptions;
968
+ }
969
+ export interface RuleWithUseValidAriaValuesOptions {
970
+ /**
971
+ * The severity of the emitted diagnostics by the rule
972
+ */
973
+ level: RulePlainConfiguration;
974
+ /**
975
+ * Rule's options
976
+ */
977
+ options?: UseValidAriaValuesOptions;
978
+ }
979
+ export interface RuleWithUseValidAutocompleteOptions {
980
+ /**
981
+ * The severity of the emitted diagnostics by the rule
982
+ */
983
+ level: RulePlainConfiguration;
984
+ /**
985
+ * Rule's options
986
+ */
987
+ options?: UseValidAutocompleteOptions;
988
+ }
989
+ export interface RuleWithUseValidLangOptions {
990
+ /**
991
+ * The severity of the emitted diagnostics by the rule
992
+ */
993
+ level: RulePlainConfiguration;
994
+ /**
995
+ * Rule's options
996
+ */
997
+ options?: UseValidLangOptions;
998
+ }
999
+ export interface RuleWithNoAdjacentSpacesInRegexOptions {
1000
+ /**
1001
+ * The kind of the code actions emitted by the rule
1002
+ */
1003
+ fix?: FixKind | null;
1004
+ /**
1005
+ * The severity of the emitted diagnostics by the rule
1006
+ */
1007
+ level: RulePlainConfiguration;
1008
+ /**
1009
+ * Rule's options
1010
+ */
1011
+ options?: NoAdjacentSpacesInRegexOptions;
1012
+ }
1013
+ export interface RuleWithNoArgumentsOptions {
1014
+ /**
1015
+ * The severity of the emitted diagnostics by the rule
1016
+ */
1017
+ level: RulePlainConfiguration;
1018
+ /**
1019
+ * Rule's options
1020
+ */
1021
+ options?: NoArgumentsOptions;
1022
+ }
1023
+ export interface RuleWithNoBannedTypesOptions {
1024
+ /**
1025
+ * The kind of the code actions emitted by the rule
1026
+ */
1027
+ fix?: FixKind | null;
1028
+ /**
1029
+ * The severity of the emitted diagnostics by the rule
1030
+ */
1031
+ level: RulePlainConfiguration;
1032
+ /**
1033
+ * Rule's options
1034
+ */
1035
+ options?: NoBannedTypesOptions;
1036
+ }
1037
+ export interface RuleWithNoCommaOperatorOptions {
1038
+ /**
1039
+ * The severity of the emitted diagnostics by the rule
1040
+ */
1041
+ level: RulePlainConfiguration;
1042
+ /**
1043
+ * Rule's options
1044
+ */
1045
+ options?: NoCommaOperatorOptions;
1046
+ }
1047
+ export interface RuleWithNoEmptyTypeParametersOptions {
1048
+ /**
1049
+ * The severity of the emitted diagnostics by the rule
1050
+ */
1051
+ level: RulePlainConfiguration;
1052
+ /**
1053
+ * Rule's options
1054
+ */
1055
+ options?: NoEmptyTypeParametersOptions;
1056
+ }
1057
+ export interface RuleWithNoExcessiveCognitiveComplexityOptions {
1058
+ /**
1059
+ * The severity of the emitted diagnostics by the rule
1060
+ */
1061
+ level: RulePlainConfiguration;
1062
+ /**
1063
+ * Rule's options
1064
+ */
1065
+ options?: NoExcessiveCognitiveComplexityOptions;
1066
+ }
1067
+ export interface RuleWithNoExcessiveLinesPerFunctionOptions {
1068
+ /**
1069
+ * The severity of the emitted diagnostics by the rule
1070
+ */
1071
+ level: RulePlainConfiguration;
1072
+ /**
1073
+ * Rule's options
1074
+ */
1075
+ options?: NoExcessiveLinesPerFunctionOptions;
1076
+ }