@quentinhsu/biome-config 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/131.mjs +358 -0
  2. package/dist/build.mjs +108 -360
  3. package/dist/index.jsonc +56 -56
  4. package/dist/index.mjs +1 -358
  5. package/dist/next.jsonc +60 -60
  6. package/dist/nuxt.jsonc +91 -91
  7. package/dist/react.jsonc +58 -58
  8. package/dist/rslib-runtime.mjs +38 -0
  9. package/dist/types/scripts/tag-release.d.ts +1 -0
  10. package/dist/types/scripts/validate-config-properties.d.ts +1 -0
  11. package/dist/types/src/constants/biome.d.ts +1 -1
  12. package/dist/types/src/generated/biome/index.d.ts +11 -8
  13. package/dist/types/src/generated/biome/no-comment-text-options.d.ts +761 -0
  14. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +97 -97
  15. package/dist/types/src/generated/biome/no-sync-scripts-configuration.d.ts +185 -0
  16. package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → no-useless-constructor-configuration.d.ts} +31 -49
  17. package/dist/types/src/generated/biome/nursery.d.ts +393 -594
  18. package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → pattern-options.d.ts} +252 -179
  19. package/dist/types/src/generated/biome/rule-with-no-access-key-options.d.ts +555 -0
  20. package/dist/types/src/generated/biome/rule-with-no-blank-target-options.d.ts +530 -0
  21. package/dist/types/src/generated/biome/rule-with-no-fallthrough-switch-clause-options.d.ts +469 -0
  22. package/dist/types/src/generated/biome/rule-with-no-unknown-unit-options.d.ts +564 -0
  23. package/dist/types/src/generated/biome/schema.d.ts +35 -17
  24. package/dist/types/src/generated/biome/style.d.ts +614 -0
  25. package/dist/types/src/generated/biome/use-for-of-configuration.d.ts +144 -0
  26. package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → use-unique-variable-names-options.d.ts} +141 -119
  27. package/dist/types/src/index.d.ts +2 -2
  28. package/dist/vue.jsonc +60 -60
  29. package/package.json +38 -34
  30. package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +0 -241
  31. package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +0 -1116
  32. package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +0 -1148
  33. package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +0 -1440
  34. package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +0 -1341
