@biomejs/wasm-web 2.5.6 → 2.5.8

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.
package/biome_wasm.d.ts CHANGED
@@ -18,11 +18,11 @@ interface Configuration {
18
18
  */
19
19
  $schema?: Schema;
20
20
  /**
21
- * Specific configuration for assists
21
+ * The assist configuration.
22
22
  */
23
23
  assist?: AssistConfiguration;
24
24
  /**
25
- * Specific configuration for the Css language
25
+ * Configuration specific to CSS.
26
26
  */
27
27
  css?: CssConfiguration;
28
28
  /**
@@ -30,39 +30,39 @@ interface Configuration {
30
30
  */
31
31
  extends?: Extends;
32
32
  /**
33
- * The configuration of the filesystem
33
+ * The file handling configuration.
34
34
  */
35
35
  files?: FilesConfiguration;
36
36
  /**
37
- * The configuration of the formatter
37
+ * The formatter configuration.
38
38
  */
39
39
  formatter?: FormatterConfiguration;
40
40
  /**
41
- * Specific configuration for the GraphQL language
41
+ * Configuration specific to GraphQL.
42
42
  */
43
43
  graphql?: GraphqlConfiguration;
44
44
  /**
45
- * Specific configuration for the GraphQL language
45
+ * Configuration specific to GritQL.
46
46
  */
47
47
  grit?: GritConfiguration;
48
48
  /**
49
- * Specific configuration for the HTML language
49
+ * Configuration specific to HTML.
50
50
  */
51
51
  html?: HtmlConfiguration;
52
52
  /**
53
- * Specific configuration for the JavaScript language
53
+ * Configuration specific to JavaScript.
54
54
  */
55
55
  javascript?: JsConfiguration;
56
56
  /**
57
- * Specific configuration for the Json language
57
+ * Configuration specific to JSON.
58
58
  */
59
59
  json?: JsonConfiguration;
60
60
  /**
61
- * The configuration for the linter
61
+ * The linter configuration.
62
62
  */
63
63
  linter?: LinterConfiguration;
64
64
  /**
65
- * A list of granular patterns that should be applied only to a sub set of files
65
+ * A list of granular patterns applied only to a subset of files.
66
66
  */
67
67
  overrides?: Overrides;
68
68
  /**
@@ -75,7 +75,7 @@ interface Configuration {
75
75
  */
76
76
  root?: Bool;
77
77
  /**
78
- * The configuration of the VCS integration
78
+ * The version control integration configuration.
79
79
  */
80
80
  vcs?: VcsConfiguration;
81
81
  }
@@ -106,23 +106,23 @@ interface AssistConfiguration {
106
106
  }
107
107
  interface CssConfiguration {
108
108
  /**
109
- * CSS assist options
109
+ * CSS assist options.
110
110
  */
111
111
  assist?: CssAssistConfiguration;
112
112
  /**
113
- * CSS formatter options
113
+ * CSS formatter options.
114
114
  */
115
115
  formatter?: CssFormatterConfiguration;
116
116
  /**
117
- * CSS globals
117
+ * CSS globals.
118
118
  */
119
119
  globals?: string[];
120
120
  /**
121
- * CSS linter options
121
+ * CSS linter options.
122
122
  */
123
123
  linter?: CssLinterConfiguration;
124
124
  /**
125
- * CSS parsing options
125
+ * CSS parsing options.
126
126
  */
127
127
  parser?: CssParserConfiguration;
128
128
  }
@@ -137,54 +137,58 @@ interface FilesConfiguration {
137
137
  */
138
138
  experimentalScannerIgnores?: string[];
139
139
  /**
140
- * Tells Biome to not emit diagnostics when handling files that it doesn't know
140
+ * Prevents Biome from emitting diagnostics for unrecognized file types.
141
141
  */
142
142
  ignoreUnknown?: Bool;
143
143
  /**
144
- * A list of glob patterns. Biome will handle only those files/folders that will
145
- match these patterns.
144
+ * A list of glob patterns. Biome handles only files and directories that match these
145
+ patterns.
146
146
  */
147
147
  includes?: NormalizedGlob[];
148
148
  /**
149
- * The maximum allowed size for source code files in bytes. Files above
150
- this limit will be ignored for performance reasons. Defaults to 1 MiB
149
+ * The maximum source file size in bytes. Biome ignores larger files. Defaults to `1 MiB`.
151
150
  */
152
151
  maxSize?: MaxSize;
153
152
  }
154
153
  interface FormatterConfiguration {
155
154
  /**
156
- * The attribute position style in HTML-ish languages. Defaults to auto.
155
+ * The attribute position style in HTML-like languages. Defaults to `auto`.
157
156
  */
158
157
  attributePosition?: AttributePosition;
159
158
  /**
160
- * 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).
159
+ * Places the `>` of a multiline HTML or JSX element at the end of the last line instead of on
160
+ the next line. Self-closing elements are unaffected. Defaults to `false`.
161
161
  */
162
162
  bracketSameLine?: BracketSameLine;
163
163
  /**
164
- * Whether to insert spaces around brackets in object literals. Defaults to true.
164
+ * Whether to insert spaces inside braces in object literals. Defaults to `true`.
165
165
  */
166
166
  bracketSpacing?: BracketSpacing;
167
167
  /**
168
- * Whether to insert spaces inside delimiters (after the opening delimiter and before the
169
- closing delimiter), such as parentheses, brackets, angle brackets, and template literal
170
- interpolations. Spaces are not added before the opening delimiter, and empty delimiters
171
- are not affected. Only applies when the content fits on a single line. The specific
172
- delimiters affected depend on the language. Defaults to false.
168
+ * Controls spaces immediately inside supported delimiters when their content fits on one line.
169
+ It doesn't add spaces before opening delimiters or inside empty delimiters.
170
+
171
+ The affected delimiters vary by language. Defaults to `false`.
173
172
  */
174
173
  delimiterSpacing?: DelimiterSpacing;
175
174
  enabled?: Bool;
176
175
  /**
177
- * Whether to expand arrays and objects on multiple lines.
178
- When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
179
- and array literals are formatted on a single line if it fits in the line.
180
- When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
181
- When set to `never`, these literals are formatted on a single line if it fits in the line.
182
- When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
176
+ * Controls whether arrays and objects are formatted on one line or multiple lines.
177
+
178
+ `auto` formats objects on multiple lines if the first property has a newline, and arrays on
179
+ one line if they fit.
180
+
181
+ `always` formats arrays and objects on multiple lines.
182
+
183
+ `never` formats arrays and objects on one line if they fit.
184
+
185
+ Defaults to `auto`.
186
+
187
+ When formatting `package.json`, Biome uses `always` unless configured otherwise.
183
188
  */
184
189
  expand?: Expand;
185
190
  /**
186
- * Whether formatting should be allowed to proceed if a given file
187
- has syntax errors
191
+ * Allows formatting files that contain syntax errors when set to `true`. Defaults to `false`.
188
192
  */
189
193
  formatWithErrors?: Bool;
190
194
  /**
@@ -193,83 +197,79 @@ interface FormatterConfiguration {
193
197
  */
194
198
  includes?: NormalizedGlob[];
195
199
  /**
196
- * The indent style.
200
+ * Uses tabs or spaces for indentation. Defaults to `tab`.
197
201
  */
198
202
  indentStyle?: IndentStyle;
199
203
  /**
200
- * The size of the indentation, 2 by default
204
+ * The indentation width. Defaults to `2`.
201
205
  */
202
206
  indentWidth?: IndentWidth;
203
207
  /**
204
- * The type of line ending.
208
+ * Selects the line ending. `auto` uses the platform convention. Defaults to `lf`.
205
209
  */
206
210
  lineEnding?: LineEnding;
207
211
  /**
208
- * What's the max width of a line. Defaults to 80.
212
+ * The maximum line width. Defaults to `80`.
209
213
  */
210
214
  lineWidth?: LineWidth;
211
215
  /**
212
- * Whether to add a trailing newline at the end of the file.
213
-
214
- Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
215
- - https://thoughtbot.com/blog/no-newline-at-end-of-file
216
- - https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
217
- - https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files
218
-
219
- Disable the option at your own risk.
220
-
221
- Defaults to true.
216
+ * Whether to add a trailing newline at the end of the file. Defaults to `true`; disabling
217
+ this option can cause compatibility problems with other tools.
222
218
  */
223
219
  trailingNewline?: TrailingNewline;
224
220
  /**
225
- * Use any `.editorconfig` files to configure the formatter. Configuration
226
- in `biome.json` will override `.editorconfig` configuration.
227
-
228
- Default: `false`.
221
+ * Uses `.editorconfig` files to configure the formatter. Settings in `biome.json` or
222
+ `biome.jsonc` override `.editorconfig` settings. Defaults to `false`.
229
223
  */
230
224
  useEditorconfig?: Bool;
231
225
  }
