@biomejs/wasm-nodejs 1.5.3-nightly.24fcf19 → 1.5.3-nightly.4fa841c

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
@@ -5,10 +5,10 @@
5
5
  export function main(): void;
6
6
  interface SupportsFeatureParams {
7
7
  feature: FeatureName[];
8
- path: RomePath;
8
+ path: BiomePath;
9
9
  }
10
10
  type FeatureName = "Format" | "Lint" | "OrganizeImports";
11
- interface RomePath {
11
+ interface BiomePath {
12
12
  path: string;
13
13
  }
14
14
  interface SupportsFeatureResult {
@@ -21,12 +21,12 @@ type SupportKind =
21
21
  | "FeatureNotEnabled"
22
22
  | "FileNotSupported";
23
23
  interface UpdateSettingsParams {
24
- configuration: Configuration;
24
+ configuration: PartialConfiguration;
25
25
  gitignore_matches: string[];
26
26
  vcs_base_path?: string;
27
27
  working_directory?: string;
28
28
  }
29
- interface Configuration {
29
+ interface PartialConfiguration {
30
30
  /**
31
31
  * A field for the [JSON schema](https://json-schema.org/) specification
32
32
  */
@@ -34,7 +34,7 @@ interface Configuration {
34
34
  /**
35
35
  * Specific configuration for the Css language
36
36
  */
37
- css?: CssConfiguration;
37
+ css?: PartialCssConfiguration;
38
38
  /**
39
39
  * A list of paths to other JSON files, used to extends the current configuration.
40
40
  */
@@ -42,27 +42,27 @@ interface Configuration {
42
42
  /**
43
43
  * The configuration of the filesystem
44
44
  */
45
- files?: FilesConfiguration;
45
+ files?: PartialFilesConfiguration;
46
46
  /**
47
47
  * The configuration of the formatter
48
48
  */
49
- formatter?: FormatterConfiguration;
49
+ formatter?: PartialFormatterConfiguration;
50
50
  /**
51
51
  * Specific configuration for the JavaScript language
52
52
  */
53
- javascript?: JavascriptConfiguration;
53
+ javascript?: PartialJavascriptConfiguration;
54
54
  /**
55
55
  * Specific configuration for the Json language
56
56
  */
57
- json?: JsonConfiguration;
57
+ json?: PartialJsonConfiguration;
58
58
  /**
59
59
  * The configuration for the linter
60
60
  */
61
- linter?: LinterConfiguration;
61
+ linter?: PartialLinterConfiguration;
62
62
  /**
63
63
  * The configuration of the import sorting
64
64
  */
65
- organizeImports?: OrganizeImports;
65
+ organizeImports?: PartialOrganizeImports;
66
66
  /**
67
67
  * A list of granular patterns that should be applied only to a sub set of files
68
68
  */
@@ -70,20 +70,20 @@ interface Configuration {
70
70
  /**
71
71
  * The configuration of the VCS integration
72
72
  */
73
- vcs?: VcsConfiguration;
73
+ vcs?: PartialVcsConfiguration;
74
74
  }
75
- interface CssConfiguration {
75
+ interface PartialCssConfiguration {
76
76
  /**
77
77
  * Formatting options
78
78
  */
79
- formatter?: CssFormatter;
79
+ formatter?: PartialCssFormatter;
80
80
  /**
81
81
  * Parsing options
82
82
  */
83
- parser?: CssParser;
83
+ parser?: PartialCssParser;
84
84
  }
85
85
  type StringSet = string[];
86
- interface FilesConfiguration {
86
+ interface PartialFilesConfiguration {
87
87
  /**
88
88
  * A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.
89
89
  */
@@ -101,7 +101,11 @@ interface FilesConfiguration {
101
101
  */
102
102
  maxSize?: number;
103
103
  }
104
- interface FormatterConfiguration {
104
+ interface PartialFormatterConfiguration {
105
+ /**
106
+ * The attribute position style. By default auto.
107
+ */
108
+ attributePosition?: AttributePosition;
105
109
  enabled?: boolean;
106
110
  /**
107
111
  * Stores whether formatting should be allowed to proceed if a given file has syntax errors
@@ -136,34 +140,34 @@ interface FormatterConfiguration {
136
140
  */
137
141
  lineWidth?: LineWidth;
138
142
  }
139
- interface JavascriptConfiguration {
143
+ interface PartialJavascriptConfiguration {
140
144
  /**
141
145
  * Formatting options
142
146
  */
143
- formatter?: JavascriptFormatter;
147
+ formatter?: PartialJavascriptFormatter;
144
148
  /**
145
149
  * A list of global bindings that should be ignored by the analyzers
146
150
 
147
151
  If defined here, they should not emit diagnostics.
148
152
  */
149
153
  globals?: StringSet;
150
- organize_imports?: JavascriptOrganizeImports;
154
+ organize_imports?: PartialJavascriptOrganizeImports;
151
155
  /**
152
156
  * Parsing options
153
157
  */
154
- parser?: JavascriptParser;
158
+ parser?: PartialJavascriptParser;
155
159
  }
156
- interface JsonConfiguration {
160
+ interface PartialJsonConfiguration {
157
161
  /**
158
162
  * Formatting options
159
163
  */
160
- formatter?: JsonFormatter;
164
+ formatter?: PartialJsonFormatter;
161
165
  /**
162
166
  * Parsing options
163
167
  */
164
- parser?: JsonParser;
168
+ parser?: PartialJsonParser;
165
169
  }
166
- interface LinterConfiguration {
170
+ interface PartialLinterConfiguration {
167
171
  /**
168
172
  * if `false`, it disables the feature and the linter won't be executed. `true` by default
169
173
  */
@@ -181,7 +185,7 @@ interface LinterConfiguration {
181
185
  */
182
186
  rules?: Rules;
183
187
  }
184
- interface OrganizeImports {
188
+ interface PartialOrganizeImports {
185
189
  /**
186
190
  * Enables the organization of imports
187
191
  */
@@ -196,7 +200,7 @@ interface OrganizeImports {
196
200
  include?: StringSet;
197
201
  }
198
202
  type Overrides = OverridePattern[];
199
- interface VcsConfiguration {
203
+ interface PartialVcsConfiguration {
200
204
  /**
201
205
  * The kind of client.
202
206
  */
@@ -220,7 +224,7 @@ If Biome can't find the configuration, it will attempt to use the current workin
220
224
  */
221
225
  useIgnoreFile?: boolean;
222
226
  }
223
- interface CssFormatter {
227
+ interface PartialCssFormatter {
224
228
  /**
225
229
  * Control the formatter for CSS (and its super languages) files.
226
230
  */
@@ -247,20 +251,25 @@ interface CssFormatter {
247
251
  lineWidth?: LineWidth;
248
252
  quoteStyle?: QuoteStyle;
249
253
  }
250
- interface CssParser {
254
+ interface PartialCssParser {
251
255
  /**
252
256
  * Allow comments to appear on incorrect lines in `.css` files
253
257
  */
254
258
  allowWrongLineComments?: boolean;
255
259
  }
260
+ type AttributePosition = "auto" | "multiline";
256
261
  type PlainIndentStyle = "tab" | "space";
257
262
  type LineEnding = "lf" | "crlf" | "cr";
258
263
  type LineWidth = number;
259
- interface JavascriptFormatter {
264
+ interface PartialJavascriptFormatter {
260
265
  /**
261
266
  * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
262
267
  */
263
268
  arrowParentheses?: ArrowParentheses;
269
+ /**
270
+ * The attribute position style in JavaScript code. Defaults to auto.
271
+ */
272
+ attributePosition?: AttributePosition;
264
273
  /**
265
274
  * 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.
266
275
  */
@@ -314,8 +323,8 @@ interface JavascriptFormatter {
314
323
  */
315
324
  trailingComma?: TrailingComma;
316
325
  }
317
- interface JavascriptOrganizeImports {}
318
- interface JavascriptParser {
326
+ interface PartialJavascriptOrganizeImports {}
327
+ interface PartialJavascriptParser {
319
328
  /**
320
329
  * It enables the experimental and unsafe parsing of parameter decorators
321
330
 
@@ -323,7 +332,7 @@ These decorators belong to an old proposal, and they are subject to change.
323
332
  */
324
333
  unsafeParameterDecoratorsEnabled?: boolean;
325
334
  }
326
- interface JsonFormatter {
335
+ interface PartialJsonFormatter {
327
336
  /**
328
337
  * Control the formatter for JSON (and its super languages) files.
329
338
  */
@@ -348,8 +357,12 @@ interface JsonFormatter {
348
357
  * What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.
349
358
  */
350
359
  lineWidth?: LineWidth;
360
+ /**
361
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "omit".
362
+ */
363
+ trailingCommas?: TrailingCommas;
351
364
  }
352
- interface JsonParser {
365
+ interface PartialJsonParser {
353
366
  /**
354
367
  * Allow parsing comments in `.json` files
355
368
  */
@@ -381,7 +394,7 @@ interface OverridePattern {
381
394
  /**
382
395
  * Specific configuration for the Css language
383
396
  */
384
- css?: CssConfiguration;
397
+ css?: PartialCssConfiguration;
385
398
  /**
386
399
  * Specific configuration for the Json language
387
400
  */
@@ -397,11 +410,11 @@ interface OverridePattern {
397
410
  /**
398
411
  * Specific configuration for the JavaScript language
399
412
  */
400
- javascript?: JavascriptConfiguration;
413
+ javascript?: PartialJavascriptConfiguration;
401
414
  /**
402
415
  * Specific configuration for the Json language
403
416
  */
404
- json?: JsonConfiguration;
417
+ json?: PartialJsonConfiguration;
405
418
  /**
406
419
  * Specific configuration for the Json language
407
420
  */
@@ -417,6 +430,7 @@ type ArrowParentheses = "always" | "asNeeded";
417
430
  type QuoteProperties = "asNeeded" | "preserve";
418
431
  type Semicolons = "always" | "asNeeded";
419
432
  type TrailingComma = "all" | "es5" | "none";
433
+ type TrailingCommas = "none" | "all";
420
434
  interface A11y {
421
435
  /**
422
436
  * It enables ALL rules for this group.
@@ -425,59 +439,59 @@ interface A11y {
425
439
  /**
426
440
  * Enforce that the accessKey attribute is not used on any HTML element.
427
441
  */
428
- noAccessKey?: RuleConfiguration;
442
+ noAccessKey?: RuleConfiguration_for_Null;
429
443
  /**
430
444
  * Enforce that aria-hidden="true" is not set on focusable elements.
431
445
  */
432
- noAriaHiddenOnFocusable?: RuleConfiguration;
446
+ noAriaHiddenOnFocusable?: RuleConfiguration_for_Null;
433
447
  /**
434
448
  * Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
435
449
  */
436
- noAriaUnsupportedElements?: RuleConfiguration;
450
+ noAriaUnsupportedElements?: RuleConfiguration_for_Null;
437
451
  /**
438
452
  * Enforce that autoFocus prop is not used on elements.
439
453
  */
440
- noAutofocus?: RuleConfiguration;
454
+ noAutofocus?: RuleConfiguration_for_Null;
441
455
  /**
442
456
  * Disallow target="_blank" attribute without rel="noreferrer"
443
457
  */
444
- noBlankTarget?: RuleConfiguration;
458
+ noBlankTarget?: RuleConfiguration_for_Null;
445
459
  /**
446
460
  * Enforces that no distracting elements are used.
447
461
  */
448
- noDistractingElements?: RuleConfiguration;
462
+ noDistractingElements?: RuleConfiguration_for_Null;
449
463
  /**
450
464
  * The scope prop should be used only on <th> elements.
451
465
  */
452
- noHeaderScope?: RuleConfiguration;
466
+ noHeaderScope?: RuleConfiguration_for_Null;
453
467
  /**
454
468
  * Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
455
469
  */
456
- noInteractiveElementToNoninteractiveRole?: RuleConfiguration;
470
+ noInteractiveElementToNoninteractiveRole?: RuleConfiguration_for_Null;
457
471
  /**
458
472
  * Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
459
473
  */
460
- noNoninteractiveElementToInteractiveRole?: RuleConfiguration;
474
+ noNoninteractiveElementToInteractiveRole?: RuleConfiguration_for_Null;
461
475
  /**
462
476
  * Enforce that tabIndex is not assigned to non-interactive HTML elements.
463
477
  */
464
- noNoninteractiveTabindex?: RuleConfiguration;
478
+ noNoninteractiveTabindex?: RuleConfiguration_for_Null;
465
479
  /**
466
480
  * Prevent the usage of positive integers on tabIndex property
467
481
  */
468
- noPositiveTabindex?: RuleConfiguration;
482
+ noPositiveTabindex?: RuleConfiguration_for_Null;
469
483
  /**
470
484
  * Enforce img alt prop does not contain the word "image", "picture", or "photo".
471
485
  */
472
- noRedundantAlt?: RuleConfiguration;
486
+ noRedundantAlt?: RuleConfiguration_for_Null;
473
487
  /**
474
488
  * Enforce explicit role property is not the same as implicit/default role property on an element.
475
489
  */
476
- noRedundantRoles?: RuleConfiguration;
490
+ noRedundantRoles?: RuleConfiguration_for_Null;
477
491
  /**
478
492
  * Enforces the usage of the title element for the svg element.
479
493
  */
480
- noSvgWithoutTitle?: RuleConfiguration;
494
+ noSvgWithoutTitle?: RuleConfiguration_for_Null;
481
495
  /**
482
496
  * It enables the recommended rules for this group
483
497
  */
@@ -485,67 +499,67 @@ interface A11y {
485
499
  /**
486
500
  * Enforce that all elements that require alternative text have meaningful information to relay back to the end user.
487
501
  */
488
- useAltText?: RuleConfiguration;
502
+ useAltText?: RuleConfiguration_for_Null;
489
503
  /**
490
504
  * Enforce that anchors have content and that the content is accessible to screen readers.
491
505
  */
492
- useAnchorContent?: RuleConfiguration;
506
+ useAnchorContent?: RuleConfiguration_for_Null;
493
507
  /**
494
508
  * Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
495
509
  */
496
- useAriaActivedescendantWithTabindex?: RuleConfiguration;
510
+ useAriaActivedescendantWithTabindex?: RuleConfiguration_for_Null;
497
511
  /**
498
512
  * Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
499
513
  */
500
- useAriaPropsForRole?: RuleConfiguration;
514
+ useAriaPropsForRole?: RuleConfiguration_for_Null;
501
515
  /**
502
516
  * Enforces the usage of the attribute type for the element button
503
517
  */
504
- useButtonType?: RuleConfiguration;
518
+ useButtonType?: RuleConfiguration_for_Null;
505
519
  /**
506
520
  * Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop.
507
521
  */
508
- useHeadingContent?: RuleConfiguration;
522
+ useHeadingContent?: RuleConfiguration_for_Null;
509
523
  /**
510
524
  * Enforce that html element has lang attribute.
511
525
  */
512
- useHtmlLang?: RuleConfiguration;
526
+ useHtmlLang?: RuleConfiguration_for_Null;
513
527
  /**
514
528
  * Enforces the usage of the attribute title for the element iframe.
515
529
  */
516
- useIframeTitle?: RuleConfiguration;
530
+ useIframeTitle?: RuleConfiguration_for_Null;
517
531
  /**
518
532
  * Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.
519
533
  */
520
- useKeyWithClickEvents?: RuleConfiguration;
534
+ useKeyWithClickEvents?: RuleConfiguration_for_Null;
521
535
  /**
522
536
  * Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.
523
537
  */
524
- useKeyWithMouseEvents?: RuleConfiguration;
538
+ useKeyWithMouseEvents?: RuleConfiguration_for_Null;
525
539
  /**
526
540
  * Enforces that audio and video elements must have a track for captions.
527
541
  */
528
- useMediaCaption?: RuleConfiguration;
542
+ useMediaCaption?: RuleConfiguration_for_Null;
529
543
  /**
530
544
  * Enforce that all anchors are valid, and they are navigable elements.
531
545
  */
532
- useValidAnchor?: RuleConfiguration;
546
+ useValidAnchor?: RuleConfiguration_for_Null;
533
547
  /**
534
548
  * Ensures that ARIA properties aria-* are all valid.
535
549
  */
536
- useValidAriaProps?: RuleConfiguration;
550
+ useValidAriaProps?: RuleConfiguration_for_Null;
537
551
  /**
538
552
  * Elements with ARIA roles must use a valid, non-abstract ARIA role.
539
553
  */
540
- useValidAriaRole?: RuleConfiguration;
554
+ useValidAriaRole?: RuleConfiguration_for_ValidAriaRoleOptions;
541
555
  /**
542
556
  * Enforce that ARIA state and property values are valid.
543
557
  */
544
- useValidAriaValues?: RuleConfiguration;
558
+ useValidAriaValues?: RuleConfiguration_for_Null;
545
559
  /**
546
560
  * Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.
547
561
  */
548
- useValidLang?: RuleConfiguration;
562
+ useValidLang?: RuleConfiguration_for_Null;
549
563
  }
550
564
  interface Complexity {
551
565
  /**
@@ -555,75 +569,75 @@ interface Complexity {
555
569
  /**
556
570
  * Disallow primitive type aliases and misleading types.
557
571
  */
558
- noBannedTypes?: RuleConfiguration;
572
+ noBannedTypes?: RuleConfiguration_for_Null;
559
573
  /**
560
574
  * Disallow functions that exceed a given Cognitive Complexity score.
561
575
  */
562
- noExcessiveCognitiveComplexity?: RuleConfiguration;
576
+ noExcessiveCognitiveComplexity?: RuleConfiguration_for_ComplexityOptions;
563
577
  /**
564
578
  * Disallow unnecessary boolean casts
565
579
  */
566
- noExtraBooleanCast?: RuleConfiguration;
580
+ noExtraBooleanCast?: RuleConfiguration_for_Null;
567
581
  /**
568
582
  * Prefer for...of statement instead of Array.forEach.
569
583
  */
570
- noForEach?: RuleConfiguration;
584
+ noForEach?: RuleConfiguration_for_Null;
571
585
  /**
572
586
  * Disallow unclear usage of consecutive space characters in regular expression literals
573
587
  */
574
- noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration;
588
+ noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration_for_Null;
575
589
  /**
576
590
  * This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
577
591
  */
578
- noStaticOnlyClass?: RuleConfiguration;
592
+ noStaticOnlyClass?: RuleConfiguration_for_Null;
579
593
  /**
580
594
  * Disallow this and super in static contexts.
581
595
  */
582
- noThisInStatic?: RuleConfiguration;
596
+ noThisInStatic?: RuleConfiguration_for_Null;
583
597
  /**
584
598
  * Disallow unnecessary catch clauses.
585
599
  */
586
- noUselessCatch?: RuleConfiguration;
600
+ noUselessCatch?: RuleConfiguration_for_Null;
587
601
  /**
588
602
  * Disallow unnecessary constructors.
589
603
  */
590
- noUselessConstructor?: RuleConfiguration;
604
+ noUselessConstructor?: RuleConfiguration_for_Null;
591
605
  /**
592
606
  * Disallow empty exports that don't change anything in a module file.
593
607
  */
594
- noUselessEmptyExport?: RuleConfiguration;
608
+ noUselessEmptyExport?: RuleConfiguration_for_Null;
595
609
  /**
596
610
  * Disallow unnecessary fragments
597
611
  */
598
- noUselessFragments?: RuleConfiguration;
612
+ noUselessFragments?: RuleConfiguration_for_Null;
599
613
  /**
600
614
  * Disallow unnecessary labels.
601
615
  */
602
- noUselessLabel?: RuleConfiguration;
616
+ noUselessLabel?: RuleConfiguration_for_Null;
603
617
  /**
604
618
  * Disallow renaming import, export, and destructured assignments to the same name.
605
619
  */
606
- noUselessRename?: RuleConfiguration;
620
+ noUselessRename?: RuleConfiguration_for_Null;
607
621
  /**
608
622
  * Disallow useless case in switch statements.
609
623
  */
610
- noUselessSwitchCase?: RuleConfiguration;
624
+ noUselessSwitchCase?: RuleConfiguration_for_Null;
611
625
  /**
612
626
  * Disallow useless this aliasing.
613
627
  */
614
- noUselessThisAlias?: RuleConfiguration;
628
+ noUselessThisAlias?: RuleConfiguration_for_Null;
615
629
  /**
616
630
  * Disallow using any or unknown as type constraint.
617
631
  */
618
- noUselessTypeConstraint?: RuleConfiguration;
632
+ noUselessTypeConstraint?: RuleConfiguration_for_Null;
619
633
  /**
620
634
  * Disallow the use of void operators, which is not a familiar operator.
621
635
  */
622
- noVoid?: RuleConfiguration;
636
+ noVoid?: RuleConfiguration_for_Null;
623
637
  /**
624
638
  * Disallow with statements in non-strict contexts.
625
639
  */
626
- noWith?: RuleConfiguration;
640
+ noWith?: RuleConfiguration_for_Null;
627
641
  /**
628
642
  * It enables the recommended rules for this group
629
643
  */
@@ -631,31 +645,31 @@ interface Complexity {
631
645
  /**
632
646
  * Use arrow functions over function expressions.
633
647
  */
634
- useArrowFunction?: RuleConfiguration;
648
+ useArrowFunction?: RuleConfiguration_for_Null;
635
649
  /**
636
650
  * Promotes the use of .flatMap() when map().flat() are used together.
637
651
  */
638
- useFlatMap?: RuleConfiguration;
652
+ useFlatMap?: RuleConfiguration_for_Null;
639
653
  /**
640
654
  * Enforce the usage of a literal access to properties over computed property access.
641
655
  */
642
- useLiteralKeys?: RuleConfiguration;
656
+ useLiteralKeys?: RuleConfiguration_for_Null;
643
657
  /**
644
658
  * Enforce using concise optional chain instead of chained logical expressions.
645
659
  */
646
- useOptionalChain?: RuleConfiguration;
660
+ useOptionalChain?: RuleConfiguration_for_Null;
647
661
  /**
648
662
  * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
649
663
  */
650
- useRegexLiterals?: RuleConfiguration;
664
+ useRegexLiterals?: RuleConfiguration_for_Null;
651
665
  /**
652
666
  * Disallow number literal object member names which are not base10 or uses underscore as separator
653
667
  */
654
- useSimpleNumberKeys?: RuleConfiguration;
668
+ useSimpleNumberKeys?: RuleConfiguration_for_Null;
655
669
  /**
656
670
  * Discard redundant terms from logical expressions.
657
671
  */
658
- useSimplifiedLogicExpression?: RuleConfiguration;
672
+ useSimplifiedLogicExpression?: RuleConfiguration_for_Null;
659
673
  }
660
674
  interface Correctness {
661
675
  /**
@@ -665,115 +679,115 @@ interface Correctness {
665
679
  /**
666
680
  * Prevent passing of children as props.
667
681
  */
668
- noChildrenProp?: RuleConfiguration;
682
+ noChildrenProp?: RuleConfiguration_for_Null;
669
683
  /**
670
684
  * Prevents from having const variables being re-assigned.
671
685
  */
672
- noConstAssign?: RuleConfiguration;
686
+ noConstAssign?: RuleConfiguration_for_Null;
673
687
  /**
674
688
  * Disallow constant expressions in conditions
675
689
  */
676
- noConstantCondition?: RuleConfiguration;
690
+ noConstantCondition?: RuleConfiguration_for_Null;
677
691
  /**
678
692
  * Disallow returning a value from a constructor.
679
693
  */
680
- noConstructorReturn?: RuleConfiguration;
694
+ noConstructorReturn?: RuleConfiguration_for_Null;
681
695
  /**
682
696
  * Disallow empty character classes in regular expression literals.
683
697
  */
684
- noEmptyCharacterClassInRegex?: RuleConfiguration;
698
+ noEmptyCharacterClassInRegex?: RuleConfiguration_for_Null;
685
699
  /**
686
700
  * Disallows empty destructuring patterns.
687
701
  */
688
- noEmptyPattern?: RuleConfiguration;
702
+ noEmptyPattern?: RuleConfiguration_for_Null;
689
703
  /**
690
704
  * Disallow calling global object properties as functions
691
705
  */
692
- noGlobalObjectCalls?: RuleConfiguration;
706
+ noGlobalObjectCalls?: RuleConfiguration_for_Null;
693
707
  /**
694
708
  * Disallow function and var declarations that are accessible outside their block.
695
709
  */
696
- noInnerDeclarations?: RuleConfiguration;
710
+ noInnerDeclarations?: RuleConfiguration_for_Null;
697
711
  /**
698
712
  * Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.
699
713
  */
700
- noInvalidConstructorSuper?: RuleConfiguration;
714
+ noInvalidConstructorSuper?: RuleConfiguration_for_Null;
701
715
  /**
702
716
  * Disallow new operators with global non-constructor functions.
703
717
  */
704
- noInvalidNewBuiltin?: RuleConfiguration;
718
+ noInvalidNewBuiltin?: RuleConfiguration_for_Null;
705
719
  /**
706
720
  * Disallow new operators with the Symbol object.
707
721
  */
708
- noNewSymbol?: RuleConfiguration;
722
+ noNewSymbol?: RuleConfiguration_for_Null;
709
723
  /**
710
724
  * Disallow \8 and \9 escape sequences in string literals.
711
725
  */
712
- noNonoctalDecimalEscape?: RuleConfiguration;
726
+ noNonoctalDecimalEscape?: RuleConfiguration_for_Null;
713
727
  /**
714
728
  * Disallow literal numbers that lose precision
715
729
  */
716
- noPrecisionLoss?: RuleConfiguration;
730
+ noPrecisionLoss?: RuleConfiguration_for_Null;
717
731
  /**
718
732
  * Prevent the usage of the return value of React.render.
719
733
  */
720
- noRenderReturnValue?: RuleConfiguration;
734
+ noRenderReturnValue?: RuleConfiguration_for_Null;
721
735
  /**
722
736
  * Disallow assignments where both sides are exactly the same.
723
737
  */
724
- noSelfAssign?: RuleConfiguration;
738
+ noSelfAssign?: RuleConfiguration_for_Null;
725
739
  /**
726
740
  * Disallow returning a value from a setter
727
741
  */
728
- noSetterReturn?: RuleConfiguration;
742
+ noSetterReturn?: RuleConfiguration_for_Null;
729
743
  /**
730
744
  * Disallow comparison of expressions modifying the string case with non-compliant value.
731
745
  */
732
- noStringCaseMismatch?: RuleConfiguration;
746
+ noStringCaseMismatch?: RuleConfiguration_for_Null;
733
747
  /**
734
748
  * Disallow lexical declarations in switch clauses.
735
749
  */
736
- noSwitchDeclarations?: RuleConfiguration;
750
+ noSwitchDeclarations?: RuleConfiguration_for_Null;
737
751
  /**
738
752
  * Prevents the usage of variables that haven't been declared inside the document.
739
753
  */
740
- noUndeclaredVariables?: RuleConfiguration;
754
+ noUndeclaredVariables?: RuleConfiguration_for_Null;
741
755
  /**
742
756
  * Avoid using unnecessary continue.
743
757
  */
744
- noUnnecessaryContinue?: RuleConfiguration;
758
+ noUnnecessaryContinue?: RuleConfiguration_for_Null;
745
759
  /**
746
760
  * Disallow unreachable code
747
761
  */
748
- noUnreachable?: RuleConfiguration;
762
+ noUnreachable?: RuleConfiguration_for_Null;
749
763
  /**
750
764
  * Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass
751
765
  */
752
- noUnreachableSuper?: RuleConfiguration;
766
+ noUnreachableSuper?: RuleConfiguration_for_Null;
753
767
  /**
754
768
  * Disallow control flow statements in finally blocks.
755
769
  */
756
- noUnsafeFinally?: RuleConfiguration;
770
+ noUnsafeFinally?: RuleConfiguration_for_Null;
757
771
  /**
758
772
  * Disallow the use of optional chaining in contexts where the undefined value is not allowed.
759
773
  */
760
- noUnsafeOptionalChaining?: RuleConfiguration;
774
+ noUnsafeOptionalChaining?: RuleConfiguration_for_Null;
761
775
  /**
762
776
  * Disallow unused labels.
763
777
  */
764
- noUnusedLabels?: RuleConfiguration;
778
+ noUnusedLabels?: RuleConfiguration_for_Null;
765
779
  /**
766
780
  * Disallow unused variables.
767
781
  */
768
- noUnusedVariables?: RuleConfiguration;
782
+ noUnusedVariables?: RuleConfiguration_for_Null;
769
783
  /**
770
784
  * This rules prevents void elements (AKA self-closing elements) from having children.
771
785
  */
772
- noVoidElementsWithChildren?: RuleConfiguration;
786
+ noVoidElementsWithChildren?: RuleConfiguration_for_Null;
773
787
  /**
774
788
  * Disallow returning a value from a function with the return type 'void'
775
789
  */
776
- noVoidTypeReturn?: RuleConfiguration;
790
+ noVoidTypeReturn?: RuleConfiguration_for_Null;
777
791
  /**
778
792
  * It enables the recommended rules for this group
779
793
  */
@@ -781,89 +795,129 @@ interface Correctness {
781
795
  /**
782
796
  * Enforce all dependencies are correctly specified in a React hook.
783
797
  */
784
- useExhaustiveDependencies?: RuleConfiguration;
798
+ useExhaustiveDependencies?: RuleConfiguration_for_HooksOptions;
785
799
  /**
786
800
  * Enforce that all React hooks are being called from the Top Level component functions.
787
801
  */
788
- useHookAtTopLevel?: RuleConfiguration;
802
+ useHookAtTopLevel?: RuleConfiguration_for_DeprecatedHooksOptions;
789
803
  /**
790
804
  * Require calls to isNaN() when checking for NaN.
791
805
  */
792
- useIsNan?: RuleConfiguration;
806
+ useIsNan?: RuleConfiguration_for_Null;
793
807
  /**
794
808
  * Enforce "for" loop update clause moving the counter in the right direction.
795
809
  */
796
- useValidForDirection?: RuleConfiguration;
810
+ useValidForDirection?: RuleConfiguration_for_Null;
797
811
  /**
798
812
  * Require generator functions to contain yield.
799
813
  */
800
- useYield?: RuleConfiguration;
814
+ useYield?: RuleConfiguration_for_Null;
801
815
  }
802
816
  interface Nursery {
803
817
  /**
804
818
  * It enables ALL rules for this group.
805
819
  */
806
820
  all?: boolean;
821
+ /**
822
+ * Disallow the use of barrel file.
823
+ */
824
+ noBarrelFile?: RuleConfiguration_for_Null;
825
+ /**
826
+ * Disallow the use of console.
827
+ */
828
+ noConsole?: RuleConfiguration_for_Null;
807
829
  /**
808
830
  * Disallow two keys with the same name inside a JSON object.
809
831
  */
810
- noDuplicateJsonKeys?: RuleConfiguration;
832
+ noDuplicateJsonKeys?: RuleConfiguration_for_Null;
833
+ /**
834
+ * A describe block should not contain duplicate hooks.
835
+ */
836
+ noDuplicateTestHooks?: RuleConfiguration_for_Null;
811
837
  /**
812
838
  * Disallow empty block statements and static blocks.
813
839
  */
814
- noEmptyBlockStatements?: RuleConfiguration;
840
+ noEmptyBlockStatements?: RuleConfiguration_for_Null;
815
841
  /**
816
842
  * Disallow empty type parameters in type aliases and interfaces.
817
843
  */
818
- noEmptyTypeParameters?: RuleConfiguration;
844
+ noEmptyTypeParameters?: RuleConfiguration_for_Null;
845
+ /**
846
+ * This rule enforces a maximum depth to nested describe() in test files.
847
+ */
848
+ noExcessiveNestedTestSuites?: RuleConfiguration_for_Null;
849
+ /**
850
+ * Disallow using export or module.exports in files containing tests
851
+ */
852
+ noExportsInTest?: RuleConfiguration_for_Null;
819
853
  /**
820
854
  * Disallow focused tests.
821
855
  */
822
- noFocusedTests?: RuleConfiguration;
856
+ noFocusedTests?: RuleConfiguration_for_Null;
823
857
  /**
824
858
  * Disallow assignments to native objects and read-only global variables.
825
859
  */
826
- noGlobalAssign?: RuleConfiguration;
860
+ noGlobalAssign?: RuleConfiguration_for_Null;
827
861
  /**
828
862
  * Disallow the use of global eval().
829
863
  */
830
- noGlobalEval?: RuleConfiguration;
864
+ noGlobalEval?: RuleConfiguration_for_Null;
831
865
  /**
832
866
  * Disallow the use of variables and function parameters before their declaration
833
867
  */
834
- noInvalidUseBeforeDeclaration?: RuleConfiguration;
868
+ noInvalidUseBeforeDeclaration?: RuleConfiguration_for_Null;
835
869
  /**
836
870
  * Disallow characters made with multiple code points in character class syntax.
837
871
  */
838
- noMisleadingCharacterClass?: RuleConfiguration;
872
+ noMisleadingCharacterClass?: RuleConfiguration_for_Null;
873
+ /**
874
+ * Disallow the use of namespace imports.
875
+ */
876
+ noNamespaceImport?: RuleConfiguration_for_Null;
839
877
  /**
840
878
  * Forbid the use of Node.js builtin modules.
841
879
  */
842
- noNodejsModules?: RuleConfiguration;
880
+ noNodejsModules?: RuleConfiguration_for_Null;
881
+ /**
882
+ * Avoid re-export all.
883
+ */
884
+ noReExportAll?: RuleConfiguration_for_Null;
885
+ /**
886
+ * Disallow specified modules when loaded by import or require.
887
+ */
888
+ noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
889
+ /**
890
+ * It detects possible "wrong" semicolons inside JSX elements.
891
+ */
892
+ noSemicolonInJsx?: RuleConfiguration_for_Null;
843
893
  /**
844
894
  * Disallow disabled tests.
845
895
  */
846
- noSkippedTests?: RuleConfiguration;
896
+ noSkippedTests?: RuleConfiguration_for_Null;
847
897
  /**
848
898
  * Disallow then property.
849
899
  */
850
- noThenProperty?: RuleConfiguration;
900
+ noThenProperty?: RuleConfiguration_for_Null;
901
+ /**
902
+ * Disallow the use of dependencies that aren't specified in the package.json.
903
+ */
904
+ noUndeclaredDependencies?: RuleConfiguration_for_Null;
851
905
  /**
852
906
  * Disallow unused imports.
853
907
  */
854
- noUnusedImports?: RuleConfiguration;
908
+ noUnusedImports?: RuleConfiguration_for_Null;
855
909
  /**
856
910
  * Disallow unused private class members
857
911
  */
858
- noUnusedPrivateClassMembers?: RuleConfiguration;
912
+ noUnusedPrivateClassMembers?: RuleConfiguration_for_Null;
859
913
  /**
860
914
  * Disallow unnecessary nested block statements.
861
915
  */
862
- noUselessLoneBlockStatements?: RuleConfiguration;
916
+ noUselessLoneBlockStatements?: RuleConfiguration_for_Null;
863
917
  /**
864
918
  * Disallow ternary operators when simpler alternatives exist.
865
919
  */
866
- noUselessTernary?: RuleConfiguration;
920
+ noUselessTernary?: RuleConfiguration_for_Null;
867
921
  /**
868
922
  * It enables the recommended rules for this group
869
923
  */
@@ -871,51 +925,59 @@ interface Nursery {
871
925
  /**
872
926
  * Ensure async functions utilize await.
873
927
  */
874
- useAwait?: RuleConfiguration;
928
+ useAwait?: RuleConfiguration_for_Null;
875
929
  /**
876
930
  * Require consistently using either T[] or Array<T>
877
931
  */
878
- useConsistentArrayType?: RuleConfiguration;
932
+ useConsistentArrayType?: RuleConfiguration_for_ConsistentArrayTypeOptions;
879
933
  /**
880
934
  * Promotes the use of export type for types.
881
935
  */
882
- useExportType?: RuleConfiguration;
936
+ useExportType?: RuleConfiguration_for_Null;
883
937
  /**
884
938
  * Enforce naming conventions for JavaScript and TypeScript filenames.
885
939
  */
886
- useFilenamingConvention?: RuleConfiguration;
940
+ useFilenamingConvention?: RuleConfiguration_for_FilenamingConventionOptions;
887
941
  /**
888
942
  * This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
889
943
  */
890
- useForOf?: RuleConfiguration;
944
+ useForOf?: RuleConfiguration_for_Null;
891
945
  /**
892
946
  * Enforce the use of import type when an import only has specifiers with type qualifier.
893
947
  */
894
- useGroupedTypeImport?: RuleConfiguration;
948
+ useGroupedTypeImport?: RuleConfiguration_for_Null;
895
949
  /**
896
950
  * Disallows package private imports.
897
951
  */
898
- useImportRestrictions?: RuleConfiguration;
952
+ useImportRestrictions?: RuleConfiguration_for_Null;
899
953
  /**
900
954
  * Promotes the use of import type for types.
901
955
  */
902
- useImportType?: RuleConfiguration;
956
+ useImportType?: RuleConfiguration_for_Null;
957
+ /**
958
+ * Disallow missing key props in iterators/collection literals.
959
+ */
960
+ useJsxKeyInIterable?: RuleConfiguration_for_Null;
961
+ /**
962
+ * Promotes the usage of node:assert/strict over node:assert.
963
+ */
964
+ useNodeAssertStrict?: RuleConfiguration_for_Null;
903
965
  /**
904
966
  * Enforces using the node: protocol for Node.js builtin modules.
905
967
  */
906
- useNodejsImportProtocol?: RuleConfiguration;
968
+ useNodejsImportProtocol?: RuleConfiguration_for_Null;
907
969
  /**
908
970
  * Use the Number properties instead of global ones.
909
971
  */
910
- useNumberNamespace?: RuleConfiguration;
972
+ useNumberNamespace?: RuleConfiguration_for_Null;
911
973
  /**
912
974
  * Enforce using function types instead of object type with call signatures.
913
975
  */
914
- useShorthandFunctionType?: RuleConfiguration;
976
+ useShorthandFunctionType?: RuleConfiguration_for_Null;
915
977
  /**
916
978
  * Enforce the sorting of CSS utility classes.
917
979
  */
918
- useSortedClasses?: RuleConfiguration;
980
+ useSortedClasses?: RuleConfiguration_for_UtilityClassSortingOptions;
919
981
  }
920
982
  interface Performance {
921
983
  /**
@@ -925,11 +987,11 @@ interface Performance {
925
987
  /**
926
988
  * Disallow the use of spread (...) syntax on accumulators.
927
989
  */
928
- noAccumulatingSpread?: RuleConfiguration;
990
+ noAccumulatingSpread?: RuleConfiguration_for_Null;
929
991
  /**
930
992
  * Disallow the use of the delete operator.
931
993
  */
932
- noDelete?: RuleConfiguration;
994
+ noDelete?: RuleConfiguration_for_Null;
933
995
  /**
934
996
  * It enables the recommended rules for this group
935
997
  */
@@ -943,11 +1005,11 @@ interface Security {
943
1005
  /**
944
1006
  * Prevent the usage of dangerous JSX props
945
1007
  */
946
- noDangerouslySetInnerHtml?: RuleConfiguration;
1008
+ noDangerouslySetInnerHtml?: RuleConfiguration_for_Null;
947
1009
  /**
948
1010
  * Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
949
1011
  */
950
- noDangerouslySetInnerHtmlWithChildren?: RuleConfiguration;
1012
+ noDangerouslySetInnerHtmlWithChildren?: RuleConfiguration_for_Null;
951
1013
  /**
952
1014
  * It enables the recommended rules for this group
953
1015
  */
@@ -961,63 +1023,63 @@ interface Style {
961
1023
  /**
962
1024
  * Disallow the use of arguments.
963
1025
  */
964
- noArguments?: RuleConfiguration;
1026
+ noArguments?: RuleConfiguration_for_Null;
965
1027
  /**
966
1028
  * Disallow comma operator.
967
1029
  */
968
- noCommaOperator?: RuleConfiguration;
1030
+ noCommaOperator?: RuleConfiguration_for_Null;
969
1031
  /**
970
1032
  * Disallow default exports.
971
1033
  */
972
- noDefaultExport?: RuleConfiguration;
1034
+ noDefaultExport?: RuleConfiguration_for_Null;
973
1035
  /**
974
1036
  * Disallow implicit true values on JSX boolean attributes
975
1037
  */
976
- noImplicitBoolean?: RuleConfiguration;
1038
+ noImplicitBoolean?: RuleConfiguration_for_Null;
977
1039
  /**
978
1040
  * Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.
979
1041
  */
980
- noInferrableTypes?: RuleConfiguration;
1042
+ noInferrableTypes?: RuleConfiguration_for_Null;
981
1043
  /**
982
1044
  * Disallow the use of TypeScript's namespaces.
983
1045
  */
984
- noNamespace?: RuleConfiguration;
1046
+ noNamespace?: RuleConfiguration_for_Null;
985
1047
  /**
986
1048
  * Disallow negation in the condition of an if statement if it has an else clause.
987
1049
  */
988
- noNegationElse?: RuleConfiguration;
1050
+ noNegationElse?: RuleConfiguration_for_Null;
989
1051
  /**
990
1052
  * Disallow non-null assertions using the ! postfix operator.
991
1053
  */
992
- noNonNullAssertion?: RuleConfiguration;
1054
+ noNonNullAssertion?: RuleConfiguration_for_Null;
993
1055
  /**
994
1056
  * Disallow reassigning function parameters.
995
1057
  */
996
- noParameterAssign?: RuleConfiguration;
1058
+ noParameterAssign?: RuleConfiguration_for_Null;
997
1059
  /**
998
1060
  * Disallow the use of parameter properties in class constructors.
999
1061
  */
1000
- noParameterProperties?: RuleConfiguration;
1062
+ noParameterProperties?: RuleConfiguration_for_Null;
1001
1063
  /**
1002
1064
  * This rule allows you to specify global variable names that you don’t want to use in your application.
1003
1065
  */
1004
- noRestrictedGlobals?: RuleConfiguration;
1066
+ noRestrictedGlobals?: RuleConfiguration_for_RestrictedGlobalsOptions;
1005
1067
  /**
1006
1068
  * Disallow the use of constants which its value is the upper-case version of its name.
1007
1069
  */
1008
- noShoutyConstants?: RuleConfiguration;
1070
+ noShoutyConstants?: RuleConfiguration_for_Null;
1009
1071
  /**
1010
1072
  * Disallow template literals if interpolation and special-character handling are not needed
1011
1073
  */
1012
- noUnusedTemplateLiteral?: RuleConfiguration;
1074
+ noUnusedTemplateLiteral?: RuleConfiguration_for_Null;
1013
1075
  /**
1014
1076
  * Disallow else block when the if block breaks early.
1015
1077
  */
1016
- noUselessElse?: RuleConfiguration;
1078
+ noUselessElse?: RuleConfiguration_for_Null;
1017
1079
  /**
1018
1080
  * Disallow the use of var
1019
1081
  */
1020
- noVar?: RuleConfiguration;
1082
+ noVar?: RuleConfiguration_for_Null;
1021
1083
  /**
1022
1084
  * It enables the recommended rules for this group
1023
1085
  */
@@ -1025,75 +1087,75 @@ interface Style {
1025
1087
  /**
1026
1088
  * Enforce the use of as const over literal type and type annotation.
1027
1089
  */
1028
- useAsConstAssertion?: RuleConfiguration;
1090
+ useAsConstAssertion?: RuleConfiguration_for_Null;
1029
1091
  /**
1030
1092
  * Requires following curly brace conventions.
1031
1093
  */
1032
- useBlockStatements?: RuleConfiguration;
1094
+ useBlockStatements?: RuleConfiguration_for_Null;
1033
1095
  /**
1034
1096
  * Enforce using else if instead of nested if in else clauses.
1035
1097
  */
1036
- useCollapsedElseIf?: RuleConfiguration;
1098
+ useCollapsedElseIf?: RuleConfiguration_for_Null;
1037
1099
  /**
1038
1100
  * Require const declarations for variables that are never reassigned after declared.
1039
1101
  */
1040
- useConst?: RuleConfiguration;
1102
+ useConst?: RuleConfiguration_for_Null;
1041
1103
  /**
1042
1104
  * Enforce default function parameters and optional function parameters to be last.
1043
1105
  */
1044
- useDefaultParameterLast?: RuleConfiguration;
1106
+ useDefaultParameterLast?: RuleConfiguration_for_Null;
1045
1107
  /**
1046
1108
  * Require that each enum member value be explicitly initialized.
1047
1109
  */
1048
- useEnumInitializers?: RuleConfiguration;
1110
+ useEnumInitializers?: RuleConfiguration_for_Null;
1049
1111
  /**
1050
1112
  * Disallow the use of Math.pow in favor of the ** operator.
1051
1113
  */
1052
- useExponentiationOperator?: RuleConfiguration;
1114
+ useExponentiationOperator?: RuleConfiguration_for_Null;
1053
1115
  /**
1054
1116
  * This rule enforces the use of <>...</> over <Fragment>...</Fragment>.
1055
1117
  */
1056
- useFragmentSyntax?: RuleConfiguration;
1118
+ useFragmentSyntax?: RuleConfiguration_for_Null;
1057
1119
  /**
1058
1120
  * Require all enum members to be literal values.
1059
1121
  */
1060
- useLiteralEnumMembers?: RuleConfiguration;
1122
+ useLiteralEnumMembers?: RuleConfiguration_for_Null;
1061
1123
  /**
1062
1124
  * Enforce naming conventions for everything across a codebase.
1063
1125
  */
1064
- useNamingConvention?: RuleConfiguration;
1126
+ useNamingConvention?: RuleConfiguration_for_NamingConventionOptions;
1065
1127
  /**
1066
1128
  * Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
1067
1129
  */
1068
- useNumericLiterals?: RuleConfiguration;
1130
+ useNumericLiterals?: RuleConfiguration_for_Null;
1069
1131
  /**
1070
1132
  * Prevent extra closing tags for components without children
1071
1133
  */
1072
- useSelfClosingElements?: RuleConfiguration;
1134
+ useSelfClosingElements?: RuleConfiguration_for_Null;
1073
1135
  /**
1074
1136
  * When expressing array types, this rule promotes the usage of T[] shorthand instead of Array<T>.
1075
1137
  */
1076
- useShorthandArrayType?: RuleConfiguration;
1138
+ useShorthandArrayType?: RuleConfiguration_for_Null;
1077
1139
  /**
1078
1140
  * Require assignment operator shorthand where possible.
1079
1141
  */
1080
- useShorthandAssign?: RuleConfiguration;
1142
+ useShorthandAssign?: RuleConfiguration_for_Null;
1081
1143
  /**
1082
1144
  * Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
1083
1145
  */
1084
- useSingleCaseStatement?: RuleConfiguration;
1146
+ useSingleCaseStatement?: RuleConfiguration_for_Null;
1085
1147
  /**
1086
1148
  * Disallow multiple variable declarations in the same variable statement
1087
1149
  */
1088
- useSingleVarDeclarator?: RuleConfiguration;
1150
+ useSingleVarDeclarator?: RuleConfiguration_for_Null;
1089
1151
  /**
1090
1152
  * Prefer template literals over string concatenation.
1091
1153
  */
1092
- useTemplate?: RuleConfiguration;
1154
+ useTemplate?: RuleConfiguration_for_Null;
1093
1155
  /**
1094
1156
  * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
1095
1157
  */
1096
- useWhile?: RuleConfiguration;
1158
+ useWhile?: RuleConfiguration_for_Null;
1097
1159
  }
1098
1160
  interface Suspicious {
1099
1161
  /**
@@ -1101,165 +1163,165 @@ interface Suspicious {
1101
1163
  */
1102
1164
  all?: boolean;
1103
1165
  /**
1104
- * Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.
1166
+ * Use standard constants instead of approximated literals.
1105
1167
  */
1106
- noApproximativeNumericConstant?: RuleConfiguration;
1168
+ noApproximativeNumericConstant?: RuleConfiguration_for_Null;
1107
1169
  /**
1108
1170
  * Discourage the usage of Array index in keys.
1109
1171
  */
1110
- noArrayIndexKey?: RuleConfiguration;
1172
+ noArrayIndexKey?: RuleConfiguration_for_Null;
1111
1173
  /**
1112
1174
  * Disallow assignments in expressions.
1113
1175
  */
1114
- noAssignInExpressions?: RuleConfiguration;
1176
+ noAssignInExpressions?: RuleConfiguration_for_Null;
1115
1177
  /**
1116
1178
  * Disallows using an async function as a Promise executor.
1117
1179
  */
1118
- noAsyncPromiseExecutor?: RuleConfiguration;
1180
+ noAsyncPromiseExecutor?: RuleConfiguration_for_Null;
1119
1181
  /**
1120
1182
  * Disallow reassigning exceptions in catch clauses.
1121
1183
  */
1122
- noCatchAssign?: RuleConfiguration;
1184
+ noCatchAssign?: RuleConfiguration_for_Null;
1123
1185
  /**
1124
1186
  * Disallow reassigning class members.
1125
1187
  */
1126
- noClassAssign?: RuleConfiguration;
1188
+ noClassAssign?: RuleConfiguration_for_Null;
1127
1189
  /**
1128
1190
  * Prevent comments from being inserted as text nodes
1129
1191
  */
1130
- noCommentText?: RuleConfiguration;
1192
+ noCommentText?: RuleConfiguration_for_Null;
1131
1193
  /**
1132
1194
  * Disallow comparing against -0
1133
1195
  */
1134
- noCompareNegZero?: RuleConfiguration;
1196
+ noCompareNegZero?: RuleConfiguration_for_Null;
1135
1197
  /**
1136
1198
  * Disallow labeled statements that are not loops.
1137
1199
  */
1138
- noConfusingLabels?: RuleConfiguration;
1200
+ noConfusingLabels?: RuleConfiguration_for_Null;
1139
1201
  /**
1140
1202
  * Disallow void type outside of generic or return types.
1141
1203
  */
1142
- noConfusingVoidType?: RuleConfiguration;
1204
+ noConfusingVoidType?: RuleConfiguration_for_Null;
1143
1205
  /**
1144
1206
  * Disallow the use of console.log
1145
1207
  */
1146
- noConsoleLog?: RuleConfiguration;
1208
+ noConsoleLog?: RuleConfiguration_for_Null;
1147
1209
  /**
1148
1210
  * Disallow TypeScript const enum
1149
1211
  */
1150
- noConstEnum?: RuleConfiguration;
1212
+ noConstEnum?: RuleConfiguration_for_Null;
1151
1213
  /**
1152
1214
  * Prevents from having control characters and some escape sequences that match control characters in regular expressions.
1153
1215
  */
1154
- noControlCharactersInRegex?: RuleConfiguration;
1216
+ noControlCharactersInRegex?: RuleConfiguration_for_Null;
1155
1217
  /**
1156
1218
  * Disallow the use of debugger
1157
1219
  */
1158
- noDebugger?: RuleConfiguration;
1220
+ noDebugger?: RuleConfiguration_for_Null;
1159
1221
  /**
1160
1222
  * Require the use of === and !==
1161
1223
  */
1162
- noDoubleEquals?: RuleConfiguration;
1224
+ noDoubleEquals?: RuleConfiguration_for_Null;
1163
1225
  /**
1164
1226
  * Disallow duplicate case labels.
1165
1227
  */
1166
- noDuplicateCase?: RuleConfiguration;
1228
+ noDuplicateCase?: RuleConfiguration_for_Null;
1167
1229
  /**
1168
1230
  * Disallow duplicate class members.
1169
1231
  */
1170
- noDuplicateClassMembers?: RuleConfiguration;
1232
+ noDuplicateClassMembers?: RuleConfiguration_for_Null;
1171
1233
  /**
1172
1234
  * Prevents JSX properties to be assigned multiple times.
1173
1235
  */
1174
- noDuplicateJsxProps?: RuleConfiguration;
1236
+ noDuplicateJsxProps?: RuleConfiguration_for_Null;
1175
1237
  /**
1176
1238
  * Prevents object literals having more than one property declaration for the same name.
1177
1239
  */
1178
- noDuplicateObjectKeys?: RuleConfiguration;
1240
+ noDuplicateObjectKeys?: RuleConfiguration_for_Null;
1179
1241
  /**
1180
1242
  * Disallow duplicate function parameter name.
1181
1243
  */
1182
- noDuplicateParameters?: RuleConfiguration;
1244
+ noDuplicateParameters?: RuleConfiguration_for_Null;
1183
1245
  /**
1184
1246
  * Disallow the declaration of empty interfaces.
1185
1247
  */
1186
- noEmptyInterface?: RuleConfiguration;
1248
+ noEmptyInterface?: RuleConfiguration_for_Null;
1187
1249
  /**
1188
1250
  * Disallow the any type usage.
1189
1251
  */
1190
- noExplicitAny?: RuleConfiguration;
1252
+ noExplicitAny?: RuleConfiguration_for_Null;
1191
1253
  /**
1192
1254
  * Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
1193
1255
  */
1194
- noExtraNonNullAssertion?: RuleConfiguration;
1256
+ noExtraNonNullAssertion?: RuleConfiguration_for_Null;
1195
1257
  /**
1196
1258
  * Disallow fallthrough of switch clauses.
1197
1259
  */
1198
- noFallthroughSwitchClause?: RuleConfiguration;
1260
+ noFallthroughSwitchClause?: RuleConfiguration_for_Null;
1199
1261
  /**
1200
1262
  * Disallow reassigning function declarations.
1201
1263
  */
1202
- noFunctionAssign?: RuleConfiguration;
1264
+ noFunctionAssign?: RuleConfiguration_for_Null;
1203
1265
  /**
1204
1266
  * Use Number.isFinite instead of global isFinite.
1205
1267
  */
1206
- noGlobalIsFinite?: RuleConfiguration;
1268
+ noGlobalIsFinite?: RuleConfiguration_for_Null;
1207
1269
  /**
1208
1270
  * Use Number.isNaN instead of global isNaN.
1209
1271
  */
1210
- noGlobalIsNan?: RuleConfiguration;
1272
+ noGlobalIsNan?: RuleConfiguration_for_Null;
1211
1273
  /**
1212
1274
  * Disallow use of implicit any type on variable declarations.
1213
1275
  */
1214
- noImplicitAnyLet?: RuleConfiguration;
1276
+ noImplicitAnyLet?: RuleConfiguration_for_Null;
1215
1277
  /**
1216
1278
  * Disallow assigning to imported bindings
1217
1279
  */
1218
- noImportAssign?: RuleConfiguration;
1280
+ noImportAssign?: RuleConfiguration_for_Null;
1219
1281
  /**
1220
1282
  * Disallow labels that share a name with a variable
1221
1283
  */
1222
- noLabelVar?: RuleConfiguration;
1284
+ noLabelVar?: RuleConfiguration_for_Null;
1223
1285
  /**
1224
1286
  * Enforce proper usage of new and constructor.
1225
1287
  */
1226
- noMisleadingInstantiator?: RuleConfiguration;
1288
+ noMisleadingInstantiator?: RuleConfiguration_for_Null;
1227
1289
  /**
1228
1290
  * Disallow shorthand assign when variable appears on both sides.
1229
1291
  */
1230
- noMisrefactoredShorthandAssign?: RuleConfiguration;
1292
+ noMisrefactoredShorthandAssign?: RuleConfiguration_for_Null;
1231
1293
  /**
1232
1294
  * Disallow direct use of Object.prototype builtins.
1233
1295
  */
1234
- noPrototypeBuiltins?: RuleConfiguration;
1296
+ noPrototypeBuiltins?: RuleConfiguration_for_Null;
1235
1297
  /**
1236
1298
  * Disallow variable, function, class, and type redeclarations in the same scope.
1237
1299
  */
1238
- noRedeclare?: RuleConfiguration;
1300
+ noRedeclare?: RuleConfiguration_for_Null;
1239
1301
  /**
1240
1302
  * Prevents from having redundant "use strict".
1241
1303
  */
1242
- noRedundantUseStrict?: RuleConfiguration;
1304
+ noRedundantUseStrict?: RuleConfiguration_for_Null;
1243
1305
  /**
1244
1306
  * Disallow comparisons where both sides are exactly the same.
1245
1307
  */
1246
- noSelfCompare?: RuleConfiguration;
1308
+ noSelfCompare?: RuleConfiguration_for_Null;
1247
1309
  /**
1248
1310
  * Disallow identifiers from shadowing restricted names.
1249
1311
  */
1250
- noShadowRestrictedNames?: RuleConfiguration;
1312
+ noShadowRestrictedNames?: RuleConfiguration_for_Null;
1251
1313
  /**
1252
1314
  * Disallow sparse arrays
1253
1315
  */
1254
- noSparseArray?: RuleConfiguration;
1316
+ noSparseArray?: RuleConfiguration_for_Null;
1255
1317
  /**
1256
1318
  * Disallow unsafe declaration merging between interfaces and classes.
1257
1319
  */
1258
- noUnsafeDeclarationMerging?: RuleConfiguration;
1320
+ noUnsafeDeclarationMerging?: RuleConfiguration_for_Null;
1259
1321
  /**
1260
1322
  * Disallow using unsafe negation.
1261
1323
  */
1262
- noUnsafeNegation?: RuleConfiguration;
1324
+ noUnsafeNegation?: RuleConfiguration_for_Null;
1263
1325
  /**
1264
1326
  * It enables the recommended rules for this group
1265
1327
  */
@@ -1267,25 +1329,29 @@ interface Suspicious {
1267
1329
  /**
1268
1330
  * Enforce default clauses in switch statements to be last
1269
1331
  */
1270
- useDefaultSwitchClauseLast?: RuleConfiguration;
1332
+ useDefaultSwitchClauseLast?: RuleConfiguration_for_Null;
1271
1333
  /**
1272
1334
  * Enforce get methods to always return a value.
1273
1335
  */
1274
- useGetterReturn?: RuleConfiguration;
1336
+ useGetterReturn?: RuleConfiguration_for_Null;
1275
1337
  /**
1276
1338
  * Use Array.isArray() instead of instanceof Array.
1277
1339
  */
1278
- useIsArray?: RuleConfiguration;
1340
+ useIsArray?: RuleConfiguration_for_Null;
1279
1341
  /**
1280
1342
  * Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
1281
1343
  */
1282
- useNamespaceKeyword?: RuleConfiguration;
1344
+ useNamespaceKeyword?: RuleConfiguration_for_Null;
1283
1345
  /**
1284
1346
  * This rule verifies the result of typeof $expr unary expressions is being compared to valid values, either string literals containing valid type names or other typeof expressions
1285
1347
  */
1286
- useValidTypeof?: RuleConfiguration;
1348
+ useValidTypeof?: RuleConfiguration_for_Null;
1287
1349
  }
1288
1350
  interface OverrideFormatterConfiguration {
1351
+ /**
1352
+ * The attribute position style.
1353
+ */
1354
+ attributePosition?: AttributePosition;
1289
1355
  enabled?: boolean;
1290
1356
  /**
1291
1357
  * Stores whether formatting should be allowed to proceed if a given file has syntax errors
@@ -1328,28 +1394,107 @@ interface OverrideOrganizeImportsConfiguration {
1328
1394
  */
1329
1395
  enabled?: boolean;
1330
1396
  }
1331
- type RuleConfiguration = RulePlainConfiguration | RuleWithOptions;
1397
+ type RuleConfiguration_for_Null =
1398
+ | RulePlainConfiguration
1399
+ | RuleWithOptions_for_Null;
1400
+ type RuleConfiguration_for_ValidAriaRoleOptions =
1401
+ | RulePlainConfiguration
1402
+ | RuleWithOptions_for_ValidAriaRoleOptions;
1403
+ type RuleConfiguration_for_ComplexityOptions =
1404
+ | RulePlainConfiguration
1405
+ | RuleWithOptions_for_ComplexityOptions;
1406
+ type RuleConfiguration_for_HooksOptions =
1407
+ | RulePlainConfiguration
1408
+ | RuleWithOptions_for_HooksOptions;
1409
+ type RuleConfiguration_for_DeprecatedHooksOptions =
1410
+ | RulePlainConfiguration
1411
+ | RuleWithOptions_for_DeprecatedHooksOptions;
1412
+ type RuleConfiguration_for_RestrictedImportsOptions =
1413
+ | RulePlainConfiguration
1414
+ | RuleWithOptions_for_RestrictedImportsOptions;
1415
+ type RuleConfiguration_for_ConsistentArrayTypeOptions =
1416
+ | RulePlainConfiguration
1417
+ | RuleWithOptions_for_ConsistentArrayTypeOptions;
1418
+ type RuleConfiguration_for_FilenamingConventionOptions =
1419
+ | RulePlainConfiguration
1420
+ | RuleWithOptions_for_FilenamingConventionOptions;
1421
+ type RuleConfiguration_for_UtilityClassSortingOptions =
1422
+ | RulePlainConfiguration
1423
+ | RuleWithOptions_for_UtilityClassSortingOptions;
1424
+ type RuleConfiguration_for_RestrictedGlobalsOptions =
1425
+ | RulePlainConfiguration
1426
+ | RuleWithOptions_for_RestrictedGlobalsOptions;
1427
+ type RuleConfiguration_for_NamingConventionOptions =
1428
+ | RulePlainConfiguration
1429
+ | RuleWithOptions_for_NamingConventionOptions;
1332
1430
  type RulePlainConfiguration = "warn" | "error" | "off";
1333
- interface RuleWithOptions {
1431
+ interface RuleWithOptions_for_Null {
1432
+ level: RulePlainConfiguration;
1433
+ options: null;
1434
+ }
1435
+ interface RuleWithOptions_for_ValidAriaRoleOptions {
1436
+ level: RulePlainConfiguration;
1437
+ options: ValidAriaRoleOptions;
1438
+ }
1439
+ interface RuleWithOptions_for_ComplexityOptions {
1440
+ level: RulePlainConfiguration;
1441
+ options: ComplexityOptions;
1442
+ }
1443
+ interface RuleWithOptions_for_HooksOptions {
1444
+ level: RulePlainConfiguration;
1445
+ options: HooksOptions;
1446
+ }
1447
+ interface RuleWithOptions_for_DeprecatedHooksOptions {
1448
+ level: RulePlainConfiguration;
1449
+ options: DeprecatedHooksOptions;
1450
+ }
1451
+ interface RuleWithOptions_for_RestrictedImportsOptions {
1334
1452
  level: RulePlainConfiguration;
1335
- options?: PossibleOptions;
1336
- }
1337
- type PossibleOptions =
1338
- | ComplexityOptions
1339
- | ConsistentArrayTypeOptions
1340
- | FilenamingConventionOptions
1341
- | HooksOptions
1342
- | DeprecatedHooksOptions
1343
- | NamingConventionOptions
1344
- | RestrictedGlobalsOptions
1345
- | ValidAriaRoleOptions
1346
- | UtilityClassSortingOptions;
1453
+ options: RestrictedImportsOptions;
1454
+ }
1455
+ interface RuleWithOptions_for_ConsistentArrayTypeOptions {
1456
+ level: RulePlainConfiguration;
1457
+ options: ConsistentArrayTypeOptions;
1458
+ }
1459
+ interface RuleWithOptions_for_FilenamingConventionOptions {
1460
+ level: RulePlainConfiguration;
1461
+ options: FilenamingConventionOptions;
1462
+ }
1463
+ interface RuleWithOptions_for_UtilityClassSortingOptions {
1464
+ level: RulePlainConfiguration;
1465
+ options: UtilityClassSortingOptions;
1466
+ }
1467
+ interface RuleWithOptions_for_RestrictedGlobalsOptions {
1468
+ level: RulePlainConfiguration;
1469
+ options: RestrictedGlobalsOptions;
1470
+ }
1471
+ interface RuleWithOptions_for_NamingConventionOptions {
1472
+ level: RulePlainConfiguration;
1473
+ options: NamingConventionOptions;
1474
+ }
1475
+ interface ValidAriaRoleOptions {
1476
+ allowInvalidRoles: string[];
1477
+ ignoreNonDom: boolean;
1478
+ }
1347
1479
  interface ComplexityOptions {
1348
1480
  /**
1349
1481
  * The maximum complexity score that we allow. Anything higher is considered excessive.
1350
1482
  */
1351
1483
  maxAllowedComplexity: number;
1352
1484
  }
1485
+ interface HooksOptions {
1486
+ /**
1487
+ * List of safe hooks
1488
+ */
1489
+ hooks: Hooks[];
1490
+ }
1491
+ interface DeprecatedHooksOptions {}
1492
+ interface RestrictedImportsOptions {
1493
+ /**
1494
+ * A list of names that should trigger the rule
1495
+ */
1496
+ paths: {};
1497
+ }
1353
1498
  interface ConsistentArrayTypeOptions {
1354
1499
  syntax: ConsistentArrayType;
1355
1500
  }
@@ -1359,26 +1504,23 @@ interface FilenamingConventionOptions {
1359
1504
  */
1360
1505
  filenameCases: FilenameCases;
1361
1506
  /**
1362
- * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1507
+ * If `false`, then non-ASCII characters are allowed.
1363
1508
  */
1364
- strictCase: boolean;
1365
- }
1366
- interface HooksOptions {
1509
+ requireAscii: boolean;
1367
1510
  /**
1368
- * List of safe hooks
1511
+ * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1369
1512
  */
1370
- hooks: Hooks[];
1513
+ strictCase: boolean;
1371
1514
  }
1372
- interface DeprecatedHooksOptions {}
1373
- interface NamingConventionOptions {
1515
+ interface UtilityClassSortingOptions {
1374
1516
  /**
1375
- * Allowed cases for _TypeScript_ `enum` member names.
1517
+ * Additional attributes that will be sorted.
1376
1518
  */
1377
- enumMemberCase: EnumMemberCase;
1519
+ attributes?: string[];
1378
1520
  /**
1379
- * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1521
+ * Names of the functions or tagged templates that will be sorted.
1380
1522
  */
1381
- strictCase: boolean;
1523
+ functions?: string[];
1382
1524
  }
1383
1525
  interface RestrictedGlobalsOptions {
1384
1526
  /**
@@ -1386,22 +1528,20 @@ interface RestrictedGlobalsOptions {
1386
1528
  */
1387
1529
  deniedGlobals: string[];
1388
1530
  }
1389
- interface ValidAriaRoleOptions {
1390
- allowInvalidRoles: string[];
1391
- ignoreNonDom: boolean;
1392
- }
1393
- interface UtilityClassSortingOptions {
1531
+ interface NamingConventionOptions {
1394
1532
  /**
1395
- * Additional attributes that will be sorted.
1533
+ * Allowed cases for _TypeScript_ `enum` member names.
1396
1534
  */
1397
- attributes?: string[];
1535
+ enumMemberCase: EnumMemberCase;
1398
1536
  /**
1399
- * Names of the functions or tagged templates that will be sorted.
1537
+ * If `false`, then non-ASCII characters are allowed.
1400
1538
  */
1401
- functions?: string[];
1539
+ requireAscii: boolean;
1540
+ /**
1541
+ * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1542
+ */
1543
+ strictCase: boolean;
1402
1544
  }
1403
- type ConsistentArrayType = "shorthand" | "generic";
1404
- type FilenameCases = FilenameCase[];
1405
1545
  interface Hooks {
1406
1546
  /**
1407
1547
  * The "position" of the closure function, starting from zero.
@@ -1418,6 +1558,8 @@ interface Hooks {
1418
1558
  */
1419
1559
  name: string;
1420
1560
  }
1561
+ type ConsistentArrayType = "shorthand" | "generic";
1562
+ type FilenameCases = FilenameCase[];
1421
1563
  type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1422
1564
  type FilenameCase =
1423
1565
  | "camelCase"
@@ -1425,61 +1567,85 @@ type FilenameCase =
1425
1567
  | "kebab-case"
1426
1568
  | "PascalCase"
1427
1569
  | "snake_case";
1428
- interface ProjectFeaturesParams {
1429
- manifest_path: RomePath;
1570
+ interface UpdateProjectParams {
1571
+ path: BiomePath;
1572
+ }
1573
+ interface OpenProjectParams {
1574
+ content: string;
1575
+ path: BiomePath;
1576
+ version: number;
1430
1577
  }
1431
- interface ProjectFeaturesResult {}
1432
1578
  interface OpenFileParams {
1433
1579
  content: string;
1434
- language_hint?: Language;
1435
- path: RomePath;
1580
+ document_file_source?: DocumentFileSource;
1581
+ path: BiomePath;
1436
1582
  version: number;
1437
1583
  }
1438
- type Language =
1439
- | "JavaScript"
1440
- | "JavaScriptReact"
1441
- | "TypeScript"
1442
- | "TypeScriptReact"
1443
- | "Json"
1444
- | "Jsonc"
1445
- | "Css"
1446
- | "Unknown";
1584
+ type DocumentFileSource =
1585
+ | "Unknown"
1586
+ | { Js: JsFileSource }
1587
+ | { Json: JsonFileSource }
1588
+ | { Css: CssFileSource };
1589
+ interface JsFileSource {
1590
+ /**
1591
+ * Used to mark if the source is being used for an Astro, Svelte or Vue file
1592
+ */
1593
+ embedding_kind: EmbeddingKind;
1594
+ language: Language;
1595
+ module_kind: ModuleKind;
1596
+ variant: LanguageVariant;
1597
+ version: LanguageVersion;
1598
+ }
1599
+ interface JsonFileSource {
1600
+ allow_trailing_comma: boolean;
1601
+ variant: JsonVariant;
1602
+ }
1603
+ interface CssFileSource {
1604
+ variant: CssVariant;
1605
+ }
1606
+ type EmbeddingKind = "Astro" | "Vue" | "Svelte" | "None";
1607
+ type Language = "JavaScript" | { TypeScript: { definition_file: boolean } };
1608
+ type ModuleKind = "Script" | "Module";
1609
+ type LanguageVariant = "Standard" | "StandardRestricted" | "Jsx";
1610
+ type LanguageVersion = "ES2022" | "ESNext";
1611
+ type JsonVariant = "Standard" | "Jsonc";
1612
+ type CssVariant = "Standard";
1447
1613
  interface ChangeFileParams {
1448
1614
  content: string;
1449
- path: RomePath;
1615
+ path: BiomePath;
1450
1616
  version: number;
1451
1617
  }
1452
1618
  interface CloseFileParams {
1453
- path: RomePath;
1619
+ path: BiomePath;
1454
1620
  }
1455
1621
  interface GetSyntaxTreeParams {
1456
- path: RomePath;
1622
+ path: BiomePath;
1457
1623
  }
1458
1624
  interface GetSyntaxTreeResult {
1459
1625
  ast: string;
1460
1626
  cst: string;
1461
1627
  }
1462
1628
  interface OrganizeImportsParams {
1463
- path: RomePath;
1629
+ path: BiomePath;
1464
1630
  }
1465
1631
  interface OrganizeImportsResult {
1466
1632
  code: string;
1467
1633
  }
1468
1634
  interface GetFileContentParams {
1469
- path: RomePath;
1635
+ path: BiomePath;
1470
1636
  }
1471
1637
  interface GetControlFlowGraphParams {
1472
1638
  cursor: TextSize;
1473
- path: RomePath;
1639
+ path: BiomePath;
1474
1640
  }
1475
1641
  type TextSize = number;
1476
1642
  interface GetFormatterIRParams {
1477
- path: RomePath;
1643
+ path: BiomePath;
1478
1644
  }
1479
1645
  interface PullDiagnosticsParams {
1480
1646
  categories: RuleCategories;
1481
1647
  max_diagnostics: number;
1482
- path: RomePath;
1648
+ path: BiomePath;
1483
1649
  }
1484
1650
  type RuleCategories = RuleCategory[];
1485
1651
  type RuleCategory = "Syntax" | "Lint" | "Action" | "Transformation";
@@ -1592,18 +1758,28 @@ type Category =
1592
1758
  | "lint/correctness/useValidForDirection"
1593
1759
  | "lint/correctness/useYield"
1594
1760
  | "lint/nursery/noApproximativeNumericConstant"
1761
+ | "lint/nursery/noBarrelFile"
1762
+ | "lint/nursery/noConsole"
1595
1763
  | "lint/nursery/noDuplicateJsonKeys"
1764
+ | "lint/nursery/noDuplicateTestHooks"
1596
1765
  | "lint/nursery/noEmptyBlockStatements"
1597
1766
  | "lint/nursery/noEmptyTypeParameters"
1767
+ | "lint/nursery/noExcessiveNestedTestSuites"
1768
+ | "lint/nursery/noExportsInTest"
1598
1769
  | "lint/nursery/noFocusedTests"
1599
1770
  | "lint/nursery/noGlobalAssign"
1600
1771
  | "lint/nursery/noGlobalEval"
1601
1772
  | "lint/nursery/noInvalidUseBeforeDeclaration"
1602
1773
  | "lint/nursery/noMisleadingCharacterClass"
1774
+ | "lint/nursery/noNamespaceImport"
1603
1775
  | "lint/nursery/noNodejsModules"
1776
+ | "lint/nursery/noReExportAll"
1777
+ | "lint/nursery/noRestrictedImports"
1778
+ | "lint/nursery/noSemicolonInJsx"
1604
1779
  | "lint/nursery/noSkippedTests"
1605
1780
  | "lint/nursery/noThenProperty"
1606
1781
  | "lint/nursery/noTypeOnlyImportAttributes"
1782
+ | "lint/nursery/noUndeclaredDependencies"
1607
1783
  | "lint/nursery/noUnusedImports"
1608
1784
  | "lint/nursery/noUnusedPrivateClassMembers"
1609
1785
  | "lint/nursery/noUselessLoneBlockStatements"
@@ -1617,6 +1793,8 @@ type Category =
1617
1793
  | "lint/nursery/useGroupedTypeImport"
1618
1794
  | "lint/nursery/useImportRestrictions"
1619
1795
  | "lint/nursery/useImportType"
1796
+ | "lint/nursery/useJsxKeyInIterable"
1797
+ | "lint/nursery/useNodeAssertStrict"
1620
1798
  | "lint/nursery/useNodejsImportProtocol"
1621
1799
  | "lint/nursery/useNumberNamespace"
1622
1800
  | "lint/nursery/useShorthandFunctionType"
@@ -1799,7 +1977,7 @@ interface BacktraceSymbol {
1799
1977
  name?: string;
1800
1978
  }
1801
1979
  interface PullActionsParams {
1802
- path: RomePath;
1980
+ path: BiomePath;
1803
1981
  range: TextRange;
1804
1982
  }
1805
1983
  interface PullActionsResult {
@@ -1835,7 +2013,7 @@ type SourceActionKind =
1835
2013
  | { Other: string };
1836
2014
  type Applicability = "Always" | "MaybeIncorrect";
1837
2015
  interface FormatFileParams {
1838
- path: RomePath;
2016
+ path: BiomePath;
1839
2017
  }
1840
2018
  interface Printed {
1841
2019
  code: string;
@@ -1854,16 +2032,16 @@ interface SourceMarker {
1854
2032
  source: TextSize;
1855
2033
  }
1856
2034
  interface FormatRangeParams {
1857
- path: RomePath;
2035
+ path: BiomePath;
1858
2036
  range: TextRange;
1859
2037
  }
1860
2038
  interface FormatOnTypeParams {
1861
2039
  offset: TextSize;
1862
- path: RomePath;
2040
+ path: BiomePath;
1863
2041
  }
1864
2042
  interface FixFileParams {
1865
2043
  fix_file_mode: FixFileMode;
1866
- path: RomePath;
2044
+ path: BiomePath;
1867
2045
  should_format: boolean;
1868
2046
  }
1869
2047
  type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes";
@@ -1897,7 +2075,7 @@ interface FixAction {
1897
2075
  }
1898
2076
  interface RenameParams {
1899
2077
  new_name: string;
1900
- path: RomePath;
2078
+ path: BiomePath;
1901
2079
  symbol_at: TextSize;
1902
2080
  }
1903
2081
  interface RenameResult {