@@ -0,0 +1,761 @@
1
+ import type { ArrowParentheses, AttributePosition, Bool, BracketSameLine, BracketSpacing, Expand, IndentScriptAndStyle, IndentStyle, IndentWidth, JsTrailingCommas, JsonTrailingCommas, LineEnding, LineWidth, MaxSize, NegatablePredefinedSourceMatcher, NormalizedGlob, OperatorLinebreak, QuoteProperties, QuoteStyle, RuleAssistPlainConfiguration, RuleDomainValue, SelfCloseVoidElements, Semicolons, SortOrder, UseSortedPropertiesOptions, WhitespaceSensitivity } from './schema.ts';
2
+ export interface NoCommentTextOptions {
3
+ }
4
+ export interface NoCompareNegZeroOptions {
5
+ }
6
+ export interface NoConfusingLabelsOptions {
7
+ /**
8
+ * A list of (non-confusing) labels that should be allowed
9
+ */
10
+ allowedLabels?: string[] | null;
11
+ }
12
+ export interface NoConfusingVoidTypeOptions {
13
+ }
14
+ export interface NoConsoleOptions {
15
+ /**
16
+ * Allowed calls on the console object.
17
+ */
18
+ allow?: string[] | null;
19
+ }
20
+ export interface NoConstEnumOptions {
21
+ }
22
+ export interface NoConstantBinaryExpressionsOptions {
23
+ }
24
+ export interface NoControlCharactersInRegexOptions {
25
+ }
26
+ export interface NoDebuggerOptions {
27
+ }
28
+ export interface NoDocumentCookieOptions {
29
+ }
30
+ export interface NoDocumentImportInPageOptions {
31
+ }
32
+ export interface NoDoubleEqualsOptions {
33
+ /**
34
+ * If `true`, an exception is made when comparing with `null`, as it's often relied on to check
35
+ * both for `null` or `undefined`.
36
+ *
37
+ * If `false`, no such exception will be made.
38
+ */
39
+ ignoreNull?: boolean | null;
40
+ }
41
+ export interface NoDuplicateAtImportRulesOptions {
42
+ }
43
+ export interface NoDuplicateCaseOptions {
44
+ }
45
+ export interface NoDuplicateClassMembersOptions {
46
+ }
47
+ export interface NoDuplicateCustomPropertiesOptions {
48
+ }
49
+ export interface NoDuplicateElseIfOptions {
50
+ }
51
+ export interface NoDuplicateFieldsOptions {
52
+ }
53
+ export interface NoDuplicateFontNamesOptions {
54
+ }
55
+ export interface NoDuplicateJsxPropsOptions {
56
+ }
57
+ export interface NoDuplicateObjectKeysOptions {
58
+ }
59
+ export interface NoDuplicateParametersOptions {
60
+ }
61
+ export interface NoDuplicatePropertiesOptions {
62
+ }
63
+ export interface NoDuplicateSelectorsKeyframeBlockOptions {
64
+ }
65
+ export interface NoDuplicateTestHooksOptions {
66
+ }
67
+ export interface NoEmptyBlockOptions {
68
+ }
69
+ export interface NoEmptyBlockStatementsOptions {
70
+ }
71
+ export interface NoEmptyInterfaceOptions {
72
+ }
73
+ export interface NoEvolvingTypesOptions {
74
+ }
75
+ export interface NoExplicitAnyOptions {
76
+ }
77
+ export interface NoExportsInTestOptions {
78
+ }
79
+ export interface NoExtraNonNullAssertionOptions {
80
+ }
81
+ export interface NoFallthroughSwitchClauseOptions {
82
+ }
83
+ export interface NoFocusedTestsOptions {
84
+ }
85
+ export interface NoFunctionAssignOptions {
86
+ }
87
+ export interface NoGlobalAssignOptions {
88
+ }
89
+ export interface NoGlobalIsFiniteOptions {
90
+ }
91
+ export interface NoGlobalIsNanOptions {
92
+ }
93
+ export interface NoHeadImportInDocumentOptions {
94
+ }
95
+ export interface NoImplicitAnyLetOptions {
96
+ }
97
+ export interface NoImportAssignOptions {
98
+ }
99
+ export interface NoImportantInKeyframeOptions {
100
+ }
101
+ export interface NoIrregularWhitespaceOptions {
102
+ }
103
+ export interface NoLabelVarOptions {
104
+ }
105
+ export interface NoMisleadingCharacterClassOptions {
106
+ }
107
+ export interface NoMisleadingInstantiatorOptions {
108
+ }
109
+ export interface NoMisplacedAssertionOptions {
110
+ }
111
+ export interface NoMisrefactoredShorthandAssignOptions {
112
+ }
113
+ export interface NoNonNullAssertedOptionalChainOptions {
114
+ }
115
+ export interface NoOctalEscapeOptions {
116
+ }
117
+ export interface NoPrototypeBuiltinsOptions {
118
+ }
119
+ export interface NoQuickfixBiomeOptions {
120
+ /**
121
+ * A list of additional JSON files that should be checked.
122
+ */
123
+ additionalPaths?: string[];
124
+ }
125
+ export interface NoReactSpecificPropsOptions {
126
+ }
127
+ export interface NoRedeclareOptions {
128
+ }
129
+ export interface NoRedundantUseStrictOptions {
130
+ }
131
+ export interface NoSelfCompareOptions {
132
+ }
133
+ export interface NoShadowRestrictedNamesOptions {
134
+ }
135
+ export interface NoShorthandPropertyOverridesOptions {
136
+ }
137
+ export interface NoSkippedTestsOptions {
138
+ }
139
+ export interface NoSparseArrayOptions {
140
+ }
141
+ export interface NoSuspiciousSemicolonInJsxOptions {
142
+ }
143
+ export interface NoTemplateCurlyInStringOptions {
144
+ }
145
+ export interface NoThenPropertyOptions {
146
+ }
147
+ export interface NoTsIgnoreOptions {
148
+ }
149
+ export interface NoUnassignedVariablesOptions {
150
+ }
151
+ export interface NoUnknownAtRulesOptions {
152
+ /**
153
+ * A list of unknown at-rule names to ignore (case-insensitive).
154
+ */
155
+ ignore?: string[];
156
+ }
157
+ export interface NoUnsafeDeclarationMergingOptions {
158
+ }
159
+ export interface NoUnsafeNegationOptions {
160
+ }
161
+ export interface NoUselessEscapeInStringOptions {
162
+ }
163
+ export interface NoUselessRegexBackrefsOptions {
164
+ }
165
+ export interface NoVarOptions {
166
+ }
167
+ export interface NoWithOptions {
168
+ }
169
+ export interface UseAdjacentOverloadSignaturesOptions {
170
+ }
171
+ export interface UseAwaitOptions {
172
+ }
173
+ export interface UseBiomeIgnoreFolderOptions {
174
+ }
175
+ export interface UseDefaultSwitchClauseLastOptions {
176
+ }
177
+ export interface UseErrorMessageOptions {
178
+ }
179
+ export interface UseGetterReturnOptions {
180
+ }
181
+ export interface UseGoogleFontDisplayOptions {
182
+ }
183
+ export interface UseGuardForInOptions {
184
+ }
185
+ export interface UseIsArrayOptions {
186
+ }
187
+ export interface UseIterableCallbackReturnOptions {
188
+ }
189
+ export interface UseNamespaceKeywordOptions {
190
+ }
191
+ export interface UseNumberToFixedDigitsArgumentOptions {
192
+ }
193
+ export interface UseStaticResponseMethodsOptions {
194
+ }
195
+ export interface UseStrictModeOptions {
196
+ }
197
+ export type Glob = string;
198
+ export type PluginConfiguration = string;
199
+ export type VcsClientKind = 'git';
200
+ export type SourceMatcher = NegatablePredefinedSourceMatcher | string;
201
+ export interface UseSortedAttributesOptions {
202
+ sortOrder?: SortOrder | null;
203
+ }
204
+ export interface UseSortedKeysOptions {
205
+ sortOrder?: SortOrder | null;
206
+ }
207
+ export interface RuleAssistWithUseSortedPropertiesOptions {
208
+ level: RuleAssistPlainConfiguration;
209
+ options: UseSortedPropertiesOptions;
210
+ [k: string]: unknown;
211
+ }
212
+ /**
213
+ * Options that changes how the CSS assist behaves
214
+ */
215
+ export interface CssAssistConfiguration {
216
+ /**
217
+ * Control the assist for CSS files.
218
+ */
219
+ enabled?: Bool | null;
220
+ }
221
+ /**
222
+ * Options that changes how the CSS linter behaves
223
+ */
224
+ export interface CssLinterConfiguration {
225
+ /**
226
+ * Control the linter for CSS files.
227
+ */
228
+ enabled?: Bool | null;
229
+ }
230
+ /**
231
+ * Options that changes how the CSS parser behaves
232
+ */
233
+ export interface CssParserConfiguration {
234
+ /**
235
+ * Allow comments to appear on incorrect lines in `.css` files
236
+ */
237
+ allowWrongLineComments?: Bool | null;
238
+ /**
239
+ * Enables parsing of CSS Modules specific features.
240
+ */
241
+ cssModules?: Bool | null;
242
+ /**
243
+ * Enables parsing of Tailwind CSS 4.0 directives and functions.
244
+ */
245
+ tailwindDirectives?: Bool | null;
246
+ }
247
+ /**
248
+ * Options that changes how the GraphQL linter behaves
249
+ */
250
+ export interface GraphqlAssistConfiguration {
251
+ /**
252
+ * Control the formatter for GraphQL files.
253
+ */
254
+ enabled?: Bool | null;
255
+ }
256
+ /**
257
+ * Options that change how the GraphQL linter behaves.
258
+ */
259
+ export interface GraphqlLinterConfiguration {
260
+ /**
261
+ * Control the formatter for GraphQL files.
262
+ */
263
+ enabled?: Bool | null;
264
+ }
265
+ export interface GritAssistConfiguration {
266
+ /**
267
+ * Control the assist functionality for Grit files.
268
+ */
269
+ enabled?: Bool | null;
270
+ }
271
+ export interface GritLinterConfiguration {
272
+ /**
273
+ * Control the linter for Grit files.
274
+ */
275
+ enabled?: Bool | null;
276
+ }
277
+ /**
278
+ * Options that changes how the HTML assist behaves
279
+ */
280
+ export interface HtmlAssistConfiguration {
281
+ /**
282
+ * Control the assist for HTML (and its super languages) files.
283
+ */
284
+ enabled?: Bool | null;
285
+ }
286
+ /**
287
+ * Options that changes how the HTML linter behaves
288
+ */
289
+ export interface HtmlLinterConfiguration {
290
+ /**
291
+ * Control the linter for HTML (and its super languages) files.
292
+ */
293
+ enabled?: Bool | null;
294
+ }
295
+ /**
296
+ * Options that changes how the HTML parser behaves
297
+ */
298
+ export interface HtmlParserConfiguration {
299
+ /**
300
+ * Enables the parsing of double text expressions such as `{{ expression }}` inside `.html` files
301
+ */
302
+ interpolation?: Bool | null;
303
+ }
304
+ /**
305
+ * Assist options specific to the JavaScript assist
306
+ */
307
+ export interface JsAssistConfiguration {
308
+ /**
309
+ * Control the assist for JavaScript (and its super languages) files.
310
+ */
311
+ enabled?: Bool | null;
312
+ }
313
+ /**
314
+ * Linter options specific to the JavaScript linter
315
+ */
316
+ export interface JsLinterConfiguration {
317
+ /**
318
+ * Control the linter for JavaScript (and its super languages) files.
319
+ */
320
+ enabled?: Bool | null;
321
+ }
322
+ /**
323
+ * Options that changes how the JavaScript parser behaves
324
+ */
325
+ export interface JsParserConfiguration {
326
+ /**
327
+ * Enables parsing of Grit metavariables.
328
+ * Defaults to `false`.
329
+ */
330
+ gritMetavariables?: Bool | null;
331
+ /**
332
+ * When enabled, files like `.js`/`.mjs`/`.cjs` may contain JSX syntax.
333
+ *
334
+ * Defaults to `true`.
335
+ */
336
+ jsxEverywhere?: Bool | null;
337
+ /**
338
+ * It enables the experimental and unsafe parsing of parameter decorators
339
+ *
340
+ * These decorators belong to an old proposal, and they are subject to change.
341
+ */
342
+ unsafeParameterDecoratorsEnabled?: Bool | null;
343
+ }
344
+ /**
345
+ * Assist options specific to the JSON linter
346
+ */
347
+ export interface JsonAssistConfiguration {
348
+ /**
349
+ * Control the assist for JSON (and its super languages) files.
350
+ */
351
+ enabled?: Bool | null;
352
+ }
353
+ /**
354
+ * Linter options specific to the JSON linter
355
+ */
356
+ export interface JsonLinterConfiguration {
357
+ /**
358
+ * Control the linter for JSON (and its super languages) files.
359
+ */
360
+ enabled?: Bool | null;
361
+ }
362
+ /**
363
+ * Options that changes how the JSON parser behaves
364
+ */
365
+ export interface JsonParserConfiguration {
366
+ /**
367
+ * Allow parsing comments in `.json` files
368
+ */
369
+ allowComments?: Bool | null;
370
+ /**
371
+ * Allow parsing trailing commas in `.json` files
372
+ */
373
+ allowTrailingCommas?: Bool | null;
374
+ }
375
+ export interface GritFormatterConfiguration {
376
+ /**
377
+ * Control the formatter for Grit files.
378
+ */
379
+ enabled?: Bool | null;
380
+ /**
381
+ * The indent style applied to Grit files.
382
+ */
383
+ indentStyle?: IndentStyle | null;
384
+ /**
385
+ * The size of the indentation applied to Grit files. Default to 2.
386
+ */
387
+ indentWidth?: IndentWidth | null;
388
+ /**
389
+ * The type of line ending applied to Grit files.
390
+ */
391
+ lineEnding?: LineEnding | null;
392
+ /**
393
+ * What's the max width of a line applied to Grit files. Defaults to 80.
394
+ */
395
+ lineWidth?: LineWidth | null;
396
+ }
397
+ /**
398
+ * Options that changes how the CSS formatter behaves
399
+ */
400
+ export interface CssFormatterConfiguration {
401
+ /**
402
+ * Control the formatter for CSS (and its super languages) files.
403
+ */
404
+ enabled?: Bool | null;
405
+ /**
406
+ * The indent style applied to CSS (and its super languages) files.
407
+ */
408
+ indentStyle?: IndentStyle | null;
409
+ /**
410
+ * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
411
+ */
412
+ indentWidth?: IndentWidth | null;
413
+ /**
414
+ * The type of line ending applied to CSS (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
415
+ */
416
+ lineEnding?: LineEnding | null;
417
+ /**
418
+ * What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
419
+ */
420
+ lineWidth?: LineWidth | null;
421
+ /**
422
+ * The type of quotes used in CSS code. Defaults to double.
423
+ */
424
+ quoteStyle?: QuoteStyle | null;
425
+ }
426
+ /**
427
+ * The configuration of the filesystem
428
+ */
429
+ export interface FilesConfiguration {
430
+ /**
431
+ * **Deprecated:** Please use _force-ignore syntax_ in `files.includes`
432
+ * instead: <https://biomejs.dev/reference/configuration/#filesincludes>
433
+ *
434
+ * Set of file and folder names that should be unconditionally ignored by
435
+ * Biome's scanner.
436
+ */
437
+ experimentalScannerIgnores?: string[] | null;
438
+ /**
439
+ * Tells Biome to not emit diagnostics when handling files that it doesn't know
440
+ */
441
+ ignoreUnknown?: Bool | null;
442
+ /**
443
+ * A list of glob patterns. Biome will handle only those files/folders that will
444
+ * match these patterns.
445
+ */
446
+ includes?: NormalizedGlob[] | null;
447
+ /**
448
+ * The maximum allowed size for source code files in bytes. Files above
449
+ * this limit will be ignored for performance reasons. Defaults to 1 MiB
450
+ */
451
+ maxSize?: MaxSize | null;
452
+ }
453
+ export interface OverrideFilesConfiguration {
454
+ /**
455
+ * File size limit in bytes
456
+ */
457
+ maxSize?: MaxSize | null;
458
+ }
459
+ /**
460
+ * Options that changes how the GraphQL formatter behaves
461
+ */
462
+ export interface GraphqlFormatterConfiguration {
463
+ /**
464
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
465
+ */
466
+ bracketSpacing?: BracketSpacing | null;
467
+ /**
468
+ * Control the formatter for GraphQL files.
469
+ */
470
+ enabled?: Bool | null;
471
+ /**
472
+ * The indent style applied to GraphQL files.
473
+ */
474
+ indentStyle?: IndentStyle | null;
475
+ /**
476
+ * The size of the indentation applied to GraphQL files. Default to 2.
477
+ */
478
+ indentWidth?: IndentWidth | null;
479
+ /**
480
+ * The type of line ending applied to GraphQL files. `auto` uses CRLF on Windows and LF on other platforms.
481
+ */
482
+ lineEnding?: LineEnding | null;
483
+ /**
484
+ * What's the max width of a line applied to GraphQL files. Defaults to 80.
485
+ */
486
+ lineWidth?: LineWidth | null;
487
+ /**
488
+ * The type of quotes used in GraphQL code. Defaults to double.
489
+ */
490
+ quoteStyle?: QuoteStyle | null;
491
+ }
492
+ /**
493
+ * Generic options applied to all files
494
+ */
495
+ export interface FormatterConfiguration {
496
+ /**
497
+ * The attribute position style in HTML-ish languages. Defaults to auto.
498
+ */
499
+ attributePosition?: AttributePosition | null;
500
+ /**
501
+ * 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).
502
+ */
503
+ bracketSameLine?: BracketSameLine | null;
504
+ /**
505
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
506
+ */
507
+ bracketSpacing?: BracketSpacing | null;
508
+ enabled?: Bool | null;
509
+ /**
510
+ * Whether to expand arrays and objects on multiple lines.
511
+ * When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
512
+ * and array literals are formatted on a single line if it fits in the line.
513
+ * When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
514
+ * When set to `never`, these literals are formatted on a single line if it fits in the line.
515
+ * When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
516
+ */
517
+ expand?: Expand | null;
518
+ /**
519
+ * Whether formatting should be allowed to proceed if a given file
520
+ * has syntax errors
521
+ */
522
+ formatWithErrors?: Bool | null;
523
+ /**
524
+ * A list of glob patterns. The formatter will include files/folders that will
525
+ * match these patterns.
526
+ */
527
+ includes?: NormalizedGlob[] | null;
528
+ /**
529
+ * The indent style.
530
+ */
531
+ indentStyle?: IndentStyle | null;
532
+ /**
533
+ * The size of the indentation, 2 by default
534
+ */
535
+ indentWidth?: IndentWidth | null;
536
+ /**
537
+ * The type of line ending.
538
+ */
539
+ lineEnding?: LineEnding | null;
540
+ /**
541
+ * What's the max width of a line. Defaults to 80.
542
+ */
543
+ lineWidth?: LineWidth | null;
544
+ /**
545
+ * Use any `.editorconfig` files to configure the formatter. Configuration
546
+ * in `biome.json` will override `.editorconfig` configuration.
547
+ *
548
+ * Default: `true`.
549
+ */
550
+ useEditorconfig?: Bool | null;
551
+ }
552
+ export interface OverrideFormatterConfiguration {
553
+ /**
554
+ * The attribute position style.
555
+ */
556
+ attributePosition?: AttributePosition | null;
557
+ /**
558
+ * 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).
559
+ */
560
+ bracketSameLine?: BracketSameLine | null;
561
+ /**
562
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
563
+ */
564
+ bracketSpacing?: BracketSpacing | null;
565
+ enabled?: Bool | null;
566
+ /**
567
+ * Whether to expand arrays and objects on multiple lines.
568
+ * When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
569
+ * and array literals are formatted on a single line if it fits in the line.
570
+ * When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
571
+ * When set to `never`, these literals are formatted on a single line if it fits in the line.
572
+ * When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
573
+ */
574
+ expand?: Expand | null;
575
+ /**
576
+ * Stores whether formatting should be allowed to proceed if a given file
577
+ * has syntax errors
578
+ */
579
+ formatWithErrors?: Bool | null;
580
+ /**
581
+ * The size of the indentation, 2 by default (deprecated, use `indent-width`)
582
+ */
583
+ indentSize?: IndentWidth | null;
584
+ /**
585
+ * The indent style.
586
+ */
587
+ indentStyle?: IndentStyle | null;
588
+ /**
589
+ * The size of the indentation, 2 by default
590
+ */
591
+ indentWidth?: IndentWidth | null;
592
+ /**
593
+ * The type of line ending.
594
+ */
595
+ lineEnding?: LineEnding | null;
596
+ /**
597
+ * What's the max width of a line. Defaults to 80.
598
+ */
599
+ lineWidth?: LineWidth | null;
600
+ }
601
+ /**
602
+ * Options that changes how the HTML formatter behaves
603
+ */
604
+ export interface HtmlFormatterConfiguration {
605
+ /**
606
+ * The attribute position style in HTML elements. Defaults to auto.
607
+ */
608
+ attributePosition?: AttributePosition | null;
609
+ /**
610
+ * 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.
611
+ */
612
+ bracketSameLine?: BracketSameLine | null;
613
+ /**
614
+ * Control the formatter for HTML (and its super languages) files.
615
+ */
616
+ enabled?: Bool | null;
617
+ /**
618
+ * Whether to indent the `<script>` and `<style>` tags for HTML (and its super languages). Defaults to false.
619
+ */
620
+ indentScriptAndStyle?: IndentScriptAndStyle | null;
621
+ /**
622
+ * The indent style applied to HTML (and its super languages) files.
623
+ */
624
+ indentStyle?: IndentStyle | null;
625
+ /**
626
+ * The size of the indentation applied to HTML (and its super languages) files. Default to 2.
627
+ */
628
+ indentWidth?: IndentWidth | null;
629
+ /**
630
+ * The type of line ending applied to HTML (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
631
+ */
632
+ lineEnding?: LineEnding | null;
633
+ /**
634
+ * What's the max width of a line applied to HTML (and its super languages) files. Defaults to 80.
635
+ */
636
+ lineWidth?: LineWidth | null;
637
+ /**
638
+ * Whether void elements should be self-closed. Defaults to never.
639
+ */
640
+ selfCloseVoidElements?: SelfCloseVoidElements | null;
641
+ /**
642
+ * Whether to account for whitespace sensitivity when formatting HTML (and its super languages). Defaults to "css".
643
+ */
644
+ whitespaceSensitivity?: WhitespaceSensitivity | null;
645
+ }
646
+ /**
647
+ * Formatting options specific to the JavaScript files
648
+ */
649
+ export interface JsFormatterConfiguration {
650
+ /**
651
+ * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
652
+ */
653
+ arrowParentheses?: ArrowParentheses | null;
654
+ /**
655
+ * The attribute position style in JSX elements. Defaults to auto.
656
+ */
657
+ attributePosition?: AttributePosition | null;
658
+ /**
659
+ * 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.
660
+ */
661
+ bracketSameLine?: BracketSameLine | null;
662
+ /**
663
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
664
+ */
665
+ bracketSpacing?: BracketSpacing | null;
666
+ /**
667
+ * Control the formatter for JavaScript (and its super languages) files.
668
+ */
669
+ enabled?: Bool | null;
670
+ /**
671
+ * Whether to expand arrays and objects on multiple lines.
672
+ * When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
673
+ * and array literals are formatted on a single line if it fits in the line.
674
+ * When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
675
+ * When set to `never`, these literals are formatted on a single line if it fits in the line.
676
+ * When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
677
+ */
678
+ expand?: Expand | null;
679
+ /**
680
+ * The indent style applied to JavaScript (and its super languages) files.
681
+ */
682
+ indentStyle?: IndentStyle | null;
683
+ /**
684
+ * The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
685
+ */
686
+ indentWidth?: IndentWidth | null;
687
+ /**
688
+ * The type of quotes used in JSX. Defaults to double.
689
+ */
690
+ jsxQuoteStyle?: QuoteStyle | null;
691
+ /**
692
+ * The type of line ending applied to JavaScript (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
693
+ */
694
+ lineEnding?: LineEnding | null;
695
+ /**
696
+ * What's the max width of a line applied to JavaScript (and its super languages) files. Defaults to 80.
697
+ */
698
+ lineWidth?: LineWidth | null;
699
+ /**
700
+ * When breaking binary expressions into multiple lines, whether to break them before or after the binary operator. Defaults to "after".
701
+ */
702
+ operatorLinebreak?: OperatorLinebreak | null;
703
+ /**
704
+ * When properties in objects are quoted. Defaults to asNeeded.
705
+ */
706
+ quoteProperties?: QuoteProperties | null;
707
+ /**
708
+ * The type of quotes used in JavaScript code. Defaults to double.
709
+ */
710
+ quoteStyle?: QuoteStyle | null;
711
+ /**
712
+ * Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.
713
+ */
714
+ semicolons?: Semicolons | null;
715
+ /**
716
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
717
+ */
718
+ trailingCommas?: JsTrailingCommas | null;
719
+ }
720
+ export interface JsonFormatterConfiguration {
721
+ /**
722
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
723
+ */
724
+ bracketSpacing?: BracketSpacing | null;
725
+ /**
726
+ * Control the formatter for JSON (and its super languages) files.
727
+ */
728
+ enabled?: Bool | null;
729
+ /**
730
+ * Whether to expand arrays and objects on multiple lines.
731
+ * When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
732
+ * and array literals are formatted on a single line if it fits in the line.
733
+ * When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
734
+ * When set to `never`, these literals are formatted on a single line if it fits in the line.
735
+ * When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
736
+ */
737
+ expand?: Expand | null;
738
+ /**
739
+ * The indent style applied to JSON (and its super languages) files.
740
+ */
741
+ indentStyle?: IndentStyle | null;
742
+ /**
743
+ * The size of the indentation applied to JSON (and its super languages) files. Default to 2.
744
+ */
745
+ indentWidth?: IndentWidth | null;
746
+ /**
747
+ * The type of line ending applied to JSON (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
748
+ */
749
+ lineEnding?: LineEnding | null;
750
+ /**
751
+ * What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.
752
+ */
753
+ lineWidth?: LineWidth | null;
754
+ /**
755
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "none".
756
+ */
757
+ trailingCommas?: JsonTrailingCommas | null;
758
+ }
759
+ export interface RuleDomains {
760
+ [k: string]: RuleDomainValue;
761
+ }