232
226
  interface GraphqlConfiguration {
233
227
  /**
234
- * Assist options
228
+ * GraphQL assist options.
235
229
  */
236
230
  assist?: GraphqlAssistConfiguration;
237
231
  /**
238
- * GraphQL formatter options
232
+ * GraphQL formatter options.
239
233
  */
240
234
  formatter?: GraphqlFormatterConfiguration;
235
+ /**
236
+ * GraphQL linter options.
237
+ */
241
238
  linter?: GraphqlLinterConfiguration;
242
239
  }
243
240
  interface GritConfiguration {
244
241
  /**
245
- * Assist options
242
+ * GritQL assist options.
246
243
  */
247
244
  assist?: GritAssistConfiguration;
248
245
  /**
249
- * Formatting options
246
+ * GritQL formatter options.
250
247
  */
251
248
  formatter?: GritFormatterConfiguration;
252
249
  /**
253
- * Formatting options
250
+ * GritQL linter options.
254
251
  */
255
252
  linter?: GritLinterConfiguration;
256
253
  }
257
254
  interface HtmlConfiguration {
255
+ /**
256
+ * HTML assist options.
257
+ */
258
258
  assist?: HtmlAssistConfiguration;
259
259
  /**
260
- * Enables full support for HTML, Vue, Svelte and Astro files.
260
+ * Enables full support for HTML, Vue, Svelte, and Astro files.
261
261
  */
262
262
  experimentalFullSupportEnabled?: Bool;
263
263
  /**
264
- * HTML formatter options
264
+ * HTML formatter options.
265
265
  */
266
266
  formatter?: HtmlFormatterConfiguration;
267
267
  /**
268
- * HTML linter options
268
+ * HTML linter options.
269
269
  */
270
270
  linter?: HtmlLinterConfiguration;
271
271
  /**
272
- * HTML parsing options
272
+ * HTML parsing options.
273
273
  */
274
274
  parser?: HtmlParserConfiguration;
275
275
  }
@@ -351,29 +351,30 @@ type Plugins = PluginConfiguration[];
351
351
  type Bool = boolean;
352
352
  interface VcsConfiguration {
353
353
  /**
354
- * The kind of client.
354
+ * The version control client.
355
355
  */
356
356
  clientKind?: VcsClientKind;
357
357
  /**
358
- * The main branch of the project
358
+ * The project's default branch.
359
359
  */
360
360
  defaultBranch?: string;
361
361
  /**
362
- * Whether Biome should integrate itself with the VCS client
362
+ * Whether Biome should integrate with the version control client.
363
363
  */
364
364
  enabled?: Bool;
365
365
  /**
366
- * The folder where Biome should check for VCS files. By default, Biome will use the same
367
- folder where `biome.json` was found.
366
+ * Sets the directory where Biome checks for version control files.
367
+
368
+ Defaults to the directory containing `biome.json` or `biome.jsonc`. If no configuration is
369
+ found, Biome uses the current working directory.
368
370
 
369
- If Biome can't find the configuration, it will attempt to use the current working directory.
370
- If no current working directory can't be found, Biome won't use the VCS integration, and a diagnostic
371
- will be emitted
371
+ If neither directory is available, Biome disables version control integration and emits a
372
+ diagnostic.
372
373
  */
373
374
  root?: string;
374
375
  /**
375
- * Whether Biome should use VCS ignore files. When [true], Biome will ignore files
376
- specified in `.gitignore`, `.ignore`, and Git's local exclude file.
376
+ * When `true`, Biome ignores files listed in `.gitignore`, `.ignore`, and Git's local
377
+ exclude file.
377
378
  */
378
379
  useIgnoreFile?: Bool;
379
380
  }
