@quentinhsu/biome-config 0.3.3 → 0.4.0

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