@biomejs/wasm-web 1.7.3 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biome_wasm.d.ts +491 -172
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +30 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -74,11 +74,15 @@ interface PartialConfiguration {
|
|
|
74
74
|
}
|
|
75
75
|
interface PartialCssConfiguration {
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* CSS formatter options
|
|
78
78
|
*/
|
|
79
79
|
formatter?: PartialCssFormatter;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
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,13 +261,26 @@ 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
|
|
261
278
|
*/
|
|
262
279
|
allowWrongLineComments?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Enables parsing of CSS Modules specific features.
|
|
282
|
+
*/
|
|
283
|
+
cssModules?: boolean;
|
|
263
284
|
}
|
|
264
285
|
type AttributePosition = "auto" | "multiline";
|
|
265
286
|
type PlainIndentStyle = "tab" | "space";
|
|
@@ -325,9 +346,19 @@ interface PartialJavascriptFormatter {
|
|
|
325
346
|
/**
|
|
326
347
|
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
|
|
327
348
|
*/
|
|
328
|
-
trailingComma?:
|
|
349
|
+
trailingComma?: TrailingCommas;
|
|
350
|
+
/**
|
|
351
|
+
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
|
|
352
|
+
*/
|
|
353
|
+
trailingCommas?: TrailingCommas;
|
|
329
354
|
}
|
|
330
355
|
type JsxRuntime = "transparent" | "reactClassic";
|
|
356
|
+
interface PartialJavascriptLinter {
|
|
357
|
+
/**
|
|
358
|
+
* Control the linter for JavaScript (and its super languages) files.
|
|
359
|
+
*/
|
|
360
|
+
enabled?: boolean;
|
|
361
|
+
}
|
|
331
362
|
interface PartialJavascriptOrganizeImports {}
|
|
332
363
|
interface PartialJavascriptParser {
|
|
333
364
|
/**
|
|
@@ -365,7 +396,13 @@ interface PartialJsonFormatter {
|
|
|
365
396
|
/**
|
|
366
397
|
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "none".
|
|
367
398
|
*/
|
|
368
|
-
trailingCommas?:
|
|
399
|
+
trailingCommas?: TrailingCommas2;
|
|
400
|
+
}
|
|
401
|
+
interface PartialJsonLinter {
|
|
402
|
+
/**
|
|
403
|
+
* Control the linter for JSON (and its super languages) files.
|
|
404
|
+
*/
|
|
405
|
+
enabled?: boolean;
|
|
369
406
|
}
|
|
370
407
|
interface PartialJsonParser {
|
|
371
408
|
/**
|
|
@@ -434,8 +471,8 @@ type QuoteStyle = "double" | "single";
|
|
|
434
471
|
type ArrowParentheses = "always" | "asNeeded";
|
|
435
472
|
type QuoteProperties = "asNeeded" | "preserve";
|
|
436
473
|
type Semicolons = "always" | "asNeeded";
|
|
437
|
-
type
|
|
438
|
-
type
|
|
474
|
+
type TrailingCommas = "all" | "es5" | "none";
|
|
475
|
+
type TrailingCommas2 = "none" | "all";
|
|
439
476
|
interface A11y {
|
|
440
477
|
/**
|
|
441
478
|
* It enables ALL rules for this group.
|
|
@@ -444,47 +481,47 @@ interface A11y {
|
|
|
444
481
|
/**
|
|
445
482
|
* Enforce that the accessKey attribute is not used on any HTML element.
|
|
446
483
|
*/
|
|
447
|
-
noAccessKey?:
|
|
484
|
+
noAccessKey?: RuleFixConfiguration_for_Null;
|
|
448
485
|
/**
|
|
449
486
|
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
450
487
|
*/
|
|
451
|
-
noAriaHiddenOnFocusable?:
|
|
488
|
+
noAriaHiddenOnFocusable?: RuleFixConfiguration_for_Null;
|
|
452
489
|
/**
|
|
453
490
|
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
|
|
454
491
|
*/
|
|
455
|
-
noAriaUnsupportedElements?:
|
|
492
|
+
noAriaUnsupportedElements?: RuleFixConfiguration_for_Null;
|
|
456
493
|
/**
|
|
457
494
|
* Enforce that autoFocus prop is not used on elements.
|
|
458
495
|
*/
|
|
459
|
-
noAutofocus?:
|
|
496
|
+
noAutofocus?: RuleFixConfiguration_for_Null;
|
|
460
497
|
/**
|
|
461
498
|
* Disallow target="_blank" attribute without rel="noreferrer"
|
|
462
499
|
*/
|
|
463
|
-
noBlankTarget?:
|
|
500
|
+
noBlankTarget?: RuleFixConfiguration_for_Null;
|
|
464
501
|
/**
|
|
465
502
|
* Enforces that no distracting elements are used.
|
|
466
503
|
*/
|
|
467
|
-
noDistractingElements?:
|
|
504
|
+
noDistractingElements?: RuleFixConfiguration_for_Null;
|
|
468
505
|
/**
|
|
469
506
|
* The scope prop should be used only on \<th> elements.
|
|
470
507
|
*/
|
|
471
|
-
noHeaderScope?:
|
|
508
|
+
noHeaderScope?: RuleFixConfiguration_for_Null;
|
|
472
509
|
/**
|
|
473
510
|
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
474
511
|
*/
|
|
475
|
-
noInteractiveElementToNoninteractiveRole?:
|
|
512
|
+
noInteractiveElementToNoninteractiveRole?: RuleFixConfiguration_for_Null;
|
|
476
513
|
/**
|
|
477
514
|
* Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
|
|
478
515
|
*/
|
|
479
|
-
noNoninteractiveElementToInteractiveRole?:
|
|
516
|
+
noNoninteractiveElementToInteractiveRole?: RuleFixConfiguration_for_Null;
|
|
480
517
|
/**
|
|
481
518
|
* Enforce that tabIndex is not assigned to non-interactive HTML elements.
|
|
482
519
|
*/
|
|
483
|
-
noNoninteractiveTabindex?:
|
|
520
|
+
noNoninteractiveTabindex?: RuleFixConfiguration_for_Null;
|
|
484
521
|
/**
|
|
485
522
|
* Prevent the usage of positive integers on tabIndex property
|
|
486
523
|
*/
|
|
487
|
-
noPositiveTabindex?:
|
|
524
|
+
noPositiveTabindex?: RuleFixConfiguration_for_Null;
|
|
488
525
|
/**
|
|
489
526
|
* Enforce img alt prop does not contain the word "image", "picture", or "photo".
|
|
490
527
|
*/
|
|
@@ -492,7 +529,7 @@ interface A11y {
|
|
|
492
529
|
/**
|
|
493
530
|
* Enforce explicit role property is not the same as implicit/default role property on an element.
|
|
494
531
|
*/
|
|
495
|
-
noRedundantRoles?:
|
|
532
|
+
noRedundantRoles?: RuleFixConfiguration_for_Null;
|
|
496
533
|
/**
|
|
497
534
|
* Enforces the usage of the title element for the svg element.
|
|
498
535
|
*/
|
|
@@ -508,11 +545,11 @@ interface A11y {
|
|
|
508
545
|
/**
|
|
509
546
|
* Enforce that anchors have content and that the content is accessible to screen readers.
|
|
510
547
|
*/
|
|
511
|
-
useAnchorContent?:
|
|
548
|
+
useAnchorContent?: RuleFixConfiguration_for_Null;
|
|
512
549
|
/**
|
|
513
550
|
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
|
|
514
551
|
*/
|
|
515
|
-
useAriaActivedescendantWithTabindex?:
|
|
552
|
+
useAriaActivedescendantWithTabindex?: RuleFixConfiguration_for_Null;
|
|
516
553
|
/**
|
|
517
554
|
* Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
|
|
518
555
|
*/
|
|
@@ -552,11 +589,11 @@ interface A11y {
|
|
|
552
589
|
/**
|
|
553
590
|
* Ensures that ARIA properties aria-* are all valid.
|
|
554
591
|
*/
|
|
555
|
-
useValidAriaProps?:
|
|
592
|
+
useValidAriaProps?: RuleFixConfiguration_for_Null;
|
|
556
593
|
/**
|
|
557
594
|
* Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
558
595
|
*/
|
|
559
|
-
useValidAriaRole?:
|
|
596
|
+
useValidAriaRole?: RuleFixConfiguration_for_ValidAriaRoleOptions;
|
|
560
597
|
/**
|
|
561
598
|
* Enforce that ARIA state and property values are valid.
|
|
562
599
|
*/
|
|
@@ -574,7 +611,7 @@ interface Complexity {
|
|
|
574
611
|
/**
|
|
575
612
|
* Disallow primitive type aliases and misleading types.
|
|
576
613
|
*/
|
|
577
|
-
noBannedTypes?:
|
|
614
|
+
noBannedTypes?: RuleFixConfiguration_for_Null;
|
|
578
615
|
/**
|
|
579
616
|
* Disallow empty type parameters in type aliases and interfaces.
|
|
580
617
|
*/
|
|
@@ -590,7 +627,7 @@ interface Complexity {
|
|
|
590
627
|
/**
|
|
591
628
|
* Disallow unnecessary boolean casts
|
|
592
629
|
*/
|
|
593
|
-
noExtraBooleanCast?:
|
|
630
|
+
noExtraBooleanCast?: RuleFixConfiguration_for_Null;
|
|
594
631
|
/**
|
|
595
632
|
* Prefer for...of statement instead of Array.forEach.
|
|
596
633
|
*/
|
|
@@ -598,7 +635,7 @@ interface Complexity {
|
|
|
598
635
|
/**
|
|
599
636
|
* Disallow unclear usage of consecutive space characters in regular expression literals
|
|
600
637
|
*/
|
|
601
|
-
noMultipleSpacesInRegularExpressionLiterals?:
|
|
638
|
+
noMultipleSpacesInRegularExpressionLiterals?: RuleFixConfiguration_for_Null;
|
|
602
639
|
/**
|
|
603
640
|
* This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
|
|
604
641
|
*/
|
|
@@ -606,7 +643,7 @@ interface Complexity {
|
|
|
606
643
|
/**
|
|
607
644
|
* Disallow this and super in static contexts.
|
|
608
645
|
*/
|
|
609
|
-
noThisInStatic?:
|
|
646
|
+
noThisInStatic?: RuleFixConfiguration_for_Null;
|
|
610
647
|
/**
|
|
611
648
|
* Disallow unnecessary catch clauses.
|
|
612
649
|
*/
|
|
@@ -614,43 +651,43 @@ interface Complexity {
|
|
|
614
651
|
/**
|
|
615
652
|
* Disallow unnecessary constructors.
|
|
616
653
|
*/
|
|
617
|
-
noUselessConstructor?:
|
|
654
|
+
noUselessConstructor?: RuleFixConfiguration_for_Null;
|
|
618
655
|
/**
|
|
619
656
|
* Disallow empty exports that don't change anything in a module file.
|
|
620
657
|
*/
|
|
621
|
-
noUselessEmptyExport?:
|
|
658
|
+
noUselessEmptyExport?: RuleFixConfiguration_for_Null;
|
|
622
659
|
/**
|
|
623
660
|
* Disallow unnecessary fragments
|
|
624
661
|
*/
|
|
625
|
-
noUselessFragments?:
|
|
662
|
+
noUselessFragments?: RuleFixConfiguration_for_Null;
|
|
626
663
|
/**
|
|
627
664
|
* Disallow unnecessary labels.
|
|
628
665
|
*/
|
|
629
|
-
noUselessLabel?:
|
|
666
|
+
noUselessLabel?: RuleFixConfiguration_for_Null;
|
|
630
667
|
/**
|
|
631
668
|
* Disallow unnecessary nested block statements.
|
|
632
669
|
*/
|
|
633
|
-
noUselessLoneBlockStatements?:
|
|
670
|
+
noUselessLoneBlockStatements?: RuleFixConfiguration_for_Null;
|
|
634
671
|
/**
|
|
635
672
|
* Disallow renaming import, export, and destructured assignments to the same name.
|
|
636
673
|
*/
|
|
637
|
-
noUselessRename?:
|
|
674
|
+
noUselessRename?: RuleFixConfiguration_for_Null;
|
|
638
675
|
/**
|
|
639
676
|
* Disallow useless case in switch statements.
|
|
640
677
|
*/
|
|
641
|
-
noUselessSwitchCase?:
|
|
678
|
+
noUselessSwitchCase?: RuleFixConfiguration_for_Null;
|
|
642
679
|
/**
|
|
643
680
|
* Disallow ternary operators when simpler alternatives exist.
|
|
644
681
|
*/
|
|
645
|
-
noUselessTernary?:
|
|
682
|
+
noUselessTernary?: RuleFixConfiguration_for_Null;
|
|
646
683
|
/**
|
|
647
684
|
* Disallow useless this aliasing.
|
|
648
685
|
*/
|
|
649
|
-
noUselessThisAlias?:
|
|
686
|
+
noUselessThisAlias?: RuleFixConfiguration_for_Null;
|
|
650
687
|
/**
|
|
651
688
|
* Disallow using any or unknown as type constraint.
|
|
652
689
|
*/
|
|
653
|
-
noUselessTypeConstraint?:
|
|
690
|
+
noUselessTypeConstraint?: RuleFixConfiguration_for_Null;
|
|
654
691
|
/**
|
|
655
692
|
* Disallow the use of void operators, which is not a familiar operator.
|
|
656
693
|
*/
|
|
@@ -666,31 +703,31 @@ interface Complexity {
|
|
|
666
703
|
/**
|
|
667
704
|
* Use arrow functions over function expressions.
|
|
668
705
|
*/
|
|
669
|
-
useArrowFunction?:
|
|
706
|
+
useArrowFunction?: RuleFixConfiguration_for_Null;
|
|
670
707
|
/**
|
|
671
708
|
* Promotes the use of .flatMap() when map().flat() are used together.
|
|
672
709
|
*/
|
|
673
|
-
useFlatMap?:
|
|
710
|
+
useFlatMap?: RuleFixConfiguration_for_Null;
|
|
674
711
|
/**
|
|
675
712
|
* Enforce the usage of a literal access to properties over computed property access.
|
|
676
713
|
*/
|
|
677
|
-
useLiteralKeys?:
|
|
714
|
+
useLiteralKeys?: RuleFixConfiguration_for_Null;
|
|
678
715
|
/**
|
|
679
716
|
* Enforce using concise optional chain instead of chained logical expressions.
|
|
680
717
|
*/
|
|
681
|
-
useOptionalChain?:
|
|
718
|
+
useOptionalChain?: RuleFixConfiguration_for_Null;
|
|
682
719
|
/**
|
|
683
720
|
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
|
|
684
721
|
*/
|
|
685
|
-
useRegexLiterals?:
|
|
722
|
+
useRegexLiterals?: RuleFixConfiguration_for_Null;
|
|
686
723
|
/**
|
|
687
724
|
* Disallow number literal object member names which are not base10 or uses underscore as separator
|
|
688
725
|
*/
|
|
689
|
-
useSimpleNumberKeys?:
|
|
726
|
+
useSimpleNumberKeys?: RuleFixConfiguration_for_Null;
|
|
690
727
|
/**
|
|
691
728
|
* Discard redundant terms from logical expressions.
|
|
692
729
|
*/
|
|
693
|
-
useSimplifiedLogicExpression?:
|
|
730
|
+
useSimplifiedLogicExpression?: RuleFixConfiguration_for_Null;
|
|
694
731
|
}
|
|
695
732
|
interface Correctness {
|
|
696
733
|
/**
|
|
@@ -704,11 +741,15 @@ interface Correctness {
|
|
|
704
741
|
/**
|
|
705
742
|
* Prevents from having const variables being re-assigned.
|
|
706
743
|
*/
|
|
707
|
-
noConstAssign?:
|
|
744
|
+
noConstAssign?: RuleFixConfiguration_for_Null;
|
|
708
745
|
/**
|
|
709
746
|
* Disallow constant expressions in conditions
|
|
710
747
|
*/
|
|
711
748
|
noConstantCondition?: RuleConfiguration_for_Null;
|
|
749
|
+
/**
|
|
750
|
+
* Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
|
|
751
|
+
*/
|
|
752
|
+
noConstantMathMinMaxClamp?: RuleFixConfiguration_for_Null;
|
|
712
753
|
/**
|
|
713
754
|
* Disallow returning a value from a constructor.
|
|
714
755
|
*/
|
|
@@ -721,6 +762,10 @@ interface Correctness {
|
|
|
721
762
|
* Disallows empty destructuring patterns.
|
|
722
763
|
*/
|
|
723
764
|
noEmptyPattern?: RuleConfiguration_for_Null;
|
|
765
|
+
/**
|
|
766
|
+
* Disallow to use unnecessary callback on flatMap.
|
|
767
|
+
*/
|
|
768
|
+
noFlatMapIdentity?: RuleFixConfiguration_for_Null;
|
|
724
769
|
/**
|
|
725
770
|
* Disallow calling global object properties as functions
|
|
726
771
|
*/
|
|
@@ -736,7 +781,7 @@ interface Correctness {
|
|
|
736
781
|
/**
|
|
737
782
|
* Disallow new operators with global non-constructor functions.
|
|
738
783
|
*/
|
|
739
|
-
noInvalidNewBuiltin?:
|
|
784
|
+
noInvalidNewBuiltin?: RuleFixConfiguration_for_Null;
|
|
740
785
|
/**
|
|
741
786
|
* Disallow the use of variables and function parameters before their declaration
|
|
742
787
|
*/
|
|
@@ -744,11 +789,15 @@ interface Correctness {
|
|
|
744
789
|
/**
|
|
745
790
|
* Disallow new operators with the Symbol object.
|
|
746
791
|
*/
|
|
747
|
-
noNewSymbol?:
|
|
792
|
+
noNewSymbol?: RuleFixConfiguration_for_Null;
|
|
793
|
+
/**
|
|
794
|
+
* Forbid the use of Node.js builtin modules.
|
|
795
|
+
*/
|
|
796
|
+
noNodejsModules?: RuleConfiguration_for_Null;
|
|
748
797
|
/**
|
|
749
798
|
* Disallow \8 and \9 escape sequences in string literals.
|
|
750
799
|
*/
|
|
751
|
-
noNonoctalDecimalEscape?:
|
|
800
|
+
noNonoctalDecimalEscape?: RuleFixConfiguration_for_Null;
|
|
752
801
|
/**
|
|
753
802
|
* Disallow literal numbers that lose precision
|
|
754
803
|
*/
|
|
@@ -768,11 +817,11 @@ interface Correctness {
|
|
|
768
817
|
/**
|
|
769
818
|
* Disallow comparison of expressions modifying the string case with non-compliant value.
|
|
770
819
|
*/
|
|
771
|
-
noStringCaseMismatch?:
|
|
820
|
+
noStringCaseMismatch?: RuleFixConfiguration_for_Null;
|
|
772
821
|
/**
|
|
773
822
|
* Disallow lexical declarations in switch clauses.
|
|
774
823
|
*/
|
|
775
|
-
noSwitchDeclarations?:
|
|
824
|
+
noSwitchDeclarations?: RuleFixConfiguration_for_Null;
|
|
776
825
|
/**
|
|
777
826
|
* Prevents the usage of variables that haven't been declared inside the document.
|
|
778
827
|
*/
|
|
@@ -780,7 +829,7 @@ interface Correctness {
|
|
|
780
829
|
/**
|
|
781
830
|
* Avoid using unnecessary continue.
|
|
782
831
|
*/
|
|
783
|
-
noUnnecessaryContinue?:
|
|
832
|
+
noUnnecessaryContinue?: RuleFixConfiguration_for_Null;
|
|
784
833
|
/**
|
|
785
834
|
* Disallow unreachable code
|
|
786
835
|
*/
|
|
@@ -800,23 +849,23 @@ interface Correctness {
|
|
|
800
849
|
/**
|
|
801
850
|
* Disallow unused imports.
|
|
802
851
|
*/
|
|
803
|
-
noUnusedImports?:
|
|
852
|
+
noUnusedImports?: RuleFixConfiguration_for_Null;
|
|
804
853
|
/**
|
|
805
854
|
* Disallow unused labels.
|
|
806
855
|
*/
|
|
807
|
-
noUnusedLabels?:
|
|
856
|
+
noUnusedLabels?: RuleFixConfiguration_for_Null;
|
|
808
857
|
/**
|
|
809
858
|
* Disallow unused private class members
|
|
810
859
|
*/
|
|
811
|
-
noUnusedPrivateClassMembers?:
|
|
860
|
+
noUnusedPrivateClassMembers?: RuleFixConfiguration_for_Null;
|
|
812
861
|
/**
|
|
813
862
|
* Disallow unused variables.
|
|
814
863
|
*/
|
|
815
|
-
noUnusedVariables?:
|
|
864
|
+
noUnusedVariables?: RuleFixConfiguration_for_Null;
|
|
816
865
|
/**
|
|
817
866
|
* This rules prevents void elements (AKA self-closing elements) from having children.
|
|
818
867
|
*/
|
|
819
|
-
noVoidElementsWithChildren?:
|
|
868
|
+
noVoidElementsWithChildren?: RuleFixConfiguration_for_Null;
|
|
820
869
|
/**
|
|
821
870
|
* Disallow returning a value from a function with the return type 'void'
|
|
822
871
|
*/
|
|
@@ -825,6 +874,10 @@ interface Correctness {
|
|
|
825
874
|
* It enables the recommended rules for this group
|
|
826
875
|
*/
|
|
827
876
|
recommended?: boolean;
|
|
877
|
+
/**
|
|
878
|
+
* Disallow Array constructors.
|
|
879
|
+
*/
|
|
880
|
+
useArrayLiterals?: RuleFixConfiguration_for_Null;
|
|
828
881
|
/**
|
|
829
882
|
* Enforce all dependencies are correctly specified in a React hook.
|
|
830
883
|
*/
|
|
@@ -836,7 +889,7 @@ interface Correctness {
|
|
|
836
889
|
/**
|
|
837
890
|
* Require calls to isNaN() when checking for NaN.
|
|
838
891
|
*/
|
|
839
|
-
useIsNan?:
|
|
892
|
+
useIsNan?: RuleFixConfiguration_for_Null;
|
|
840
893
|
/**
|
|
841
894
|
* Disallow missing key props in iterators/collection literals.
|
|
842
895
|
*/
|
|
@@ -855,22 +908,10 @@ interface Nursery {
|
|
|
855
908
|
* It enables ALL rules for this group.
|
|
856
909
|
*/
|
|
857
910
|
all?: boolean;
|
|
858
|
-
/**
|
|
859
|
-
* WIP: This rule hasn't been implemented yet.
|
|
860
|
-
*/
|
|
861
|
-
noColorInvalidHex?: RuleConfiguration_for_Null;
|
|
862
911
|
/**
|
|
863
912
|
* Disallow the use of console.
|
|
864
913
|
*/
|
|
865
|
-
noConsole?:
|
|
866
|
-
/**
|
|
867
|
-
* Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
|
|
868
|
-
*/
|
|
869
|
-
noConstantMathMinMaxClamp?: RuleConfiguration_for_Null;
|
|
870
|
-
/**
|
|
871
|
-
* Disallow CSS empty blocks.
|
|
872
|
-
*/
|
|
873
|
-
noCssEmptyBlock?: RuleConfiguration_for_NoCssEmptyBlockOptions;
|
|
914
|
+
noConsole?: RuleFixConfiguration_for_Null;
|
|
874
915
|
/**
|
|
875
916
|
* Disallow using a callback in asynchronous tests and hooks.
|
|
876
917
|
*/
|
|
@@ -896,29 +937,33 @@ interface Nursery {
|
|
|
896
937
|
*/
|
|
897
938
|
noDuplicateSelectorsKeyframeBlock?: RuleConfiguration_for_Null;
|
|
898
939
|
/**
|
|
899
|
-
* Disallow
|
|
940
|
+
* Disallow CSS empty blocks.
|
|
900
941
|
*/
|
|
901
|
-
|
|
942
|
+
noEmptyBlock?: RuleConfiguration_for_Null;
|
|
902
943
|
/**
|
|
903
|
-
* Disallow
|
|
944
|
+
* Disallow variables from evolving into any type through reassignments.
|
|
904
945
|
*/
|
|
905
|
-
|
|
946
|
+
noEvolvingTypes?: RuleConfiguration_for_Null;
|
|
906
947
|
/**
|
|
907
948
|
* Disallow invalid !important within keyframe declarations
|
|
908
949
|
*/
|
|
909
950
|
noImportantInKeyframe?: RuleConfiguration_for_Null;
|
|
910
951
|
/**
|
|
911
|
-
*
|
|
952
|
+
* Disallow the use of @import at-rules in invalid positions.
|
|
912
953
|
*/
|
|
913
|
-
|
|
954
|
+
noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
|
|
914
955
|
/**
|
|
915
|
-
*
|
|
956
|
+
* Enforce that a label element or component has a text label and an associated input.
|
|
916
957
|
*/
|
|
917
|
-
|
|
958
|
+
noLabelWithoutControl?: RuleConfiguration_for_NoLabelWithoutControlOptions;
|
|
959
|
+
/**
|
|
960
|
+
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
961
|
+
*/
|
|
962
|
+
noMisplacedAssertion?: RuleConfiguration_for_Null;
|
|
918
963
|
/**
|
|
919
964
|
* Prevents React-specific JSX properties from being used.
|
|
920
965
|
*/
|
|
921
|
-
noReactSpecificProps?:
|
|
966
|
+
noReactSpecificProps?: RuleFixConfiguration_for_Null;
|
|
922
967
|
/**
|
|
923
968
|
* Disallow specified modules when loaded by import or require.
|
|
924
969
|
*/
|
|
@@ -931,6 +976,14 @@ interface Nursery {
|
|
|
931
976
|
* Disallow unknown CSS value functions.
|
|
932
977
|
*/
|
|
933
978
|
noUnknownFunction?: RuleConfiguration_for_Null;
|
|
979
|
+
/**
|
|
980
|
+
* Disallow unknown media feature names.
|
|
981
|
+
*/
|
|
982
|
+
noUnknownMediaFeatureName?: RuleConfiguration_for_Null;
|
|
983
|
+
/**
|
|
984
|
+
* Disallow unknown properties.
|
|
985
|
+
*/
|
|
986
|
+
noUnknownProperty?: RuleConfiguration_for_Null;
|
|
934
987
|
/**
|
|
935
988
|
* Disallow unknown pseudo-element selectors.
|
|
936
989
|
*/
|
|
@@ -943,42 +996,90 @@ interface Nursery {
|
|
|
943
996
|
* Disallow unmatchable An+B selectors.
|
|
944
997
|
*/
|
|
945
998
|
noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
|
|
999
|
+
/**
|
|
1000
|
+
* Disallow unused function parameters.
|
|
1001
|
+
*/
|
|
1002
|
+
noUnusedFunctionParameters?: RuleFixConfiguration_for_Null;
|
|
1003
|
+
/**
|
|
1004
|
+
* Disallow unnecessary concatenation of string or template literals.
|
|
1005
|
+
*/
|
|
1006
|
+
noUselessStringConcat?: RuleFixConfiguration_for_Null;
|
|
946
1007
|
/**
|
|
947
1008
|
* Disallow initializing variables to undefined.
|
|
948
1009
|
*/
|
|
949
|
-
noUselessUndefinedInitialization?:
|
|
1010
|
+
noUselessUndefinedInitialization?: RuleFixConfiguration_for_Null;
|
|
1011
|
+
/**
|
|
1012
|
+
* Disallow the use of yoda expressions.
|
|
1013
|
+
*/
|
|
1014
|
+
noYodaExpression?: RuleFixConfiguration_for_Null;
|
|
950
1015
|
/**
|
|
951
1016
|
* It enables the recommended rules for this group
|
|
952
1017
|
*/
|
|
953
1018
|
recommended?: boolean;
|
|
954
1019
|
/**
|
|
955
|
-
* Disallow
|
|
1020
|
+
* Disallow the use of overload signatures that are not next to each other.
|
|
956
1021
|
*/
|
|
957
|
-
|
|
1022
|
+
useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
|
|
958
1023
|
/**
|
|
959
1024
|
* Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
|
|
960
1025
|
*/
|
|
961
|
-
useConsistentBuiltinInstantiation?:
|
|
1026
|
+
useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
|
|
1027
|
+
/**
|
|
1028
|
+
* Use Date.now() to get the number of milliseconds since the Unix Epoch.
|
|
1029
|
+
*/
|
|
1030
|
+
useDateNow?: RuleFixConfiguration_for_Null;
|
|
962
1031
|
/**
|
|
963
1032
|
* Require the default clause in switch statements.
|
|
964
1033
|
*/
|
|
965
1034
|
useDefaultSwitchClause?: RuleConfiguration_for_Null;
|
|
1035
|
+
/**
|
|
1036
|
+
* Enforce passing a message value when creating a built-in error.
|
|
1037
|
+
*/
|
|
1038
|
+
useErrorMessage?: RuleConfiguration_for_Null;
|
|
966
1039
|
/**
|
|
967
1040
|
* Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
|
|
968
1041
|
*/
|
|
969
|
-
useExplicitLengthCheck?:
|
|
1042
|
+
useExplicitLengthCheck?: RuleFixConfiguration_for_Null;
|
|
1043
|
+
/**
|
|
1044
|
+
* Elements with an interactive role and interaction handlers must be focusable.
|
|
1045
|
+
*/
|
|
1046
|
+
useFocusableInteractive?: RuleConfiguration_for_Null;
|
|
970
1047
|
/**
|
|
971
1048
|
* Disallow a missing generic family keyword within font families.
|
|
972
1049
|
*/
|
|
973
1050
|
useGenericFontNames?: RuleConfiguration_for_Null;
|
|
1051
|
+
/**
|
|
1052
|
+
* Enforce file extensions for relative imports.
|
|
1053
|
+
*/
|
|
1054
|
+
useImportExtensions?: RuleFixConfiguration_for_Null;
|
|
974
1055
|
/**
|
|
975
1056
|
* Disallows package private imports.
|
|
976
1057
|
*/
|
|
977
1058
|
useImportRestrictions?: RuleConfiguration_for_Null;
|
|
1059
|
+
/**
|
|
1060
|
+
* Enforce using the digits argument with Number#toFixed().
|
|
1061
|
+
*/
|
|
1062
|
+
useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
|
|
1063
|
+
/**
|
|
1064
|
+
* It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
|
|
1065
|
+
*/
|
|
1066
|
+
useSemanticElements?: RuleConfiguration_for_Null;
|
|
978
1067
|
/**
|
|
979
1068
|
* Enforce the sorting of CSS utility classes.
|
|
980
1069
|
*/
|
|
981
|
-
useSortedClasses?:
|
|
1070
|
+
useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
|
|
1071
|
+
/**
|
|
1072
|
+
* Require new when throwing an error.
|
|
1073
|
+
*/
|
|
1074
|
+
useThrowNewError?: RuleFixConfiguration_for_Null;
|
|
1075
|
+
/**
|
|
1076
|
+
* Disallow throwing non-Error values.
|
|
1077
|
+
*/
|
|
1078
|
+
useThrowOnlyError?: RuleConfiguration_for_Null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Require regex literals to be declared at the top level.
|
|
1081
|
+
*/
|
|
1082
|
+
useTopLevelRegex?: RuleConfiguration_for_Null;
|
|
982
1083
|
}
|
|
983
1084
|
interface Performance {
|
|
984
1085
|
/**
|
|
@@ -996,7 +1097,7 @@ interface Performance {
|
|
|
996
1097
|
/**
|
|
997
1098
|
* Disallow the use of the delete operator.
|
|
998
1099
|
*/
|
|
999
|
-
noDelete?:
|
|
1100
|
+
noDelete?: RuleFixConfiguration_for_Null;
|
|
1000
1101
|
/**
|
|
1001
1102
|
* Avoid re-export all.
|
|
1002
1103
|
*/
|
|
@@ -1048,11 +1149,11 @@ interface Style {
|
|
|
1048
1149
|
/**
|
|
1049
1150
|
* Disallow implicit true values on JSX boolean attributes
|
|
1050
1151
|
*/
|
|
1051
|
-
noImplicitBoolean?:
|
|
1152
|
+
noImplicitBoolean?: RuleFixConfiguration_for_Null;
|
|
1052
1153
|
/**
|
|
1053
1154
|
* Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.
|
|
1054
1155
|
*/
|
|
1055
|
-
noInferrableTypes?:
|
|
1156
|
+
noInferrableTypes?: RuleFixConfiguration_for_Null;
|
|
1056
1157
|
/**
|
|
1057
1158
|
* Disallow the use of TypeScript's namespaces.
|
|
1058
1159
|
*/
|
|
@@ -1064,11 +1165,11 @@ interface Style {
|
|
|
1064
1165
|
/**
|
|
1065
1166
|
* Disallow negation in the condition of an if statement if it has an else clause.
|
|
1066
1167
|
*/
|
|
1067
|
-
noNegationElse?:
|
|
1168
|
+
noNegationElse?: RuleFixConfiguration_for_Null;
|
|
1068
1169
|
/**
|
|
1069
1170
|
* Disallow non-null assertions using the ! postfix operator.
|
|
1070
1171
|
*/
|
|
1071
|
-
noNonNullAssertion?:
|
|
1172
|
+
noNonNullAssertion?: RuleFixConfiguration_for_Null;
|
|
1072
1173
|
/**
|
|
1073
1174
|
* Disallow reassigning function parameters.
|
|
1074
1175
|
*/
|
|
@@ -1084,19 +1185,19 @@ interface Style {
|
|
|
1084
1185
|
/**
|
|
1085
1186
|
* Disallow the use of constants which its value is the upper-case version of its name.
|
|
1086
1187
|
*/
|
|
1087
|
-
noShoutyConstants?:
|
|
1188
|
+
noShoutyConstants?: RuleFixConfiguration_for_Null;
|
|
1088
1189
|
/**
|
|
1089
1190
|
* Disallow template literals if interpolation and special-character handling are not needed
|
|
1090
1191
|
*/
|
|
1091
|
-
noUnusedTemplateLiteral?:
|
|
1192
|
+
noUnusedTemplateLiteral?: RuleFixConfiguration_for_Null;
|
|
1092
1193
|
/**
|
|
1093
1194
|
* Disallow else block when the if block breaks early.
|
|
1094
1195
|
*/
|
|
1095
|
-
noUselessElse?:
|
|
1196
|
+
noUselessElse?: RuleFixConfiguration_for_Null;
|
|
1096
1197
|
/**
|
|
1097
1198
|
* Disallow the use of var
|
|
1098
1199
|
*/
|
|
1099
|
-
noVar?:
|
|
1200
|
+
noVar?: RuleFixConfiguration_for_Null;
|
|
1100
1201
|
/**
|
|
1101
1202
|
* It enables the recommended rules for this group
|
|
1102
1203
|
*/
|
|
@@ -1104,39 +1205,39 @@ interface Style {
|
|
|
1104
1205
|
/**
|
|
1105
1206
|
* Enforce the use of as const over literal type and type annotation.
|
|
1106
1207
|
*/
|
|
1107
|
-
useAsConstAssertion?:
|
|
1208
|
+
useAsConstAssertion?: RuleFixConfiguration_for_Null;
|
|
1108
1209
|
/**
|
|
1109
1210
|
* Requires following curly brace conventions.
|
|
1110
1211
|
*/
|
|
1111
|
-
useBlockStatements?:
|
|
1212
|
+
useBlockStatements?: RuleFixConfiguration_for_Null;
|
|
1112
1213
|
/**
|
|
1113
1214
|
* Enforce using else if instead of nested if in else clauses.
|
|
1114
1215
|
*/
|
|
1115
|
-
useCollapsedElseIf?:
|
|
1216
|
+
useCollapsedElseIf?: RuleFixConfiguration_for_Null;
|
|
1116
1217
|
/**
|
|
1117
1218
|
* Require consistently using either T\[] or Array\<T>
|
|
1118
1219
|
*/
|
|
1119
|
-
useConsistentArrayType?:
|
|
1220
|
+
useConsistentArrayType?: RuleFixConfiguration_for_ConsistentArrayTypeOptions;
|
|
1120
1221
|
/**
|
|
1121
1222
|
* Require const declarations for variables that are only assigned once.
|
|
1122
1223
|
*/
|
|
1123
|
-
useConst?:
|
|
1224
|
+
useConst?: RuleFixConfiguration_for_Null;
|
|
1124
1225
|
/**
|
|
1125
1226
|
* Enforce default function parameters and optional function parameters to be last.
|
|
1126
1227
|
*/
|
|
1127
|
-
useDefaultParameterLast?:
|
|
1228
|
+
useDefaultParameterLast?: RuleFixConfiguration_for_Null;
|
|
1128
1229
|
/**
|
|
1129
1230
|
* Require that each enum member value be explicitly initialized.
|
|
1130
1231
|
*/
|
|
1131
|
-
useEnumInitializers?:
|
|
1232
|
+
useEnumInitializers?: RuleFixConfiguration_for_Null;
|
|
1132
1233
|
/**
|
|
1133
1234
|
* Disallow the use of Math.pow in favor of the ** operator.
|
|
1134
1235
|
*/
|
|
1135
|
-
useExponentiationOperator?:
|
|
1236
|
+
useExponentiationOperator?: RuleFixConfiguration_for_Null;
|
|
1136
1237
|
/**
|
|
1137
1238
|
* Promotes the use of export type for types.
|
|
1138
1239
|
*/
|
|
1139
|
-
useExportType?:
|
|
1240
|
+
useExportType?: RuleFixConfiguration_for_Null;
|
|
1140
1241
|
/**
|
|
1141
1242
|
* Enforce naming conventions for JavaScript and TypeScript filenames.
|
|
1142
1243
|
*/
|
|
@@ -1148,11 +1249,11 @@ interface Style {
|
|
|
1148
1249
|
/**
|
|
1149
1250
|
* This rule enforces the use of \<>...\</> over \<Fragment>...\</Fragment>.
|
|
1150
1251
|
*/
|
|
1151
|
-
useFragmentSyntax?:
|
|
1252
|
+
useFragmentSyntax?: RuleFixConfiguration_for_Null;
|
|
1152
1253
|
/**
|
|
1153
1254
|
* Promotes the use of import type for types.
|
|
1154
1255
|
*/
|
|
1155
|
-
useImportType?:
|
|
1256
|
+
useImportType?: RuleFixConfiguration_for_Null;
|
|
1156
1257
|
/**
|
|
1157
1258
|
* Require all enum members to be literal values.
|
|
1158
1259
|
*/
|
|
@@ -1160,55 +1261,55 @@ interface Style {
|
|
|
1160
1261
|
/**
|
|
1161
1262
|
* Enforce naming conventions for everything across a codebase.
|
|
1162
1263
|
*/
|
|
1163
|
-
useNamingConvention?:
|
|
1264
|
+
useNamingConvention?: RuleFixConfiguration_for_NamingConventionOptions;
|
|
1164
1265
|
/**
|
|
1165
1266
|
* Promotes the usage of node:assert/strict over node:assert.
|
|
1166
1267
|
*/
|
|
1167
|
-
useNodeAssertStrict?:
|
|
1268
|
+
useNodeAssertStrict?: RuleFixConfiguration_for_Null;
|
|
1168
1269
|
/**
|
|
1169
1270
|
* Enforces using the node: protocol for Node.js builtin modules.
|
|
1170
1271
|
*/
|
|
1171
|
-
useNodejsImportProtocol?:
|
|
1272
|
+
useNodejsImportProtocol?: RuleFixConfiguration_for_Null;
|
|
1172
1273
|
/**
|
|
1173
1274
|
* Use the Number properties instead of global ones.
|
|
1174
1275
|
*/
|
|
1175
|
-
useNumberNamespace?:
|
|
1276
|
+
useNumberNamespace?: RuleFixConfiguration_for_Null;
|
|
1176
1277
|
/**
|
|
1177
1278
|
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
|
|
1178
1279
|
*/
|
|
1179
|
-
useNumericLiterals?:
|
|
1280
|
+
useNumericLiterals?: RuleFixConfiguration_for_Null;
|
|
1180
1281
|
/**
|
|
1181
1282
|
* Prevent extra closing tags for components without children
|
|
1182
1283
|
*/
|
|
1183
|
-
useSelfClosingElements?:
|
|
1284
|
+
useSelfClosingElements?: RuleFixConfiguration_for_Null;
|
|
1184
1285
|
/**
|
|
1185
1286
|
* When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
|
|
1186
1287
|
*/
|
|
1187
|
-
useShorthandArrayType?:
|
|
1288
|
+
useShorthandArrayType?: RuleFixConfiguration_for_Null;
|
|
1188
1289
|
/**
|
|
1189
1290
|
* Require assignment operator shorthand where possible.
|
|
1190
1291
|
*/
|
|
1191
|
-
useShorthandAssign?:
|
|
1292
|
+
useShorthandAssign?: RuleFixConfiguration_for_Null;
|
|
1192
1293
|
/**
|
|
1193
1294
|
* Enforce using function types instead of object type with call signatures.
|
|
1194
1295
|
*/
|
|
1195
|
-
useShorthandFunctionType?:
|
|
1296
|
+
useShorthandFunctionType?: RuleFixConfiguration_for_Null;
|
|
1196
1297
|
/**
|
|
1197
1298
|
* Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
|
|
1198
1299
|
*/
|
|
1199
|
-
useSingleCaseStatement?:
|
|
1300
|
+
useSingleCaseStatement?: RuleFixConfiguration_for_Null;
|
|
1200
1301
|
/**
|
|
1201
1302
|
* Disallow multiple variable declarations in the same variable statement
|
|
1202
1303
|
*/
|
|
1203
|
-
useSingleVarDeclarator?:
|
|
1304
|
+
useSingleVarDeclarator?: RuleFixConfiguration_for_Null;
|
|
1204
1305
|
/**
|
|
1205
1306
|
* Prefer template literals over string concatenation.
|
|
1206
1307
|
*/
|
|
1207
|
-
useTemplate?:
|
|
1308
|
+
useTemplate?: RuleFixConfiguration_for_Null;
|
|
1208
1309
|
/**
|
|
1209
1310
|
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
|
|
1210
1311
|
*/
|
|
1211
|
-
useWhile?:
|
|
1312
|
+
useWhile?: RuleFixConfiguration_for_Null;
|
|
1212
1313
|
}
|
|
1213
1314
|
interface Suspicious {
|
|
1214
1315
|
/**
|
|
@@ -1218,7 +1319,7 @@ interface Suspicious {
|
|
|
1218
1319
|
/**
|
|
1219
1320
|
* Use standard constants instead of approximated literals.
|
|
1220
1321
|
*/
|
|
1221
|
-
noApproximativeNumericConstant?:
|
|
1322
|
+
noApproximativeNumericConstant?: RuleFixConfiguration_for_Null;
|
|
1222
1323
|
/**
|
|
1223
1324
|
* Discourage the usage of Array index in keys.
|
|
1224
1325
|
*/
|
|
@@ -1242,11 +1343,11 @@ interface Suspicious {
|
|
|
1242
1343
|
/**
|
|
1243
1344
|
* Prevent comments from being inserted as text nodes
|
|
1244
1345
|
*/
|
|
1245
|
-
noCommentText?:
|
|
1346
|
+
noCommentText?: RuleFixConfiguration_for_Null;
|
|
1246
1347
|
/**
|
|
1247
1348
|
* Disallow comparing against -0
|
|
1248
1349
|
*/
|
|
1249
|
-
noCompareNegZero?:
|
|
1350
|
+
noCompareNegZero?: RuleFixConfiguration_for_Null;
|
|
1250
1351
|
/**
|
|
1251
1352
|
* Disallow labeled statements that are not loops.
|
|
1252
1353
|
*/
|
|
@@ -1254,15 +1355,15 @@ interface Suspicious {
|
|
|
1254
1355
|
/**
|
|
1255
1356
|
* Disallow void type outside of generic or return types.
|
|
1256
1357
|
*/
|
|
1257
|
-
noConfusingVoidType?:
|
|
1358
|
+
noConfusingVoidType?: RuleFixConfiguration_for_Null;
|
|
1258
1359
|
/**
|
|
1259
1360
|
* Disallow the use of console.log
|
|
1260
1361
|
*/
|
|
1261
|
-
noConsoleLog?:
|
|
1362
|
+
noConsoleLog?: RuleFixConfiguration_for_Null;
|
|
1262
1363
|
/**
|
|
1263
1364
|
* Disallow TypeScript const enum
|
|
1264
1365
|
*/
|
|
1265
|
-
noConstEnum?:
|
|
1366
|
+
noConstEnum?: RuleFixConfiguration_for_Null;
|
|
1266
1367
|
/**
|
|
1267
1368
|
* Prevents from having control characters and some escape sequences that match control characters in regular expressions.
|
|
1268
1369
|
*/
|
|
@@ -1270,11 +1371,11 @@ interface Suspicious {
|
|
|
1270
1371
|
/**
|
|
1271
1372
|
* Disallow the use of debugger
|
|
1272
1373
|
*/
|
|
1273
|
-
noDebugger?:
|
|
1374
|
+
noDebugger?: RuleFixConfiguration_for_Null;
|
|
1274
1375
|
/**
|
|
1275
1376
|
* Require the use of === and !==
|
|
1276
1377
|
*/
|
|
1277
|
-
noDoubleEquals?:
|
|
1378
|
+
noDoubleEquals?: RuleFixConfiguration_for_Null;
|
|
1278
1379
|
/**
|
|
1279
1380
|
* Disallow duplicate case labels.
|
|
1280
1381
|
*/
|
|
@@ -1290,7 +1391,7 @@ interface Suspicious {
|
|
|
1290
1391
|
/**
|
|
1291
1392
|
* Prevents object literals having more than one property declaration for the same name.
|
|
1292
1393
|
*/
|
|
1293
|
-
noDuplicateObjectKeys?:
|
|
1394
|
+
noDuplicateObjectKeys?: RuleFixConfiguration_for_Null;
|
|
1294
1395
|
/**
|
|
1295
1396
|
* Disallow duplicate function parameter name.
|
|
1296
1397
|
*/
|
|
@@ -1306,7 +1407,7 @@ interface Suspicious {
|
|
|
1306
1407
|
/**
|
|
1307
1408
|
* Disallow the declaration of empty interfaces.
|
|
1308
1409
|
*/
|
|
1309
|
-
noEmptyInterface?:
|
|
1410
|
+
noEmptyInterface?: RuleFixConfiguration_for_Null;
|
|
1310
1411
|
/**
|
|
1311
1412
|
* Disallow the any type usage.
|
|
1312
1413
|
*/
|
|
@@ -1318,7 +1419,7 @@ interface Suspicious {
|
|
|
1318
1419
|
/**
|
|
1319
1420
|
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
1320
1421
|
*/
|
|
1321
|
-
noExtraNonNullAssertion?:
|
|
1422
|
+
noExtraNonNullAssertion?: RuleFixConfiguration_for_Null;
|
|
1322
1423
|
/**
|
|
1323
1424
|
* Disallow fallthrough of switch clauses.
|
|
1324
1425
|
*/
|
|
@@ -1326,7 +1427,7 @@ interface Suspicious {
|
|
|
1326
1427
|
/**
|
|
1327
1428
|
* Disallow focused tests.
|
|
1328
1429
|
*/
|
|
1329
|
-
noFocusedTests?:
|
|
1430
|
+
noFocusedTests?: RuleFixConfiguration_for_Null;
|
|
1330
1431
|
/**
|
|
1331
1432
|
* Disallow reassigning function declarations.
|
|
1332
1433
|
*/
|
|
@@ -1338,11 +1439,11 @@ interface Suspicious {
|
|
|
1338
1439
|
/**
|
|
1339
1440
|
* Use Number.isFinite instead of global isFinite.
|
|
1340
1441
|
*/
|
|
1341
|
-
noGlobalIsFinite?:
|
|
1442
|
+
noGlobalIsFinite?: RuleFixConfiguration_for_Null;
|
|
1342
1443
|
/**
|
|
1343
1444
|
* Use Number.isNaN instead of global isNaN.
|
|
1344
1445
|
*/
|
|
1345
|
-
noGlobalIsNan?:
|
|
1446
|
+
noGlobalIsNan?: RuleFixConfiguration_for_Null;
|
|
1346
1447
|
/**
|
|
1347
1448
|
* Disallow use of implicit any type on variable declarations.
|
|
1348
1449
|
*/
|
|
@@ -1358,7 +1459,7 @@ interface Suspicious {
|
|
|
1358
1459
|
/**
|
|
1359
1460
|
* Disallow characters made with multiple code points in character class syntax.
|
|
1360
1461
|
*/
|
|
1361
|
-
noMisleadingCharacterClass?:
|
|
1462
|
+
noMisleadingCharacterClass?: RuleFixConfiguration_for_Null;
|
|
1362
1463
|
/**
|
|
1363
1464
|
* Enforce proper usage of new and constructor.
|
|
1364
1465
|
*/
|
|
@@ -1366,7 +1467,7 @@ interface Suspicious {
|
|
|
1366
1467
|
/**
|
|
1367
1468
|
* Disallow shorthand assign when variable appears on both sides.
|
|
1368
1469
|
*/
|
|
1369
|
-
noMisrefactoredShorthandAssign?:
|
|
1470
|
+
noMisrefactoredShorthandAssign?: RuleFixConfiguration_for_Null;
|
|
1370
1471
|
/**
|
|
1371
1472
|
* Disallow direct use of Object.prototype builtins.
|
|
1372
1473
|
*/
|
|
@@ -1378,7 +1479,7 @@ interface Suspicious {
|
|
|
1378
1479
|
/**
|
|
1379
1480
|
* Prevents from having redundant "use strict".
|
|
1380
1481
|
*/
|
|
1381
|
-
noRedundantUseStrict?:
|
|
1482
|
+
noRedundantUseStrict?: RuleFixConfiguration_for_Null;
|
|
1382
1483
|
/**
|
|
1383
1484
|
* Disallow comparisons where both sides are exactly the same.
|
|
1384
1485
|
*/
|
|
@@ -1390,11 +1491,11 @@ interface Suspicious {
|
|
|
1390
1491
|
/**
|
|
1391
1492
|
* Disallow disabled tests.
|
|
1392
1493
|
*/
|
|
1393
|
-
noSkippedTests?:
|
|
1494
|
+
noSkippedTests?: RuleFixConfiguration_for_Null;
|
|
1394
1495
|
/**
|
|
1395
1496
|
* Disallow sparse arrays
|
|
1396
1497
|
*/
|
|
1397
|
-
noSparseArray?:
|
|
1498
|
+
noSparseArray?: RuleFixConfiguration_for_Null;
|
|
1398
1499
|
/**
|
|
1399
1500
|
* It detects possible "wrong" semicolons inside JSX elements.
|
|
1400
1501
|
*/
|
|
@@ -1410,7 +1511,7 @@ interface Suspicious {
|
|
|
1410
1511
|
/**
|
|
1411
1512
|
* Disallow using unsafe negation.
|
|
1412
1513
|
*/
|
|
1413
|
-
noUnsafeNegation?:
|
|
1514
|
+
noUnsafeNegation?: RuleFixConfiguration_for_Null;
|
|
1414
1515
|
/**
|
|
1415
1516
|
* It enables the recommended rules for this group
|
|
1416
1517
|
*/
|
|
@@ -1430,15 +1531,15 @@ interface Suspicious {
|
|
|
1430
1531
|
/**
|
|
1431
1532
|
* Use Array.isArray() instead of instanceof Array.
|
|
1432
1533
|
*/
|
|
1433
|
-
useIsArray?:
|
|
1534
|
+
useIsArray?: RuleFixConfiguration_for_Null;
|
|
1434
1535
|
/**
|
|
1435
1536
|
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
1436
1537
|
*/
|
|
1437
|
-
useNamespaceKeyword?:
|
|
1538
|
+
useNamespaceKeyword?: RuleFixConfiguration_for_Null;
|
|
1438
1539
|
/**
|
|
1439
1540
|
* 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
|
|
1440
1541
|
*/
|
|
1441
|
-
useValidTypeof?:
|
|
1542
|
+
useValidTypeof?: RuleFixConfiguration_for_Null;
|
|
1442
1543
|
}
|
|
1443
1544
|
interface OverrideFormatterConfiguration {
|
|
1444
1545
|
/**
|
|
@@ -1487,12 +1588,15 @@ interface OverrideOrganizeImportsConfiguration {
|
|
|
1487
1588
|
*/
|
|
1488
1589
|
enabled?: boolean;
|
|
1489
1590
|
}
|
|
1591
|
+
type RuleFixConfiguration_for_Null =
|
|
1592
|
+
| RulePlainConfiguration
|
|
1593
|
+
| RuleWithFixOptions_for_Null;
|
|
1490
1594
|
type RuleConfiguration_for_Null =
|
|
1491
1595
|
| RulePlainConfiguration
|
|
1492
1596
|
| RuleWithOptions_for_Null;
|
|
1493
|
-
type
|
|
1597
|
+
type RuleFixConfiguration_for_ValidAriaRoleOptions =
|
|
1494
1598
|
| RulePlainConfiguration
|
|
1495
|
-
|
|
|
1599
|
+
| RuleWithFixOptions_for_ValidAriaRoleOptions;
|
|
1496
1600
|
type RuleConfiguration_for_ComplexityOptions =
|
|
1497
1601
|
| RulePlainConfiguration
|
|
1498
1602
|
| RuleWithOptions_for_ComplexityOptions;
|
|
@@ -1502,76 +1606,179 @@ type RuleConfiguration_for_HooksOptions =
|
|
|
1502
1606
|
type RuleConfiguration_for_DeprecatedHooksOptions =
|
|
1503
1607
|
| RulePlainConfiguration
|
|
1504
1608
|
| RuleWithOptions_for_DeprecatedHooksOptions;
|
|
1505
|
-
type
|
|
1609
|
+
type RuleConfiguration_for_NoLabelWithoutControlOptions =
|
|
1506
1610
|
| RulePlainConfiguration
|
|
1507
|
-
|
|
|
1611
|
+
| RuleWithOptions_for_NoLabelWithoutControlOptions;
|
|
1508
1612
|
type RuleConfiguration_for_RestrictedImportsOptions =
|
|
1509
1613
|
| RulePlainConfiguration
|
|
1510
1614
|
| RuleWithOptions_for_RestrictedImportsOptions;
|
|
1511
|
-
type
|
|
1615
|
+
type RuleFixConfiguration_for_UtilityClassSortingOptions =
|
|
1512
1616
|
| RulePlainConfiguration
|
|
1513
|
-
|
|
|
1617
|
+
| RuleWithFixOptions_for_UtilityClassSortingOptions;
|
|
1514
1618
|
type RuleConfiguration_for_RestrictedGlobalsOptions =
|
|
1515
1619
|
| RulePlainConfiguration
|
|
1516
1620
|
| RuleWithOptions_for_RestrictedGlobalsOptions;
|
|
1517
|
-
type
|
|
1621
|
+
type RuleFixConfiguration_for_ConsistentArrayTypeOptions =
|
|
1518
1622
|
| RulePlainConfiguration
|
|
1519
|
-
|
|
|
1623
|
+
| RuleWithFixOptions_for_ConsistentArrayTypeOptions;
|
|
1520
1624
|
type RuleConfiguration_for_FilenamingConventionOptions =
|
|
1521
1625
|
| RulePlainConfiguration
|
|
1522
1626
|
| RuleWithOptions_for_FilenamingConventionOptions;
|
|
1523
|
-
type
|
|
1627
|
+
type RuleFixConfiguration_for_NamingConventionOptions =
|
|
1524
1628
|
| RulePlainConfiguration
|
|
1525
|
-
|
|
|
1526
|
-
type RulePlainConfiguration = "warn" | "error" | "off";
|
|
1629
|
+
| RuleWithFixOptions_for_NamingConventionOptions;
|
|
1630
|
+
type RulePlainConfiguration = "warn" | "error" | "info" | "off";
|
|
1631
|
+
interface RuleWithFixOptions_for_Null {
|
|
1632
|
+
/**
|
|
1633
|
+
* The kind of the code actions emitted by the rule
|
|
1634
|
+
*/
|
|
1635
|
+
fix?: FixKind;
|
|
1636
|
+
/**
|
|
1637
|
+
* The severity of the emitted diagnostics by the rule
|
|
1638
|
+
*/
|
|
1639
|
+
level: RulePlainConfiguration;
|
|
1640
|
+
/**
|
|
1641
|
+
* Rule's options
|
|
1642
|
+
*/
|
|
1643
|
+
options: null;
|
|
1644
|
+
}
|
|
1527
1645
|
interface RuleWithOptions_for_Null {
|
|
1646
|
+
/**
|
|
1647
|
+
* The severity of the emitted diagnostics by the rule
|
|
1648
|
+
*/
|
|
1528
1649
|
level: RulePlainConfiguration;
|
|
1650
|
+
/**
|
|
1651
|
+
* Rule's options
|
|
1652
|
+
*/
|
|
1529
1653
|
options: null;
|
|
1530
1654
|
}
|
|
1531
|
-
interface
|
|
1655
|
+
interface RuleWithFixOptions_for_ValidAriaRoleOptions {
|
|
1656
|
+
/**
|
|
1657
|
+
* The kind of the code actions emitted by the rule
|
|
1658
|
+
*/
|
|
1659
|
+
fix?: FixKind;
|
|
1660
|
+
/**
|
|
1661
|
+
* The severity of the emitted diagnostics by the rule
|
|
1662
|
+
*/
|
|
1532
1663
|
level: RulePlainConfiguration;
|
|
1664
|
+
/**
|
|
1665
|
+
* Rule's options
|
|
1666
|
+
*/
|
|
1533
1667
|
options: ValidAriaRoleOptions;
|
|
1534
1668
|
}
|
|
1535
1669
|
interface RuleWithOptions_for_ComplexityOptions {
|
|
1670
|
+
/**
|
|
1671
|
+
* The severity of the emitted diagnostics by the rule
|
|
1672
|
+
*/
|
|
1536
1673
|
level: RulePlainConfiguration;
|
|
1674
|
+
/**
|
|
1675
|
+
* Rule's options
|
|
1676
|
+
*/
|
|
1537
1677
|
options: ComplexityOptions;
|
|
1538
1678
|
}
|
|
1539
1679
|
interface RuleWithOptions_for_HooksOptions {
|
|
1680
|
+
/**
|
|
1681
|
+
* The severity of the emitted diagnostics by the rule
|
|
1682
|
+
*/
|
|
1540
1683
|
level: RulePlainConfiguration;
|
|
1684
|
+
/**
|
|
1685
|
+
* Rule's options
|
|
1686
|
+
*/
|
|
1541
1687
|
options: HooksOptions;
|
|
1542
1688
|
}
|
|
1543
1689
|
interface RuleWithOptions_for_DeprecatedHooksOptions {
|
|
1690
|
+
/**
|
|
1691
|
+
* The severity of the emitted diagnostics by the rule
|
|
1692
|
+
*/
|
|
1544
1693
|
level: RulePlainConfiguration;
|
|
1694
|
+
/**
|
|
1695
|
+
* Rule's options
|
|
1696
|
+
*/
|
|
1545
1697
|
options: DeprecatedHooksOptions;
|
|
1546
1698
|
}
|
|
1547
|
-
interface
|
|
1699
|
+
interface RuleWithOptions_for_NoLabelWithoutControlOptions {
|
|
1700
|
+
/**
|
|
1701
|
+
* The severity of the emitted diagnostics by the rule
|
|
1702
|
+
*/
|
|
1548
1703
|
level: RulePlainConfiguration;
|
|
1549
|
-
|
|
1704
|
+
/**
|
|
1705
|
+
* Rule's options
|
|
1706
|
+
*/
|
|
1707
|
+
options: NoLabelWithoutControlOptions;
|
|
1550
1708
|
}
|
|
1551
1709
|
interface RuleWithOptions_for_RestrictedImportsOptions {
|
|
1710
|
+
/**
|
|
1711
|
+
* The severity of the emitted diagnostics by the rule
|
|
1712
|
+
*/
|
|
1552
1713
|
level: RulePlainConfiguration;
|
|
1714
|
+
/**
|
|
1715
|
+
* Rule's options
|
|
1716
|
+
*/
|
|
1553
1717
|
options: RestrictedImportsOptions;
|
|
1554
1718
|
}
|
|
1555
|
-
interface
|
|
1719
|
+
interface RuleWithFixOptions_for_UtilityClassSortingOptions {
|
|
1720
|
+
/**
|
|
1721
|
+
* The kind of the code actions emitted by the rule
|
|
1722
|
+
*/
|
|
1723
|
+
fix?: FixKind;
|
|
1724
|
+
/**
|
|
1725
|
+
* The severity of the emitted diagnostics by the rule
|
|
1726
|
+
*/
|
|
1556
1727
|
level: RulePlainConfiguration;
|
|
1728
|
+
/**
|
|
1729
|
+
* Rule's options
|
|
1730
|
+
*/
|
|
1557
1731
|
options: UtilityClassSortingOptions;
|
|
1558
1732
|
}
|
|
1559
1733
|
interface RuleWithOptions_for_RestrictedGlobalsOptions {
|
|
1734
|
+
/**
|
|
1735
|
+
* The severity of the emitted diagnostics by the rule
|
|
1736
|
+
*/
|
|
1560
1737
|
level: RulePlainConfiguration;
|
|
1738
|
+
/**
|
|
1739
|
+
* Rule's options
|
|
1740
|
+
*/
|
|
1561
1741
|
options: RestrictedGlobalsOptions;
|
|
1562
1742
|
}
|
|
1563
|
-
interface
|
|
1743
|
+
interface RuleWithFixOptions_for_ConsistentArrayTypeOptions {
|
|
1744
|
+
/**
|
|
1745
|
+
* The kind of the code actions emitted by the rule
|
|
1746
|
+
*/
|
|
1747
|
+
fix?: FixKind;
|
|
1748
|
+
/**
|
|
1749
|
+
* The severity of the emitted diagnostics by the rule
|
|
1750
|
+
*/
|
|
1564
1751
|
level: RulePlainConfiguration;
|
|
1752
|
+
/**
|
|
1753
|
+
* Rule's options
|
|
1754
|
+
*/
|
|
1565
1755
|
options: ConsistentArrayTypeOptions;
|
|
1566
1756
|
}
|
|
1567
1757
|
interface RuleWithOptions_for_FilenamingConventionOptions {
|
|
1758
|
+
/**
|
|
1759
|
+
* The severity of the emitted diagnostics by the rule
|
|
1760
|
+
*/
|
|
1568
1761
|
level: RulePlainConfiguration;
|
|
1762
|
+
/**
|
|
1763
|
+
* Rule's options
|
|
1764
|
+
*/
|
|
1569
1765
|
options: FilenamingConventionOptions;
|
|
1570
1766
|
}
|
|
1571
|
-
interface
|
|
1767
|
+
interface RuleWithFixOptions_for_NamingConventionOptions {
|
|
1768
|
+
/**
|
|
1769
|
+
* The kind of the code actions emitted by the rule
|
|
1770
|
+
*/
|
|
1771
|
+
fix?: FixKind;
|
|
1772
|
+
/**
|
|
1773
|
+
* The severity of the emitted diagnostics by the rule
|
|
1774
|
+
*/
|
|
1572
1775
|
level: RulePlainConfiguration;
|
|
1776
|
+
/**
|
|
1777
|
+
* Rule's options
|
|
1778
|
+
*/
|
|
1573
1779
|
options: NamingConventionOptions;
|
|
1574
1780
|
}
|
|
1781
|
+
type FixKind = "none" | "safe" | "unsafe";
|
|
1575
1782
|
interface ValidAriaRoleOptions {
|
|
1576
1783
|
allowInvalidRoles: string[];
|
|
1577
1784
|
ignoreNonDom: boolean;
|
|
@@ -1589,8 +1796,19 @@ interface HooksOptions {
|
|
|
1589
1796
|
hooks: Hook[];
|
|
1590
1797
|
}
|
|
1591
1798
|
interface DeprecatedHooksOptions {}
|
|
1592
|
-
interface
|
|
1593
|
-
|
|
1799
|
+
interface NoLabelWithoutControlOptions {
|
|
1800
|
+
/**
|
|
1801
|
+
* Array of component names that should be considered the same as an `input` element.
|
|
1802
|
+
*/
|
|
1803
|
+
inputComponents: string[];
|
|
1804
|
+
/**
|
|
1805
|
+
* Array of attributes that should be treated as the `label` accessible text content.
|
|
1806
|
+
*/
|
|
1807
|
+
labelAttributes: string[];
|
|
1808
|
+
/**
|
|
1809
|
+
* Array of component names that should be considered the same as a `label` element.
|
|
1810
|
+
*/
|
|
1811
|
+
labelComponents: string[];
|
|
1594
1812
|
}
|
|
1595
1813
|
interface RestrictedImportsOptions {
|
|
1596
1814
|
/**
|
|
@@ -1632,10 +1850,14 @@ interface FilenamingConventionOptions {
|
|
|
1632
1850
|
strictCase: boolean;
|
|
1633
1851
|
}
|
|
1634
1852
|
interface NamingConventionOptions {
|
|
1853
|
+
/**
|
|
1854
|
+
* Custom conventions.
|
|
1855
|
+
*/
|
|
1856
|
+
conventions: Convention[];
|
|
1635
1857
|
/**
|
|
1636
1858
|
* Allowed cases for _TypeScript_ `enum` member names.
|
|
1637
1859
|
*/
|
|
1638
|
-
enumMemberCase:
|
|
1860
|
+
enumMemberCase: Format;
|
|
1639
1861
|
/**
|
|
1640
1862
|
* If `false`, then non-ASCII characters are allowed.
|
|
1641
1863
|
*/
|
|
@@ -1673,7 +1895,21 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
|
|
|
1673
1895
|
}
|
|
1674
1896
|
type ConsistentArrayType = "shorthand" | "generic";
|
|
1675
1897
|
type FilenameCases = FilenameCase[];
|
|
1676
|
-
|
|
1898
|
+
interface Convention {
|
|
1899
|
+
/**
|
|
1900
|
+
* String cases to enforce
|
|
1901
|
+
*/
|
|
1902
|
+
formats: Formats;
|
|
1903
|
+
/**
|
|
1904
|
+
* Regular expression to enforce
|
|
1905
|
+
*/
|
|
1906
|
+
match?: Regex;
|
|
1907
|
+
/**
|
|
1908
|
+
* Declarations concerned by this convention
|
|
1909
|
+
*/
|
|
1910
|
+
selector: Selector;
|
|
1911
|
+
}
|
|
1912
|
+
type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
|
|
1677
1913
|
type StableHookResult = boolean | number[];
|
|
1678
1914
|
type FilenameCase =
|
|
1679
1915
|
| "camelCase"
|
|
@@ -1681,6 +1917,69 @@ type FilenameCase =
|
|
|
1681
1917
|
| "kebab-case"
|
|
1682
1918
|
| "PascalCase"
|
|
1683
1919
|
| "snake_case";
|
|
1920
|
+
type Formats = Format[];
|
|
1921
|
+
type Regex = string;
|
|
1922
|
+
interface Selector {
|
|
1923
|
+
/**
|
|
1924
|
+
* Declaration kind
|
|
1925
|
+
*/
|
|
1926
|
+
kind: Kind;
|
|
1927
|
+
/**
|
|
1928
|
+
* Modifiers used on the declaration
|
|
1929
|
+
*/
|
|
1930
|
+
modifiers: Modifiers;
|
|
1931
|
+
/**
|
|
1932
|
+
* Scope of the declaration
|
|
1933
|
+
*/
|
|
1934
|
+
scope: Scope;
|
|
1935
|
+
}
|
|
1936
|
+
type Kind =
|
|
1937
|
+
| "class"
|
|
1938
|
+
| "enum"
|
|
1939
|
+
| "interface"
|
|
1940
|
+
| "enumMember"
|
|
1941
|
+
| "importNamespace"
|
|
1942
|
+
| "exportNamespace"
|
|
1943
|
+
| "variable"
|
|
1944
|
+
| "const"
|
|
1945
|
+
| "let"
|
|
1946
|
+
| "using"
|
|
1947
|
+
| "var"
|
|
1948
|
+
| "catchParameter"
|
|
1949
|
+
| "indexParameter"
|
|
1950
|
+
| "exportAlias"
|
|
1951
|
+
| "importAlias"
|
|
1952
|
+
| "classGetter"
|
|
1953
|
+
| "classSetter"
|
|
1954
|
+
| "classMethod"
|
|
1955
|
+
| "objectLiteralProperty"
|
|
1956
|
+
| "objectLiteralGetter"
|
|
1957
|
+
| "objectLiteralSetter"
|
|
1958
|
+
| "objectLiteralMethod"
|
|
1959
|
+
| "typeAlias"
|
|
1960
|
+
| "any"
|
|
1961
|
+
| "typeLike"
|
|
1962
|
+
| "function"
|
|
1963
|
+
| "namespaceLike"
|
|
1964
|
+
| "namespace"
|
|
1965
|
+
| "functionParameter"
|
|
1966
|
+
| "typeParameter"
|
|
1967
|
+
| "classMember"
|
|
1968
|
+
| "classProperty"
|
|
1969
|
+
| "objectLiteralMember"
|
|
1970
|
+
| "typeMember"
|
|
1971
|
+
| "typeGetter"
|
|
1972
|
+
| "typeProperty"
|
|
1973
|
+
| "typeSetter"
|
|
1974
|
+
| "typeMethod";
|
|
1975
|
+
type Modifiers = RestrictedModifier[];
|
|
1976
|
+
type Scope = "any" | "global";
|
|
1977
|
+
type RestrictedModifier =
|
|
1978
|
+
| "abstract"
|
|
1979
|
+
| "private"
|
|
1980
|
+
| "protected"
|
|
1981
|
+
| "readonly"
|
|
1982
|
+
| "static";
|
|
1684
1983
|
interface RegisterProjectFolderParams {
|
|
1685
1984
|
path?: string;
|
|
1686
1985
|
setAsCurrentWorkspace: boolean;
|
|
@@ -1763,9 +2062,12 @@ interface GetFormatterIRParams {
|
|
|
1763
2062
|
interface PullDiagnosticsParams {
|
|
1764
2063
|
categories: RuleCategories;
|
|
1765
2064
|
max_diagnostics: number;
|
|
2065
|
+
only: RuleCode[];
|
|
1766
2066
|
path: BiomePath;
|
|
2067
|
+
skip: RuleCode[];
|
|
1767
2068
|
}
|
|
1768
2069
|
type RuleCategories = RuleCategory[];
|
|
2070
|
+
type RuleCode = string;
|
|
1769
2071
|
type RuleCategory = "Syntax" | "Lint" | "Action" | "Transformation";
|
|
1770
2072
|
interface PullDiagnosticsResult {
|
|
1771
2073
|
diagnostics: Diagnostic[];
|
|
@@ -1849,15 +2151,18 @@ type Category =
|
|
|
1849
2151
|
| "lint/correctness/noChildrenProp"
|
|
1850
2152
|
| "lint/correctness/noConstAssign"
|
|
1851
2153
|
| "lint/correctness/noConstantCondition"
|
|
2154
|
+
| "lint/correctness/noConstantMathMinMaxClamp"
|
|
1852
2155
|
| "lint/correctness/noConstructorReturn"
|
|
1853
2156
|
| "lint/correctness/noEmptyCharacterClassInRegex"
|
|
1854
2157
|
| "lint/correctness/noEmptyPattern"
|
|
2158
|
+
| "lint/correctness/noFlatMapIdentity"
|
|
1855
2159
|
| "lint/correctness/noGlobalObjectCalls"
|
|
1856
2160
|
| "lint/correctness/noInnerDeclarations"
|
|
1857
2161
|
| "lint/correctness/noInvalidConstructorSuper"
|
|
1858
2162
|
| "lint/correctness/noInvalidNewBuiltin"
|
|
1859
2163
|
| "lint/correctness/noInvalidUseBeforeDeclaration"
|
|
1860
2164
|
| "lint/correctness/noNewSymbol"
|
|
2165
|
+
| "lint/correctness/noNodejsModules"
|
|
1861
2166
|
| "lint/correctness/noNonoctalDecimalEscape"
|
|
1862
2167
|
| "lint/correctness/noPrecisionLoss"
|
|
1863
2168
|
| "lint/correctness/noRenderReturnValue"
|
|
@@ -1877,6 +2182,7 @@ type Category =
|
|
|
1877
2182
|
| "lint/correctness/noUnusedVariables"
|
|
1878
2183
|
| "lint/correctness/noVoidElementsWithChildren"
|
|
1879
2184
|
| "lint/correctness/noVoidTypeReturn"
|
|
2185
|
+
| "lint/correctness/useArrayLiterals"
|
|
1880
2186
|
| "lint/correctness/useExhaustiveDependencies"
|
|
1881
2187
|
| "lint/correctness/useHookAtTopLevel"
|
|
1882
2188
|
| "lint/correctness/useIsNan"
|
|
@@ -1886,37 +2192,50 @@ type Category =
|
|
|
1886
2192
|
| "lint/nursery/colorNoInvalidHex"
|
|
1887
2193
|
| "lint/nursery/noColorInvalidHex"
|
|
1888
2194
|
| "lint/nursery/noConsole"
|
|
1889
|
-
| "lint/nursery/noConstantMathMinMaxClamp"
|
|
1890
|
-
| "lint/nursery/noCssEmptyBlock"
|
|
1891
2195
|
| "lint/nursery/noDoneCallback"
|
|
1892
2196
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
1893
2197
|
| "lint/nursery/noDuplicateElseIf"
|
|
1894
2198
|
| "lint/nursery/noDuplicateFontNames"
|
|
1895
2199
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
1896
2200
|
| "lint/nursery/noDuplicateSelectorsKeyframeBlock"
|
|
1897
|
-
| "lint/nursery/
|
|
1898
|
-
| "lint/nursery/
|
|
2201
|
+
| "lint/nursery/noEmptyBlock"
|
|
2202
|
+
| "lint/nursery/noEvolvingTypes"
|
|
1899
2203
|
| "lint/nursery/noImportantInKeyframe"
|
|
2204
|
+
| "lint/nursery/noInvalidPositionAtImportRule"
|
|
2205
|
+
| "lint/nursery/noLabelWithoutControl"
|
|
1900
2206
|
| "lint/nursery/noMisplacedAssertion"
|
|
1901
2207
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
1902
|
-
| "lint/nursery/noNodejsModules"
|
|
1903
2208
|
| "lint/nursery/noReactSpecificProps"
|
|
1904
2209
|
| "lint/nursery/noRestrictedImports"
|
|
1905
2210
|
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
1906
2211
|
| "lint/nursery/noUndeclaredDependencies"
|
|
1907
2212
|
| "lint/nursery/noUnknownFunction"
|
|
2213
|
+
| "lint/nursery/noUnknownMediaFeatureName"
|
|
2214
|
+
| "lint/nursery/noUnknownProperty"
|
|
1908
2215
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
1909
2216
|
| "lint/nursery/noUnknownUnit"
|
|
1910
2217
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
2218
|
+
| "lint/nursery/noUnusedFunctionParameters"
|
|
2219
|
+
| "lint/nursery/noUselessStringConcat"
|
|
1911
2220
|
| "lint/nursery/noUselessUndefinedInitialization"
|
|
1912
|
-
| "lint/nursery/
|
|
2221
|
+
| "lint/nursery/noYodaExpression"
|
|
2222
|
+
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
1913
2223
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1914
|
-
| "lint/nursery/useExplicitLengthCheck"
|
|
1915
2224
|
| "lint/nursery/useConsistentBuiltinInstantiation"
|
|
2225
|
+
| "lint/nursery/useDateNow"
|
|
1916
2226
|
| "lint/nursery/useDefaultSwitchClause"
|
|
2227
|
+
| "lint/nursery/useErrorMessage"
|
|
2228
|
+
| "lint/nursery/useExplicitLengthCheck"
|
|
2229
|
+
| "lint/nursery/useFocusableInteractive"
|
|
1917
2230
|
| "lint/nursery/useGenericFontNames"
|
|
2231
|
+
| "lint/nursery/useImportExtensions"
|
|
1918
2232
|
| "lint/nursery/useImportRestrictions"
|
|
2233
|
+
| "lint/nursery/useNumberToFixedDigitsArgument"
|
|
2234
|
+
| "lint/nursery/useSemanticElements"
|
|
1919
2235
|
| "lint/nursery/useSortedClasses"
|
|
2236
|
+
| "lint/nursery/useThrowNewError"
|
|
2237
|
+
| "lint/nursery/useThrowOnlyError"
|
|
2238
|
+
| "lint/nursery/useTopLevelRegex"
|
|
1920
2239
|
| "lint/performance/noAccumulatingSpread"
|
|
1921
2240
|
| "lint/performance/noBarrelFile"
|
|
1922
2241
|
| "lint/performance/noDelete"
|