@biomejs/wasm-nodejs 1.7.3 → 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 +426 -159
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +27 -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,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?:
|
|
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?:
|
|
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
|
|
438
|
-
type
|
|
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?:
|
|
480
|
+
noAccessKey?: RuleFixConfiguration_for_Null;
|
|
448
481
|
/**
|
|
449
482
|
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
450
483
|
*/
|
|
451
|
-
noAriaHiddenOnFocusable?:
|
|
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?:
|
|
488
|
+
noAriaUnsupportedElements?: RuleFixConfiguration_for_Null;
|
|
456
489
|
/**
|
|
457
490
|
* Enforce that autoFocus prop is not used on elements.
|
|
458
491
|
*/
|
|
459
|
-
noAutofocus?:
|
|
492
|
+
noAutofocus?: RuleFixConfiguration_for_Null;
|
|
460
493
|
/**
|
|
461
494
|
* Disallow target="_blank" attribute without rel="noreferrer"
|
|
462
495
|
*/
|
|
463
|
-
noBlankTarget?:
|
|
496
|
+
noBlankTarget?: RuleFixConfiguration_for_Null;
|
|
464
497
|
/**
|
|
465
498
|
* Enforces that no distracting elements are used.
|
|
466
499
|
*/
|
|
467
|
-
noDistractingElements?:
|
|
500
|
+
noDistractingElements?: RuleFixConfiguration_for_Null;
|
|
468
501
|
/**
|
|
469
502
|
* The scope prop should be used only on \<th> elements.
|
|
470
503
|
*/
|
|
471
|
-
noHeaderScope?:
|
|
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?:
|
|
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?:
|
|
512
|
+
noNoninteractiveElementToInteractiveRole?: RuleFixConfiguration_for_Null;
|
|
480
513
|
/**
|
|
481
514
|
* Enforce that tabIndex is not assigned to non-interactive HTML elements.
|
|
482
515
|
*/
|
|
483
|
-
noNoninteractiveTabindex?:
|
|
516
|
+
noNoninteractiveTabindex?: RuleFixConfiguration_for_Null;
|
|
484
517
|
/**
|
|
485
518
|
* Prevent the usage of positive integers on tabIndex property
|
|
486
519
|
*/
|
|
487
|
-
noPositiveTabindex?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
654
|
+
noUselessEmptyExport?: RuleFixConfiguration_for_Null;
|
|
622
655
|
/**
|
|
623
656
|
* Disallow unnecessary fragments
|
|
624
657
|
*/
|
|
625
|
-
noUselessFragments?:
|
|
658
|
+
noUselessFragments?: RuleFixConfiguration_for_Null;
|
|
626
659
|
/**
|
|
627
660
|
* Disallow unnecessary labels.
|
|
628
661
|
*/
|
|
629
|
-
noUselessLabel?:
|
|
662
|
+
noUselessLabel?: RuleFixConfiguration_for_Null;
|
|
630
663
|
/**
|
|
631
664
|
* Disallow unnecessary nested block statements.
|
|
632
665
|
*/
|
|
633
|
-
noUselessLoneBlockStatements?:
|
|
666
|
+
noUselessLoneBlockStatements?: RuleFixConfiguration_for_Null;
|
|
634
667
|
/**
|
|
635
668
|
* Disallow renaming import, export, and destructured assignments to the same name.
|
|
636
669
|
*/
|
|
637
|
-
noUselessRename?:
|
|
670
|
+
noUselessRename?: RuleFixConfiguration_for_Null;
|
|
638
671
|
/**
|
|
639
672
|
* Disallow useless case in switch statements.
|
|
640
673
|
*/
|
|
641
|
-
noUselessSwitchCase?:
|
|
674
|
+
noUselessSwitchCase?: RuleFixConfiguration_for_Null;
|
|
642
675
|
/**
|
|
643
676
|
* Disallow ternary operators when simpler alternatives exist.
|
|
644
677
|
*/
|
|
645
|
-
noUselessTernary?:
|
|
678
|
+
noUselessTernary?: RuleFixConfiguration_for_Null;
|
|
646
679
|
/**
|
|
647
680
|
* Disallow useless this aliasing.
|
|
648
681
|
*/
|
|
649
|
-
noUselessThisAlias?:
|
|
682
|
+
noUselessThisAlias?: RuleFixConfiguration_for_Null;
|
|
650
683
|
/**
|
|
651
684
|
* Disallow using any or unknown as type constraint.
|
|
652
685
|
*/
|
|
653
|
-
noUselessTypeConstraint?:
|
|
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?:
|
|
702
|
+
useArrowFunction?: RuleFixConfiguration_for_Null;
|
|
670
703
|
/**
|
|
671
704
|
* Promotes the use of .flatMap() when map().flat() are used together.
|
|
672
705
|
*/
|
|
673
|
-
useFlatMap?:
|
|
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?:
|
|
710
|
+
useLiteralKeys?: RuleFixConfiguration_for_Null;
|
|
678
711
|
/**
|
|
679
712
|
* Enforce using concise optional chain instead of chained logical expressions.
|
|
680
713
|
*/
|
|
681
|
-
useOptionalChain?:
|
|
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?:
|
|
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?:
|
|
722
|
+
useSimpleNumberKeys?: RuleFixConfiguration_for_Null;
|
|
690
723
|
/**
|
|
691
724
|
* Discard redundant terms from logical expressions.
|
|
692
725
|
*/
|
|
693
|
-
useSimplifiedLogicExpression?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
780
|
+
noNewSymbol?: RuleFixConfiguration_for_Null;
|
|
748
781
|
/**
|
|
749
782
|
* Disallow \8 and \9 escape sequences in string literals.
|
|
750
783
|
*/
|
|
751
|
-
noNonoctalDecimalEscape?:
|
|
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?:
|
|
804
|
+
noStringCaseMismatch?: RuleFixConfiguration_for_Null;
|
|
772
805
|
/**
|
|
773
806
|
* Disallow lexical declarations in switch clauses.
|
|
774
807
|
*/
|
|
775
|
-
noSwitchDeclarations?:
|
|
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?:
|
|
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?:
|
|
836
|
+
noUnusedImports?: RuleFixConfiguration_for_Null;
|
|
804
837
|
/**
|
|
805
838
|
* Disallow unused labels.
|
|
806
839
|
*/
|
|
807
|
-
noUnusedLabels?:
|
|
840
|
+
noUnusedLabels?: RuleFixConfiguration_for_Null;
|
|
808
841
|
/**
|
|
809
842
|
* Disallow unused private class members
|
|
810
843
|
*/
|
|
811
|
-
noUnusedPrivateClassMembers?:
|
|
844
|
+
noUnusedPrivateClassMembers?: RuleFixConfiguration_for_Null;
|
|
812
845
|
/**
|
|
813
846
|
* Disallow unused variables.
|
|
814
847
|
*/
|
|
815
|
-
noUnusedVariables?:
|
|
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?:
|
|
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?:
|
|
872
|
+
useIsNan?: RuleFixConfiguration_for_Null;
|
|
840
873
|
/**
|
|
841
874
|
* Disallow missing key props in iterators/collection literals.
|
|
842
875
|
*/
|
|
@@ -855,22 +888,14 @@ 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?:
|
|
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?:
|
|
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
|
*/
|
|
@@ -895,6 +920,10 @@ interface Nursery {
|
|
|
895
920
|
* Disallow duplicate selectors within keyframe blocks.
|
|
896
921
|
*/
|
|
897
922
|
noDuplicateSelectorsKeyframeBlock?: RuleConfiguration_for_Null;
|
|
923
|
+
/**
|
|
924
|
+
* Disallow CSS empty blocks.
|
|
925
|
+
*/
|
|
926
|
+
noEmptyBlock?: RuleConfiguration_for_Null;
|
|
898
927
|
/**
|
|
899
928
|
* Disallow variables from evolving into any type through reassignments.
|
|
900
929
|
*/
|
|
@@ -902,11 +931,15 @@ interface Nursery {
|
|
|
902
931
|
/**
|
|
903
932
|
* Disallow to use unnecessary callback on flatMap.
|
|
904
933
|
*/
|
|
905
|
-
noFlatMapIdentity?:
|
|
934
|
+
noFlatMapIdentity?: RuleFixConfiguration_for_Null;
|
|
906
935
|
/**
|
|
907
936
|
* Disallow invalid !important within keyframe declarations
|
|
908
937
|
*/
|
|
909
938
|
noImportantInKeyframe?: RuleConfiguration_for_Null;
|
|
939
|
+
/**
|
|
940
|
+
* Disallow the use of @import at-rules in invalid positions.
|
|
941
|
+
*/
|
|
942
|
+
noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
|
|
910
943
|
/**
|
|
911
944
|
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
912
945
|
*/
|
|
@@ -918,7 +951,7 @@ interface Nursery {
|
|
|
918
951
|
/**
|
|
919
952
|
* Prevents React-specific JSX properties from being used.
|
|
920
953
|
*/
|
|
921
|
-
noReactSpecificProps?:
|
|
954
|
+
noReactSpecificProps?: RuleFixConfiguration_for_Null;
|
|
922
955
|
/**
|
|
923
956
|
* Disallow specified modules when loaded by import or require.
|
|
924
957
|
*/
|
|
@@ -931,6 +964,14 @@ interface Nursery {
|
|
|
931
964
|
* Disallow unknown CSS value functions.
|
|
932
965
|
*/
|
|
933
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;
|
|
934
975
|
/**
|
|
935
976
|
* Disallow unknown pseudo-element selectors.
|
|
936
977
|
*/
|
|
@@ -943,22 +984,34 @@ interface Nursery {
|
|
|
943
984
|
* Disallow unmatchable An+B selectors.
|
|
944
985
|
*/
|
|
945
986
|
noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
|
|
987
|
+
/**
|
|
988
|
+
* Disallow unnecessary concatenation of string or template literals.
|
|
989
|
+
*/
|
|
990
|
+
noUselessStringConcat?: RuleFixConfiguration_for_Null;
|
|
946
991
|
/**
|
|
947
992
|
* Disallow initializing variables to undefined.
|
|
948
993
|
*/
|
|
949
|
-
noUselessUndefinedInitialization?:
|
|
994
|
+
noUselessUndefinedInitialization?: RuleFixConfiguration_for_Null;
|
|
995
|
+
/**
|
|
996
|
+
* Disallow the use of yoda expressions.
|
|
997
|
+
*/
|
|
998
|
+
noYodaExpression?: RuleFixConfiguration_for_Null;
|
|
950
999
|
/**
|
|
951
1000
|
* It enables the recommended rules for this group
|
|
952
1001
|
*/
|
|
953
1002
|
recommended?: boolean;
|
|
1003
|
+
/**
|
|
1004
|
+
* Disallow the use of overload signatures that are not next to each other.
|
|
1005
|
+
*/
|
|
1006
|
+
useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
|
|
954
1007
|
/**
|
|
955
1008
|
* Disallow Array constructors.
|
|
956
1009
|
*/
|
|
957
|
-
useArrayLiterals?:
|
|
1010
|
+
useArrayLiterals?: RuleFixConfiguration_for_Null;
|
|
958
1011
|
/**
|
|
959
1012
|
* Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
|
|
960
1013
|
*/
|
|
961
|
-
useConsistentBuiltinInstantiation?:
|
|
1014
|
+
useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
|
|
962
1015
|
/**
|
|
963
1016
|
* Require the default clause in switch statements.
|
|
964
1017
|
*/
|
|
@@ -966,19 +1019,47 @@ interface Nursery {
|
|
|
966
1019
|
/**
|
|
967
1020
|
* Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
|
|
968
1021
|
*/
|
|
969
|
-
useExplicitLengthCheck?:
|
|
1022
|
+
useExplicitLengthCheck?: RuleFixConfiguration_for_Null;
|
|
1023
|
+
/**
|
|
1024
|
+
* Elements with an interactive role and interaction handlers must be focusable.
|
|
1025
|
+
*/
|
|
1026
|
+
useFocusableInteractive?: RuleConfiguration_for_Null;
|
|
970
1027
|
/**
|
|
971
1028
|
* Disallow a missing generic family keyword within font families.
|
|
972
1029
|
*/
|
|
973
1030
|
useGenericFontNames?: RuleConfiguration_for_Null;
|
|
1031
|
+
/**
|
|
1032
|
+
* Enforce file extensions for relative imports.
|
|
1033
|
+
*/
|
|
1034
|
+
useImportExtensions?: RuleFixConfiguration_for_Null;
|
|
974
1035
|
/**
|
|
975
1036
|
* Disallows package private imports.
|
|
976
1037
|
*/
|
|
977
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;
|
|
978
1047
|
/**
|
|
979
1048
|
* Enforce the sorting of CSS utility classes.
|
|
980
1049
|
*/
|
|
981
|
-
useSortedClasses?:
|
|
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;
|
|
982
1063
|
}
|
|
983
1064
|
interface Performance {
|
|
984
1065
|
/**
|
|
@@ -996,7 +1077,7 @@ interface Performance {
|
|
|
996
1077
|
/**
|
|
997
1078
|
* Disallow the use of the delete operator.
|
|
998
1079
|
*/
|
|
999
|
-
noDelete?:
|
|
1080
|
+
noDelete?: RuleFixConfiguration_for_Null;
|
|
1000
1081
|
/**
|
|
1001
1082
|
* Avoid re-export all.
|
|
1002
1083
|
*/
|
|
@@ -1048,11 +1129,11 @@ interface Style {
|
|
|
1048
1129
|
/**
|
|
1049
1130
|
* Disallow implicit true values on JSX boolean attributes
|
|
1050
1131
|
*/
|
|
1051
|
-
noImplicitBoolean?:
|
|
1132
|
+
noImplicitBoolean?: RuleFixConfiguration_for_Null;
|
|
1052
1133
|
/**
|
|
1053
1134
|
* Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.
|
|
1054
1135
|
*/
|
|
1055
|
-
noInferrableTypes?:
|
|
1136
|
+
noInferrableTypes?: RuleFixConfiguration_for_Null;
|
|
1056
1137
|
/**
|
|
1057
1138
|
* Disallow the use of TypeScript's namespaces.
|
|
1058
1139
|
*/
|
|
@@ -1064,11 +1145,11 @@ interface Style {
|
|
|
1064
1145
|
/**
|
|
1065
1146
|
* Disallow negation in the condition of an if statement if it has an else clause.
|
|
1066
1147
|
*/
|
|
1067
|
-
noNegationElse?:
|
|
1148
|
+
noNegationElse?: RuleFixConfiguration_for_Null;
|
|
1068
1149
|
/**
|
|
1069
1150
|
* Disallow non-null assertions using the ! postfix operator.
|
|
1070
1151
|
*/
|
|
1071
|
-
noNonNullAssertion?:
|
|
1152
|
+
noNonNullAssertion?: RuleFixConfiguration_for_Null;
|
|
1072
1153
|
/**
|
|
1073
1154
|
* Disallow reassigning function parameters.
|
|
1074
1155
|
*/
|
|
@@ -1084,19 +1165,19 @@ interface Style {
|
|
|
1084
1165
|
/**
|
|
1085
1166
|
* Disallow the use of constants which its value is the upper-case version of its name.
|
|
1086
1167
|
*/
|
|
1087
|
-
noShoutyConstants?:
|
|
1168
|
+
noShoutyConstants?: RuleFixConfiguration_for_Null;
|
|
1088
1169
|
/**
|
|
1089
1170
|
* Disallow template literals if interpolation and special-character handling are not needed
|
|
1090
1171
|
*/
|
|
1091
|
-
noUnusedTemplateLiteral?:
|
|
1172
|
+
noUnusedTemplateLiteral?: RuleFixConfiguration_for_Null;
|
|
1092
1173
|
/**
|
|
1093
1174
|
* Disallow else block when the if block breaks early.
|
|
1094
1175
|
*/
|
|
1095
|
-
noUselessElse?:
|
|
1176
|
+
noUselessElse?: RuleFixConfiguration_for_Null;
|
|
1096
1177
|
/**
|
|
1097
1178
|
* Disallow the use of var
|
|
1098
1179
|
*/
|
|
1099
|
-
noVar?:
|
|
1180
|
+
noVar?: RuleFixConfiguration_for_Null;
|
|
1100
1181
|
/**
|
|
1101
1182
|
* It enables the recommended rules for this group
|
|
1102
1183
|
*/
|
|
@@ -1104,39 +1185,39 @@ interface Style {
|
|
|
1104
1185
|
/**
|
|
1105
1186
|
* Enforce the use of as const over literal type and type annotation.
|
|
1106
1187
|
*/
|
|
1107
|
-
useAsConstAssertion?:
|
|
1188
|
+
useAsConstAssertion?: RuleFixConfiguration_for_Null;
|
|
1108
1189
|
/**
|
|
1109
1190
|
* Requires following curly brace conventions.
|
|
1110
1191
|
*/
|
|
1111
|
-
useBlockStatements?:
|
|
1192
|
+
useBlockStatements?: RuleFixConfiguration_for_Null;
|
|
1112
1193
|
/**
|
|
1113
1194
|
* Enforce using else if instead of nested if in else clauses.
|
|
1114
1195
|
*/
|
|
1115
|
-
useCollapsedElseIf?:
|
|
1196
|
+
useCollapsedElseIf?: RuleFixConfiguration_for_Null;
|
|
1116
1197
|
/**
|
|
1117
1198
|
* Require consistently using either T\[] or Array\<T>
|
|
1118
1199
|
*/
|
|
1119
|
-
useConsistentArrayType?:
|
|
1200
|
+
useConsistentArrayType?: RuleFixConfiguration_for_ConsistentArrayTypeOptions;
|
|
1120
1201
|
/**
|
|
1121
1202
|
* Require const declarations for variables that are only assigned once.
|
|
1122
1203
|
*/
|
|
1123
|
-
useConst?:
|
|
1204
|
+
useConst?: RuleFixConfiguration_for_Null;
|
|
1124
1205
|
/**
|
|
1125
1206
|
* Enforce default function parameters and optional function parameters to be last.
|
|
1126
1207
|
*/
|
|
1127
|
-
useDefaultParameterLast?:
|
|
1208
|
+
useDefaultParameterLast?: RuleFixConfiguration_for_Null;
|
|
1128
1209
|
/**
|
|
1129
1210
|
* Require that each enum member value be explicitly initialized.
|
|
1130
1211
|
*/
|
|
1131
|
-
useEnumInitializers?:
|
|
1212
|
+
useEnumInitializers?: RuleFixConfiguration_for_Null;
|
|
1132
1213
|
/**
|
|
1133
1214
|
* Disallow the use of Math.pow in favor of the ** operator.
|
|
1134
1215
|
*/
|
|
1135
|
-
useExponentiationOperator?:
|
|
1216
|
+
useExponentiationOperator?: RuleFixConfiguration_for_Null;
|
|
1136
1217
|
/**
|
|
1137
1218
|
* Promotes the use of export type for types.
|
|
1138
1219
|
*/
|
|
1139
|
-
useExportType?:
|
|
1220
|
+
useExportType?: RuleFixConfiguration_for_Null;
|
|
1140
1221
|
/**
|
|
1141
1222
|
* Enforce naming conventions for JavaScript and TypeScript filenames.
|
|
1142
1223
|
*/
|
|
@@ -1148,11 +1229,11 @@ interface Style {
|
|
|
1148
1229
|
/**
|
|
1149
1230
|
* This rule enforces the use of \<>...\</> over \<Fragment>...\</Fragment>.
|
|
1150
1231
|
*/
|
|
1151
|
-
useFragmentSyntax?:
|
|
1232
|
+
useFragmentSyntax?: RuleFixConfiguration_for_Null;
|
|
1152
1233
|
/**
|
|
1153
1234
|
* Promotes the use of import type for types.
|
|
1154
1235
|
*/
|
|
1155
|
-
useImportType?:
|
|
1236
|
+
useImportType?: RuleFixConfiguration_for_Null;
|
|
1156
1237
|
/**
|
|
1157
1238
|
* Require all enum members to be literal values.
|
|
1158
1239
|
*/
|
|
@@ -1160,55 +1241,55 @@ interface Style {
|
|
|
1160
1241
|
/**
|
|
1161
1242
|
* Enforce naming conventions for everything across a codebase.
|
|
1162
1243
|
*/
|
|
1163
|
-
useNamingConvention?:
|
|
1244
|
+
useNamingConvention?: RuleFixConfiguration_for_NamingConventionOptions;
|
|
1164
1245
|
/**
|
|
1165
1246
|
* Promotes the usage of node:assert/strict over node:assert.
|
|
1166
1247
|
*/
|
|
1167
|
-
useNodeAssertStrict?:
|
|
1248
|
+
useNodeAssertStrict?: RuleFixConfiguration_for_Null;
|
|
1168
1249
|
/**
|
|
1169
1250
|
* Enforces using the node: protocol for Node.js builtin modules.
|
|
1170
1251
|
*/
|
|
1171
|
-
useNodejsImportProtocol?:
|
|
1252
|
+
useNodejsImportProtocol?: RuleFixConfiguration_for_Null;
|
|
1172
1253
|
/**
|
|
1173
1254
|
* Use the Number properties instead of global ones.
|
|
1174
1255
|
*/
|
|
1175
|
-
useNumberNamespace?:
|
|
1256
|
+
useNumberNamespace?: RuleFixConfiguration_for_Null;
|
|
1176
1257
|
/**
|
|
1177
1258
|
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
|
|
1178
1259
|
*/
|
|
1179
|
-
useNumericLiterals?:
|
|
1260
|
+
useNumericLiterals?: RuleFixConfiguration_for_Null;
|
|
1180
1261
|
/**
|
|
1181
1262
|
* Prevent extra closing tags for components without children
|
|
1182
1263
|
*/
|
|
1183
|
-
useSelfClosingElements?:
|
|
1264
|
+
useSelfClosingElements?: RuleFixConfiguration_for_Null;
|
|
1184
1265
|
/**
|
|
1185
1266
|
* When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
|
|
1186
1267
|
*/
|
|
1187
|
-
useShorthandArrayType?:
|
|
1268
|
+
useShorthandArrayType?: RuleFixConfiguration_for_Null;
|
|
1188
1269
|
/**
|
|
1189
1270
|
* Require assignment operator shorthand where possible.
|
|
1190
1271
|
*/
|
|
1191
|
-
useShorthandAssign?:
|
|
1272
|
+
useShorthandAssign?: RuleFixConfiguration_for_Null;
|
|
1192
1273
|
/**
|
|
1193
1274
|
* Enforce using function types instead of object type with call signatures.
|
|
1194
1275
|
*/
|
|
1195
|
-
useShorthandFunctionType?:
|
|
1276
|
+
useShorthandFunctionType?: RuleFixConfiguration_for_Null;
|
|
1196
1277
|
/**
|
|
1197
1278
|
* Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
|
|
1198
1279
|
*/
|
|
1199
|
-
useSingleCaseStatement?:
|
|
1280
|
+
useSingleCaseStatement?: RuleFixConfiguration_for_Null;
|
|
1200
1281
|
/**
|
|
1201
1282
|
* Disallow multiple variable declarations in the same variable statement
|
|
1202
1283
|
*/
|
|
1203
|
-
useSingleVarDeclarator?:
|
|
1284
|
+
useSingleVarDeclarator?: RuleFixConfiguration_for_Null;
|
|
1204
1285
|
/**
|
|
1205
1286
|
* Prefer template literals over string concatenation.
|
|
1206
1287
|
*/
|
|
1207
|
-
useTemplate?:
|
|
1288
|
+
useTemplate?: RuleFixConfiguration_for_Null;
|
|
1208
1289
|
/**
|
|
1209
1290
|
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
|
|
1210
1291
|
*/
|
|
1211
|
-
useWhile?:
|
|
1292
|
+
useWhile?: RuleFixConfiguration_for_Null;
|
|
1212
1293
|
}
|
|
1213
1294
|
interface Suspicious {
|
|
1214
1295
|
/**
|
|
@@ -1218,7 +1299,7 @@ interface Suspicious {
|
|
|
1218
1299
|
/**
|
|
1219
1300
|
* Use standard constants instead of approximated literals.
|
|
1220
1301
|
*/
|
|
1221
|
-
noApproximativeNumericConstant?:
|
|
1302
|
+
noApproximativeNumericConstant?: RuleFixConfiguration_for_Null;
|
|
1222
1303
|
/**
|
|
1223
1304
|
* Discourage the usage of Array index in keys.
|
|
1224
1305
|
*/
|
|
@@ -1242,11 +1323,11 @@ interface Suspicious {
|
|
|
1242
1323
|
/**
|
|
1243
1324
|
* Prevent comments from being inserted as text nodes
|
|
1244
1325
|
*/
|
|
1245
|
-
noCommentText?:
|
|
1326
|
+
noCommentText?: RuleFixConfiguration_for_Null;
|
|
1246
1327
|
/**
|
|
1247
1328
|
* Disallow comparing against -0
|
|
1248
1329
|
*/
|
|
1249
|
-
noCompareNegZero?:
|
|
1330
|
+
noCompareNegZero?: RuleFixConfiguration_for_Null;
|
|
1250
1331
|
/**
|
|
1251
1332
|
* Disallow labeled statements that are not loops.
|
|
1252
1333
|
*/
|
|
@@ -1254,15 +1335,15 @@ interface Suspicious {
|
|
|
1254
1335
|
/**
|
|
1255
1336
|
* Disallow void type outside of generic or return types.
|
|
1256
1337
|
*/
|
|
1257
|
-
noConfusingVoidType?:
|
|
1338
|
+
noConfusingVoidType?: RuleFixConfiguration_for_Null;
|
|
1258
1339
|
/**
|
|
1259
1340
|
* Disallow the use of console.log
|
|
1260
1341
|
*/
|
|
1261
|
-
noConsoleLog?:
|
|
1342
|
+
noConsoleLog?: RuleFixConfiguration_for_Null;
|
|
1262
1343
|
/**
|
|
1263
1344
|
* Disallow TypeScript const enum
|
|
1264
1345
|
*/
|
|
1265
|
-
noConstEnum?:
|
|
1346
|
+
noConstEnum?: RuleFixConfiguration_for_Null;
|
|
1266
1347
|
/**
|
|
1267
1348
|
* Prevents from having control characters and some escape sequences that match control characters in regular expressions.
|
|
1268
1349
|
*/
|
|
@@ -1270,11 +1351,11 @@ interface Suspicious {
|
|
|
1270
1351
|
/**
|
|
1271
1352
|
* Disallow the use of debugger
|
|
1272
1353
|
*/
|
|
1273
|
-
noDebugger?:
|
|
1354
|
+
noDebugger?: RuleFixConfiguration_for_Null;
|
|
1274
1355
|
/**
|
|
1275
1356
|
* Require the use of === and !==
|
|
1276
1357
|
*/
|
|
1277
|
-
noDoubleEquals?:
|
|
1358
|
+
noDoubleEquals?: RuleFixConfiguration_for_Null;
|
|
1278
1359
|
/**
|
|
1279
1360
|
* Disallow duplicate case labels.
|
|
1280
1361
|
*/
|
|
@@ -1290,7 +1371,7 @@ interface Suspicious {
|
|
|
1290
1371
|
/**
|
|
1291
1372
|
* Prevents object literals having more than one property declaration for the same name.
|
|
1292
1373
|
*/
|
|
1293
|
-
noDuplicateObjectKeys?:
|
|
1374
|
+
noDuplicateObjectKeys?: RuleFixConfiguration_for_Null;
|
|
1294
1375
|
/**
|
|
1295
1376
|
* Disallow duplicate function parameter name.
|
|
1296
1377
|
*/
|
|
@@ -1306,7 +1387,7 @@ interface Suspicious {
|
|
|
1306
1387
|
/**
|
|
1307
1388
|
* Disallow the declaration of empty interfaces.
|
|
1308
1389
|
*/
|
|
1309
|
-
noEmptyInterface?:
|
|
1390
|
+
noEmptyInterface?: RuleFixConfiguration_for_Null;
|
|
1310
1391
|
/**
|
|
1311
1392
|
* Disallow the any type usage.
|
|
1312
1393
|
*/
|
|
@@ -1318,7 +1399,7 @@ interface Suspicious {
|
|
|
1318
1399
|
/**
|
|
1319
1400
|
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
1320
1401
|
*/
|
|
1321
|
-
noExtraNonNullAssertion?:
|
|
1402
|
+
noExtraNonNullAssertion?: RuleFixConfiguration_for_Null;
|
|
1322
1403
|
/**
|
|
1323
1404
|
* Disallow fallthrough of switch clauses.
|
|
1324
1405
|
*/
|
|
@@ -1326,7 +1407,7 @@ interface Suspicious {
|
|
|
1326
1407
|
/**
|
|
1327
1408
|
* Disallow focused tests.
|
|
1328
1409
|
*/
|
|
1329
|
-
noFocusedTests?:
|
|
1410
|
+
noFocusedTests?: RuleFixConfiguration_for_Null;
|
|
1330
1411
|
/**
|
|
1331
1412
|
* Disallow reassigning function declarations.
|
|
1332
1413
|
*/
|
|
@@ -1338,11 +1419,11 @@ interface Suspicious {
|
|
|
1338
1419
|
/**
|
|
1339
1420
|
* Use Number.isFinite instead of global isFinite.
|
|
1340
1421
|
*/
|
|
1341
|
-
noGlobalIsFinite?:
|
|
1422
|
+
noGlobalIsFinite?: RuleFixConfiguration_for_Null;
|
|
1342
1423
|
/**
|
|
1343
1424
|
* Use Number.isNaN instead of global isNaN.
|
|
1344
1425
|
*/
|
|
1345
|
-
noGlobalIsNan?:
|
|
1426
|
+
noGlobalIsNan?: RuleFixConfiguration_for_Null;
|
|
1346
1427
|
/**
|
|
1347
1428
|
* Disallow use of implicit any type on variable declarations.
|
|
1348
1429
|
*/
|
|
@@ -1358,7 +1439,7 @@ interface Suspicious {
|
|
|
1358
1439
|
/**
|
|
1359
1440
|
* Disallow characters made with multiple code points in character class syntax.
|
|
1360
1441
|
*/
|
|
1361
|
-
noMisleadingCharacterClass?:
|
|
1442
|
+
noMisleadingCharacterClass?: RuleFixConfiguration_for_Null;
|
|
1362
1443
|
/**
|
|
1363
1444
|
* Enforce proper usage of new and constructor.
|
|
1364
1445
|
*/
|
|
@@ -1366,7 +1447,7 @@ interface Suspicious {
|
|
|
1366
1447
|
/**
|
|
1367
1448
|
* Disallow shorthand assign when variable appears on both sides.
|
|
1368
1449
|
*/
|
|
1369
|
-
noMisrefactoredShorthandAssign?:
|
|
1450
|
+
noMisrefactoredShorthandAssign?: RuleFixConfiguration_for_Null;
|
|
1370
1451
|
/**
|
|
1371
1452
|
* Disallow direct use of Object.prototype builtins.
|
|
1372
1453
|
*/
|
|
@@ -1378,7 +1459,7 @@ interface Suspicious {
|
|
|
1378
1459
|
/**
|
|
1379
1460
|
* Prevents from having redundant "use strict".
|
|
1380
1461
|
*/
|
|
1381
|
-
noRedundantUseStrict?:
|
|
1462
|
+
noRedundantUseStrict?: RuleFixConfiguration_for_Null;
|
|
1382
1463
|
/**
|
|
1383
1464
|
* Disallow comparisons where both sides are exactly the same.
|
|
1384
1465
|
*/
|
|
@@ -1390,11 +1471,11 @@ interface Suspicious {
|
|
|
1390
1471
|
/**
|
|
1391
1472
|
* Disallow disabled tests.
|
|
1392
1473
|
*/
|
|
1393
|
-
noSkippedTests?:
|
|
1474
|
+
noSkippedTests?: RuleFixConfiguration_for_Null;
|
|
1394
1475
|
/**
|
|
1395
1476
|
* Disallow sparse arrays
|
|
1396
1477
|
*/
|
|
1397
|
-
noSparseArray?:
|
|
1478
|
+
noSparseArray?: RuleFixConfiguration_for_Null;
|
|
1398
1479
|
/**
|
|
1399
1480
|
* It detects possible "wrong" semicolons inside JSX elements.
|
|
1400
1481
|
*/
|
|
@@ -1410,7 +1491,7 @@ interface Suspicious {
|
|
|
1410
1491
|
/**
|
|
1411
1492
|
* Disallow using unsafe negation.
|
|
1412
1493
|
*/
|
|
1413
|
-
noUnsafeNegation?:
|
|
1494
|
+
noUnsafeNegation?: RuleFixConfiguration_for_Null;
|
|
1414
1495
|
/**
|
|
1415
1496
|
* It enables the recommended rules for this group
|
|
1416
1497
|
*/
|
|
@@ -1430,15 +1511,15 @@ interface Suspicious {
|
|
|
1430
1511
|
/**
|
|
1431
1512
|
* Use Array.isArray() instead of instanceof Array.
|
|
1432
1513
|
*/
|
|
1433
|
-
useIsArray?:
|
|
1514
|
+
useIsArray?: RuleFixConfiguration_for_Null;
|
|
1434
1515
|
/**
|
|
1435
1516
|
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
1436
1517
|
*/
|
|
1437
|
-
useNamespaceKeyword?:
|
|
1518
|
+
useNamespaceKeyword?: RuleFixConfiguration_for_Null;
|
|
1438
1519
|
/**
|
|
1439
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
|
|
1440
1521
|
*/
|
|
1441
|
-
useValidTypeof?:
|
|
1522
|
+
useValidTypeof?: RuleFixConfiguration_for_Null;
|
|
1442
1523
|
}
|
|
1443
1524
|
interface OverrideFormatterConfiguration {
|
|
1444
1525
|
/**
|
|
@@ -1487,12 +1568,15 @@ interface OverrideOrganizeImportsConfiguration {
|
|
|
1487
1568
|
*/
|
|
1488
1569
|
enabled?: boolean;
|
|
1489
1570
|
}
|
|
1571
|
+
type RuleFixConfiguration_for_Null =
|
|
1572
|
+
| RulePlainConfiguration
|
|
1573
|
+
| RuleWithFixOptions_for_Null;
|
|
1490
1574
|
type RuleConfiguration_for_Null =
|
|
1491
1575
|
| RulePlainConfiguration
|
|
1492
1576
|
| RuleWithOptions_for_Null;
|
|
1493
|
-
type
|
|
1577
|
+
type RuleFixConfiguration_for_ValidAriaRoleOptions =
|
|
1494
1578
|
| RulePlainConfiguration
|
|
1495
|
-
|
|
|
1579
|
+
| RuleWithFixOptions_for_ValidAriaRoleOptions;
|
|
1496
1580
|
type RuleConfiguration_for_ComplexityOptions =
|
|
1497
1581
|
| RulePlainConfiguration
|
|
1498
1582
|
| RuleWithOptions_for_ComplexityOptions;
|
|
@@ -1502,76 +1586,166 @@ type RuleConfiguration_for_HooksOptions =
|
|
|
1502
1586
|
type RuleConfiguration_for_DeprecatedHooksOptions =
|
|
1503
1587
|
| RulePlainConfiguration
|
|
1504
1588
|
| RuleWithOptions_for_DeprecatedHooksOptions;
|
|
1505
|
-
type RuleConfiguration_for_NoCssEmptyBlockOptions =
|
|
1506
|
-
| RulePlainConfiguration
|
|
1507
|
-
| RuleWithOptions_for_NoCssEmptyBlockOptions;
|
|
1508
1589
|
type RuleConfiguration_for_RestrictedImportsOptions =
|
|
1509
1590
|
| RulePlainConfiguration
|
|
1510
1591
|
| RuleWithOptions_for_RestrictedImportsOptions;
|
|
1511
|
-
type
|
|
1592
|
+
type RuleFixConfiguration_for_UtilityClassSortingOptions =
|
|
1512
1593
|
| RulePlainConfiguration
|
|
1513
|
-
|
|
|
1594
|
+
| RuleWithFixOptions_for_UtilityClassSortingOptions;
|
|
1514
1595
|
type RuleConfiguration_for_RestrictedGlobalsOptions =
|
|
1515
1596
|
| RulePlainConfiguration
|
|
1516
1597
|
| RuleWithOptions_for_RestrictedGlobalsOptions;
|
|
1517
|
-
type
|
|
1598
|
+
type RuleFixConfiguration_for_ConsistentArrayTypeOptions =
|
|
1518
1599
|
| RulePlainConfiguration
|
|
1519
|
-
|
|
|
1600
|
+
| RuleWithFixOptions_for_ConsistentArrayTypeOptions;
|
|
1520
1601
|
type RuleConfiguration_for_FilenamingConventionOptions =
|
|
1521
1602
|
| RulePlainConfiguration
|
|
1522
1603
|
| RuleWithOptions_for_FilenamingConventionOptions;
|
|
1523
|
-
type
|
|
1604
|
+
type RuleFixConfiguration_for_NamingConventionOptions =
|
|
1524
1605
|
| RulePlainConfiguration
|
|
1525
|
-
|
|
|
1606
|
+
| RuleWithFixOptions_for_NamingConventionOptions;
|
|
1526
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
|
+
}
|
|
1527
1622
|
interface RuleWithOptions_for_Null {
|
|
1623
|
+
/**
|
|
1624
|
+
* The severity of the emitted diagnostics by the rule
|
|
1625
|
+
*/
|
|
1528
1626
|
level: RulePlainConfiguration;
|
|
1627
|
+
/**
|
|
1628
|
+
* Rule's options
|
|
1629
|
+
*/
|
|
1529
1630
|
options: null;
|
|
1530
1631
|
}
|
|
1531
|
-
interface
|
|
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
|
+
*/
|
|
1532
1640
|
level: RulePlainConfiguration;
|
|
1641
|
+
/**
|
|
1642
|
+
* Rule's options
|
|
1643
|
+
*/
|
|
1533
1644
|
options: ValidAriaRoleOptions;
|
|
1534
1645
|
}
|
|
1535
1646
|
interface RuleWithOptions_for_ComplexityOptions {
|
|
1647
|
+
/**
|
|
1648
|
+
* The severity of the emitted diagnostics by the rule
|
|
1649
|
+
*/
|
|
1536
1650
|
level: RulePlainConfiguration;
|
|
1651
|
+
/**
|
|
1652
|
+
* Rule's options
|
|
1653
|
+
*/
|
|
1537
1654
|
options: ComplexityOptions;
|
|
1538
1655
|
}
|
|
1539
1656
|
interface RuleWithOptions_for_HooksOptions {
|
|
1657
|
+
/**
|
|
1658
|
+
* The severity of the emitted diagnostics by the rule
|
|
1659
|
+
*/
|
|
1540
1660
|
level: RulePlainConfiguration;
|
|
1661
|
+
/**
|
|
1662
|
+
* Rule's options
|
|
1663
|
+
*/
|
|
1541
1664
|
options: HooksOptions;
|
|
1542
1665
|
}
|
|
1543
1666
|
interface RuleWithOptions_for_DeprecatedHooksOptions {
|
|
1667
|
+
/**
|
|
1668
|
+
* The severity of the emitted diagnostics by the rule
|
|
1669
|
+
*/
|
|
1544
1670
|
level: RulePlainConfiguration;
|
|
1671
|
+
/**
|
|
1672
|
+
* Rule's options
|
|
1673
|
+
*/
|
|
1545
1674
|
options: DeprecatedHooksOptions;
|
|
1546
1675
|
}
|
|
1547
|
-
interface RuleWithOptions_for_NoCssEmptyBlockOptions {
|
|
1548
|
-
level: RulePlainConfiguration;
|
|
1549
|
-
options: NoCssEmptyBlockOptions;
|
|
1550
|
-
}
|
|
1551
1676
|
interface RuleWithOptions_for_RestrictedImportsOptions {
|
|
1677
|
+
/**
|
|
1678
|
+
* The severity of the emitted diagnostics by the rule
|
|
1679
|
+
*/
|
|
1552
1680
|
level: RulePlainConfiguration;
|
|
1681
|
+
/**
|
|
1682
|
+
* Rule's options
|
|
1683
|
+
*/
|
|
1553
1684
|
options: RestrictedImportsOptions;
|
|
1554
1685
|
}
|
|
1555
|
-
interface
|
|
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
|
+
*/
|
|
1556
1694
|
level: RulePlainConfiguration;
|
|
1695
|
+
/**
|
|
1696
|
+
* Rule's options
|
|
1697
|
+
*/
|
|
1557
1698
|
options: UtilityClassSortingOptions;
|
|
1558
1699
|
}
|
|
1559
1700
|
interface RuleWithOptions_for_RestrictedGlobalsOptions {
|
|
1701
|
+
/**
|
|
1702
|
+
* The severity of the emitted diagnostics by the rule
|
|
1703
|
+
*/
|
|
1560
1704
|
level: RulePlainConfiguration;
|
|
1705
|
+
/**
|
|
1706
|
+
* Rule's options
|
|
1707
|
+
*/
|
|
1561
1708
|
options: RestrictedGlobalsOptions;
|
|
1562
1709
|
}
|
|
1563
|
-
interface
|
|
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
|
+
*/
|
|
1564
1718
|
level: RulePlainConfiguration;
|
|
1719
|
+
/**
|
|
1720
|
+
* Rule's options
|
|
1721
|
+
*/
|
|
1565
1722
|
options: ConsistentArrayTypeOptions;
|
|
1566
1723
|
}
|
|
1567
1724
|
interface RuleWithOptions_for_FilenamingConventionOptions {
|
|
1725
|
+
/**
|
|
1726
|
+
* The severity of the emitted diagnostics by the rule
|
|
1727
|
+
*/
|
|
1568
1728
|
level: RulePlainConfiguration;
|
|
1729
|
+
/**
|
|
1730
|
+
* Rule's options
|
|
1731
|
+
*/
|
|
1569
1732
|
options: FilenamingConventionOptions;
|
|
1570
1733
|
}
|
|
1571
|
-
interface
|
|
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
|
+
*/
|
|
1572
1742
|
level: RulePlainConfiguration;
|
|
1743
|
+
/**
|
|
1744
|
+
* Rule's options
|
|
1745
|
+
*/
|
|
1573
1746
|
options: NamingConventionOptions;
|
|
1574
1747
|
}
|
|
1748
|
+
type FixKind = "none" | "safe" | "unsafe";
|
|
1575
1749
|
interface ValidAriaRoleOptions {
|
|
1576
1750
|
allowInvalidRoles: string[];
|
|
1577
1751
|
ignoreNonDom: boolean;
|
|
@@ -1589,9 +1763,6 @@ interface HooksOptions {
|
|
|
1589
1763
|
hooks: Hook[];
|
|
1590
1764
|
}
|
|
1591
1765
|
interface DeprecatedHooksOptions {}
|
|
1592
|
-
interface NoCssEmptyBlockOptions {
|
|
1593
|
-
allowComments: boolean;
|
|
1594
|
-
}
|
|
1595
1766
|
interface RestrictedImportsOptions {
|
|
1596
1767
|
/**
|
|
1597
1768
|
* A list of names that should trigger the rule
|
|
@@ -1632,10 +1803,14 @@ interface FilenamingConventionOptions {
|
|
|
1632
1803
|
strictCase: boolean;
|
|
1633
1804
|
}
|
|
1634
1805
|
interface NamingConventionOptions {
|
|
1806
|
+
/**
|
|
1807
|
+
* Custom conventions.
|
|
1808
|
+
*/
|
|
1809
|
+
conventions: Convention[];
|
|
1635
1810
|
/**
|
|
1636
1811
|
* Allowed cases for _TypeScript_ `enum` member names.
|
|
1637
1812
|
*/
|
|
1638
|
-
enumMemberCase:
|
|
1813
|
+
enumMemberCase: Format;
|
|
1639
1814
|
/**
|
|
1640
1815
|
* If `false`, then non-ASCII characters are allowed.
|
|
1641
1816
|
*/
|
|
@@ -1673,7 +1848,21 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
|
|
|
1673
1848
|
}
|
|
1674
1849
|
type ConsistentArrayType = "shorthand" | "generic";
|
|
1675
1850
|
type FilenameCases = FilenameCase[];
|
|
1676
|
-
|
|
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";
|
|
1677
1866
|
type StableHookResult = boolean | number[];
|
|
1678
1867
|
type FilenameCase =
|
|
1679
1868
|
| "camelCase"
|
|
@@ -1681,6 +1870,69 @@ type FilenameCase =
|
|
|
1681
1870
|
| "kebab-case"
|
|
1682
1871
|
| "PascalCase"
|
|
1683
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";
|
|
1684
1936
|
interface RegisterProjectFolderParams {
|
|
1685
1937
|
path?: string;
|
|
1686
1938
|
setAsCurrentWorkspace: boolean;
|
|
@@ -1764,8 +2016,10 @@ interface PullDiagnosticsParams {
|
|
|
1764
2016
|
categories: RuleCategories;
|
|
1765
2017
|
max_diagnostics: number;
|
|
1766
2018
|
path: BiomePath;
|
|
2019
|
+
rule?: RuleCode;
|
|
1767
2020
|
}
|
|
1768
2021
|
type RuleCategories = RuleCategory[];
|
|
2022
|
+
type RuleCode = string;
|
|
1769
2023
|
type RuleCategory = "Syntax" | "Lint" | "Action" | "Transformation";
|
|
1770
2024
|
interface PullDiagnosticsResult {
|
|
1771
2025
|
diagnostics: Diagnostic[];
|
|
@@ -1884,10 +2138,11 @@ type Category =
|
|
|
1884
2138
|
| "lint/correctness/useValidForDirection"
|
|
1885
2139
|
| "lint/correctness/useYield"
|
|
1886
2140
|
| "lint/nursery/colorNoInvalidHex"
|
|
2141
|
+
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
1887
2142
|
| "lint/nursery/noColorInvalidHex"
|
|
1888
2143
|
| "lint/nursery/noConsole"
|
|
1889
2144
|
| "lint/nursery/noConstantMathMinMaxClamp"
|
|
1890
|
-
| "lint/nursery/
|
|
2145
|
+
| "lint/nursery/noEmptyBlock"
|
|
1891
2146
|
| "lint/nursery/noDoneCallback"
|
|
1892
2147
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
1893
2148
|
| "lint/nursery/noDuplicateElseIf"
|
|
@@ -1897,6 +2152,7 @@ type Category =
|
|
|
1897
2152
|
| "lint/nursery/noEvolvingAny"
|
|
1898
2153
|
| "lint/nursery/noFlatMapIdentity"
|
|
1899
2154
|
| "lint/nursery/noImportantInKeyframe"
|
|
2155
|
+
| "lint/nursery/noInvalidPositionAtImportRule"
|
|
1900
2156
|
| "lint/nursery/noMisplacedAssertion"
|
|
1901
2157
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
1902
2158
|
| "lint/nursery/noNodejsModules"
|
|
@@ -1905,18 +2161,29 @@ type Category =
|
|
|
1905
2161
|
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
1906
2162
|
| "lint/nursery/noUndeclaredDependencies"
|
|
1907
2163
|
| "lint/nursery/noUnknownFunction"
|
|
2164
|
+
| "lint/nursery/noUnknownMediaFeatureName"
|
|
2165
|
+
| "lint/nursery/noUnknownProperty"
|
|
1908
2166
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
1909
2167
|
| "lint/nursery/noUnknownUnit"
|
|
1910
2168
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
2169
|
+
| "lint/nursery/noUselessStringConcat"
|
|
1911
2170
|
| "lint/nursery/noUselessUndefinedInitialization"
|
|
2171
|
+
| "lint/nursery/noYodaExpression"
|
|
1912
2172
|
| "lint/nursery/useArrayLiterals"
|
|
1913
2173
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1914
|
-
| "lint/nursery/useExplicitLengthCheck"
|
|
1915
2174
|
| "lint/nursery/useConsistentBuiltinInstantiation"
|
|
1916
2175
|
| "lint/nursery/useDefaultSwitchClause"
|
|
2176
|
+
| "lint/nursery/useExplicitLengthCheck"
|
|
2177
|
+
| "lint/nursery/useFocusableInteractive"
|
|
1917
2178
|
| "lint/nursery/useGenericFontNames"
|
|
2179
|
+
| "lint/nursery/useImportExtensions"
|
|
1918
2180
|
| "lint/nursery/useImportRestrictions"
|
|
2181
|
+
| "lint/nursery/useNumberToFixedDigitsArgument"
|
|
2182
|
+
| "lint/nursery/useSemanticElements"
|
|
1919
2183
|
| "lint/nursery/useSortedClasses"
|
|
2184
|
+
| "lint/nursery/useThrowNewError"
|
|
2185
|
+
| "lint/nursery/useThrowOnlyError"
|
|
2186
|
+
| "lint/nursery/useTopLevelRegex"
|
|
1920
2187
|
| "lint/performance/noAccumulatingSpread"
|
|
1921
2188
|
| "lint/performance/noBarrelFile"
|
|
1922
2189
|
| "lint/performance/noDelete"
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@biomejs/wasm-nodejs",
|
|
3
|
+
"collaborators": [
|
|
4
|
+
"Biome Developers and Contributors"
|
|
5
|
+
],
|
|
6
|
+
"description": "WebAssembly bindings to the Biome workspace API",
|
|
7
|
+
"version": "1.7.4-nightly.125f34b",
|
|
8
|
+
"license": "MIT OR Apache-2.0",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/biomejs/biome"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"biome_wasm_bg.wasm",
|
|
15
|
+
"biome_wasm.js",
|
|
16
|
+
"biome_wasm.d.ts"
|
|
17
|
+
],
|
|
18
|
+
"main": "biome_wasm.js",
|
|
19
|
+
"homepage": "https://biomejs.dev/",
|
|
20
|
+
"types": "biome_wasm.d.ts",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"parser",
|
|
23
|
+
"linter",
|
|
24
|
+
"formatter",
|
|
25
|
+
"wasm"
|
|
26
|
+
]
|
|
27
|
+
}
|