@biomejs/wasm-nodejs 1.7.2 → 1.7.4-nightly.125f34b

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
@@ -74,11 +74,15 @@ interface PartialConfiguration {
74
74
  }
75
75
  interface PartialCssConfiguration {
76
76
  /**
77
- * Formatting options
77
+ * CSS formatter options
78
78
  */
79
79
  formatter?: PartialCssFormatter;
80
80
  /**
81
- * Parsing options
81
+ * CSS linter options
82
+ */
83
+ linter?: PartialCssLinter;
84
+ /**
85
+ * CSS parsing options
82
86
  */
83
87
  parser?: PartialCssParser;
84
88
  }
@@ -155,6 +159,10 @@ If defined here, they should not emit diagnostics.
155
159
  * Indicates the type of runtime or transformation used for interpreting JSX.
156
160
  */
157
161
  jsxRuntime?: JsxRuntime;
162
+ /**
163
+ * Linter options
164
+ */
165
+ linter?: PartialJavascriptLinter;
158
166
  organizeImports?: PartialJavascriptOrganizeImports;
159
167
  /**
160
168
  * Parsing options
@@ -166,6 +174,10 @@ interface PartialJsonConfiguration {
166
174
  * Formatting options
167
175
  */
168
176
  formatter?: PartialJsonFormatter;
177
+ /**
178
+ * Linting options
179
+ */
180
+ linter?: PartialJsonLinter;
169
181
  /**
170
182
  * Parsing options
171
183
  */