@@ -391,69 +392,66 @@ interface Actions {
391
392
  type NormalizedGlob = string;
392
393
  interface CssAssistConfiguration {
393
394
  /**
394
- * Control the assist for CSS files.
395
+ * Controls assist actions for CSS files.
395
396
  */
396
397
  enabled?: Bool;
397
398
  }
398
399
  interface CssFormatterConfiguration {
399
400
  /**
400
- * Whether to insert spaces inside delimiters (after the opening delimiter and before the
401
- closing delimiter). Only applies when the content fits on a single line, and empty
402
- delimiters are not affected. For CSS, affects parentheses (e.g., `rgb( 0, 0, 0 )`) and
403
- square brackets (e.g., `[ data-attr ]`). Defaults to false.
401
+ * Controls spaces inside CSS parentheses and square brackets when their content fits on one
402
+ line. When enabled, `rgb(0, 0, 0)` becomes `rgb( 0, 0, 0 )` and `[data-attr]` becomes
403
+ `[ data-attr ]`. Empty delimiters are unchanged.
404
+
405
+ If unset, inherits the global delimiter spacing setting.
404
406
  */
405
407
  delimiterSpacing?: DelimiterSpacing;
406
408
  /**
407
- * Control the formatter for CSS (and its super languages) files.
409
+ * Controls the formatter for CSS and languages that extend it.
408
410
  */
409
411
  enabled?: Bool;
410
412
  /**
411
- * The indent style applied to CSS (and its super languages) files.
413
+ * The indent style applied to CSS and languages that extend it. If unset, inherits the global
414
+ indentation style.
412
415
  */
413
416
  indentStyle?: IndentStyle;
414
417
  /**
415
- * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
418
+ * The indentation width applied to CSS and languages that extend it. If unset, inherits the
419
+ global indentation width.
416
420
  */
417
421
  indentWidth?: IndentWidth;
418
422
  /**
419
- * The type of line ending applied to CSS (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
423
+ * The line ending applied to CSS and languages that extend it. If unset, inherits the global
424
+ line ending.
420
425
  */
421
426
  lineEnding?: LineEnding;
422
427
  /**
423
- * What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
428
+ * The maximum line width for CSS and languages that extend it. If unset, inherits the global
429
+ line width.
424
430
  */
425
431
  lineWidth?: LineWidth;
426
432
  /**
427
- * The type of quotes used in CSS code. Defaults to double.
433
+ * The type of quotes used in CSS code. Defaults to `double`.
428
434
  */
429
435
  quoteStyle?: QuoteStyle;
430
436
  /**
431
- * Whether to add a trailing newline at the end of the file.
432
-
433
- Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
434
- - https://thoughtbot.com/blog/no-newline-at-end-of-file
435
- - https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
436
- - https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files
437
-
438
- Disable the option at your own risk.
439
-
440
- Defaults to true.
437
+ * Whether to add a trailing newline at the end of the file. If unset, inherits the global
438
+ trailing newline setting.
441
439
  */
442
440
  trailingNewline?: TrailingNewline;
443
441
  }
444
442
  interface CssLinterConfiguration {
445
443
  /**
446
- * Control the linter for CSS files.
444
+ * Controls the linter for CSS files.
447
445
  */
448
446
  enabled?: Bool;
449
447
  }
450
448
  interface CssParserConfiguration {
451
449
  /**
452
- * Allow comments to appear on incorrect lines in `.css` files
450
+ * Allows comments to appear on incorrect lines in `.css` files.
453
451
  */
454
452
  allowWrongLineComments?: Bool;
455
453
  /**
456
- * Enables parsing of CSS Modules specific features. Enable this feature only
454
+ * Enables parsing of CSS Modules-specific features. Enable this feature only
457
455
  when your files don't end in `.module.css`.
458
456
  */
459
457
  cssModules?: Bool;
@@ -475,180 +473,169 @@ type LineWidth = number;
475
473
  type TrailingNewline = boolean;
476
474
  interface GraphqlAssistConfiguration {
477
475
  /**
478
- * Control the formatter for GraphQL files.
476
+ * Controls assist actions for GraphQL files.
479
477
  */
480
478
  enabled?: Bool;
481
479
  }
482
480
  interface GraphqlFormatterConfiguration {
483
481
  /**
484
- * Whether to insert spaces around brackets in object literals. Defaults to true.
482
+ * Whether to insert spaces inside braces in object literals. If unset, inherits the global
483
+ bracket spacing setting.
485
484
  */
486
485
  bracketSpacing?: BracketSpacing;
487
486
  /**
488
- * Control the formatter for GraphQL files.
487
+ * Controls the formatter for GraphQL files.
489
488
  */
490
489
  enabled?: Bool;
491
490
  /**
492
- * The indent style applied to GraphQL files.
491
+ * The indent style applied to GraphQL files. If unset, inherits the global indentation style.
493
492
  */
494
493
  indentStyle?: IndentStyle;
495
494
  /**
496
- * The size of the indentation applied to GraphQL files. Default to 2.
495
+ * The indentation width applied to GraphQL files. If unset, inherits the global indentation
496
+ width.
497
497
  */
498
498
  indentWidth?: IndentWidth;
499
499
  /**
500
- * The type of line ending applied to GraphQL files. `auto` uses CRLF on Windows and LF on other platforms.
500
+ * The line ending applied to GraphQL files. If unset, inherits the global line ending.
501
501
  */
502
502
  lineEnding?: LineEnding;
503
503
  /**
504
- * What's the max width of a line applied to GraphQL files. Defaults to 80.
504
+ * The maximum line width for GraphQL files. If unset, inherits the global line width.
505
505
  */
506
506
  lineWidth?: LineWidth;
507
507
  /**
508
- * The type of quotes used in GraphQL code. Defaults to double.
508
+ * The type of quotes used in GraphQL code. Defaults to `double`.
509
509
  */
510
510
  quoteStyle?: QuoteStyle;
511
511
  /**
512
- * Whether to add a trailing newline at the end of the file.
513
-
514
- Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
515
- - https://thoughtbot.com/blog/no-newline-at-end-of-file
516
- - https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
517
- - https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files
518
-
519
- Disable the option at your own risk.
520
-
521
- Defaults to true.
512
+ * Whether to add a trailing newline at the end of the file. If unset, inherits the global
513
+ trailing newline setting.
522
514
  */
523
515
  trailingNewline?: TrailingNewline;
524
516
  }
525
517
  interface GraphqlLinterConfiguration {
526
518
  /**
527
- * Control the formatter for GraphQL files.
519
+ * Controls the linter for GraphQL files.
528
520
  */
529
521
  enabled?: Bool;
530
522
  }
531
523
  interface GritAssistConfiguration {
532
524
  /**
533
- * Control the assist functionality for Grit files.
525
+ * Controls assist actions for GritQL files.
534
526
  */
535
527
  enabled?: Bool;
536
528
  }
537
529
  interface GritFormatterConfiguration {
538
530
  /**
539
- * Control the formatter for Grit files.
531
+ * Controls the formatter for GritQL files.
540
532
  */
541
533
  enabled?: Bool;
542
534
  /**
543
- * The indent style applied to Grit files.
535
+ * The indent style applied to GritQL files. If unset, inherits the global indentation style.
544
536
  */
545
537
  indentStyle?: IndentStyle;
546
538
  /**
547
- * The size of the indentation applied to Grit files. Default to 2.
539
+ * The indentation width applied to GritQL files. If unset, inherits the global indentation
540
+ width.
548
541
  */
549
542
  indentWidth?: IndentWidth;
550
543
  /**
551
- * The type of line ending applied to Grit files.
544
+ * The line ending applied to GritQL files. If unset, inherits the global line ending.
552
545
  */
553
546
  lineEnding?: LineEnding;
554
547
  /**
555
- * What's the max width of a line applied to Grit files. Defaults to 80.
548
+ * The maximum line width for GritQL files. If unset, inherits the global line width.
556
549
  */
557
550
  lineWidth?: LineWidth;
558
551
  /**
559
- * Whether to add a trailing newline at the end of the file.
560
-
561
- Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
562
- - https://thoughtbot.com/blog/no-newline-at-end-of-file
563
- - https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
564
- - https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files
565
-
566
- Disable the option at your own risk.
567
-
568
- Defaults to true.
552
+ * Whether to add a trailing newline at the end of the file. If unset, inherits the global
553
+ trailing newline setting.
569
554
  */
570
555
  trailingNewline?: TrailingNewline;
571
556
  }
572
557
  interface GritLinterConfiguration {
573
558
  /**
574
- * Control the linter for Grit files.
559
+ * Controls the linter for GritQL files.
575
560
  */
576
561
  enabled?: Bool;
577
562
  }
578
563
  interface HtmlAssistConfiguration {
579
564
  /**
580
- * Control the assist for HTML (and its super languages) files.
565
+ * Controls assist actions for HTML and languages that extend it.
581
566
  */
582
567
  enabled?: Bool;
583
568
  }
584
569
  interface HtmlFormatterConfiguration {
585
570
  /**
586
- * The attribute position style in HTML elements. Defaults to auto.
571
+ * The attribute position style in HTML elements. If unset, inherits the global attribute
572
+ position setting.
587
573
  */
588
574
  attributePosition?: AttributePosition;
589
575
  /**
590
- * 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.
576
+ * Whether to place the closing bracket of a multiline HTML tag at the end of the last line
577
+ instead of on its own line. If unset, inherits the global `bracketSameLine` setting.
591
578
  */
592
579
  bracketSameLine?: BracketSameLine;
593
580
  /**
594
- * Control the formatter for HTML (and its super languages) files.
581
+ * Controls the formatter for HTML and languages that extend it.
595
582
  */
596
583
  enabled?: Bool;
597
584
  /**
598
- * Whether to indent the `<script>` and `<style>` tags for HTML (and its super languages). Defaults to false.
585
+ * Whether to indent `<script>` and `<style>` tags in HTML and languages that extend it.
586
+ Defaults to `false`.
599
587
  */
600
588
  indentScriptAndStyle?: IndentScriptAndStyle;
601
589
  /**
602
- * The indent style applied to HTML (and its super languages) files.
590
+ * The indent style applied to HTML and languages that extend it. If unset, inherits the global
591
+ indentation style.
603
592
  */
604
593
  indentStyle?: IndentStyle;
605
594
  /**
606
- * The size of the indentation applied to HTML (and its super languages) files. Default to 2.
595
+ * The indentation width applied to HTML and languages that extend it. If unset, inherits the
596
+ global indentation width.
607
597
  */
608
598
  indentWidth?: IndentWidth;
609
599
  /**
610
- * The type of line ending applied to HTML (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
600
+ * The line ending applied to HTML and languages that extend it. If unset, inherits the global
601
+ line ending.
611
602
  */
612
603
  lineEnding?: LineEnding;
613
604
  /**
614
- * What's the max width of a line applied to HTML (and its super languages) files. Defaults to 80.
605
+ * The maximum line width for HTML and languages that extend it. If unset, inherits the global
606
+ line width.
615
607
  */
616
608
  lineWidth?: LineWidth;
617
609
  /**
618
- * Whether void elements should be self-closed. Defaults to never.
610
+ * Controls whether void elements are self-closed. Defaults to `never`.
619
611
  */
620
612
  selfCloseVoidElements?: SelfCloseVoidElements;
621
613
  /**
622
- * Whether to add a trailing newline at the end of the file.
623
-
624
- Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
625
- - https://thoughtbot.com/blog/no-newline-at-end-of-file
626
- - https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
627
- - https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files
628
-
629
- Disable the option at your own risk.
630
-
631
- Defaults to true.
614
+ * Whether to add a trailing newline at the end of the file. Unlike other language-specific
615
+ trailing newline settings, this option defaults to `true` instead of inheriting the global
616
+ setting.
632
617
  */
633
618
  trailingNewline?: TrailingNewline;
634
619
  /**
635
- * Whether to account for whitespace sensitivity when formatting HTML (and its super languages). Defaults to "css".
620
+ * Whether to account for whitespace sensitivity when formatting HTML and languages that
621
+ extend it. Defaults to `css`.
636
622
  */
637
623
  whitespaceSensitivity?: WhitespaceSensitivity;
638
624
  }
639
625
  interface HtmlLinterConfiguration {
640
626
  /**
641
- * Control the linter for HTML (and its super languages) files.
627
+ * Controls the linter for HTML and languages that extend it.
642
628
  */
643
629
  enabled?: Bool;
644
630
  }
645
631
  interface HtmlParserConfiguration {
646
632
  /**
647
- * Enables the parsing of double text expressions such as `{{ expression }}` inside `.html` files
633
+ * Enables parsing double text expressions such as `{{ expression }}` inside `.html` files.
648
634
  */
649
635
  interpolation?: Bool;
650
636
  /**
651
- * Enables parsing of Vue syntax (v-if, v-bind, etc.) in `.html` files. If this option is enabled, it also enables `interpolation` implicitly.
637
+ * Enables parsing Vue syntax (`v-if`, `v-bind`, etc.) in `.html` files. Enabling this option
638
+ also enables `interpolation` implicitly.
652
639
 
653
640
  Biome will already automatically enable Vue parsing in `.vue` files, so you probably don't need
654
641
  to enable this option. This only affects `.html` files, and does not change how `.vue`, `.svelte`,
@@ -658,110 +645,111 @@ interface HtmlParserConfiguration {
658
645
  }
659
646
  interface JsAssistConfiguration {
660
647
  /**
661
- * Control the assist for JavaScript (and its super languages) files.
648
+ * Controls assist actions for JavaScript and languages that extend it.
662
649
  */
663
650
  enabled?: Bool;
664
651
  }
665
652
  interface JsFormatterConfiguration {
666
653
  /**
667
- * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
654
+ * Whether to add parentheses around arrow function parameters. Defaults to `always`.
668
655
  */
669
656
  arrowParentheses?: ArrowParentheses;
670
657
  /**
671
- * The attribute position style in JSX elements. Defaults to auto.
658
+ * The attribute position style in JSX elements. If unset, inherits the global attribute
659
+ position setting.
672
660
  */
673
661
  attributePosition?: AttributePosition;
674
662
  /**
675
- * 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.
663
+ * Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line,
664
+ rather than being alone on the following line. If unset, inherits the global bracket
665
+ placement setting.
676
666
  */
677
667
  bracketSameLine?: BracketSameLine;
678
668
  /**
679
- * Whether to insert spaces around brackets in object literals. Defaults to true.
669
+ * Whether to insert spaces inside braces in object literals. If unset, inherits the global
670
+ bracket spacing setting.
680
671
  */
681
672
  bracketSpacing?: BracketSpacing;
682
673
  /**
683
- * Whether to insert spaces inside delimiters (after the opening delimiter and before the
684
- closing delimiter). Only applies when the content fits on a single line. Spaces are not
685
- added before the opening delimiter (e.g., `function f()` stays `function f()`, not
686
- `function f ()`), and empty delimiters are not affected (e.g., `fn()` stays `fn()`).
687
- For JavaScript and TypeScript, affects parentheses (e.g., `foo( a, b )`), square brackets
688
- (e.g., `[ a, b ]`), template literal interpolations (e.g., `${ expr }`), TypeScript angle
689
- brackets (e.g., `foo< T >()`), JSX expression braces (e.g., `{ value }`), and the logical
690
- NOT operator (e.g., `! x`, but in chains only after the last one: `!! x`). Defaults to
691
- false.
674
+ * Controls spaces immediately inside supported JavaScript and TypeScript delimiters when their
675
+ content fits on one line. It doesn't add spaces before opening delimiters or inside empty
676
+ delimiters.
677
+
678
+ It affects parentheses, square brackets, template interpolations, TypeScript angle brackets,
679
+ JSX expression braces, and logical NOT. In operator chains, only the final operator receives
680
+ a following space.
681
+
682
+ If unset, inherits the global delimiter spacing setting.
692
683
  */
693
684
  delimiterSpacing?: DelimiterSpacing;
694
685
  /**
695
- * Control the formatter for JavaScript (and its super languages) files.
686
+ * Controls the formatter for JavaScript and languages that extend it.
696
687
  */
697
688
  enabled?: Bool;
698
689
  /**
699
- * Whether to expand arrays and objects on multiple lines.
700
- When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
701
- and array literals are formatted on a single line if it fits in the line.
702
- When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
703
- When set to `never`, these literals are formatted on a single line if it fits in the line.
704
- When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
690
+ * Uses the same `auto`, `always`, and `never` behavior as the global expansion setting.
691
+
692
+ If unset, inherits the global expansion setting.
705
693
  */
706
694
  expand?: Expand;
707
695
  /**
708
- * The indent style applied to JavaScript (and its super languages) files.
696
+ * The indent style applied to JavaScript and languages that extend it. If unset, inherits the
697
+ global indentation style.
709
698
  */
710
699
  indentStyle?: IndentStyle;
711
700
  /**
712
- * The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
701
+ * The indentation width applied to JavaScript and languages that extend it. If unset,
702
+ inherits the global indentation width.
713
703
  */
714
704
  indentWidth?: IndentWidth;
715
705
  /**
716
- * The type of quotes used in JSX. Defaults to double.
706
+ * The type of quotes used in JSX. Defaults to `double`.
717
707
  */
718
708
  jsxQuoteStyle?: QuoteStyle;
719
709
  /**
720
- * The type of line ending applied to JavaScript (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
710
+ * The line ending applied to JavaScript and languages that extend it. If unset, inherits the
711
+ global line ending.
721
712
  */
722
713
  lineEnding?: LineEnding;
723
714
  /**
724
- * What's the max width of a line applied to JavaScript (and its super languages) files. Defaults to 80.
715
+ * The maximum line width applied to JavaScript and languages that extend it. If unset,
716
+ inherits the global line width.
725
717
  */
726
718
  lineWidth?: LineWidth;
727
719
  /**
728
- * When breaking binary expressions into multiple lines, whether to break them before or after the binary operator. Defaults to "after".
720
+ * When breaking binary expressions into multiple lines, whether to break them before or after
721
+ the binary operator. Defaults to `after`.
729
722
  */
730
723
  operatorLinebreak?: OperatorLinebreak;
731
724
  /**
732
- * When properties in objects are quoted. Defaults to asNeeded.
725
+ * Controls when object properties are quoted. Defaults to `asNeeded` in configuration
726
+ (`as-needed` on the CLI).
733
727
  */
734
728
  quoteProperties?: QuoteProperties;
735
729
  /**
736
- * The type of quotes used in JavaScript code. Defaults to double.
730
+ * The type of quotes used in JavaScript code. Defaults to `double`.
737
731
  */
738
732
  quoteStyle?: QuoteStyle;
739
733
  /**
740
- * Whether the formatter prints semicolons for all statements or only in for statements where it is necessary because of ASI.
734
+ * Prints semicolons after every statement or only where needed to avoid automatic semicolon
735
+ insertion hazards. Defaults to `always`.
741
736
  */
742
737
  semicolons?: Semicolons;
743
738
  /**
744
- * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
739
+ * Prints trailing commas wherever possible in multiline comma-separated structures. Defaults
740
+ to `all`.
745
741
  */
746
742
  trailingCommas?: JsTrailingCommas;
747
743
  /**
748
- * Whether to add a trailing newline at the end of the file.
749
-
750
- Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
751
- - https://thoughtbot.com/blog/no-newline-at-end-of-file
752
- - https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
753
- - https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files
754
-
755
- Disable the option at your own risk.
756
-
757
- Defaults to true.
744
+ * Whether to add a trailing newline at the end of the file. If unset, inherits the global
745
+ trailing newline setting.
758
746
  */
759
747
  trailingNewline?: TrailingNewline;
760
748
  }
761
749
  type JsxRuntime = "transparent" | "reactClassic";
762
750
  interface JsLinterConfiguration {
763
751
  /**
764
- * Control the linter for JavaScript (and its super languages) files.
752
+ * Controls the linter for JavaScript and languages that extend it.
765
753
  */
766
754
  enabled?: Bool;
767
755
  }
@@ -772,9 +760,8 @@ interface JsParserConfiguration {
772
760
  */
773
761
  gritMetavariables?: Bool;
774
762
  /**
775
- * When enabled, files like `.js`/`.mjs`/`.cjs` may contain JSX syntax.
776
-
777
- Defaults to `true`.
763
+ * When enabled, files such as `.js`, `.mjs`, and `.cjs` may contain JSX syntax. Defaults to
764
+ `true`.
778
765
  */
779
766
  jsxEverywhere?: Bool;
780
767
  /**
@@ -808,88 +795,85 @@ interface JsResolverConfiguration {
808
795
  - Biome only reads top-level `catalog` / `catalogs` mappings and scalar
809
796
  string entries.
810
797
 
811
- Default: `false`.
798
+ Defaults to `false`.
812
799
  */
813
800
  experimentalPnpmCatalogs?: Bool;
814
801
  }
815
802
  interface JsonAssistConfiguration {
816
803
  /**
817
- * Control the assist for JSON (and its super languages) files.
804
+ * Controls assist actions for JSON and languages that extend it.
818
805
  */
819
806
  enabled?: Bool;
820
807
  }
821
808
  interface JsonFormatterConfiguration {
822
809
  /**
823
- * Whether to insert spaces around brackets in object literals. Defaults to true.
810
+ * Whether to insert spaces inside braces in object literals. If unset, inherits the global
811
+ bracket spacing setting.
824
812
  */
825
813
  bracketSpacing?: BracketSpacing;
826
814
  /**
827
- * Whether to insert spaces inside delimiters (after the opening delimiter and before the
828
- closing delimiter). Only applies when the content fits on a single line, and empty
829
- brackets are not affected. For JSON, affects square brackets (e.g., `[ 1, 2, 3 ]`).
830
- Defaults to false.
815
+ * Controls spaces inside JSON square brackets when their content fits on one line. When
816
+ enabled, `[1, 2, 3]` becomes `[ 1, 2, 3 ]`. Empty brackets are unchanged.
817
+
818
+ If unset, inherits the global delimiter spacing setting.
831
819
  */
832
820
  delimiterSpacing?: DelimiterSpacing;
833
821
  /**
834
- * Control the formatter for JSON (and its super languages) files.
822
+ * Controls the formatter for JSON and languages that extend it.
835
823
  */
836
824
  enabled?: Bool;
837
825
  /**
838
- * Whether to expand arrays and objects on multiple lines.
839
- When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
840
- and array literals are formatted on a single line if it fits in the line.
841
- When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
842
- When set to `never`, these literals are formatted on a single line if it fits in the line.
843
- When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
826
+ * Uses the same `auto`, `always`, and `never` behavior as the global expansion setting.
827
+
828
+ If unset, inherits the global expansion setting.
829
+
830
+ When formatting `package.json`, Biome uses `always` unless configured otherwise.
844
831
  */
845
832
  expand?: Expand;
846
833
  /**
847
- * The indent style applied to JSON (and its super languages) files.
834
+ * The indent style applied to JSON and languages that extend it. If unset, inherits the global
835
+ indentation style.
848
836
  */
849
837
  indentStyle?: IndentStyle;
850
838
  /**
851
- * The size of the indentation applied to JSON (and its super languages) files. Default to 2.
839
+ * The indentation width applied to JSON and languages that extend it. If unset, inherits the
840
+ global indentation width.
852
841
  */
853
842
  indentWidth?: IndentWidth;
854
843
  /**
855
- * The type of line ending applied to JSON (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
844
+ * The line ending applied to JSON and languages that extend it. If unset, inherits the global
845
+ line ending.
856
846
  */
857
847
  lineEnding?: LineEnding;
858
848
  /**
859
- * What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.
849
+ * The maximum line width applied to JSON and languages that extend it. If unset, inherits the
850
+ global line width.
860
851
  */
861
852
  lineWidth?: LineWidth;
862
853
  /**
863
- * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "none".
854
+ * Prints trailing commas wherever possible in multiline comma-separated structures. Defaults
855
+ to `none`.
864
856
  */
865
857
  trailingCommas?: JsonTrailingCommas;
866
858
  /**
867
- * Whether to add a trailing newline at the end of the file.
868
-
869
- Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
870
- - https://thoughtbot.com/blog/no-newline-at-end-of-file
871
- - https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804
872
- - https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files
873
-
874
- Disable the option at your own risk.
875
-
876
- Defaults to true.
859
+ * Whether to add a trailing newline at the end of the file. If unset, inherits the global
860
+ trailing newline setting.
877
861
  */
878
862
  trailingNewline?: TrailingNewline;
879
863
  }
880
864
  interface JsonLinterConfiguration {
881
865
  /**
882
- * Control the linter for JSON (and its super languages) files.
866
+ * Controls the linter for JSON and languages that extend it.
883
867
  */
884
868
  enabled?: Bool;
885
869
  }
886
870
  interface JsonParserConfiguration {
887
871
  /**
888
- * Allow parsing comments in `.json` files
872
+ * Allows parsing comments in `.json` files.
889
873
  */
890
874
  allowComments?: Bool;
891
875
  /**
892
- * Allow parsing trailing commas in `.json` files
876
+ * Allows parsing trailing commas in `.json` files.
893
877
  */
894
878
  allowTrailingCommas?: Bool;
895
879
  }
@@ -1090,21 +1074,26 @@ interface OverrideFormatterConfiguration {
1090
1074
  */
1091
1075
  bracketSpacing?: BracketSpacing;
1092
1076
  /**
1093
- * Whether to insert spaces inside delimiters (after the opening delimiter and before the
1094
- closing delimiter), such as parentheses, brackets, angle brackets, and template literal
1095
- interpolations. Spaces are not added before the opening delimiter, and empty delimiters
1096
- are not affected. Only applies when the content fits on a single line. The specific
1097
- delimiters affected depend on the language. Defaults to false.
1077
+ * Controls spaces immediately inside supported delimiters when their content fits on one line.
1078
+ It doesn't add spaces before opening delimiters or inside empty delimiters.
1079
+
1080
+ The affected delimiters vary by language. If unset, uses the configured formatter setting.
1098
1081
  */
1099
1082
  delimiterSpacing?: DelimiterSpacing;
1100
1083
  enabled?: Bool;
1101
1084
  /**
1102
- * Whether to expand arrays and objects on multiple lines.
1103
- When set to `auto`, object literals are formatted on multiple lines if the first property has a newline,
1104
- and array literals are formatted on a single line if it fits in the line.
1105
- When set to `always`, these literals are formatted on multiple lines, regardless of length of the list.
1106
- When set to `never`, these literals are formatted on a single line if it fits in the line.
1107
- When formatting `package.json`, Biome will use `always` unless configured otherwise. Defaults to "auto".
1085
+ * Controls whether arrays and objects are formatted on one line or multiple lines.
1086
+
1087
+ `auto` formats objects on multiple lines if the first property has a newline, and arrays on
1088
+ one line if they fit.
1089
+
1090
+ `always` formats arrays and objects on multiple lines.
1091
+
1092
+ `never` formats arrays and objects on one line if they fit.
1093
+
1094
+ If unset, uses the configured formatter setting.
1095
+
1096
+ When formatting `package.json`, Biome uses `always` unless configured otherwise.
1108
1097
  */
1109
1098
  expand?: Expand;
1110
1099
  /**
@@ -2223,6 +2212,11 @@ interface Nursery {
2223
2212
  See https://biomejs.dev/linter/rules/no-excessive-selector-classes
2224
2213
  */
2225
2214
  noExcessiveSelectorClasses?: NoExcessiveSelectorClassesConfiguration;
2215
+ /**
2216
+ * Disallow extending the prototype of built-in objects.
2217
+ See https://biomejs.dev/linter/rules/no-extend-native
2218
+ */
2219
+ noExtendNative?: NoExtendNativeConfiguration;
2226
2220
  /**
2227
2221
  * Require Promise-like statements to be handled appropriately.
2228
2222
  See https://biomejs.dev/linter/rules/no-floating-promises
@@ -2243,6 +2237,11 @@ interface Nursery {
2243
2237
  See https://biomejs.dev/linter/rules/no-inline-styles
2244
2238
  */
2245
2239
  noInlineStyles?: NoInlineStylesConfiguration;
2240
+ /**
2241
+ * Checks that the initial-value of an @property rule follows the value format declared by its syntax.
2242
+ See https://biomejs.dev/linter/rules/no-invalid-property-init-value
2243
+ */
2244
+ noInvalidPropertyInitValue?: NoInvalidPropertyInitValueConfiguration;
2246
2245
  /**
2247
2246
  * Disallow specific object properties.
2248
2247
  See https://biomejs.dev/linter/rules/no-js-restricted-properties
@@ -2278,6 +2277,11 @@ interface Nursery {
2278
2277
  See https://biomejs.dev/linter/rules/no-negation-in-equality-check
2279
2278
  */
2280
2279
  noNegationInEqualityCheck?: NoNegationInEqualityCheckConfiguration;
2280
+ /**
2281
+ * Disallow disabling zoom with user-scalable=no in the \<meta name="viewport"> element.
2282
+ See https://biomejs.dev/linter/rules/no-non-scalable-viewport
2283
+ */
2284
+ noNonScalableViewport?: NoNonScalableViewportConfiguration;
2281
2285
  /**
2282
2286
  * Disallow usage of element handles (page.$() and page.$$()).
2283
2287
  See https://biomejs.dev/linter/rules/no-playwright-element-handle
@@ -2353,11 +2357,21 @@ interface Nursery {
2353
2357
  See https://biomejs.dev/linter/rules/no-restricted-dependencies
2354
2358
  */
2355
2359
  noRestrictedDependencies?: NoRestrictedDependenciesConfiguration;
2360
+ /**
2361
+ * Disallow legacy Svelte {@const} tags.
2362
+ See https://biomejs.dev/linter/rules/no-svelte-legacy-const
2363
+ */
2364
+ noSvelteLegacyConst?: NoSvelteLegacyConstConfiguration;
2356
2365
  /**
2357
2366
  * Disallow unnecessary $state wrapping of reactive classes.
2358
2367
  See https://biomejs.dev/linter/rules/no-svelte-unnecessary-state-wrap
2359
2368
  */
2360
2369
  noSvelteUnnecessaryStateWrap?: NoSvelteUnnecessaryStateWrapConfiguration;
2370
+ /**
2371
+ * Disallow arbitrary values in Tailwind CSS utility classes.
2372
+ See https://biomejs.dev/linter/rules/no-tailwind-arbitrary-value
2373
+ */
2374
+ noTailwindArbitraryValue?: NoTailwindArbitraryValueConfiguration;
2361
2375
  /**
2362
2376
  * Require the JSON top-level value to be an array or object.
2363
2377
  See https://biomejs.dev/linter/rules/no-top-level-literals
@@ -2516,6 +2530,11 @@ interface Nursery {
2516
2530
  See https://biomejs.dev/linter/rules/use-react-async-server-function
2517
2531
  */
2518
2532
  useReactAsyncServerFunction?: UseReactAsyncServerFunctionConfiguration;
2533
+ /**
2534
+ * Validate files with React Compiler.
2535
+ See https://biomejs.dev/linter/rules/use-react-compiler
2536
+ */
2537
+ useReactCompiler?: UseReactCompilerConfiguration;
2519
2538
  /**
2520
2539
  * Enforce a specific function type for React function components.
2521
2540
  See https://biomejs.dev/linter/rules/use-react-function-component-definition
@@ -4465,6 +4484,9 @@ type NoExcessiveNestedCallbacksConfiguration =
4465
4484
  type NoExcessiveSelectorClassesConfiguration =
4466
4485
  | RulePlainConfiguration
4467
4486
  | RuleWithNoExcessiveSelectorClassesOptions;
4487
+ type NoExtendNativeConfiguration =
4488
+ | RulePlainConfiguration
4489
+ | RuleWithNoExtendNativeOptions;
4468
4490
  type NoFloatingPromisesConfiguration =
4469
4491
  | RulePlainConfiguration
4470
4492
  | RuleWithNoFloatingPromisesOptions;
@@ -4477,6 +4499,9 @@ type NoImpliedEvalConfiguration =
4477
4499
  type NoInlineStylesConfiguration =
4478
4500
  | RulePlainConfiguration
4479
4501
  | RuleWithNoInlineStylesOptions;
4502
+ type NoInvalidPropertyInitValueConfiguration =
4503
+ | RulePlainConfiguration
4504
+ | RuleWithNoInvalidPropertyInitValueOptions;
4480
4505
  type NoJsRestrictedPropertiesConfiguration =
4481
4506
  | RulePlainConfiguration
4482
4507
  | RuleWithNoJsRestrictedPropertiesOptions;
@@ -4498,6 +4523,9 @@ type NoMisusedPromisesConfiguration =
4498
4523
  type NoNegationInEqualityCheckConfiguration =
4499
4524
  | RulePlainConfiguration
4500
4525
  | RuleWithNoNegationInEqualityCheckOptions;
4526
+ type NoNonScalableViewportConfiguration =
4527
+ | RulePlainConfiguration
4528
+ | RuleWithNoNonScalableViewportOptions;
4501
4529
  type NoPlaywrightElementHandleConfiguration =
4502
4530
  | RulePlainConfiguration
4503
4531
  | RuleWithNoPlaywrightElementHandleOptions;
@@ -4543,9 +4571,15 @@ type NoReactStringRefsConfiguration =
4543
4571
  type NoRestrictedDependenciesConfiguration =
4544
4572
  | RulePlainConfiguration
4545
4573
  | RuleWithNoRestrictedDependenciesOptions;
4574
+ type NoSvelteLegacyConstConfiguration =
4575
+ | RulePlainConfiguration
4576
+ | RuleWithNoSvelteLegacyConstOptions;
4546
4577
  type NoSvelteUnnecessaryStateWrapConfiguration =
4547
4578
  | RulePlainConfiguration
4548
4579
  | RuleWithNoSvelteUnnecessaryStateWrapOptions;
4580
+ type NoTailwindArbitraryValueConfiguration =
4581
+ | RulePlainConfiguration
4582
+ | RuleWithNoTailwindArbitraryValueOptions;
4549
4583
  type NoTopLevelLiteralsConfiguration =
4550
4584
  | RulePlainConfiguration
4551
4585
  | RuleWithNoTopLevelLiteralsOptions;
@@ -4634,6 +4668,9 @@ type UseQwikLoaderLocationConfiguration =
4634
4668
  type UseReactAsyncServerFunctionConfiguration =
4635
4669
  | RulePlainConfiguration
4636
4670
  | RuleWithUseReactAsyncServerFunctionOptions;
4671
+ type UseReactCompilerConfiguration =
4672
+ | RulePlainConfiguration
4673
+ | RuleWithUseReactCompilerOptions;
4637
4674
  type UseReactFunctionComponentDefinitionConfiguration =
4638
4675
  | RulePlainConfiguration
4639
4676
  | RuleWithUseReactFunctionComponentDefinitionOptions;
@@ -6286,6 +6323,10 @@ interface RuleWithNoExcessiveSelectorClassesOptions {
6286
6323
  level: RulePlainConfiguration;
6287
6324
  options?: NoExcessiveSelectorClassesOptions;
6288
6325
  }
6326
+ interface RuleWithNoExtendNativeOptions {
6327
+ level: RulePlainConfiguration;
6328
+ options?: NoExtendNativeOptions;
6329
+ }
6289
6330
  interface RuleWithNoFloatingPromisesOptions {
6290
6331
  fix?: FixKind;
6291
6332
  level: RulePlainConfiguration;
@@ -6304,6 +6345,10 @@ interface RuleWithNoInlineStylesOptions {
6304
6345
  level: RulePlainConfiguration;
6305
6346
  options?: NoInlineStylesOptions;
6306
6347
  }
6348
+ interface RuleWithNoInvalidPropertyInitValueOptions {
6349
+ level: RulePlainConfiguration;
6350
+ options?: NoInvalidPropertyInitValueOptions;
6351
+ }
6307
6352
  interface RuleWithNoJsRestrictedPropertiesOptions {
6308
6353
  level: RulePlainConfiguration;
6309
6354
  options?: NoJsRestrictedPropertiesOptions;
@@ -6335,6 +6380,10 @@ interface RuleWithNoNegationInEqualityCheckOptions {
6335
6380
  level: RulePlainConfiguration;
6336
6381
  options?: NoNegationInEqualityCheckOptions;
6337
6382
  }
6383
+ interface RuleWithNoNonScalableViewportOptions {
6384
+ level: RulePlainConfiguration;
6385
+ options?: NoNonScalableViewportOptions;
6386
+ }
6338
6387
  interface RuleWithNoPlaywrightElementHandleOptions {
6339
6388
  fix?: FixKind;
6340
6389
  level: RulePlainConfiguration;
@@ -6399,11 +6448,19 @@ interface RuleWithNoRestrictedDependenciesOptions {
6399
6448
  level: RulePlainConfiguration;
6400
6449
  options?: NoRestrictedDependenciesOptions;
6401
6450
  }
6451
+ interface RuleWithNoSvelteLegacyConstOptions {
6452
+ level: RulePlainConfiguration;
6453
+ options?: NoSvelteLegacyConstOptions;
6454
+ }
6402
6455
  interface RuleWithNoSvelteUnnecessaryStateWrapOptions {
6403
6456
  fix?: FixKind;
6404
6457
  level: RulePlainConfiguration;
6405
6458
  options?: NoSvelteUnnecessaryStateWrapOptions;
6406
6459
  }
6460
+ interface RuleWithNoTailwindArbitraryValueOptions {
6461
+ level: RulePlainConfiguration;
6462
+ options?: NoTailwindArbitraryValueOptions;
6463
+ }
6407
6464
  interface RuleWithNoTopLevelLiteralsOptions {
6408
6465
  level: RulePlainConfiguration;
6409
6466
  options?: NoTopLevelLiteralsOptions;
@@ -6535,6 +6592,10 @@ interface RuleWithUseReactAsyncServerFunctionOptions {
6535
6592
  level: RulePlainConfiguration;
6536
6593
  options?: UseReactAsyncServerFunctionOptions;
6537
6594
  }
6595
+ interface RuleWithUseReactCompilerOptions {
6596
+ level: RulePlainConfiguration;
6597
+ options?: UseReactCompilerOptions;
6598
+ }
6538
6599
  interface RuleWithUseReactFunctionComponentDefinitionOptions {
6539
6600
  fix?: FixKind;
6540
6601
  level: RulePlainConfiguration;
@@ -8067,10 +8128,18 @@ interface NoExcessiveSelectorClassesOptions {
8067
8128
  */
8068
8129
  maxClasses?: number;
8069
8130
  }
8131
+ interface NoExtendNativeOptions {
8132
+ /**
8133
+ * Built-in names to ignore. Extending the prototype of an ignored
8134
+ name will not trigger this rule.
8135
+ */
8136
+ ignore?: string[];
8137
+ }
8070
8138
  type NoFloatingPromisesOptions = {};
8071
8139
  type NoIdenticalTestTitleOptions = {};
8072
8140
  type NoImpliedEvalOptions = {};
8073
8141
  type NoInlineStylesOptions = {};
8142
+ type NoInvalidPropertyInitValueOptions = {};
8074
8143
  interface NoJsRestrictedPropertiesOptions {
8075
8144
  /**
8076
8145
  * Restriction entries for object/property access.
@@ -8092,6 +8161,7 @@ type NoLoopFuncOptions = {};
8092
8161
  type NoMisleadingReturnTypeOptions = {};
8093
8162
  type NoMisusedPromisesOptions = {};
8094
8163
  type NoNegationInEqualityCheckOptions = {};
8164
+ type NoNonScalableViewportOptions = {};
8095
8165
  type NoPlaywrightElementHandleOptions = {};
8096
8166
  type NoPlaywrightEvalOptions = {};
8097
8167
  type NoPlaywrightForceOptionOptions = {};
@@ -8112,6 +8182,7 @@ interface NoReactNativeRawTextOptions {
8112
8182
  }
8113
8183
  type NoReactStringRefsOptions = {};
8114
8184
  type NoRestrictedDependenciesOptions = {};
8185
+ type NoSvelteLegacyConstOptions = {};
8115
8186
  interface NoSvelteUnnecessaryStateWrapOptions {
8116
8187
  /**
8117
8188
  * Additional class names to treat as already reactive (beyond the built-in `svelte/reactivity` classes).
@@ -8122,6 +8193,16 @@ interface NoSvelteUnnecessaryStateWrapOptions {
8122
8193
  */
8123
8194
  allowReassign?: boolean;
8124
8195
  }
8196
+ interface NoTailwindArbitraryValueOptions {
8197
+ /**
8198
+ * Additional attributes that will be checked.
8199
+ */
8200
+ attributes?: string[];
8201
+ /**
8202
+ * Names of the functions or tagged templates that will be checked.
8203
+ */
8204
+ functions?: string[];
8205
+ }
8125
8206
  type NoTopLevelLiteralsOptions = {};
8126
8207
  type NoUndeclaredClassesOptions = {};
8127
8208
  type NoUnnecessaryTemplateExpressionOptions = {};
@@ -8251,6 +8332,10 @@ interface UseNullishCoalescingOptions {
8251
8332
  * Ignore `||` expressions in conditional test positions (default: `true`).
8252
8333
  */
8253
8334
  ignoreConditionalTests?: boolean;
8335
+ /**
8336
+ * Whether to ignore `if` statements that only assign to a nullish variable and could be rewritten as `??=` (default: `false`).
8337
+ */
8338
+ ignoreIfStatements?: boolean;
8254
8339
  /**
8255
8340
  * Whether to ignore `||` and `||=` binary operations that are part of a mixed logical expression with `&&` (default: `false`).
8256
8341
  */
@@ -8267,6 +8352,12 @@ interface UseNullishCoalescingOptions {
8267
8352
  type UsePlaywrightValidDescribeCallbackOptions = {};
8268
8353
  type UseQwikLoaderLocationOptions = {};
8269
8354
  type UseReactAsyncServerFunctionOptions = {};
8355
+ interface UseReactCompilerOptions {
8356
+ /**
8357
+ * Which functions React Compiler analyzes. Defaults to `infer`.
8358
+ */
8359
+ compilationMode?: CompilationMode;
8360
+ }
8270
8361
  interface UseReactFunctionComponentDefinitionOptions {
8271
8362
  /**
8272
8363
  * The function style to enforce for named React components.
@@ -9009,6 +9100,7 @@ type TestFunctionKind = "it" | "test";
9009
9100
  type IgnorePrimitives =
9010
9101
  | boolean
9011
9102
  | { bigint?: boolean; boolean?: boolean; number?: boolean; string?: boolean };
9103
+ type CompilationMode = "infer" | "annotation" | "all";
9012
9104
  type ComponentDefinitionStyle =
9013
9105
  | "functionDeclaration"
9014
9106
  | "functionExpression"
@@ -9430,11 +9522,13 @@ type Category =
9430
9522
  | "lint/nursery/noEmptyObjectKeys"
9431
9523
  | "lint/nursery/noExcessiveNestedCallbacks"
9432
9524
  | "lint/nursery/noExcessiveSelectorClasses"
9525
+ | "lint/nursery/noExtendNative"
9433
9526
  | "lint/nursery/noFloatingPromises"
9434
9527
  | "lint/nursery/noIdenticalTestTitle"
9435
9528
  | "lint/nursery/noImplicitCoercion"
9436
9529
  | "lint/nursery/noImpliedEval"
9437
9530
  | "lint/nursery/noInlineStyles"
9531
+ | "lint/nursery/noInvalidPropertyInitValue"
9438
9532
  | "lint/nursery/noJsRestrictedProperties"
9439
9533
  | "lint/nursery/noJsxLeakedDollar"
9440
9534
  | "lint/nursery/noJsxNamespace"
@@ -9443,6 +9537,7 @@ type Category =
9443
9537
  | "lint/nursery/noMissingGenericFamilyKeyword"
9444
9538
  | "lint/nursery/noMisusedPromises"
9445
9539
  | "lint/nursery/noNegationInEqualityCheck"
9540
+ | "lint/nursery/noNonScalableViewport"
9446
9541
  | "lint/nursery/noPlaywrightElementHandle"
9447
9542
  | "lint/nursery/noPlaywrightEval"
9448
9543
  | "lint/nursery/noPlaywrightForceOption"
@@ -9458,7 +9553,9 @@ type Category =
9458
9553
  | "lint/nursery/noReactNativeRawText"
9459
9554
  | "lint/nursery/noReactStringRefs"
9460
9555
  | "lint/nursery/noRestrictedDependencies"
9556
+ | "lint/nursery/noSvelteLegacyConst"
9461
9557
  | "lint/nursery/noSvelteUnnecessaryStateWrap"
9558
+ | "lint/nursery/noTailwindArbitraryValue"
9462
9559
  | "lint/nursery/noTopLevelLiterals"
9463
9560
  | "lint/nursery/noUndeclaredClasses"
9464
9561
  | "lint/nursery/noUnnecessaryTemplateExpression"
@@ -9475,6 +9572,7 @@ type Category =
9475
9572
  | "lint/nursery/useAwaitThenable"
9476
9573
  | "lint/nursery/useBaseline"
9477
9574
  | "lint/nursery/useBiomeSuppressionComment"
9575
+ | "lint/nursery/useConsistentHeadingLevel"
9478
9576
  | "lint/nursery/useConsistentObjectDefinition"
9479
9577
  | "lint/nursery/useConsistentTestIt"
9480
9578
  | "lint/nursery/useDisposables"
@@ -9501,6 +9599,7 @@ type Category =
9501
9599
  | "lint/nursery/useQwikMethodUsage"
9502
9600
  | "lint/nursery/useQwikValidLexicalScope"
9503
9601
  | "lint/nursery/useReactAsyncServerFunction"
9602
+ | "lint/nursery/useReactCompiler"
9504
9603
  | "lint/nursery/useReactFunctionComponentDefinition"
9505
9604
  | "lint/nursery/useReactNativePlatformComponents"
9506
9605
  | "lint/nursery/useReduceTypeParameter"
@@ -9513,6 +9612,7 @@ type Category =
9513
9612
  | "lint/nursery/useTestHooksInOrder"
9514
9613
  | "lint/nursery/useTestHooksOnTop"
9515
9614
  | "lint/nursery/useThisInClassMethods"
9615
+ | "lint/nursery/useTopLevelHeading"
9516
9616
  | "lint/nursery/useUnicodeRegex"
9517
9617
  | "lint/nursery/useUniqueArgumentNames"
9518
9618
  | "lint/nursery/useUniqueFieldDefinitionNames"
@@ -9775,6 +9875,7 @@ type Category =
9775
9875
  | "assist/source/useSortedProperties"
9776
9876
  | "assist/source/useSortedSelectionSet"
9777
9877
  | "assist/source/useSortedTypeFields"
9878
+ | "syntax/correctness/noInvalidPropertySyntax"
9778
9879
  | "syntax/correctness/noTypeOnlyImportAttributes"
9779
9880
  | "syntax/correctness/noSuperWithoutExtends"
9780
9881
  | "syntax/correctness/noInitializerWithDefinite"
@@ -10077,7 +10178,11 @@ type ModuleKind = "script" | "module";
10077
10178
  type LanguageVariant = "standard" | "standardRestricted" | "jsx";
10078
10179
  type LanguageVersion = "eS2022" | "eSNext";
10079
10180
  type JsonFileVariant = "standard" | "jsonc";
10080
- type CssEmbeddingKind = "None" | "Styled" | { Html: EmbeddingHtmlKind };
10181
+ type CssEmbeddingKind =
10182
+ | "None"
10183
+ | "Styled"
10184
+ | { Html: EmbeddingHtmlKind }
10185
+ | "HtmlStyleAttribute";
10081
10186
  type CssFileLanguage = "css" | "scss";
10082
10187
  type CssVariant = "standard" | "cssModules" | "tailwindCss";
10083
10188
  type GraphqlVariant = "standard";
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Biome Developers and Contributors"
6
6
  ],
7
7
  "description": "WebAssembly bindings to the Biome workspace API",
8
- "version": "2.5.6",
8
+ "version": "2.5.8",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",