@@ -233,10 +245,6 @@ interface PartialCssFormatter {
233
245
  * Control the formatter for CSS (and its super languages) files.
234
246
  */
235
247
  enabled?: boolean;
236
- /**
237
- * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
238
- */
239
- indentSize?: number;
240
248
  /**
241
249
  * The indent style applied to CSS (and its super languages) files.
242
250
  */
@@ -253,8 +261,17 @@ interface PartialCssFormatter {
253
261
  * What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
254
262
  */
255
263
  lineWidth?: LineWidth;
264
+ /**
265
+ * The type of quotes used in CSS code. Defaults to double.
266
+ */
256
267
  quoteStyle?: QuoteStyle;
257
268
  }
269
+ interface PartialCssLinter {
270
+ /**
271
+ * Control the linter for CSS (and its super languages) files.
272
+ */
273
+ enabled?: boolean;
274
+ }
258
275
  interface PartialCssParser {
259
276
  /**
260
277
  * Allow comments to appear on incorrect lines in `.css` files
@@ -325,9 +342,19 @@ interface PartialJavascriptFormatter {
325
342
  /**
326
343
  * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
327
344
  */
328
- trailingComma?: TrailingComma;
345
+ trailingComma?: TrailingCommas;
346
+ /**
347
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
348
+ */
349
+ trailingCommas?: TrailingCommas;
329
350
  }
330
351
  type JsxRuntime = "transparent" | "reactClassic";
352
+ interface PartialJavascriptLinter {
353
+ /**
354
+ * Control the linter for JavaScript (and its super languages) files.
355
+ */
356
+ enabled?: boolean;
357
+ }
331
358
  interface PartialJavascriptOrganizeImports {}
332
359
  interface PartialJavascriptParser {
333
360
  /**
@@ -365,7 +392,13 @@ interface PartialJsonFormatter {
365
392
  /**
366
393
  * Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "none".
367
394
  */
368
- trailingCommas?: TrailingCommas;
395
+ trailingCommas?: TrailingCommas2;
396
+ }
397
+ interface PartialJsonLinter {
398
+ /**
399
+ * Control the linter for JSON (and its super languages) files.
400
+ */
401
+ enabled?: boolean;
369
402
  }
370
403
  interface PartialJsonParser {
371
404
  /**
@@ -434,8 +467,8 @@ type QuoteStyle = "double" | "single";
434
467
  type ArrowParentheses = "always" | "asNeeded";
435
468
  type QuoteProperties = "asNeeded" | "preserve";
436
469
  type Semicolons = "always" | "asNeeded";
437
- type TrailingComma = "all" | "es5" | "none";
438
- type TrailingCommas = "none" | "all";
470
+ type TrailingCommas = "all" | "es5" | "none";
471
+ type TrailingCommas2 = "none" | "all";
439
472
  interface A11y {
440
473
  /**
441
474
  * It enables ALL rules for this group.
@@ -444,47 +477,47 @@ interface A11y {
444
477
  /**
445
478
  * Enforce that the accessKey attribute is not used on any HTML element.
446
479
  */
447
- noAccessKey?: RuleConfiguration_for_Null;
480
+ noAccessKey?: RuleFixConfiguration_for_Null;
448
481
  /**
449
482
  * Enforce that aria-hidden="true" is not set on focusable elements.
450
483
  */
451
- noAriaHiddenOnFocusable?: RuleConfiguration_for_Null;
484
+ noAriaHiddenOnFocusable?: RuleFixConfiguration_for_Null;
452
485
  /**
453
486
  * Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
454
487
  */
455
- noAriaUnsupportedElements?: RuleConfiguration_for_Null;
488
+ noAriaUnsupportedElements?: RuleFixConfiguration_for_Null;
456
489
  /**
457
490
  * Enforce that autoFocus prop is not used on elements.
458
491
  */
459
- noAutofocus?: RuleConfiguration_for_Null;
492
+ noAutofocus?: RuleFixConfiguration_for_Null;
460
493
  /**
461
494
  * Disallow target="_blank" attribute without rel="noreferrer"
462
495
  */
463
- noBlankTarget?: RuleConfiguration_for_Null;
496
+ noBlankTarget?: RuleFixConfiguration_for_Null;
464
497
  /**
465
498
  * Enforces that no distracting elements are used.
466
499
  */
467
- noDistractingElements?: RuleConfiguration_for_Null;
500
+ noDistractingElements?: RuleFixConfiguration_for_Null;
468
501
  /**
469
502
  * The scope prop should be used only on \<th> elements.
470
503
  */
471
- noHeaderScope?: RuleConfiguration_for_Null;
504
+ noHeaderScope?: RuleFixConfiguration_for_Null;
472
505
  /**
473
506
  * Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
474
507
  */
475
- noInteractiveElementToNoninteractiveRole?: RuleConfiguration_for_Null;
508
+ noInteractiveElementToNoninteractiveRole?: RuleFixConfiguration_for_Null;
476
509
  /**
477
510
  * Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
478
511
  */
479
- noNoninteractiveElementToInteractiveRole?: RuleConfiguration_for_Null;
512
+ noNoninteractiveElementToInteractiveRole?: RuleFixConfiguration_for_Null;
480
513
  /**
481
514
  * Enforce that tabIndex is not assigned to non-interactive HTML elements.
482
515
  */
483
- noNoninteractiveTabindex?: RuleConfiguration_for_Null;
516
+ noNoninteractiveTabindex?: RuleFixConfiguration_for_Null;
484
517
  /**
485
518
  * Prevent the usage of positive integers on tabIndex property
486
519
  */
487
- noPositiveTabindex?: RuleConfiguration_for_Null;
520
+ noPositiveTabindex?: RuleFixConfiguration_for_Null;
488
521
  /**
489
522
  * Enforce img alt prop does not contain the word "image", "picture", or "photo".
490
523
  */
@@ -492,7 +525,7 @@ interface A11y {
492
525
  /**
493
526
  * Enforce explicit role property is not the same as implicit/default role property on an element.
494
527
  */
495
- noRedundantRoles?: RuleConfiguration_for_Null;
528
+ noRedundantRoles?: RuleFixConfiguration_for_Null;
496
529
  /**
497
530
  * Enforces the usage of the title element for the svg element.
498
531
  */
@@ -508,11 +541,11 @@ interface A11y {
508
541
  /**
509
542
  * Enforce that anchors have content and that the content is accessible to screen readers.
510
543
  */
511
- useAnchorContent?: RuleConfiguration_for_Null;
544
+ useAnchorContent?: RuleFixConfiguration_for_Null;
512
545
  /**
513
546
  * Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
514
547
  */
515
- useAriaActivedescendantWithTabindex?: RuleConfiguration_for_Null;
548
+ useAriaActivedescendantWithTabindex?: RuleFixConfiguration_for_Null;
516
549
  /**
517
550
  * Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
518
551
  */
@@ -552,11 +585,11 @@ interface A11y {
552
585
  /**
553
586
  * Ensures that ARIA properties aria-* are all valid.
554
587
  */
555
- useValidAriaProps?: RuleConfiguration_for_Null;
588
+ useValidAriaProps?: RuleFixConfiguration_for_Null;
556
589
  /**
557
590
  * Elements with ARIA roles must use a valid, non-abstract ARIA role.
558
591
  */
559
- useValidAriaRole?: RuleConfiguration_for_ValidAriaRoleOptions;
592
+ useValidAriaRole?: RuleFixConfiguration_for_ValidAriaRoleOptions;
560
593
  /**
561
594
  * Enforce that ARIA state and property values are valid.
562
595
  */
@@ -574,7 +607,7 @@ interface Complexity {
574
607
  /**
575
608
  * Disallow primitive type aliases and misleading types.
576
609
  */
577
- noBannedTypes?: RuleConfiguration_for_Null;
610
+ noBannedTypes?: RuleFixConfiguration_for_Null;
578
611
  /**
579
612
  * Disallow empty type parameters in type aliases and interfaces.
580
613
  */
@@ -590,7 +623,7 @@ interface Complexity {
590
623
  /**
591
624
  * Disallow unnecessary boolean casts
592
625
  */
593
- noExtraBooleanCast?: RuleConfiguration_for_Null;
626
+ noExtraBooleanCast?: RuleFixConfiguration_for_Null;
594
627
  /**
595
628
  * Prefer for...of statement instead of Array.forEach.
596
629
  */
@@ -598,7 +631,7 @@ interface Complexity {
598
631
  /**
599
632
  * Disallow unclear usage of consecutive space characters in regular expression literals
600
633
  */
601
- noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration_for_Null;
634
+ noMultipleSpacesInRegularExpressionLiterals?: RuleFixConfiguration_for_Null;
602
635
  /**
603
636
  * This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
604
637
  */
@@ -606,7 +639,7 @@ interface Complexity {
606
639
  /**
607
640
  * Disallow this and super in static contexts.
608
641
  */
609
- noThisInStatic?: RuleConfiguration_for_Null;
642
+ noThisInStatic?: RuleFixConfiguration_for_Null;
610
643
  /**
611
644
  * Disallow unnecessary catch clauses.
612
645
  */
@@ -614,43 +647,43 @@ interface Complexity {
614
647
  /**
615
648
  * Disallow unnecessary constructors.
616
649
  */
617
- noUselessConstructor?: RuleConfiguration_for_Null;
650
+ noUselessConstructor?: RuleFixConfiguration_for_Null;
618
651
  /**
619
652
  * Disallow empty exports that don't change anything in a module file.
620
653
  */
621
- noUselessEmptyExport?: RuleConfiguration_for_Null;
654
+ noUselessEmptyExport?: RuleFixConfiguration_for_Null;
622
655
  /**
623
656
  * Disallow unnecessary fragments
624
657
  */
625
- noUselessFragments?: RuleConfiguration_for_Null;
658
+ noUselessFragments?: RuleFixConfiguration_for_Null;
626
659
  /**
627
660
  * Disallow unnecessary labels.
628
661
  */
629
- noUselessLabel?: RuleConfiguration_for_Null;
662
+ noUselessLabel?: RuleFixConfiguration_for_Null;
630
663
  /**
631
664
  * Disallow unnecessary nested block statements.
632
665
  */
633
- noUselessLoneBlockStatements?: RuleConfiguration_for_Null;
666
+ noUselessLoneBlockStatements?: RuleFixConfiguration_for_Null;
634
667
  /**
635
668
  * Disallow renaming import, export, and destructured assignments to the same name.
636
669
  */
637
- noUselessRename?: RuleConfiguration_for_Null;
670
+ noUselessRename?: RuleFixConfiguration_for_Null;
638
671
  /**
639
672
  * Disallow useless case in switch statements.
640
673
  */
641
- noUselessSwitchCase?: RuleConfiguration_for_Null;
674
+ noUselessSwitchCase?: RuleFixConfiguration_for_Null;
642
675
  /**
643
676
  * Disallow ternary operators when simpler alternatives exist.
644
677
  */
645
- noUselessTernary?: RuleConfiguration_for_Null;
678
+ noUselessTernary?: RuleFixConfiguration_for_Null;
646
679
  /**
647
680
  * Disallow useless this aliasing.
648
681
  */
649
- noUselessThisAlias?: RuleConfiguration_for_Null;
682
+ noUselessThisAlias?: RuleFixConfiguration_for_Null;
650
683
  /**
651
684
  * Disallow using any or unknown as type constraint.
652
685
  */
653
- noUselessTypeConstraint?: RuleConfiguration_for_Null;
686
+ noUselessTypeConstraint?: RuleFixConfiguration_for_Null;
654
687
  /**
655
688
  * Disallow the use of void operators, which is not a familiar operator.
656
689
  */
@@ -666,31 +699,31 @@ interface Complexity {
666
699
  /**
667
700
  * Use arrow functions over function expressions.
668
701
  */
669
- useArrowFunction?: RuleConfiguration_for_Null;
702
+ useArrowFunction?: RuleFixConfiguration_for_Null;
670
703
  /**
671
704
  * Promotes the use of .flatMap() when map().flat() are used together.
672
705
  */
673
- useFlatMap?: RuleConfiguration_for_Null;
706
+ useFlatMap?: RuleFixConfiguration_for_Null;
674
707
  /**
675
708
  * Enforce the usage of a literal access to properties over computed property access.
676
709
  */
677
- useLiteralKeys?: RuleConfiguration_for_Null;
710
+ useLiteralKeys?: RuleFixConfiguration_for_Null;
678
711
  /**
679
712
  * Enforce using concise optional chain instead of chained logical expressions.
680
713
  */
681
- useOptionalChain?: RuleConfiguration_for_Null;
714
+ useOptionalChain?: RuleFixConfiguration_for_Null;
682
715
  /**
683
716
  * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
684
717
  */
685
- useRegexLiterals?: RuleConfiguration_for_Null;
718
+ useRegexLiterals?: RuleFixConfiguration_for_Null;
686
719
  /**
687
720
  * Disallow number literal object member names which are not base10 or uses underscore as separator
688
721
  */
689
- useSimpleNumberKeys?: RuleConfiguration_for_Null;
722
+ useSimpleNumberKeys?: RuleFixConfiguration_for_Null;
690
723
  /**
691
724
  * Discard redundant terms from logical expressions.
692
725
  */
693
- useSimplifiedLogicExpression?: RuleConfiguration_for_Null;
726
+ useSimplifiedLogicExpression?: RuleFixConfiguration_for_Null;
694
727
  }
695
728
  interface Correctness {
696
729
  /**
@@ -704,7 +737,7 @@ interface Correctness {
704
737
  /**
705
738
  * Prevents from having const variables being re-assigned.
706
739
  */
707
- noConstAssign?: RuleConfiguration_for_Null;
740
+ noConstAssign?: RuleFixConfiguration_for_Null;
708
741
  /**
709
742
  * Disallow constant expressions in conditions
710
743
  */
@@ -736,7 +769,7 @@ interface Correctness {
736
769
  /**
737
770
  * Disallow new operators with global non-constructor functions.
738
771
  */
739
- noInvalidNewBuiltin?: RuleConfiguration_for_Null;
772
+ noInvalidNewBuiltin?: RuleFixConfiguration_for_Null;
740
773
  /**
741
774
  * Disallow the use of variables and function parameters before their declaration
742
775
  */
@@ -744,11 +777,11 @@ interface Correctness {
744
777
  /**
745
778
  * Disallow new operators with the Symbol object.
746
779
  */
747
- noNewSymbol?: RuleConfiguration_for_Null;
780
+ noNewSymbol?: RuleFixConfiguration_for_Null;
748
781
  /**
749
782
  * Disallow \8 and \9 escape sequences in string literals.
750
783
  */
751
- noNonoctalDecimalEscape?: RuleConfiguration_for_Null;
784
+ noNonoctalDecimalEscape?: RuleFixConfiguration_for_Null;
752
785
  /**
753
786
  * Disallow literal numbers that lose precision
754
787
  */
@@ -768,11 +801,11 @@ interface Correctness {
768
801
  /**
769
802
  * Disallow comparison of expressions modifying the string case with non-compliant value.
770
803
  */
771
- noStringCaseMismatch?: RuleConfiguration_for_Null;
804
+ noStringCaseMismatch?: RuleFixConfiguration_for_Null;
772
805
  /**
773
806
  * Disallow lexical declarations in switch clauses.
774
807
  */
775
- noSwitchDeclarations?: RuleConfiguration_for_Null;
808
+ noSwitchDeclarations?: RuleFixConfiguration_for_Null;
776
809
  /**
777
810
  * Prevents the usage of variables that haven't been declared inside the document.
778
811
  */
@@ -780,7 +813,7 @@ interface Correctness {
780
813
  /**
781
814
  * Avoid using unnecessary continue.
782
815
  */
783
- noUnnecessaryContinue?: RuleConfiguration_for_Null;
816
+ noUnnecessaryContinue?: RuleFixConfiguration_for_Null;
784
817
  /**
785
818
  * Disallow unreachable code
786
819
  */
@@ -800,23 +833,23 @@ interface Correctness {
800
833
  /**
801
834
  * Disallow unused imports.
802
835
  */
803
- noUnusedImports?: RuleConfiguration_for_Null;
836
+ noUnusedImports?: RuleFixConfiguration_for_Null;
804
837
  /**
805
838
  * Disallow unused labels.
806
839
  */
807
- noUnusedLabels?: RuleConfiguration_for_Null;
840
+ noUnusedLabels?: RuleFixConfiguration_for_Null;
808
841
  /**
809
842
  * Disallow unused private class members
810
843
  */
811
- noUnusedPrivateClassMembers?: RuleConfiguration_for_Null;
844
+ noUnusedPrivateClassMembers?: RuleFixConfiguration_for_Null;
812
845
  /**
813
846
  * Disallow unused variables.
814
847
  */
815
- noUnusedVariables?: RuleConfiguration_for_Null;
848
+ noUnusedVariables?: RuleFixConfiguration_for_Null;
816
849
  /**
817
850
  * This rules prevents void elements (AKA self-closing elements) from having children.
818
851
  */
819
- noVoidElementsWithChildren?: RuleConfiguration_for_Null;
852
+ noVoidElementsWithChildren?: RuleFixConfiguration_for_Null;
820
853
  /**
821
854
  * Disallow returning a value from a function with the return type 'void'
822
855
  */
@@ -836,7 +869,7 @@ interface Correctness {
836
869
  /**
837
870
  * Require calls to isNaN() when checking for NaN.
838
871
  */
839
- useIsNan?: RuleConfiguration_for_Null;
872
+ useIsNan?: RuleFixConfiguration_for_Null;
840
873
  /**
841
874
  * Disallow missing key props in iterators/collection literals.
842
875
  */
@@ -855,26 +888,22 @@ interface Nursery {
855
888
  * It enables ALL rules for this group.
856
889
  */
857
890
  all?: boolean;
858
- /**
859
- * WIP: This rule hasn't been implemented yet.
860
- */
861
- noColorInvalidHex?: RuleConfiguration_for_Null;
862
891
  /**
863
892
  * Disallow the use of console.
864
893
  */
865
- noConsole?: RuleConfiguration_for_Null;
894
+ noConsole?: RuleFixConfiguration_for_Null;
866
895
  /**
867
896
  * Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
868
897
  */
869
- noConstantMathMinMaxClamp?: RuleConfiguration_for_Null;
870
- /**
871
- * Disallow CSS empty blocks.
872
- */
873
- noCssEmptyBlock?: RuleConfiguration_for_NoCssEmptyBlockOptions;
898
+ noConstantMathMinMaxClamp?: RuleFixConfiguration_for_Null;
874
899
  /**
875
900
  * Disallow using a callback in asynchronous tests and hooks.
876
901
  */
877
902
  noDoneCallback?: RuleConfiguration_for_Null;
903
+ /**
904
+ * Disallow duplicate @import rules.
905
+ */
906
+ noDuplicateAtImportRules?: RuleConfiguration_for_Null;
878
907
  /**
879
908
  * Disallow duplicate conditions in if-else-if chains
880
909
  */
@@ -891,6 +920,10 @@ interface Nursery {
891
920
  * Disallow duplicate selectors within keyframe blocks.
892
921
  */
893
922
  noDuplicateSelectorsKeyframeBlock?: RuleConfiguration_for_Null;
923
+ /**
924
+ * Disallow CSS empty blocks.
925
+ */
926
+ noEmptyBlock?: RuleConfiguration_for_Null;
894
927
  /**
895
928
  * Disallow variables from evolving into any type through reassignments.
896
929
  */
@@ -898,11 +931,15 @@ interface Nursery {
898
931
  /**
899
932
  * Disallow to use unnecessary callback on flatMap.
900
933
  */
901
- noFlatMapIdentity?: RuleConfiguration_for_Null;
934
+ noFlatMapIdentity?: RuleFixConfiguration_for_Null;
902
935
  /**
903
936
  * Disallow invalid !important within keyframe declarations
904
937
  */
905
938
  noImportantInKeyframe?: RuleConfiguration_for_Null;
939
+ /**
940
+ * Disallow the use of @import at-rules in invalid positions.
941
+ */
942
+ noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
906
943
  /**
907
944
  * Checks that the assertion function, for example expect, is placed inside an it() function call.
908
945
  */
@@ -914,7 +951,7 @@ interface Nursery {
914
951
  /**
915
952
  * Prevents React-specific JSX properties from being used.
916
953
  */
917
- noReactSpecificProps?: RuleConfiguration_for_Null;
954
+ noReactSpecificProps?: RuleFixConfiguration_for_Null;
918
955
  /**
919
956
  * Disallow specified modules when loaded by import or require.
920
957
  */
@@ -927,42 +964,102 @@ interface Nursery {
927
964
  * Disallow unknown CSS value functions.
928
965
  */
929
966
  noUnknownFunction?: RuleConfiguration_for_Null;
967
+ /**
968
+ * Disallow unknown media feature names.
969
+ */
970
+ noUnknownMediaFeatureName?: RuleConfiguration_for_Null;
971
+ /**
972
+ * Disallow unknown properties.
973
+ */
974
+ noUnknownProperty?: RuleConfiguration_for_Null;
975
+ /**
976
+ * Disallow unknown pseudo-element selectors.
977
+ */
978
+ noUnknownSelectorPseudoElement?: RuleConfiguration_for_Null;
930
979
  /**
931
980
  * Disallow unknown CSS units.
932
981
  */
933
982
  noUnknownUnit?: RuleConfiguration_for_Null;
983
+ /**
984
+ * Disallow unmatchable An+B selectors.
985
+ */
986
+ noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
987
+ /**
988
+ * Disallow unnecessary concatenation of string or template literals.
989
+ */
990
+ noUselessStringConcat?: RuleFixConfiguration_for_Null;
934
991
  /**
935
992
  * Disallow initializing variables to undefined.
936
993
  */
937
- noUselessUndefinedInitialization?: RuleConfiguration_for_Null;
994
+ noUselessUndefinedInitialization?: RuleFixConfiguration_for_Null;
995
+ /**
996
+ * Disallow the use of yoda expressions.
997
+ */
998
+ noYodaExpression?: RuleFixConfiguration_for_Null;
938
999
  /**
939
1000
  * It enables the recommended rules for this group
940
1001
  */
941
1002
  recommended?: boolean;
1003
+ /**
1004
+ * Disallow the use of overload signatures that are not next to each other.
1005
+ */
1006
+ useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
942
1007
  /**
943
1008
  * Disallow Array constructors.
944
1009
  */
945
- useArrayLiterals?: RuleConfiguration_for_Null;
1010
+ useArrayLiterals?: RuleFixConfiguration_for_Null;
946
1011
  /**
947
1012
  * Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
948
1013
  */
949
- useConsistentBuiltinInstatiation?: RuleConfiguration_for_Null;
1014
+ useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
950
1015
  /**
951
1016
  * Require the default clause in switch statements.
952
1017
  */
953
1018
  useDefaultSwitchClause?: RuleConfiguration_for_Null;
1019
+ /**
1020
+ * Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
1021
+ */
1022
+ useExplicitLengthCheck?: RuleFixConfiguration_for_Null;
1023
+ /**
1024
+ * Elements with an interactive role and interaction handlers must be focusable.
1025
+ */
1026
+ useFocusableInteractive?: RuleConfiguration_for_Null;
954
1027
  /**
955
1028
  * Disallow a missing generic family keyword within font families.
956
1029
  */
957
1030
  useGenericFontNames?: RuleConfiguration_for_Null;
1031
+ /**
1032
+ * Enforce file extensions for relative imports.
1033
+ */
1034
+ useImportExtensions?: RuleFixConfiguration_for_Null;
958
1035
  /**
959
1036
  * Disallows package private imports.
960
1037
  */
961
1038
  useImportRestrictions?: RuleConfiguration_for_Null;
1039
+ /**
1040
+ * Enforce using the digits argument with Number#toFixed().
1041
+ */
1042
+ useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
1043
+ /**
1044
+ * It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
1045
+ */
1046
+ useSemanticElements?: RuleConfiguration_for_Null;
962
1047
  /**
963
1048
  * Enforce the sorting of CSS utility classes.
964
1049
  */
965
- useSortedClasses?: RuleConfiguration_for_UtilityClassSortingOptions;
1050
+ useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
1051
+ /**
1052
+ * Require new when throwing an error.
1053
+ */
1054
+ useThrowNewError?: RuleFixConfiguration_for_Null;
1055
+ /**
1056
+ * Disallow throwing non-Error values.
1057
+ */
1058
+ useThrowOnlyError?: RuleConfiguration_for_Null;
1059
+ /**
1060
+ * Require regex literals to be declared at the top level.
1061
+ */
1062
+ useTopLevelRegex?: RuleConfiguration_for_Null;
966
1063
  }
967
1064
  interface Performance {
968
1065
  /**
@@ -980,7 +1077,7 @@ interface Performance {
980
1077
  /**
981
1078
  * Disallow the use of the delete operator.
982
1079
  */
983
- noDelete?: RuleConfiguration_for_Null;
1080
+ noDelete?: RuleFixConfiguration_for_Null;
984
1081
  /**
985
1082
  * Avoid re-export all.
986
1083
  */
@@ -1032,11 +1129,11 @@ interface Style {
1032
1129
  /**
1033
1130
  * Disallow implicit true values on JSX boolean attributes
1034
1131
  */
1035
- noImplicitBoolean?: RuleConfiguration_for_Null;
1132
+ noImplicitBoolean?: RuleFixConfiguration_for_Null;
1036
1133
  /**
1037
1134
  * Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.
1038
1135
  */
1039
- noInferrableTypes?: RuleConfiguration_for_Null;
1136
+ noInferrableTypes?: RuleFixConfiguration_for_Null;
1040
1137
  /**
1041
1138
  * Disallow the use of TypeScript's namespaces.
1042
1139
  */
@@ -1048,11 +1145,11 @@ interface Style {
1048
1145
  /**
1049
1146
  * Disallow negation in the condition of an if statement if it has an else clause.
1050
1147
  */
1051
- noNegationElse?: RuleConfiguration_for_Null;
1148
+ noNegationElse?: RuleFixConfiguration_for_Null;
1052
1149
  /**
1053
1150
  * Disallow non-null assertions using the ! postfix operator.
1054
1151
  */
1055
- noNonNullAssertion?: RuleConfiguration_for_Null;
1152
+ noNonNullAssertion?: RuleFixConfiguration_for_Null;
1056
1153
  /**
1057
1154
  * Disallow reassigning function parameters.
1058
1155
  */
@@ -1068,19 +1165,19 @@ interface Style {
1068
1165
  /**
1069
1166
  * Disallow the use of constants which its value is the upper-case version of its name.
1070
1167
  */
1071
- noShoutyConstants?: RuleConfiguration_for_Null;
1168
+ noShoutyConstants?: RuleFixConfiguration_for_Null;
1072
1169
  /**
1073
1170
  * Disallow template literals if interpolation and special-character handling are not needed
1074
1171
  */
1075
- noUnusedTemplateLiteral?: RuleConfiguration_for_Null;
1172
+ noUnusedTemplateLiteral?: RuleFixConfiguration_for_Null;
1076
1173
  /**
1077
1174
  * Disallow else block when the if block breaks early.
1078
1175
  */
1079
- noUselessElse?: RuleConfiguration_for_Null;
1176
+ noUselessElse?: RuleFixConfiguration_for_Null;
1080
1177
  /**
1081
1178
  * Disallow the use of var
1082
1179
  */
1083
- noVar?: RuleConfiguration_for_Null;
1180
+ noVar?: RuleFixConfiguration_for_Null;
1084
1181
  /**
1085
1182
  * It enables the recommended rules for this group
1086
1183
  */
@@ -1088,39 +1185,39 @@ interface Style {
1088
1185
  /**
1089
1186
  * Enforce the use of as const over literal type and type annotation.
1090
1187
  */
1091
- useAsConstAssertion?: RuleConfiguration_for_Null;
1188
+ useAsConstAssertion?: RuleFixConfiguration_for_Null;
1092
1189
  /**
1093
1190
  * Requires following curly brace conventions.
1094
1191
  */
1095
- useBlockStatements?: RuleConfiguration_for_Null;
1192
+ useBlockStatements?: RuleFixConfiguration_for_Null;
1096
1193
  /**
1097
1194
  * Enforce using else if instead of nested if in else clauses.
1098
1195
  */
1099
- useCollapsedElseIf?: RuleConfiguration_for_Null;
1196
+ useCollapsedElseIf?: RuleFixConfiguration_for_Null;
1100
1197
  /**
1101
1198
  * Require consistently using either T\[] or Array\<T>
1102
1199
  */
1103
- useConsistentArrayType?: RuleConfiguration_for_ConsistentArrayTypeOptions;
1200
+ useConsistentArrayType?: RuleFixConfiguration_for_ConsistentArrayTypeOptions;
1104
1201
  /**
1105
1202
  * Require const declarations for variables that are only assigned once.
1106
1203
  */
1107
- useConst?: RuleConfiguration_for_Null;
1204
+ useConst?: RuleFixConfiguration_for_Null;
1108
1205
  /**
1109
1206
  * Enforce default function parameters and optional function parameters to be last.
1110
1207
  */
1111
- useDefaultParameterLast?: RuleConfiguration_for_Null;
1208
+ useDefaultParameterLast?: RuleFixConfiguration_for_Null;
1112
1209
  /**
1113
1210
  * Require that each enum member value be explicitly initialized.
1114
1211
  */
1115
- useEnumInitializers?: RuleConfiguration_for_Null;
1212
+ useEnumInitializers?: RuleFixConfiguration_for_Null;
1116
1213
  /**
1117
1214
  * Disallow the use of Math.pow in favor of the ** operator.
1118
1215
  */
1119
- useExponentiationOperator?: RuleConfiguration_for_Null;
1216
+ useExponentiationOperator?: RuleFixConfiguration_for_Null;
1120
1217
  /**
1121
1218
  * Promotes the use of export type for types.
1122
1219
  */
1123
- useExportType?: RuleConfiguration_for_Null;
1220
+ useExportType?: RuleFixConfiguration_for_Null;
1124
1221
  /**
1125
1222
  * Enforce naming conventions for JavaScript and TypeScript filenames.
1126
1223
  */
@@ -1132,11 +1229,11 @@ interface Style {
1132
1229
  /**
1133
1230
  * This rule enforces the use of \<>...\</> over \<Fragment>...\</Fragment>.
1134
1231
  */
1135
- useFragmentSyntax?: RuleConfiguration_for_Null;
1232
+ useFragmentSyntax?: RuleFixConfiguration_for_Null;
1136
1233
  /**
1137
1234
  * Promotes the use of import type for types.
1138
1235
  */
1139
- useImportType?: RuleConfiguration_for_Null;
1236
+ useImportType?: RuleFixConfiguration_for_Null;
1140
1237
  /**
1141
1238
  * Require all enum members to be literal values.
1142
1239
  */
@@ -1144,55 +1241,55 @@ interface Style {
1144
1241
  /**
1145
1242
  * Enforce naming conventions for everything across a codebase.
1146
1243
  */
1147
- useNamingConvention?: RuleConfiguration_for_NamingConventionOptions;
1244
+ useNamingConvention?: RuleFixConfiguration_for_NamingConventionOptions;
1148
1245
  /**
1149
1246
  * Promotes the usage of node:assert/strict over node:assert.
1150
1247
  */
1151
- useNodeAssertStrict?: RuleConfiguration_for_Null;
1248
+ useNodeAssertStrict?: RuleFixConfiguration_for_Null;
1152
1249
  /**
1153
1250
  * Enforces using the node: protocol for Node.js builtin modules.
1154
1251
  */
1155
- useNodejsImportProtocol?: RuleConfiguration_for_Null;
1252
+ useNodejsImportProtocol?: RuleFixConfiguration_for_Null;
1156
1253
  /**
1157
1254
  * Use the Number properties instead of global ones.
1158
1255
  */
1159
- useNumberNamespace?: RuleConfiguration_for_Null;
1256
+ useNumberNamespace?: RuleFixConfiguration_for_Null;
1160
1257
  /**
1161
1258
  * Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
1162
1259
  */
1163
- useNumericLiterals?: RuleConfiguration_for_Null;
1260
+ useNumericLiterals?: RuleFixConfiguration_for_Null;
1164
1261
  /**
1165
1262
  * Prevent extra closing tags for components without children
1166
1263
  */
1167
- useSelfClosingElements?: RuleConfiguration_for_Null;
1264
+ useSelfClosingElements?: RuleFixConfiguration_for_Null;
1168
1265
  /**
1169
1266
  * When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
1170
1267
  */
1171
- useShorthandArrayType?: RuleConfiguration_for_Null;
1268
+ useShorthandArrayType?: RuleFixConfiguration_for_Null;
1172
1269
  /**
1173
1270
  * Require assignment operator shorthand where possible.
1174
1271
  */
1175
- useShorthandAssign?: RuleConfiguration_for_Null;
1272
+ useShorthandAssign?: RuleFixConfiguration_for_Null;
1176
1273
  /**
1177
1274
  * Enforce using function types instead of object type with call signatures.
1178
1275
  */
1179
- useShorthandFunctionType?: RuleConfiguration_for_Null;
1276
+ useShorthandFunctionType?: RuleFixConfiguration_for_Null;
1180
1277
  /**
1181
1278
  * Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
1182
1279
  */
1183
- useSingleCaseStatement?: RuleConfiguration_for_Null;
1280
+ useSingleCaseStatement?: RuleFixConfiguration_for_Null;
1184
1281
  /**
1185
1282
  * Disallow multiple variable declarations in the same variable statement
1186
1283
  */
1187
- useSingleVarDeclarator?: RuleConfiguration_for_Null;
1284
+ useSingleVarDeclarator?: RuleFixConfiguration_for_Null;
1188
1285
  /**
1189
1286
  * Prefer template literals over string concatenation.
1190
1287
  */
1191
- useTemplate?: RuleConfiguration_for_Null;
1288
+ useTemplate?: RuleFixConfiguration_for_Null;
1192
1289
  /**
1193
1290
  * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
1194
1291
  */
1195
- useWhile?: RuleConfiguration_for_Null;
1292
+ useWhile?: RuleFixConfiguration_for_Null;
1196
1293
  }
1197
1294
  interface Suspicious {
1198
1295
  /**
@@ -1202,7 +1299,7 @@ interface Suspicious {
1202
1299
  /**
1203
1300
  * Use standard constants instead of approximated literals.
1204
1301
  */
1205
- noApproximativeNumericConstant?: RuleConfiguration_for_Null;
1302
+ noApproximativeNumericConstant?: RuleFixConfiguration_for_Null;
1206
1303
  /**
1207
1304
  * Discourage the usage of Array index in keys.
1208
1305
  */
@@ -1226,11 +1323,11 @@ interface Suspicious {
1226
1323
  /**
1227
1324
  * Prevent comments from being inserted as text nodes
1228
1325
  */
1229
- noCommentText?: RuleConfiguration_for_Null;
1326
+ noCommentText?: RuleFixConfiguration_for_Null;
1230
1327
  /**
1231
1328
  * Disallow comparing against -0
1232
1329
  */
1233
- noCompareNegZero?: RuleConfiguration_for_Null;
1330
+ noCompareNegZero?: RuleFixConfiguration_for_Null;
1234
1331
  /**
1235
1332
  * Disallow labeled statements that are not loops.
1236
1333
  */
@@ -1238,15 +1335,15 @@ interface Suspicious {
1238
1335
  /**
1239
1336
  * Disallow void type outside of generic or return types.
1240
1337
  */
1241
- noConfusingVoidType?: RuleConfiguration_for_Null;
1338
+ noConfusingVoidType?: RuleFixConfiguration_for_Null;
1242
1339
  /**
1243
1340
  * Disallow the use of console.log
1244
1341
  */
1245
- noConsoleLog?: RuleConfiguration_for_Null;
1342
+ noConsoleLog?: RuleFixConfiguration_for_Null;
1246
1343
  /**
1247
1344
  * Disallow TypeScript const enum
1248
1345
  */
1249
- noConstEnum?: RuleConfiguration_for_Null;
1346
+ noConstEnum?: RuleFixConfiguration_for_Null;
1250
1347
  /**
1251
1348
  * Prevents from having control characters and some escape sequences that match control characters in regular expressions.
1252
1349
  */
@@ -1254,11 +1351,11 @@ interface Suspicious {
1254
1351
  /**
1255
1352
  * Disallow the use of debugger
1256
1353
  */
1257
- noDebugger?: RuleConfiguration_for_Null;
1354
+ noDebugger?: RuleFixConfiguration_for_Null;
1258
1355
  /**
1259
1356
  * Require the use of === and !==
1260
1357
  */
1261
- noDoubleEquals?: RuleConfiguration_for_Null;
1358
+ noDoubleEquals?: RuleFixConfiguration_for_Null;
1262
1359
  /**
1263
1360
  * Disallow duplicate case labels.
1264
1361
  */
@@ -1274,7 +1371,7 @@ interface Suspicious {
1274
1371
  /**
1275
1372
  * Prevents object literals having more than one property declaration for the same name.
1276
1373
  */
1277
- noDuplicateObjectKeys?: RuleConfiguration_for_Null;
1374
+ noDuplicateObjectKeys?: RuleFixConfiguration_for_Null;
1278
1375
  /**
1279
1376
  * Disallow duplicate function parameter name.
1280
1377
  */
@@ -1290,7 +1387,7 @@ interface Suspicious {
1290
1387
  /**
1291
1388
  * Disallow the declaration of empty interfaces.
1292
1389
  */
1293
- noEmptyInterface?: RuleConfiguration_for_Null;
1390
+ noEmptyInterface?: RuleFixConfiguration_for_Null;
1294
1391
  /**
1295
1392
  * Disallow the any type usage.
1296
1393
  */
@@ -1302,7 +1399,7 @@ interface Suspicious {
1302
1399
  /**
1303
1400
  * Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
1304
1401
  */
1305
- noExtraNonNullAssertion?: RuleConfiguration_for_Null;
1402
+ noExtraNonNullAssertion?: RuleFixConfiguration_for_Null;
1306
1403
  /**
1307
1404
  * Disallow fallthrough of switch clauses.
1308
1405
  */
@@ -1310,7 +1407,7 @@ interface Suspicious {
1310
1407
  /**
1311
1408
  * Disallow focused tests.
1312
1409
  */
1313
- noFocusedTests?: RuleConfiguration_for_Null;
1410
+ noFocusedTests?: RuleFixConfiguration_for_Null;
1314
1411
  /**
1315
1412
  * Disallow reassigning function declarations.
1316
1413
  */
@@ -1322,11 +1419,11 @@ interface Suspicious {
1322
1419
  /**
1323
1420
  * Use Number.isFinite instead of global isFinite.
1324
1421
  */
1325
- noGlobalIsFinite?: RuleConfiguration_for_Null;
1422
+ noGlobalIsFinite?: RuleFixConfiguration_for_Null;
1326
1423
  /**
1327
1424
  * Use Number.isNaN instead of global isNaN.
1328
1425
  */
1329
- noGlobalIsNan?: RuleConfiguration_for_Null;
1426
+ noGlobalIsNan?: RuleFixConfiguration_for_Null;
1330
1427
  /**
1331
1428
  * Disallow use of implicit any type on variable declarations.
1332
1429
  */
@@ -1342,7 +1439,7 @@ interface Suspicious {
1342
1439
  /**
1343
1440
  * Disallow characters made with multiple code points in character class syntax.
1344
1441
  */
1345
- noMisleadingCharacterClass?: RuleConfiguration_for_Null;
1442
+ noMisleadingCharacterClass?: RuleFixConfiguration_for_Null;
1346
1443
  /**
1347
1444
  * Enforce proper usage of new and constructor.
1348
1445
  */
@@ -1350,7 +1447,7 @@ interface Suspicious {
1350
1447
  /**
1351
1448
  * Disallow shorthand assign when variable appears on both sides.
1352
1449
  */
1353
- noMisrefactoredShorthandAssign?: RuleConfiguration_for_Null;
1450
+ noMisrefactoredShorthandAssign?: RuleFixConfiguration_for_Null;
1354
1451
  /**
1355
1452
  * Disallow direct use of Object.prototype builtins.
1356
1453
  */
@@ -1362,7 +1459,7 @@ interface Suspicious {
1362
1459
  /**
1363
1460
  * Prevents from having redundant "use strict".
1364
1461
  */
1365
- noRedundantUseStrict?: RuleConfiguration_for_Null;
1462
+ noRedundantUseStrict?: RuleFixConfiguration_for_Null;
1366
1463
  /**
1367
1464
  * Disallow comparisons where both sides are exactly the same.
1368
1465
  */
@@ -1374,11 +1471,11 @@ interface Suspicious {
1374
1471
  /**
1375
1472
  * Disallow disabled tests.
1376
1473
  */
1377
- noSkippedTests?: RuleConfiguration_for_Null;
1474
+ noSkippedTests?: RuleFixConfiguration_for_Null;
1378
1475
  /**
1379
1476
  * Disallow sparse arrays
1380
1477
  */
1381
- noSparseArray?: RuleConfiguration_for_Null;
1478
+ noSparseArray?: RuleFixConfiguration_for_Null;
1382
1479
  /**
1383
1480
  * It detects possible "wrong" semicolons inside JSX elements.
1384
1481
  */
@@ -1394,7 +1491,7 @@ interface Suspicious {
1394
1491
  /**
1395
1492
  * Disallow using unsafe negation.
1396
1493
  */
1397
- noUnsafeNegation?: RuleConfiguration_for_Null;
1494
+ noUnsafeNegation?: RuleFixConfiguration_for_Null;
1398
1495
  /**
1399
1496
  * It enables the recommended rules for this group
1400
1497
  */
@@ -1414,15 +1511,15 @@ interface Suspicious {
1414
1511
  /**
1415
1512
  * Use Array.isArray() instead of instanceof Array.
1416
1513
  */
1417
- useIsArray?: RuleConfiguration_for_Null;
1514
+ useIsArray?: RuleFixConfiguration_for_Null;
1418
1515
  /**
1419
1516
  * Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
1420
1517
  */
1421
- useNamespaceKeyword?: RuleConfiguration_for_Null;
1518
+ useNamespaceKeyword?: RuleFixConfiguration_for_Null;
1422
1519
  /**
1423
1520
  * 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
1424
1521
  */
1425
- useValidTypeof?: RuleConfiguration_for_Null;
1522
+ useValidTypeof?: RuleFixConfiguration_for_Null;
1426
1523
  }
1427
1524
  interface OverrideFormatterConfiguration {
1428
1525
  /**
@@ -1471,12 +1568,15 @@ interface OverrideOrganizeImportsConfiguration {
1471
1568
  */
1472
1569
  enabled?: boolean;
1473
1570
  }
1571
+ type RuleFixConfiguration_for_Null =
1572
+ | RulePlainConfiguration
1573
+ | RuleWithFixOptions_for_Null;
1474
1574
  type RuleConfiguration_for_Null =
1475
1575
  | RulePlainConfiguration
1476
1576
  | RuleWithOptions_for_Null;
1477
- type RuleConfiguration_for_ValidAriaRoleOptions =
1577
+ type RuleFixConfiguration_for_ValidAriaRoleOptions =
1478
1578
  | RulePlainConfiguration
1479
- | RuleWithOptions_for_ValidAriaRoleOptions;
1579
+ | RuleWithFixOptions_for_ValidAriaRoleOptions;
1480
1580
  type RuleConfiguration_for_ComplexityOptions =
1481
1581
  | RulePlainConfiguration
1482
1582
  | RuleWithOptions_for_ComplexityOptions;
@@ -1486,76 +1586,166 @@ type RuleConfiguration_for_HooksOptions =
1486
1586
  type RuleConfiguration_for_DeprecatedHooksOptions =
1487
1587
  | RulePlainConfiguration
1488
1588
  | RuleWithOptions_for_DeprecatedHooksOptions;
1489
- type RuleConfiguration_for_NoCssEmptyBlockOptions =
1490
- | RulePlainConfiguration
1491
- | RuleWithOptions_for_NoCssEmptyBlockOptions;
1492
1589
  type RuleConfiguration_for_RestrictedImportsOptions =
1493
1590
  | RulePlainConfiguration
1494
1591
  | RuleWithOptions_for_RestrictedImportsOptions;
1495
- type RuleConfiguration_for_UtilityClassSortingOptions =
1592
+ type RuleFixConfiguration_for_UtilityClassSortingOptions =
1496
1593
  | RulePlainConfiguration
1497
- | RuleWithOptions_for_UtilityClassSortingOptions;
1594
+ | RuleWithFixOptions_for_UtilityClassSortingOptions;
1498
1595
  type RuleConfiguration_for_RestrictedGlobalsOptions =
1499
1596
  | RulePlainConfiguration
1500
1597
  | RuleWithOptions_for_RestrictedGlobalsOptions;
1501
- type RuleConfiguration_for_ConsistentArrayTypeOptions =
1598
+ type RuleFixConfiguration_for_ConsistentArrayTypeOptions =
1502
1599
  | RulePlainConfiguration
1503
- | RuleWithOptions_for_ConsistentArrayTypeOptions;
1600
+ | RuleWithFixOptions_for_ConsistentArrayTypeOptions;
1504
1601
  type RuleConfiguration_for_FilenamingConventionOptions =
1505
1602
  | RulePlainConfiguration
1506
1603
  | RuleWithOptions_for_FilenamingConventionOptions;
1507
- type RuleConfiguration_for_NamingConventionOptions =
1604
+ type RuleFixConfiguration_for_NamingConventionOptions =
1508
1605
  | RulePlainConfiguration
1509
- | RuleWithOptions_for_NamingConventionOptions;
1606
+ | RuleWithFixOptions_for_NamingConventionOptions;
1510
1607
  type RulePlainConfiguration = "warn" | "error" | "off";
1608
+ interface RuleWithFixOptions_for_Null {
1609
+ /**
1610
+ * The kind of the code actions emitted by the rule
1611
+ */
1612
+ fix?: FixKind;
1613
+ /**
1614
+ * The severity of the emitted diagnostics by the rule
1615
+ */
1616
+ level: RulePlainConfiguration;
1617
+ /**
1618
+ * Rule's options
1619
+ */
1620
+ options: null;
1621
+ }
1511
1622
  interface RuleWithOptions_for_Null {
1623
+ /**
1624
+ * The severity of the emitted diagnostics by the rule
1625
+ */
1512
1626
  level: RulePlainConfiguration;
1627
+ /**
1628
+ * Rule's options
1629
+ */
1513
1630
  options: null;
1514
1631
  }
1515
- interface RuleWithOptions_for_ValidAriaRoleOptions {
1632
+ interface RuleWithFixOptions_for_ValidAriaRoleOptions {
1633
+ /**
1634
+ * The kind of the code actions emitted by the rule
1635
+ */
1636
+ fix?: FixKind;
1637
+ /**
1638
+ * The severity of the emitted diagnostics by the rule
1639
+ */
1516
1640
  level: RulePlainConfiguration;
1641
+ /**
1642
+ * Rule's options
1643
+ */
1517
1644
  options: ValidAriaRoleOptions;
1518
1645
  }
1519
1646
  interface RuleWithOptions_for_ComplexityOptions {
1647
+ /**
1648
+ * The severity of the emitted diagnostics by the rule
1649
+ */
1520
1650
  level: RulePlainConfiguration;
1651
+ /**
1652
+ * Rule's options
1653
+ */
1521
1654
  options: ComplexityOptions;
1522
1655
  }
1523
1656
  interface RuleWithOptions_for_HooksOptions {
1657
+ /**
1658
+ * The severity of the emitted diagnostics by the rule
1659
+ */
1524
1660
  level: RulePlainConfiguration;
1661
+ /**
1662
+ * Rule's options
1663
+ */
1525
1664
  options: HooksOptions;
1526
1665
  }
1527
1666
  interface RuleWithOptions_for_DeprecatedHooksOptions {
1667
+ /**
1668
+ * The severity of the emitted diagnostics by the rule
1669
+ */
1528
1670
  level: RulePlainConfiguration;
1671
+ /**
1672
+ * Rule's options
1673
+ */
1529
1674
  options: DeprecatedHooksOptions;
1530
1675
  }
1531
- interface RuleWithOptions_for_NoCssEmptyBlockOptions {
1532
- level: RulePlainConfiguration;
1533
- options: NoCssEmptyBlockOptions;
1534
- }
1535
1676
  interface RuleWithOptions_for_RestrictedImportsOptions {
1677
+ /**
1678
+ * The severity of the emitted diagnostics by the rule
1679
+ */
1536
1680
  level: RulePlainConfiguration;
1681
+ /**
1682
+ * Rule's options
1683
+ */
1537
1684
  options: RestrictedImportsOptions;
1538
1685
  }
1539
- interface RuleWithOptions_for_UtilityClassSortingOptions {
1686
+ interface RuleWithFixOptions_for_UtilityClassSortingOptions {
1687
+ /**
1688
+ * The kind of the code actions emitted by the rule
1689
+ */
1690
+ fix?: FixKind;
1691
+ /**
1692
+ * The severity of the emitted diagnostics by the rule
1693
+ */
1540
1694
  level: RulePlainConfiguration;
1695
+ /**
1696
+ * Rule's options
1697
+ */
1541
1698
  options: UtilityClassSortingOptions;
1542
1699
  }
1543
1700
  interface RuleWithOptions_for_RestrictedGlobalsOptions {
1701
+ /**
1702
+ * The severity of the emitted diagnostics by the rule
1703
+ */
1544
1704
  level: RulePlainConfiguration;
1705
+ /**
1706
+ * Rule's options
1707
+ */
1545
1708
  options: RestrictedGlobalsOptions;
1546
1709
  }
1547
- interface RuleWithOptions_for_ConsistentArrayTypeOptions {
1710
+ interface RuleWithFixOptions_for_ConsistentArrayTypeOptions {
1711
+ /**
1712
+ * The kind of the code actions emitted by the rule
1713
+ */
1714
+ fix?: FixKind;
1715
+ /**
1716
+ * The severity of the emitted diagnostics by the rule
1717
+ */
1548
1718
  level: RulePlainConfiguration;
1719
+ /**
1720
+ * Rule's options
1721
+ */
1549
1722
  options: ConsistentArrayTypeOptions;
1550
1723
  }
1551
1724
  interface RuleWithOptions_for_FilenamingConventionOptions {
1725
+ /**
1726
+ * The severity of the emitted diagnostics by the rule
1727
+ */
1552
1728
  level: RulePlainConfiguration;
1729
+ /**
1730
+ * Rule's options
1731
+ */
1553
1732
  options: FilenamingConventionOptions;
1554
1733
  }
1555
- interface RuleWithOptions_for_NamingConventionOptions {
1734
+ interface RuleWithFixOptions_for_NamingConventionOptions {
1735
+ /**
1736
+ * The kind of the code actions emitted by the rule
1737
+ */
1738
+ fix?: FixKind;
1739
+ /**
1740
+ * The severity of the emitted diagnostics by the rule
1741
+ */
1556
1742
  level: RulePlainConfiguration;
1743
+ /**
1744
+ * Rule's options
1745
+ */
1557
1746
  options: NamingConventionOptions;
1558
1747
  }
1748
+ type FixKind = "none" | "safe" | "unsafe";
1559
1749
  interface ValidAriaRoleOptions {
1560
1750
  allowInvalidRoles: string[];
1561
1751
  ignoreNonDom: boolean;
@@ -1573,9 +1763,6 @@ interface HooksOptions {
1573
1763
  hooks: Hook[];
1574
1764
  }
1575
1765
  interface DeprecatedHooksOptions {}
1576
- interface NoCssEmptyBlockOptions {
1577
- allowComments: boolean;
1578
- }
1579
1766
  interface RestrictedImportsOptions {
1580
1767
  /**
1581
1768
  * A list of names that should trigger the rule
@@ -1616,10 +1803,14 @@ interface FilenamingConventionOptions {
1616
1803
  strictCase: boolean;
1617
1804
  }
1618
1805
  interface NamingConventionOptions {
1806
+ /**
1807
+ * Custom conventions.
1808
+ */
1809
+ conventions: Convention[];
1619
1810
  /**
1620
1811
  * Allowed cases for _TypeScript_ `enum` member names.
1621
1812
  */
1622
- enumMemberCase: EnumMemberCase;
1813
+ enumMemberCase: Format;
1623
1814
  /**
1624
1815
  * If `false`, then non-ASCII characters are allowed.
1625
1816
  */
@@ -1657,7 +1848,21 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
1657
1848
  }
1658
1849
  type ConsistentArrayType = "shorthand" | "generic";
1659
1850
  type FilenameCases = FilenameCase[];
1660
- type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1851
+ interface Convention {
1852
+ /**
1853
+ * String cases to enforce
1854
+ */
1855
+ formats: Formats;
1856
+ /**
1857
+ * Regular expression to enforce
1858
+ */
1859
+ match?: Regex;
1860
+ /**
1861
+ * Declarations concerned by this convention
1862
+ */
1863
+ selector: Selector;
1864
+ }
1865
+ type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
1661
1866
  type StableHookResult = boolean | number[];
1662
1867
  type FilenameCase =
1663
1868
  | "camelCase"
@@ -1665,6 +1870,69 @@ type FilenameCase =
1665
1870
  | "kebab-case"
1666
1871
  | "PascalCase"
1667
1872
  | "snake_case";
1873
+ type Formats = Format[];
1874
+ type Regex = string;
1875
+ interface Selector {
1876
+ /**
1877
+ * Declaration kind
1878
+ */
1879
+ kind: Kind;
1880
+ /**
1881
+ * Modifiers used on the declaration
1882
+ */
1883
+ modifiers: Modifiers;
1884
+ /**
1885
+ * Scope of the declaration
1886
+ */
1887
+ scope: Scope;
1888
+ }
1889
+ type Kind =
1890
+ | "class"
1891
+ | "enum"
1892
+ | "interface"
1893
+ | "enumMember"
1894
+ | "importNamespace"
1895
+ | "exportNamespace"
1896
+ | "variable"
1897
+ | "const"
1898
+ | "let"
1899
+ | "using"
1900
+ | "var"
1901
+ | "catchParameter"
1902
+ | "indexParameter"
1903
+ | "exportAlias"
1904
+ | "importAlias"
1905
+ | "classGetter"
1906
+ | "classSetter"
1907
+ | "classMethod"
1908
+ | "objectLiteralProperty"
1909
+ | "objectLiteralGetter"
1910
+ | "objectLiteralSetter"
1911
+ | "objectLiteralMethod"
1912
+ | "typeAlias"
1913
+ | "any"
1914
+ | "typeLike"
1915
+ | "function"
1916
+ | "namespaceLike"
1917
+ | "namespace"
1918
+ | "functionParameter"
1919
+ | "typeParameter"
1920
+ | "classMember"
1921
+ | "classProperty"
1922
+ | "objectLiteralMember"
1923
+ | "typeMember"
1924
+ | "typeGetter"
1925
+ | "typeProperty"
1926
+ | "typeSetter"
1927
+ | "typeMethod";
1928
+ type Modifiers = RestrictedModifier[];
1929
+ type Scope = "any" | "global";
1930
+ type RestrictedModifier =
1931
+ | "abstract"
1932
+ | "private"
1933
+ | "protected"
1934
+ | "readonly"
1935
+ | "static";
1668
1936
  interface RegisterProjectFolderParams {
1669
1937
  path?: string;
1670
1938
  setAsCurrentWorkspace: boolean;
@@ -1748,8 +2016,10 @@ interface PullDiagnosticsParams {
1748
2016
  categories: RuleCategories;
1749
2017
  max_diagnostics: number;
1750
2018
  path: BiomePath;
2019
+ rule?: RuleCode;
1751
2020
  }
1752
2021
  type RuleCategories = RuleCategory[];
2022
+ type RuleCode = string;
1753
2023
  type RuleCategory = "Syntax" | "Lint" | "Action" | "Transformation";
1754
2024
  interface PullDiagnosticsResult {
1755
2025
  diagnostics: Diagnostic[];
@@ -1868,12 +2138,13 @@ type Category =
1868
2138
  | "lint/correctness/useValidForDirection"
1869
2139
  | "lint/correctness/useYield"
1870
2140
  | "lint/nursery/colorNoInvalidHex"
1871
- | "lint/nursery/useArrayLiterals"
2141
+ | "lint/nursery/useAdjacentOverloadSignatures"
1872
2142
  | "lint/nursery/noColorInvalidHex"
1873
2143
  | "lint/nursery/noConsole"
1874
2144
  | "lint/nursery/noConstantMathMinMaxClamp"
1875
- | "lint/nursery/noCssEmptyBlock"
2145
+ | "lint/nursery/noEmptyBlock"
1876
2146
  | "lint/nursery/noDoneCallback"
2147
+ | "lint/nursery/noDuplicateAtImportRules"
1877
2148
  | "lint/nursery/noDuplicateElseIf"
1878
2149
  | "lint/nursery/noDuplicateFontNames"
1879
2150
  | "lint/nursery/noDuplicateJsonKeys"
@@ -1881,6 +2152,7 @@ type Category =
1881
2152
  | "lint/nursery/noEvolvingAny"
1882
2153
  | "lint/nursery/noFlatMapIdentity"
1883
2154
  | "lint/nursery/noImportantInKeyframe"
2155
+ | "lint/nursery/noInvalidPositionAtImportRule"
1884
2156
  | "lint/nursery/noMisplacedAssertion"
1885
2157
  | "lint/nursery/noMissingGenericFamilyKeyword"
1886
2158
  | "lint/nursery/noNodejsModules"
@@ -1889,14 +2161,29 @@ type Category =
1889
2161
  | "lint/nursery/noTypeOnlyImportAttributes"
1890
2162
  | "lint/nursery/noUndeclaredDependencies"
1891
2163
  | "lint/nursery/noUnknownFunction"
1892
- | "lint/nursery/noUselessUndefinedInitialization"
2164
+ | "lint/nursery/noUnknownMediaFeatureName"
2165
+ | "lint/nursery/noUnknownProperty"
2166
+ | "lint/nursery/noUnknownSelectorPseudoElement"
1893
2167
  | "lint/nursery/noUnknownUnit"
2168
+ | "lint/nursery/noUnmatchableAnbSelector"
2169
+ | "lint/nursery/noUselessStringConcat"
2170
+ | "lint/nursery/noUselessUndefinedInitialization"
2171
+ | "lint/nursery/noYodaExpression"
2172
+ | "lint/nursery/useArrayLiterals"
1894
2173
  | "lint/nursery/useBiomeSuppressionComment"
1895
- | "lint/nursery/useConsistentBuiltinInstatiation"
1896
- | "lint/nursery/useGenericFontNames"
2174
+ | "lint/nursery/useConsistentBuiltinInstantiation"
1897
2175
  | "lint/nursery/useDefaultSwitchClause"
2176
+ | "lint/nursery/useExplicitLengthCheck"
2177
+ | "lint/nursery/useFocusableInteractive"
2178
+ | "lint/nursery/useGenericFontNames"
2179
+ | "lint/nursery/useImportExtensions"
1898
2180
  | "lint/nursery/useImportRestrictions"
2181
+ | "lint/nursery/useNumberToFixedDigitsArgument"
2182
+ | "lint/nursery/useSemanticElements"
1899
2183
  | "lint/nursery/useSortedClasses"
2184
+ | "lint/nursery/useThrowNewError"
2185
+ | "lint/nursery/useThrowOnlyError"
2186
+ | "lint/nursery/useTopLevelRegex"
1900
2187
  | "lint/performance/noAccumulatingSpread"
1901
2188
  | "lint/performance/noBarrelFile"
1902
2189
  | "lint/performance/noDelete"