@liwo/eslint-config 0.0.6 → 0.0.7
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/README.md +6 -0
- package/dist/index.d.ts +713 -234
- package/package.json +39 -36
package/dist/index.d.ts
CHANGED
|
@@ -445,7 +445,7 @@ interface RuleOptions {
|
|
|
445
445
|
*/
|
|
446
446
|
'jsdoc/check-alignment'?: Linter.RuleEntry<JsdocCheckAlignment>;
|
|
447
447
|
/**
|
|
448
|
-
*
|
|
448
|
+
* @deprecated - Use `getJsdocProcessorPlugin` processor; ensures that (JavaScript) samples within `@example` tags adhere to ESLint rules.
|
|
449
449
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-examples.md#repos-sticky-header
|
|
450
450
|
*/
|
|
451
451
|
'jsdoc/check-examples'?: Linter.RuleEntry<JsdocCheckExamples>;
|
|
@@ -460,7 +460,7 @@ interface RuleOptions {
|
|
|
460
460
|
*/
|
|
461
461
|
'jsdoc/check-line-alignment'?: Linter.RuleEntry<JsdocCheckLineAlignment>;
|
|
462
462
|
/**
|
|
463
|
-
*
|
|
463
|
+
* Checks for dupe `@param` names, that nested param names have roots, and that parameter names in function declarations match JSDoc param names.
|
|
464
464
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-param-names.md#repos-sticky-header
|
|
465
465
|
*/
|
|
466
466
|
'jsdoc/check-param-names'?: Linter.RuleEntry<JsdocCheckParamNames>;
|
|
@@ -485,7 +485,7 @@ interface RuleOptions {
|
|
|
485
485
|
*/
|
|
486
486
|
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>;
|
|
487
487
|
/**
|
|
488
|
-
* Reports invalid
|
|
488
|
+
* Reports types deemed invalid (customizable and with defaults, for preventing and/or recommending replacements).
|
|
489
489
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
|
490
490
|
*/
|
|
491
491
|
'jsdoc/check-types'?: Linter.RuleEntry<JsdocCheckTypes>;
|
|
@@ -500,12 +500,17 @@ interface RuleOptions {
|
|
|
500
500
|
*/
|
|
501
501
|
'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>;
|
|
502
502
|
/**
|
|
503
|
-
*
|
|
503
|
+
* Checks tags that are expected to be empty (e.g., `@abstract` or `@async`), reporting if they have content
|
|
504
504
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
505
505
|
*/
|
|
506
506
|
'jsdoc/empty-tags'?: Linter.RuleEntry<JsdocEmptyTags>;
|
|
507
507
|
/**
|
|
508
|
-
* Reports
|
|
508
|
+
* Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
|
|
509
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/escape-inline-tags.md#repos-sticky-header
|
|
510
|
+
*/
|
|
511
|
+
'jsdoc/escape-inline-tags'?: Linter.RuleEntry<JsdocEscapeInlineTags>;
|
|
512
|
+
/**
|
|
513
|
+
* Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors).
|
|
509
514
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/implements-on-classes.md#repos-sticky-header
|
|
510
515
|
*/
|
|
511
516
|
'jsdoc/implements-on-classes'?: Linter.RuleEntry<JsdocImplementsOnClasses>;
|
|
@@ -535,17 +540,17 @@ interface RuleOptions {
|
|
|
535
540
|
*/
|
|
536
541
|
'jsdoc/match-name'?: Linter.RuleEntry<JsdocMatchName>;
|
|
537
542
|
/**
|
|
538
|
-
* Controls how and whether
|
|
543
|
+
* Controls how and whether JSDoc blocks can be expressed as single or multiple line blocks.
|
|
539
544
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/multiline-blocks.md#repos-sticky-header
|
|
540
545
|
*/
|
|
541
546
|
'jsdoc/multiline-blocks'?: Linter.RuleEntry<JsdocMultilineBlocks>;
|
|
542
547
|
/**
|
|
543
|
-
* This rule checks for multi-line-style comments which fail to meet the criteria of a
|
|
548
|
+
* This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
|
|
544
549
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-bad-blocks.md#repos-sticky-header
|
|
545
550
|
*/
|
|
546
551
|
'jsdoc/no-bad-blocks'?: Linter.RuleEntry<JsdocNoBadBlocks>;
|
|
547
552
|
/**
|
|
548
|
-
*
|
|
553
|
+
* If tags are present, this rule will prevent empty lines in the block description. If no tags are present, this rule will prevent extra empty lines in the block description.
|
|
549
554
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-blank-block-descriptions.md#repos-sticky-header
|
|
550
555
|
*/
|
|
551
556
|
'jsdoc/no-blank-block-descriptions'?: Linter.RuleEntry<[]>;
|
|
@@ -575,22 +580,37 @@ interface RuleOptions {
|
|
|
575
580
|
*/
|
|
576
581
|
'jsdoc/no-restricted-syntax'?: Linter.RuleEntry<JsdocNoRestrictedSyntax>;
|
|
577
582
|
/**
|
|
578
|
-
* This rule reports types being used on `@param` or `@returns
|
|
583
|
+
* This rule reports types being used on `@param` or `@returns` (redundant with TypeScript).
|
|
579
584
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-types.md#repos-sticky-header
|
|
580
585
|
*/
|
|
581
586
|
'jsdoc/no-types'?: Linter.RuleEntry<JsdocNoTypes>;
|
|
582
587
|
/**
|
|
583
|
-
*
|
|
588
|
+
* Besides some expected built-in types, prohibits any types not specified as globals or within `@typedef`.
|
|
584
589
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
|
|
585
590
|
*/
|
|
586
591
|
'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
|
|
592
|
+
/**
|
|
593
|
+
* Prefer `@import` tags to inline `import()` statements.
|
|
594
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/prefer-import-tag.md#repos-sticky-header
|
|
595
|
+
*/
|
|
596
|
+
'jsdoc/prefer-import-tag'?: Linter.RuleEntry<JsdocPreferImportTag>;
|
|
597
|
+
/**
|
|
598
|
+
* Reports use of `any` or `*` type
|
|
599
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/reject-any-type.md#repos-sticky-header
|
|
600
|
+
*/
|
|
601
|
+
'jsdoc/reject-any-type'?: Linter.RuleEntry<[]>;
|
|
602
|
+
/**
|
|
603
|
+
* Reports use of `Function` type
|
|
604
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/reject-function-type.md#repos-sticky-header
|
|
605
|
+
*/
|
|
606
|
+
'jsdoc/reject-function-type'?: Linter.RuleEntry<[]>;
|
|
587
607
|
/**
|
|
588
608
|
* Requires that each JSDoc line starts with an `*`.
|
|
589
609
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-asterisk-prefix.md#repos-sticky-header
|
|
590
610
|
*/
|
|
591
611
|
'jsdoc/require-asterisk-prefix'?: Linter.RuleEntry<JsdocRequireAsteriskPrefix>;
|
|
592
612
|
/**
|
|
593
|
-
* Requires that all functions have a description.
|
|
613
|
+
* Requires that all functions (and potentially other contexts) have a description.
|
|
594
614
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-description.md#repos-sticky-header
|
|
595
615
|
*/
|
|
596
616
|
'jsdoc/require-description'?: Linter.RuleEntry<JsdocRequireDescription>;
|
|
@@ -600,7 +620,7 @@ interface RuleOptions {
|
|
|
600
620
|
*/
|
|
601
621
|
'jsdoc/require-description-complete-sentence'?: Linter.RuleEntry<JsdocRequireDescriptionCompleteSentence>;
|
|
602
622
|
/**
|
|
603
|
-
* Requires that all functions have examples.
|
|
623
|
+
* Requires that all functions (and potentially other contexts) have examples.
|
|
604
624
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-example.md#repos-sticky-header
|
|
605
625
|
*/
|
|
606
626
|
'jsdoc/require-example'?: Linter.RuleEntry<JsdocRequireExample>;
|
|
@@ -610,17 +630,27 @@ interface RuleOptions {
|
|
|
610
630
|
*/
|
|
611
631
|
'jsdoc/require-file-overview'?: Linter.RuleEntry<JsdocRequireFileOverview>;
|
|
612
632
|
/**
|
|
613
|
-
* Requires a hyphen before the `@param` description.
|
|
633
|
+
* Requires a hyphen before the `@param` description (and optionally before `@property` descriptions).
|
|
614
634
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-hyphen-before-param-description.md#repos-sticky-header
|
|
615
635
|
*/
|
|
616
636
|
'jsdoc/require-hyphen-before-param-description'?: Linter.RuleEntry<JsdocRequireHyphenBeforeParamDescription>;
|
|
617
637
|
/**
|
|
618
|
-
*
|
|
638
|
+
* Checks for presence of JSDoc comments, on functions and potentially other contexts (optionally limited to exports).
|
|
619
639
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-jsdoc.md#repos-sticky-header
|
|
620
640
|
*/
|
|
621
641
|
'jsdoc/require-jsdoc'?: Linter.RuleEntry<JsdocRequireJsdoc>;
|
|
622
642
|
/**
|
|
623
|
-
* Requires
|
|
643
|
+
* Requires a description for `@next` tags
|
|
644
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-next-description.md#repos-sticky-header
|
|
645
|
+
*/
|
|
646
|
+
'jsdoc/require-next-description'?: Linter.RuleEntry<[]>;
|
|
647
|
+
/**
|
|
648
|
+
* Requires a type for `@next` tags
|
|
649
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-next-type.md#repos-sticky-header
|
|
650
|
+
*/
|
|
651
|
+
'jsdoc/require-next-type'?: Linter.RuleEntry<[]>;
|
|
652
|
+
/**
|
|
653
|
+
* Requires that all function parameters are documented with a `@param` tag.
|
|
624
654
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md#repos-sticky-header
|
|
625
655
|
*/
|
|
626
656
|
'jsdoc/require-param'?: Linter.RuleEntry<JsdocRequireParam>;
|
|
@@ -630,12 +660,12 @@ interface RuleOptions {
|
|
|
630
660
|
*/
|
|
631
661
|
'jsdoc/require-param-description'?: Linter.RuleEntry<JsdocRequireParamDescription>;
|
|
632
662
|
/**
|
|
633
|
-
* Requires that all
|
|
663
|
+
* Requires that all `@param` tags have names.
|
|
634
664
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-name.md#repos-sticky-header
|
|
635
665
|
*/
|
|
636
666
|
'jsdoc/require-param-name'?: Linter.RuleEntry<JsdocRequireParamName>;
|
|
637
667
|
/**
|
|
638
|
-
* Requires that each `@param` tag has a
|
|
668
|
+
* Requires that each `@param` tag has a type value (in curly brackets).
|
|
639
669
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md#repos-sticky-header
|
|
640
670
|
*/
|
|
641
671
|
'jsdoc/require-param-type'?: Linter.RuleEntry<JsdocRequireParamType>;
|
|
@@ -650,62 +680,92 @@ interface RuleOptions {
|
|
|
650
680
|
*/
|
|
651
681
|
'jsdoc/require-property-description'?: Linter.RuleEntry<[]>;
|
|
652
682
|
/**
|
|
653
|
-
* Requires that all
|
|
683
|
+
* Requires that all `@property` tags have names.
|
|
654
684
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-name.md#repos-sticky-header
|
|
655
685
|
*/
|
|
656
686
|
'jsdoc/require-property-name'?: Linter.RuleEntry<[]>;
|
|
657
687
|
/**
|
|
658
|
-
* Requires that each `@property` tag has a
|
|
688
|
+
* Requires that each `@property` tag has a type value (in curly brackets).
|
|
659
689
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
660
690
|
*/
|
|
661
691
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>;
|
|
662
692
|
/**
|
|
663
|
-
* Requires that returns are documented
|
|
693
|
+
* Requires that returns are documented with `@returns`.
|
|
664
694
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
665
695
|
*/
|
|
666
696
|
'jsdoc/require-returns'?: Linter.RuleEntry<JsdocRequireReturns>;
|
|
667
697
|
/**
|
|
668
|
-
* Requires a return statement in function body if a `@returns` tag is specified in
|
|
698
|
+
* Requires a return statement in function body if a `@returns` tag is specified in JSDoc comment(and reports if multiple `@returns` tags are present).
|
|
669
699
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-check.md#repos-sticky-header
|
|
670
700
|
*/
|
|
671
701
|
'jsdoc/require-returns-check'?: Linter.RuleEntry<JsdocRequireReturnsCheck>;
|
|
672
702
|
/**
|
|
673
|
-
* Requires that the `@returns` tag has a `description` value.
|
|
703
|
+
* Requires that the `@returns` tag has a `description` value (not including `void`/`undefined` type returns).
|
|
674
704
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-description.md#repos-sticky-header
|
|
675
705
|
*/
|
|
676
706
|
'jsdoc/require-returns-description'?: Linter.RuleEntry<JsdocRequireReturnsDescription>;
|
|
677
707
|
/**
|
|
678
|
-
* Requires that `@returns` tag has
|
|
708
|
+
* Requires that `@returns` tag has type value (in curly brackets).
|
|
679
709
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
680
710
|
*/
|
|
681
711
|
'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>;
|
|
682
712
|
/**
|
|
683
|
-
* Requires
|
|
713
|
+
* Requires tags be present, optionally for specific contexts
|
|
714
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-tags.md#repos-sticky-header
|
|
715
|
+
*/
|
|
716
|
+
'jsdoc/require-tags'?: Linter.RuleEntry<JsdocRequireTags>;
|
|
717
|
+
/**
|
|
718
|
+
* Requires `@template` tags be present when type parameters are used.
|
|
684
719
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
685
720
|
*/
|
|
686
721
|
'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>;
|
|
687
722
|
/**
|
|
688
|
-
* Requires
|
|
723
|
+
* Requires a description for `@template` tags
|
|
724
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template-description.md#repos-sticky-header
|
|
725
|
+
*/
|
|
726
|
+
'jsdoc/require-template-description'?: Linter.RuleEntry<[]>;
|
|
727
|
+
/**
|
|
728
|
+
* Requires that throw statements are documented with `@throws` tags.
|
|
689
729
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
690
730
|
*/
|
|
691
731
|
'jsdoc/require-throws'?: Linter.RuleEntry<JsdocRequireThrows>;
|
|
692
732
|
/**
|
|
693
|
-
* Requires
|
|
733
|
+
* Requires a description for `@throws` tags
|
|
734
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws-description.md#repos-sticky-header
|
|
735
|
+
*/
|
|
736
|
+
'jsdoc/require-throws-description'?: Linter.RuleEntry<[]>;
|
|
737
|
+
/**
|
|
738
|
+
* Requires a type for `@throws` tags
|
|
739
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws-type.md#repos-sticky-header
|
|
740
|
+
*/
|
|
741
|
+
'jsdoc/require-throws-type'?: Linter.RuleEntry<[]>;
|
|
742
|
+
/**
|
|
743
|
+
* Requires yields are documented with `@yields` tags.
|
|
694
744
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields.md#repos-sticky-header
|
|
695
745
|
*/
|
|
696
746
|
'jsdoc/require-yields'?: Linter.RuleEntry<JsdocRequireYields>;
|
|
697
747
|
/**
|
|
698
|
-
*
|
|
748
|
+
* Ensures that if a `@yields` is present that a `yield` (or `yield` with a value) is present in the function body (or that if a `@next` is present that there is a yield with a return value present).
|
|
699
749
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-check.md#repos-sticky-header
|
|
700
750
|
*/
|
|
701
751
|
'jsdoc/require-yields-check'?: Linter.RuleEntry<JsdocRequireYieldsCheck>;
|
|
702
752
|
/**
|
|
703
|
-
*
|
|
753
|
+
* Requires a description for `@yields` tags
|
|
754
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-description.md#repos-sticky-header
|
|
755
|
+
*/
|
|
756
|
+
'jsdoc/require-yields-description'?: Linter.RuleEntry<[]>;
|
|
757
|
+
/**
|
|
758
|
+
* Requires a type for `@yields` tags
|
|
759
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-type.md#repos-sticky-header
|
|
760
|
+
*/
|
|
761
|
+
'jsdoc/require-yields-type'?: Linter.RuleEntry<[]>;
|
|
762
|
+
/**
|
|
763
|
+
* Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.
|
|
704
764
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/sort-tags.md#repos-sticky-header
|
|
705
765
|
*/
|
|
706
766
|
'jsdoc/sort-tags'?: Linter.RuleEntry<JsdocSortTags>;
|
|
707
767
|
/**
|
|
708
|
-
* Enforces lines (or no lines) between tags.
|
|
768
|
+
* Enforces lines (or no lines) before, after, or between tags.
|
|
709
769
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/tag-lines.md#repos-sticky-header
|
|
710
770
|
*/
|
|
711
771
|
'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>;
|
|
@@ -714,13 +774,33 @@ interface RuleOptions {
|
|
|
714
774
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
715
775
|
*/
|
|
716
776
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
|
|
777
|
+
/**
|
|
778
|
+
* Prefers either function properties or method signatures
|
|
779
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
|
|
780
|
+
*/
|
|
781
|
+
'jsdoc/ts-method-signature-style'?: Linter.RuleEntry<JsdocTsMethodSignatureStyle>;
|
|
782
|
+
/**
|
|
783
|
+
* Warns against use of the empty object type
|
|
784
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-empty-object-type.md#repos-sticky-header
|
|
785
|
+
*/
|
|
786
|
+
'jsdoc/ts-no-empty-object-type'?: Linter.RuleEntry<[]>;
|
|
787
|
+
/**
|
|
788
|
+
* Catches unnecessary template expressions such as string expressions within a template literal.
|
|
789
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-unnecessary-template-expression.md#repos-sticky-header
|
|
790
|
+
*/
|
|
791
|
+
'jsdoc/ts-no-unnecessary-template-expression'?: Linter.RuleEntry<JsdocTsNoUnnecessaryTemplateExpression>;
|
|
792
|
+
/**
|
|
793
|
+
* Prefers function types over call signatures when there are no other properties.
|
|
794
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-prefer-function-type.md#repos-sticky-header
|
|
795
|
+
*/
|
|
796
|
+
'jsdoc/ts-prefer-function-type'?: Linter.RuleEntry<JsdocTsPreferFunctionType>;
|
|
717
797
|
/**
|
|
718
798
|
* Formats JSDoc type values.
|
|
719
799
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
|
|
720
800
|
*/
|
|
721
801
|
'jsdoc/type-formatting'?: Linter.RuleEntry<JsdocTypeFormatting>;
|
|
722
802
|
/**
|
|
723
|
-
* Requires all types to be valid JSDoc
|
|
803
|
+
* Requires all types/namepaths to be valid JSDoc, Closure compiler, or TypeScript types (configurable in settings).
|
|
724
804
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
|
|
725
805
|
*/
|
|
726
806
|
'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>;
|
|
@@ -1056,7 +1136,7 @@ interface RuleOptions {
|
|
|
1056
1136
|
* Disallow missing label references
|
|
1057
1137
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1058
1138
|
*/
|
|
1059
|
-
'markdown/no-missing-label-refs'?: Linter.RuleEntry<
|
|
1139
|
+
'markdown/no-missing-label-refs'?: Linter.RuleEntry<MarkdownNoMissingLabelRefs>;
|
|
1060
1140
|
/**
|
|
1061
1141
|
* Disallow link fragments that do not reference valid headings
|
|
1062
1142
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
|
|
@@ -1067,6 +1147,11 @@ interface RuleOptions {
|
|
|
1067
1147
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
1068
1148
|
*/
|
|
1069
1149
|
'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Disallow URLs that match defined reference identifiers
|
|
1152
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reference-like-urls.md
|
|
1153
|
+
*/
|
|
1154
|
+
'markdown/no-reference-like-urls'?: Linter.RuleEntry<[]>;
|
|
1070
1155
|
/**
|
|
1071
1156
|
* Disallow reversed link and image syntax
|
|
1072
1157
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
@@ -2048,12 +2133,12 @@ interface RuleOptions {
|
|
|
2048
2133
|
*/
|
|
2049
2134
|
'node/no-hide-core-modules'?: Linter.RuleEntry<NodeNoHideCoreModules>;
|
|
2050
2135
|
/**
|
|
2051
|
-
* disallow `import` declarations which import
|
|
2136
|
+
* disallow `import` declarations which import missing modules
|
|
2052
2137
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-import.md
|
|
2053
2138
|
*/
|
|
2054
2139
|
'node/no-missing-import'?: Linter.RuleEntry<NodeNoMissingImport>;
|
|
2055
2140
|
/**
|
|
2056
|
-
* disallow `require()` expressions which import
|
|
2141
|
+
* disallow `require()` expressions which import missing modules
|
|
2057
2142
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-require.md
|
|
2058
2143
|
*/
|
|
2059
2144
|
'node/no-missing-require'?: Linter.RuleEntry<NodeNoMissingRequire>;
|
|
@@ -2589,16 +2674,124 @@ interface RuleOptions {
|
|
|
2589
2674
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
2590
2675
|
*/
|
|
2591
2676
|
'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
|
|
2677
|
+
/**
|
|
2678
|
+
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
2679
|
+
*/
|
|
2680
|
+
'react-hooks/automatic-effect-dependencies'?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies>;
|
|
2681
|
+
/**
|
|
2682
|
+
* Validates against calling capitalized functions/methods instead of using JSX
|
|
2683
|
+
*/
|
|
2684
|
+
'react-hooks/capitalized-calls'?: Linter.RuleEntry<ReactHooksCapitalizedCalls>;
|
|
2685
|
+
/**
|
|
2686
|
+
* Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level
|
|
2687
|
+
*/
|
|
2688
|
+
'react-hooks/component-hook-factories'?: Linter.RuleEntry<ReactHooksComponentHookFactories>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Validates the compiler configuration options
|
|
2691
|
+
*/
|
|
2692
|
+
'react-hooks/config'?: Linter.RuleEntry<ReactHooksConfig>;
|
|
2693
|
+
/**
|
|
2694
|
+
* Validates usage of error boundaries instead of try/catch for errors in child components
|
|
2695
|
+
*/
|
|
2696
|
+
'react-hooks/error-boundaries'?: Linter.RuleEntry<ReactHooksErrorBoundaries>;
|
|
2592
2697
|
/**
|
|
2593
2698
|
* verifies the list of dependencies for Hooks like useEffect and similar
|
|
2594
2699
|
* @see https://github.com/facebook/react/issues/14920
|
|
2595
2700
|
*/
|
|
2596
2701
|
'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>;
|
|
2702
|
+
/**
|
|
2703
|
+
* Validates usage of fbt
|
|
2704
|
+
*/
|
|
2705
|
+
'react-hooks/fbt'?: Linter.RuleEntry<ReactHooksFbt>;
|
|
2706
|
+
/**
|
|
2707
|
+
* Validates usage of `fire`
|
|
2708
|
+
*/
|
|
2709
|
+
'react-hooks/fire'?: Linter.RuleEntry<ReactHooksFire>;
|
|
2710
|
+
/**
|
|
2711
|
+
* Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
|
|
2712
|
+
*/
|
|
2713
|
+
'react-hooks/gating'?: Linter.RuleEntry<ReactHooksGating>;
|
|
2714
|
+
/**
|
|
2715
|
+
* Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
|
|
2716
|
+
*/
|
|
2717
|
+
'react-hooks/globals'?: Linter.RuleEntry<ReactHooksGlobals>;
|
|
2718
|
+
/**
|
|
2719
|
+
* Validates the rules of hooks
|
|
2720
|
+
*/
|
|
2721
|
+
'react-hooks/hooks'?: Linter.RuleEntry<ReactHooksHooks>;
|
|
2722
|
+
/**
|
|
2723
|
+
* Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
|
|
2724
|
+
*/
|
|
2725
|
+
'react-hooks/immutability'?: Linter.RuleEntry<ReactHooksImmutability>;
|
|
2726
|
+
/**
|
|
2727
|
+
* Validates against usage of libraries which are incompatible with memoization (manual or automatic)
|
|
2728
|
+
*/
|
|
2729
|
+
'react-hooks/incompatible-library'?: Linter.RuleEntry<ReactHooksIncompatibleLibrary>;
|
|
2730
|
+
/**
|
|
2731
|
+
* Internal invariants
|
|
2732
|
+
*/
|
|
2733
|
+
'react-hooks/invariant'?: Linter.RuleEntry<ReactHooksInvariant>;
|
|
2734
|
+
/**
|
|
2735
|
+
* Validates that effect dependencies are memoized
|
|
2736
|
+
*/
|
|
2737
|
+
'react-hooks/memoized-effect-dependencies'?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies>;
|
|
2738
|
+
/**
|
|
2739
|
+
* Validates against deriving values from state in an effect
|
|
2740
|
+
*/
|
|
2741
|
+
'react-hooks/no-deriving-state-in-effects'?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>;
|
|
2742
|
+
/**
|
|
2743
|
+
* Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
|
|
2744
|
+
*/
|
|
2745
|
+
'react-hooks/preserve-manual-memoization'?: Linter.RuleEntry<ReactHooksPreserveManualMemoization>;
|
|
2746
|
+
/**
|
|
2747
|
+
* Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
|
|
2748
|
+
*/
|
|
2749
|
+
'react-hooks/purity'?: Linter.RuleEntry<ReactHooksPurity>;
|
|
2750
|
+
/**
|
|
2751
|
+
* Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
|
|
2752
|
+
*/
|
|
2753
|
+
'react-hooks/refs'?: Linter.RuleEntry<ReactHooksRefs>;
|
|
2754
|
+
/**
|
|
2755
|
+
* Validates against suppression of other rules
|
|
2756
|
+
*/
|
|
2757
|
+
'react-hooks/rule-suppression'?: Linter.RuleEntry<ReactHooksRuleSuppression>;
|
|
2597
2758
|
/**
|
|
2598
2759
|
* enforces the Rules of Hooks
|
|
2599
|
-
* @see https://
|
|
2760
|
+
* @see https://react.dev/reference/rules/rules-of-hooks
|
|
2761
|
+
*/
|
|
2762
|
+
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<ReactHooksRulesOfHooks>;
|
|
2763
|
+
/**
|
|
2764
|
+
* Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
|
|
2600
2765
|
*/
|
|
2601
|
-
'react-hooks/
|
|
2766
|
+
'react-hooks/set-state-in-effect'?: Linter.RuleEntry<ReactHooksSetStateInEffect>;
|
|
2767
|
+
/**
|
|
2768
|
+
* Validates against setting state during render, which can trigger additional renders and potential infinite render loops
|
|
2769
|
+
*/
|
|
2770
|
+
'react-hooks/set-state-in-render'?: Linter.RuleEntry<ReactHooksSetStateInRender>;
|
|
2771
|
+
/**
|
|
2772
|
+
* Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
|
|
2773
|
+
*/
|
|
2774
|
+
'react-hooks/static-components'?: Linter.RuleEntry<ReactHooksStaticComponents>;
|
|
2775
|
+
/**
|
|
2776
|
+
* Validates against invalid syntax
|
|
2777
|
+
*/
|
|
2778
|
+
'react-hooks/syntax'?: Linter.RuleEntry<ReactHooksSyntax>;
|
|
2779
|
+
/**
|
|
2780
|
+
* Unimplemented features
|
|
2781
|
+
*/
|
|
2782
|
+
'react-hooks/todo'?: Linter.RuleEntry<ReactHooksTodo>;
|
|
2783
|
+
/**
|
|
2784
|
+
* Validates against syntax that we do not plan to support in React Compiler
|
|
2785
|
+
*/
|
|
2786
|
+
'react-hooks/unsupported-syntax'?: Linter.RuleEntry<ReactHooksUnsupportedSyntax>;
|
|
2787
|
+
/**
|
|
2788
|
+
* Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
2789
|
+
*/
|
|
2790
|
+
'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
|
|
2791
|
+
/**
|
|
2792
|
+
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
2793
|
+
*/
|
|
2794
|
+
'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
|
|
2602
2795
|
/**
|
|
2603
2796
|
* Enforces naming conventions for components.
|
|
2604
2797
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
@@ -3540,6 +3733,11 @@ interface RuleOptions {
|
|
|
3540
3733
|
* @see https://eslint.style/rules/eol-last
|
|
3541
3734
|
*/
|
|
3542
3735
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
3736
|
+
/**
|
|
3737
|
+
* Enforce consistent spacing and line break styles inside brackets.
|
|
3738
|
+
* @see https://eslint.style/rules/list-style
|
|
3739
|
+
*/
|
|
3740
|
+
'style/exp-list-style'?: Linter.RuleEntry<StyleExpListStyle>;
|
|
3543
3741
|
/**
|
|
3544
3742
|
* Enforce line breaks between arguments of a function call
|
|
3545
3743
|
* @see https://eslint.style/rules/function-call-argument-newline
|
|
@@ -3971,7 +4169,7 @@ interface RuleOptions {
|
|
|
3971
4169
|
*/
|
|
3972
4170
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>;
|
|
3973
4171
|
/**
|
|
3974
|
-
* require
|
|
4172
|
+
* require test file pattern
|
|
3975
4173
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
3976
4174
|
*/
|
|
3977
4175
|
'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>;
|
|
@@ -4156,6 +4354,11 @@ interface RuleOptions {
|
|
|
4156
4354
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4157
4355
|
*/
|
|
4158
4356
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
4357
|
+
/**
|
|
4358
|
+
* Prefer `toHaveBeenCalledExactlyOnceWith` over `toHaveBeenCalledOnce` and `toHaveBeenCalledWith`
|
|
4359
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-exactly-once-with.md
|
|
4360
|
+
*/
|
|
4361
|
+
'test/prefer-called-exactly-once-with'?: Linter.RuleEntry<[]>;
|
|
4159
4362
|
/**
|
|
4160
4363
|
* enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
|
|
4161
4364
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
@@ -4216,6 +4419,11 @@ interface RuleOptions {
|
|
|
4216
4419
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4217
4420
|
*/
|
|
4218
4421
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
4422
|
+
/**
|
|
4423
|
+
* prefer dynamic import in mock
|
|
4424
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
4425
|
+
*/
|
|
4426
|
+
'test/prefer-import-in-mock'?: Linter.RuleEntry<[]>;
|
|
4219
4427
|
/**
|
|
4220
4428
|
* enforce importing Vitest globals
|
|
4221
4429
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -4874,7 +5082,7 @@ interface RuleOptions {
|
|
|
4874
5082
|
* Disallow member access on a value with type `any`
|
|
4875
5083
|
* @see https://typescript-eslint.io/rules/no-unsafe-member-access
|
|
4876
5084
|
*/
|
|
4877
|
-
'ts/no-unsafe-member-access'?: Linter.RuleEntry<
|
|
5085
|
+
'ts/no-unsafe-member-access'?: Linter.RuleEntry<TsNoUnsafeMemberAccess>;
|
|
4878
5086
|
/**
|
|
4879
5087
|
* Disallow returning a value with type `any` from a function
|
|
4880
5088
|
* @see https://typescript-eslint.io/rules/no-unsafe-return
|
|
@@ -5121,710 +5329,725 @@ interface RuleOptions {
|
|
|
5121
5329
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
5122
5330
|
/**
|
|
5123
5331
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
5125
5333
|
*/
|
|
5126
5334
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
5127
5335
|
/**
|
|
5128
5336
|
* Enforce a specific parameter name in catch clauses.
|
|
5129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
5130
5338
|
*/
|
|
5131
5339
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
5132
5340
|
/**
|
|
5133
5341
|
* Enforce consistent assertion style with `node:assert`.
|
|
5134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
5135
5343
|
*/
|
|
5136
5344
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
5137
5345
|
/**
|
|
5138
5346
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
5140
5348
|
*/
|
|
5141
5349
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
5142
5350
|
/**
|
|
5143
5351
|
* Use destructured variables over properties.
|
|
5144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
5145
5353
|
*/
|
|
5146
5354
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
5147
5355
|
/**
|
|
5148
5356
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5150
5358
|
*/
|
|
5151
5359
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
5152
5360
|
/**
|
|
5153
5361
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
5155
5363
|
*/
|
|
5156
5364
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
5157
5365
|
/**
|
|
5158
5366
|
* Move function definitions to the highest possible scope.
|
|
5159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
5160
5368
|
*/
|
|
5161
5369
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
5162
5370
|
/**
|
|
5163
5371
|
* Enforce correct `Error` subclassing.
|
|
5164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
5165
5373
|
*/
|
|
5166
5374
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
5167
5375
|
/**
|
|
5168
5376
|
* Enforce no spaces between braces.
|
|
5169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
5170
5378
|
*/
|
|
5171
5379
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
5172
5380
|
/**
|
|
5173
5381
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
5175
5383
|
*/
|
|
5176
5384
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
5177
5385
|
/**
|
|
5178
5386
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
5180
5388
|
*/
|
|
5181
5389
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
5182
5390
|
/**
|
|
5183
5391
|
* Add expiration conditions to TODO comments.
|
|
5184
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
5185
5393
|
*/
|
|
5186
5394
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
5187
5395
|
/**
|
|
5188
5396
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
5190
5398
|
*/
|
|
5191
5399
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
5192
5400
|
/**
|
|
5193
5401
|
* Enforce a case style for filenames.
|
|
5194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
5195
5403
|
*/
|
|
5196
5404
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
5197
5405
|
/**
|
|
5198
5406
|
* Enforce specific import styles per module.
|
|
5199
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
5200
5408
|
*/
|
|
5201
5409
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
5202
5410
|
/**
|
|
5203
5411
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
5205
5413
|
*/
|
|
5206
5414
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
5207
5415
|
/**
|
|
5208
5416
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5209
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5210
5418
|
*/
|
|
5211
5419
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
5212
5420
|
/**
|
|
5213
5421
|
* Disallow recursive access to `this` within getters and setters.
|
|
5214
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
5215
5423
|
*/
|
|
5216
5424
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
5217
5425
|
/**
|
|
5218
5426
|
* Disallow anonymous functions and classes as the default export.
|
|
5219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
5220
5428
|
*/
|
|
5221
5429
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
5222
5430
|
/**
|
|
5223
5431
|
* Prevent passing a function reference directly to iterator methods.
|
|
5224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
5225
5433
|
*/
|
|
5226
5434
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
5227
5435
|
/**
|
|
5228
5436
|
* Prefer `for…of` over the `forEach` method.
|
|
5229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
5230
5438
|
*/
|
|
5231
5439
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
5232
5440
|
/**
|
|
5233
5441
|
* Disallow using the `this` argument in array methods.
|
|
5234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
5235
5443
|
*/
|
|
5236
5444
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
5237
5445
|
/**
|
|
5238
5446
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
5240
5448
|
* @deprecated
|
|
5241
5449
|
*/
|
|
5242
5450
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
5243
5451
|
/**
|
|
5244
5452
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5453
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
5246
5454
|
*/
|
|
5247
5455
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
5248
5456
|
/**
|
|
5249
5457
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5250
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
5251
5459
|
*/
|
|
5252
5460
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
5253
5461
|
/**
|
|
5254
5462
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
5256
5464
|
*/
|
|
5257
5465
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
5258
5466
|
/**
|
|
5259
5467
|
* Disallow member access from await expression.
|
|
5260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5468
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
5261
5469
|
*/
|
|
5262
5470
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
5263
5471
|
/**
|
|
5264
5472
|
* Disallow using `await` in `Promise` method parameters.
|
|
5265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5473
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5266
5474
|
*/
|
|
5267
5475
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5268
5476
|
/**
|
|
5269
5477
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5478
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
5271
5479
|
*/
|
|
5272
5480
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5273
5481
|
/**
|
|
5274
5482
|
* Do not use `document.cookie` directly.
|
|
5275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5483
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
5276
5484
|
*/
|
|
5277
5485
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5278
5486
|
/**
|
|
5279
5487
|
* Disallow empty files.
|
|
5280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
5281
5489
|
*/
|
|
5282
5490
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
5283
5491
|
/**
|
|
5284
5492
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5285
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
5286
5494
|
*/
|
|
5287
5495
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5288
5496
|
/**
|
|
5289
5497
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5290
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5498
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
5291
5499
|
*/
|
|
5292
5500
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5501
|
+
/**
|
|
5502
|
+
* Disallow immediate mutation after variable assignment.
|
|
5503
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
5504
|
+
*/
|
|
5505
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
5293
5506
|
/**
|
|
5294
5507
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5295
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5296
5509
|
* @deprecated
|
|
5297
5510
|
*/
|
|
5298
5511
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5299
5512
|
/**
|
|
5300
5513
|
* Disallow `instanceof` with built-in objects
|
|
5301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
5302
5515
|
*/
|
|
5303
5516
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5304
5517
|
/**
|
|
5305
5518
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5307
5520
|
*/
|
|
5308
5521
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5309
5522
|
/**
|
|
5310
5523
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5312
5525
|
*/
|
|
5313
5526
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5314
5527
|
/**
|
|
5315
5528
|
* Disallow identifiers starting with `new` or `class`.
|
|
5316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
5317
5530
|
*/
|
|
5318
5531
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5319
5532
|
/**
|
|
5320
5533
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
5322
5535
|
* @deprecated
|
|
5323
5536
|
*/
|
|
5324
5537
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5325
5538
|
/**
|
|
5326
5539
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
5328
5541
|
*/
|
|
5329
5542
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5330
5543
|
/**
|
|
5331
5544
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5333
5546
|
*/
|
|
5334
5547
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5335
5548
|
/**
|
|
5336
5549
|
* Disallow named usage of default import and export.
|
|
5337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
5338
5551
|
*/
|
|
5339
5552
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5340
5553
|
/**
|
|
5341
5554
|
* Disallow negated conditions.
|
|
5342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
5343
5556
|
*/
|
|
5344
5557
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5345
5558
|
/**
|
|
5346
5559
|
* Disallow negated expression in equality check.
|
|
5347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5348
5561
|
*/
|
|
5349
5562
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5350
5563
|
/**
|
|
5351
5564
|
* Disallow nested ternary expressions.
|
|
5352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
5353
5566
|
*/
|
|
5354
5567
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5355
5568
|
/**
|
|
5356
5569
|
* Disallow `new Array()`.
|
|
5357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
5358
5571
|
*/
|
|
5359
5572
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5360
5573
|
/**
|
|
5361
5574
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
5363
5576
|
*/
|
|
5364
5577
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5365
5578
|
/**
|
|
5366
5579
|
* Disallow the use of the `null` literal.
|
|
5367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
5368
5581
|
*/
|
|
5369
5582
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5370
5583
|
/**
|
|
5371
5584
|
* Disallow the use of objects as default parameters.
|
|
5372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5373
5586
|
*/
|
|
5374
5587
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5375
5588
|
/**
|
|
5376
5589
|
* Disallow `process.exit()`.
|
|
5377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
5378
5591
|
*/
|
|
5379
5592
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5380
5593
|
/**
|
|
5381
5594
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5383
5596
|
*/
|
|
5384
5597
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5385
5598
|
/**
|
|
5386
5599
|
* Disallow classes that only have static members.
|
|
5387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
5388
5601
|
*/
|
|
5389
5602
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5390
5603
|
/**
|
|
5391
5604
|
* Disallow `then` property.
|
|
5392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
5393
5606
|
*/
|
|
5394
5607
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5395
5608
|
/**
|
|
5396
5609
|
* Disallow assigning `this` to a variable.
|
|
5397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
5398
5611
|
*/
|
|
5399
5612
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5400
5613
|
/**
|
|
5401
5614
|
* Disallow comparing `undefined` using `typeof`.
|
|
5402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
5403
5616
|
*/
|
|
5404
5617
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5405
5618
|
/**
|
|
5406
5619
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5408
5621
|
*/
|
|
5409
5622
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5410
5623
|
/**
|
|
5411
5624
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5413
5626
|
*/
|
|
5414
5627
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5415
5628
|
/**
|
|
5416
5629
|
* Disallow awaiting non-promise values.
|
|
5417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5630
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
5418
5631
|
*/
|
|
5419
5632
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5420
5633
|
/**
|
|
5421
5634
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5423
5636
|
*/
|
|
5424
5637
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5425
5638
|
/**
|
|
5426
5639
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5428
5641
|
*/
|
|
5429
5642
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5430
5643
|
/**
|
|
5431
5644
|
* Disallow unreadable array destructuring.
|
|
5432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5433
5646
|
*/
|
|
5434
5647
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
5435
5648
|
/**
|
|
5436
5649
|
* Disallow unreadable IIFEs.
|
|
5437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
5438
5651
|
*/
|
|
5439
5652
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5440
5653
|
/**
|
|
5441
5654
|
* Disallow unused object properties.
|
|
5442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5655
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
5443
5656
|
*/
|
|
5444
5657
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5658
|
+
/**
|
|
5659
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
5661
|
+
*/
|
|
5662
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5445
5663
|
/**
|
|
5446
5664
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5448
5666
|
*/
|
|
5449
5667
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5450
5668
|
/**
|
|
5451
5669
|
* Disallow useless fallback when spreading in object literals.
|
|
5452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5453
5671
|
*/
|
|
5454
5672
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5455
5673
|
/**
|
|
5456
5674
|
* Disallow useless array length check.
|
|
5457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
5458
5676
|
*/
|
|
5459
5677
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5460
5678
|
/**
|
|
5461
5679
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5463
5681
|
*/
|
|
5464
5682
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5465
5683
|
/**
|
|
5466
5684
|
* Disallow unnecessary spread.
|
|
5467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
5468
5686
|
*/
|
|
5469
5687
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5470
5688
|
/**
|
|
5471
5689
|
* Disallow useless case in switch statements.
|
|
5472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
5473
5691
|
*/
|
|
5474
5692
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5475
5693
|
/**
|
|
5476
5694
|
* Disallow useless `undefined`.
|
|
5477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
5478
5696
|
*/
|
|
5479
5697
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5480
5698
|
/**
|
|
5481
5699
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
5483
5701
|
*/
|
|
5484
5702
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5485
5703
|
/**
|
|
5486
5704
|
* Enforce proper case for numeric literals.
|
|
5487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
5488
5706
|
*/
|
|
5489
5707
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5490
5708
|
/**
|
|
5491
5709
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5710
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
5493
5711
|
*/
|
|
5494
5712
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5495
5713
|
/**
|
|
5496
5714
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5715
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
5498
5716
|
*/
|
|
5499
5717
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5500
5718
|
/**
|
|
5501
5719
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
5503
5721
|
*/
|
|
5504
5722
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5505
5723
|
/**
|
|
5506
5724
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5725
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
5508
5726
|
*/
|
|
5509
5727
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5510
5728
|
/**
|
|
5511
5729
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
5513
5731
|
*/
|
|
5514
5732
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5515
5733
|
/**
|
|
5516
5734
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5735
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
5518
5736
|
*/
|
|
5519
5737
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5520
5738
|
/**
|
|
5521
5739
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
5523
5741
|
*/
|
|
5524
5742
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5525
5743
|
/**
|
|
5526
5744
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5745
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
5528
5746
|
*/
|
|
5529
5747
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5530
5748
|
/**
|
|
5531
5749
|
* Prefer `BigInt` literals over the constructor.
|
|
5532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5750
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
5533
5751
|
*/
|
|
5534
5752
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
5535
5753
|
/**
|
|
5536
5754
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5538
5756
|
*/
|
|
5539
5757
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5540
5758
|
/**
|
|
5541
5759
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
5543
5761
|
*/
|
|
5544
5762
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5545
5763
|
/**
|
|
5546
5764
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5548
5766
|
*/
|
|
5549
5767
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5550
5768
|
/**
|
|
5551
5769
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
5553
5771
|
*/
|
|
5554
5772
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5555
5773
|
/**
|
|
5556
5774
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5775
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
5558
5776
|
*/
|
|
5559
5777
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5560
5778
|
/**
|
|
5561
5779
|
* Prefer default parameters over reassignment.
|
|
5562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5780
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
5563
5781
|
*/
|
|
5564
5782
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5565
5783
|
/**
|
|
5566
5784
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5567
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
5568
5786
|
*/
|
|
5569
5787
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5570
5788
|
/**
|
|
5571
5789
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5790
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5573
5791
|
*/
|
|
5574
5792
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5575
5793
|
/**
|
|
5576
5794
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5795
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5578
5796
|
*/
|
|
5579
5797
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5580
5798
|
/**
|
|
5581
5799
|
* Prefer `.textContent` over `.innerText`.
|
|
5582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5800
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5583
5801
|
*/
|
|
5584
5802
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5585
5803
|
/**
|
|
5586
5804
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5805
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
5588
5806
|
*/
|
|
5589
5807
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5590
5808
|
/**
|
|
5591
5809
|
* Prefer `export…from` when re-exporting.
|
|
5592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5810
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
5593
5811
|
*/
|
|
5594
5812
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5595
5813
|
/**
|
|
5596
5814
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5815
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
5598
5816
|
*/
|
|
5599
5817
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5600
5818
|
/**
|
|
5601
5819
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5820
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5603
5821
|
*/
|
|
5604
5822
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5605
5823
|
/**
|
|
5606
5824
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5825
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
5608
5826
|
*/
|
|
5609
5827
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5610
5828
|
/**
|
|
5611
5829
|
* Prefer reading a JSON file as a buffer.
|
|
5612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5830
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5613
5831
|
*/
|
|
5614
5832
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5615
5833
|
/**
|
|
5616
5834
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5835
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5618
5836
|
*/
|
|
5619
5837
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
5620
5838
|
/**
|
|
5621
5839
|
* Prefer using a logical operator over a ternary.
|
|
5622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5840
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5623
5841
|
*/
|
|
5624
5842
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5625
5843
|
/**
|
|
5626
5844
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5845
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
5628
5846
|
*/
|
|
5629
5847
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5630
5848
|
/**
|
|
5631
5849
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5850
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
5633
5851
|
*/
|
|
5634
5852
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5635
5853
|
/**
|
|
5636
5854
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5855
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5638
5856
|
*/
|
|
5639
5857
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5640
5858
|
/**
|
|
5641
5859
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5860
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5643
5861
|
*/
|
|
5644
5862
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5645
5863
|
/**
|
|
5646
5864
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5865
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
5648
5866
|
*/
|
|
5649
5867
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5650
5868
|
/**
|
|
5651
5869
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5870
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5653
5871
|
*/
|
|
5654
5872
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5655
5873
|
/**
|
|
5656
5874
|
* Prefer negative index over `.length - index` when possible.
|
|
5657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
5658
5876
|
*/
|
|
5659
5877
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5660
5878
|
/**
|
|
5661
5879
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5880
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
5663
5881
|
*/
|
|
5664
5882
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5665
5883
|
/**
|
|
5666
5884
|
* Prefer `Number` static properties over global ones.
|
|
5667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5885
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
5668
5886
|
*/
|
|
5669
5887
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5670
5888
|
/**
|
|
5671
5889
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5890
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
5673
5891
|
*/
|
|
5674
5892
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5675
5893
|
/**
|
|
5676
5894
|
* Prefer omitting the `catch` binding parameter.
|
|
5677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5678
5896
|
*/
|
|
5679
5897
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5680
5898
|
/**
|
|
5681
5899
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5900
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
5683
5901
|
*/
|
|
5684
5902
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5685
5903
|
/**
|
|
5686
5904
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
5688
5906
|
*/
|
|
5689
5907
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5690
5908
|
/**
|
|
5691
5909
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5910
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
5693
5911
|
*/
|
|
5694
5912
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5695
5913
|
/**
|
|
5696
5914
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
5698
5916
|
*/
|
|
5699
5917
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5918
|
+
/**
|
|
5919
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5920
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
5921
|
+
*/
|
|
5922
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5700
5923
|
/**
|
|
5701
5924
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5925
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
5703
5926
|
*/
|
|
5704
5927
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5705
5928
|
/**
|
|
5706
5929
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5930
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
5708
5931
|
*/
|
|
5709
5932
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5710
5933
|
/**
|
|
5711
5934
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5935
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
5713
5936
|
*/
|
|
5714
5937
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5715
5938
|
/**
|
|
5716
5939
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
5718
5941
|
*/
|
|
5719
5942
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5720
5943
|
/**
|
|
5721
5944
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5945
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
5723
5946
|
*/
|
|
5724
5947
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5725
5948
|
/**
|
|
5726
5949
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
5728
5951
|
*/
|
|
5729
5952
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5730
5953
|
/**
|
|
5731
5954
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
5733
5956
|
*/
|
|
5734
5957
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5735
5958
|
/**
|
|
5736
5959
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5738
5961
|
*/
|
|
5739
5962
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5740
5963
|
/**
|
|
5741
5964
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5743
5966
|
*/
|
|
5744
5967
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5745
5968
|
/**
|
|
5746
5969
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
5748
5971
|
*/
|
|
5749
5972
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5750
5973
|
/**
|
|
5751
5974
|
* Prefer `switch` over multiple `else-if`.
|
|
5752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
5753
5976
|
*/
|
|
5754
5977
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5755
5978
|
/**
|
|
5756
5979
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5980
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
5758
5981
|
*/
|
|
5759
5982
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5760
5983
|
/**
|
|
5761
5984
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
5763
5986
|
*/
|
|
5764
5987
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5765
5988
|
/**
|
|
5766
5989
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
5768
5991
|
*/
|
|
5769
5992
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5770
5993
|
/**
|
|
5771
5994
|
* Prevent abbreviations.
|
|
5772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
5773
5996
|
*/
|
|
5774
5997
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5775
5998
|
/**
|
|
5776
5999
|
* Enforce consistent relative URL style.
|
|
5777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
5778
6001
|
*/
|
|
5779
6002
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5780
6003
|
/**
|
|
5781
6004
|
* Enforce using the separator argument with `Array#join()`.
|
|
5782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
5783
6006
|
*/
|
|
5784
6007
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5785
6008
|
/**
|
|
5786
6009
|
* Require non-empty module attributes for imports and exports
|
|
5787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
5788
6011
|
*/
|
|
5789
6012
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
5790
6013
|
/**
|
|
5791
6014
|
* Require non-empty specifier list in import and export statements.
|
|
5792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
5793
6016
|
*/
|
|
5794
6017
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5795
6018
|
/**
|
|
5796
6019
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5798
6021
|
*/
|
|
5799
6022
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5800
6023
|
/**
|
|
5801
6024
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
5803
6026
|
*/
|
|
5804
6027
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5805
6028
|
/**
|
|
5806
6029
|
* Enforce better string content.
|
|
5807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
5808
6031
|
*/
|
|
5809
6032
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5810
6033
|
/**
|
|
5811
6034
|
* Enforce consistent brace style for `case` clauses.
|
|
5812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
5813
6036
|
*/
|
|
5814
6037
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
5815
6038
|
/**
|
|
5816
6039
|
* Fix whitespace-insensitive template indentation.
|
|
5817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
5818
6041
|
*/
|
|
5819
6042
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5820
6043
|
/**
|
|
5821
6044
|
* Enforce consistent case for text encoding identifiers.
|
|
5822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6045
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5823
6046
|
*/
|
|
5824
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
6047
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
5825
6048
|
/**
|
|
5826
6049
|
* Require `new` when creating an error.
|
|
5827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
5828
6051
|
*/
|
|
5829
6052
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5830
6053
|
/**
|
|
@@ -6166,7 +6389,7 @@ interface RuleOptions {
|
|
|
6166
6389
|
* disallow asynchronous actions in computed properties
|
|
6167
6390
|
* @see https://eslint.vuejs.org/rules/no-async-in-computed-properties.html
|
|
6168
6391
|
*/
|
|
6169
|
-
'vue/no-async-in-computed-properties'?: Linter.RuleEntry<
|
|
6392
|
+
'vue/no-async-in-computed-properties'?: Linter.RuleEntry<VueNoAsyncInComputedProperties>;
|
|
6170
6393
|
/**
|
|
6171
6394
|
* disallow the use of bare strings in `<template>`
|
|
6172
6395
|
* @see https://eslint.vuejs.org/rules/no-bare-strings-in-template.html
|
|
@@ -6667,7 +6890,7 @@ interface RuleOptions {
|
|
|
6667
6890
|
* disallow use of v-html to prevent XSS attack
|
|
6668
6891
|
* @see https://eslint.vuejs.org/rules/no-v-html.html
|
|
6669
6892
|
*/
|
|
6670
|
-
'vue/no-v-html'?: Linter.RuleEntry<
|
|
6893
|
+
'vue/no-v-html'?: Linter.RuleEntry<VueNoVHtml>;
|
|
6671
6894
|
/**
|
|
6672
6895
|
* disallow adding an argument to `v-model` used in custom component
|
|
6673
6896
|
* @see https://eslint.vuejs.org/rules/no-v-model-argument.html
|
|
@@ -7275,7 +7498,6 @@ interface RuleOptions {
|
|
|
7275
7498
|
*/
|
|
7276
7499
|
'yoda'?: Linter.RuleEntry<Yoda>;
|
|
7277
7500
|
}
|
|
7278
|
-
|
|
7279
7501
|
/* ======= Declarations ======= */
|
|
7280
7502
|
// ----- accessor-pairs -----
|
|
7281
7503
|
type AccessorPairs = [] | [{
|
|
@@ -7698,6 +7920,7 @@ type JsdocCheckPropertyNames = [] | [{
|
|
|
7698
7920
|
type JsdocCheckTagNames = [] | [{
|
|
7699
7921
|
definedTags?: string[];
|
|
7700
7922
|
enableFixer?: boolean;
|
|
7923
|
+
inlineTags?: string[];
|
|
7701
7924
|
jsxTags?: boolean;
|
|
7702
7925
|
typed?: boolean;
|
|
7703
7926
|
}];
|
|
@@ -7740,6 +7963,12 @@ type JsdocConvertToJsdocComments = [] | [{
|
|
|
7740
7963
|
type JsdocEmptyTags = [] | [{
|
|
7741
7964
|
tags?: string[];
|
|
7742
7965
|
}];
|
|
7966
|
+
// ----- jsdoc/escape-inline-tags -----
|
|
7967
|
+
type JsdocEscapeInlineTags = [] | [{
|
|
7968
|
+
allowedInlineTags?: string[];
|
|
7969
|
+
enableFixer?: boolean;
|
|
7970
|
+
fixType?: ("backticks" | "backslash");
|
|
7971
|
+
}];
|
|
7743
7972
|
// ----- jsdoc/implements-on-classes -----
|
|
7744
7973
|
type JsdocImplementsOnClasses = [] | [{
|
|
7745
7974
|
contexts?: (string | {
|
|
@@ -7856,10 +8085,17 @@ type JsdocNoTypes = [] | [{
|
|
|
7856
8085
|
}];
|
|
7857
8086
|
// ----- jsdoc/no-undefined-types -----
|
|
7858
8087
|
type JsdocNoUndefinedTypes = [] | [{
|
|
8088
|
+
checkUsedTypedefs?: boolean;
|
|
7859
8089
|
definedTypes?: string[];
|
|
7860
8090
|
disableReporting?: boolean;
|
|
7861
8091
|
markVariablesAsUsed?: boolean;
|
|
7862
8092
|
}];
|
|
8093
|
+
// ----- jsdoc/prefer-import-tag -----
|
|
8094
|
+
type JsdocPreferImportTag = [] | [{
|
|
8095
|
+
enableFixer?: boolean;
|
|
8096
|
+
exemptTypedefs?: boolean;
|
|
8097
|
+
outputType?: ("named-import" | "namespaced-import");
|
|
8098
|
+
}];
|
|
7863
8099
|
// ----- jsdoc/require-asterisk-prefix -----
|
|
7864
8100
|
type JsdocRequireAsteriskPrefix = [] | [("always" | "never" | "any")] | [("always" | "never" | "any"), {
|
|
7865
8101
|
tags?: {
|
|
@@ -7966,6 +8202,7 @@ type JsdocRequireParam = [] | [{
|
|
|
7966
8202
|
enableRootFixer?: boolean;
|
|
7967
8203
|
exemptedBy?: string[];
|
|
7968
8204
|
ignoreWhenAllParamsMissing?: boolean;
|
|
8205
|
+
interfaceExemptsParamsCheck?: boolean;
|
|
7969
8206
|
unnamedRootBase?: string[];
|
|
7970
8207
|
useDefaultObjectProperties?: boolean;
|
|
7971
8208
|
}];
|
|
@@ -8018,6 +8255,7 @@ type JsdocRequireReturns = [] | [{
|
|
|
8018
8255
|
type JsdocRequireReturnsCheck = [] | [{
|
|
8019
8256
|
exemptAsync?: boolean;
|
|
8020
8257
|
exemptGenerators?: boolean;
|
|
8258
|
+
noNativeTypes?: boolean;
|
|
8021
8259
|
reportMissingReturnForUndefinedTypes?: boolean;
|
|
8022
8260
|
}];
|
|
8023
8261
|
// ----- jsdoc/require-returns-description -----
|
|
@@ -8034,6 +8272,14 @@ type JsdocRequireReturnsType = [] | [{
|
|
|
8034
8272
|
context?: string;
|
|
8035
8273
|
})[];
|
|
8036
8274
|
}];
|
|
8275
|
+
// ----- jsdoc/require-tags -----
|
|
8276
|
+
type JsdocRequireTags = [] | [{
|
|
8277
|
+
tags?: (string | {
|
|
8278
|
+
context?: string;
|
|
8279
|
+
tag?: string;
|
|
8280
|
+
[k: string]: unknown | undefined;
|
|
8281
|
+
})[];
|
|
8282
|
+
}];
|
|
8037
8283
|
// ----- jsdoc/require-template -----
|
|
8038
8284
|
type JsdocRequireTemplate = [] | [{
|
|
8039
8285
|
exemptedBy?: string[];
|
|
@@ -8067,7 +8313,6 @@ type JsdocRequireYieldsCheck = [] | [{
|
|
|
8067
8313
|
comment?: string;
|
|
8068
8314
|
context?: string;
|
|
8069
8315
|
})[];
|
|
8070
|
-
exemptedBy?: string[];
|
|
8071
8316
|
next?: boolean;
|
|
8072
8317
|
}];
|
|
8073
8318
|
// ----- jsdoc/sort-tags -----
|
|
@@ -8085,6 +8330,7 @@ type JsdocTagLines = [] | [("always" | "any" | "never")] | [("always" | "any" |
|
|
|
8085
8330
|
applyToEndTag?: boolean;
|
|
8086
8331
|
count?: number;
|
|
8087
8332
|
endLines?: (number | null);
|
|
8333
|
+
maxBlockLines?: (number | null);
|
|
8088
8334
|
startLines?: (number | null);
|
|
8089
8335
|
tags?: {
|
|
8090
8336
|
[k: string]: {
|
|
@@ -8098,16 +8344,44 @@ type JsdocTextEscaping = [] | [{
|
|
|
8098
8344
|
escapeHTML?: boolean;
|
|
8099
8345
|
escapeMarkdown?: boolean;
|
|
8100
8346
|
}];
|
|
8347
|
+
// ----- jsdoc/ts-method-signature-style -----
|
|
8348
|
+
type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
|
|
8349
|
+
enableFixer?: boolean;
|
|
8350
|
+
}];
|
|
8351
|
+
// ----- jsdoc/ts-no-unnecessary-template-expression -----
|
|
8352
|
+
type JsdocTsNoUnnecessaryTemplateExpression = [] | [{
|
|
8353
|
+
enableFixer?: boolean;
|
|
8354
|
+
}];
|
|
8355
|
+
// ----- jsdoc/ts-prefer-function-type -----
|
|
8356
|
+
type JsdocTsPreferFunctionType = [] | [{
|
|
8357
|
+
enableFixer?: boolean;
|
|
8358
|
+
}];
|
|
8101
8359
|
// ----- jsdoc/type-formatting -----
|
|
8102
8360
|
type JsdocTypeFormatting = [] | [{
|
|
8103
8361
|
arrayBrackets?: ("angle" | "square");
|
|
8362
|
+
arrowFunctionPostReturnMarkerSpacing?: string;
|
|
8363
|
+
arrowFunctionPreReturnMarkerSpacing?: string;
|
|
8104
8364
|
enableFixer?: boolean;
|
|
8365
|
+
functionOrClassParameterSpacing?: string;
|
|
8366
|
+
functionOrClassPostGenericSpacing?: string;
|
|
8367
|
+
functionOrClassPostReturnMarkerSpacing?: string;
|
|
8368
|
+
functionOrClassPreReturnMarkerSpacing?: string;
|
|
8369
|
+
functionOrClassTypeParameterSpacing?: string;
|
|
8370
|
+
genericAndTupleElementSpacing?: string;
|
|
8105
8371
|
genericDot?: boolean;
|
|
8372
|
+
keyValuePostColonSpacing?: string;
|
|
8373
|
+
keyValuePostKeySpacing?: string;
|
|
8374
|
+
keyValuePostOptionalSpacing?: string;
|
|
8375
|
+
keyValuePostVariadicSpacing?: string;
|
|
8376
|
+
methodQuotes?: ("double" | "single");
|
|
8106
8377
|
objectFieldIndent?: string;
|
|
8107
8378
|
objectFieldQuote?: ("double" | "single" | null);
|
|
8108
8379
|
objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak");
|
|
8380
|
+
objectFieldSeparatorOptionalLinebreak?: boolean;
|
|
8109
8381
|
objectFieldSeparatorTrailingPunctuation?: boolean;
|
|
8110
|
-
|
|
8382
|
+
parameterDefaultValueSpacing?: string;
|
|
8383
|
+
postMethodNameSpacing?: string;
|
|
8384
|
+
postNewSpacing?: string;
|
|
8111
8385
|
separatorForSingleObjectField?: boolean;
|
|
8112
8386
|
stringQuotes?: ("double" | "single");
|
|
8113
8387
|
typeBracketSpacing?: string;
|
|
@@ -8801,6 +9075,10 @@ type MarkdownNoHtml = [] | [{
|
|
|
8801
9075
|
type MarkdownNoMissingAtxHeadingSpace = [] | [{
|
|
8802
9076
|
checkClosedHeadings?: boolean;
|
|
8803
9077
|
}];
|
|
9078
|
+
// ----- markdown/no-missing-label-refs -----
|
|
9079
|
+
type MarkdownNoMissingLabelRefs = [] | [{
|
|
9080
|
+
allowLabels?: string[];
|
|
9081
|
+
}];
|
|
8804
9082
|
// ----- markdown/no-missing-link-fragments -----
|
|
8805
9083
|
type MarkdownNoMissingLinkFragments = [] | [{
|
|
8806
9084
|
ignoreCase?: boolean;
|
|
@@ -9185,12 +9463,14 @@ type NoRestrictedImports = ((string | {
|
|
|
9185
9463
|
message?: string;
|
|
9186
9464
|
importNames?: string[];
|
|
9187
9465
|
allowImportNames?: string[];
|
|
9466
|
+
allowTypeImports?: boolean;
|
|
9188
9467
|
})[] | [] | [{
|
|
9189
9468
|
paths?: (string | {
|
|
9190
9469
|
name: string;
|
|
9191
9470
|
message?: string;
|
|
9192
9471
|
importNames?: string[];
|
|
9193
9472
|
allowImportNames?: string[];
|
|
9473
|
+
allowTypeImports?: boolean;
|
|
9194
9474
|
})[];
|
|
9195
9475
|
patterns?: (string[] | ({
|
|
9196
9476
|
[k: string]: unknown | undefined;
|
|
@@ -11494,10 +11774,124 @@ type ReactDomNoUnknownProperty = [] | [{
|
|
|
11494
11774
|
ignore?: string[];
|
|
11495
11775
|
requireDataLowercase?: boolean;
|
|
11496
11776
|
}];
|
|
11777
|
+
// ----- react-hooks/automatic-effect-dependencies -----
|
|
11778
|
+
type ReactHooksAutomaticEffectDependencies = [] | [{
|
|
11779
|
+
[k: string]: unknown | undefined;
|
|
11780
|
+
}];
|
|
11781
|
+
// ----- react-hooks/capitalized-calls -----
|
|
11782
|
+
type ReactHooksCapitalizedCalls = [] | [{
|
|
11783
|
+
[k: string]: unknown | undefined;
|
|
11784
|
+
}];
|
|
11785
|
+
// ----- react-hooks/component-hook-factories -----
|
|
11786
|
+
type ReactHooksComponentHookFactories = [] | [{
|
|
11787
|
+
[k: string]: unknown | undefined;
|
|
11788
|
+
}];
|
|
11789
|
+
// ----- react-hooks/config -----
|
|
11790
|
+
type ReactHooksConfig = [] | [{
|
|
11791
|
+
[k: string]: unknown | undefined;
|
|
11792
|
+
}];
|
|
11793
|
+
// ----- react-hooks/error-boundaries -----
|
|
11794
|
+
type ReactHooksErrorBoundaries = [] | [{
|
|
11795
|
+
[k: string]: unknown | undefined;
|
|
11796
|
+
}];
|
|
11497
11797
|
// ----- react-hooks/exhaustive-deps -----
|
|
11498
11798
|
type ReactHooksExhaustiveDeps = [] | [{
|
|
11499
11799
|
additionalHooks?: string;
|
|
11500
11800
|
enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
|
|
11801
|
+
experimental_autoDependenciesHooks?: string[];
|
|
11802
|
+
requireExplicitEffectDeps?: boolean;
|
|
11803
|
+
}];
|
|
11804
|
+
// ----- react-hooks/fbt -----
|
|
11805
|
+
type ReactHooksFbt = [] | [{
|
|
11806
|
+
[k: string]: unknown | undefined;
|
|
11807
|
+
}];
|
|
11808
|
+
// ----- react-hooks/fire -----
|
|
11809
|
+
type ReactHooksFire = [] | [{
|
|
11810
|
+
[k: string]: unknown | undefined;
|
|
11811
|
+
}];
|
|
11812
|
+
// ----- react-hooks/gating -----
|
|
11813
|
+
type ReactHooksGating = [] | [{
|
|
11814
|
+
[k: string]: unknown | undefined;
|
|
11815
|
+
}];
|
|
11816
|
+
// ----- react-hooks/globals -----
|
|
11817
|
+
type ReactHooksGlobals = [] | [{
|
|
11818
|
+
[k: string]: unknown | undefined;
|
|
11819
|
+
}];
|
|
11820
|
+
// ----- react-hooks/hooks -----
|
|
11821
|
+
type ReactHooksHooks = [] | [{
|
|
11822
|
+
[k: string]: unknown | undefined;
|
|
11823
|
+
}];
|
|
11824
|
+
// ----- react-hooks/immutability -----
|
|
11825
|
+
type ReactHooksImmutability = [] | [{
|
|
11826
|
+
[k: string]: unknown | undefined;
|
|
11827
|
+
}];
|
|
11828
|
+
// ----- react-hooks/incompatible-library -----
|
|
11829
|
+
type ReactHooksIncompatibleLibrary = [] | [{
|
|
11830
|
+
[k: string]: unknown | undefined;
|
|
11831
|
+
}];
|
|
11832
|
+
// ----- react-hooks/invariant -----
|
|
11833
|
+
type ReactHooksInvariant = [] | [{
|
|
11834
|
+
[k: string]: unknown | undefined;
|
|
11835
|
+
}];
|
|
11836
|
+
// ----- react-hooks/memoized-effect-dependencies -----
|
|
11837
|
+
type ReactHooksMemoizedEffectDependencies = [] | [{
|
|
11838
|
+
[k: string]: unknown | undefined;
|
|
11839
|
+
}];
|
|
11840
|
+
// ----- react-hooks/no-deriving-state-in-effects -----
|
|
11841
|
+
type ReactHooksNoDerivingStateInEffects = [] | [{
|
|
11842
|
+
[k: string]: unknown | undefined;
|
|
11843
|
+
}];
|
|
11844
|
+
// ----- react-hooks/preserve-manual-memoization -----
|
|
11845
|
+
type ReactHooksPreserveManualMemoization = [] | [{
|
|
11846
|
+
[k: string]: unknown | undefined;
|
|
11847
|
+
}];
|
|
11848
|
+
// ----- react-hooks/purity -----
|
|
11849
|
+
type ReactHooksPurity = [] | [{
|
|
11850
|
+
[k: string]: unknown | undefined;
|
|
11851
|
+
}];
|
|
11852
|
+
// ----- react-hooks/refs -----
|
|
11853
|
+
type ReactHooksRefs = [] | [{
|
|
11854
|
+
[k: string]: unknown | undefined;
|
|
11855
|
+
}];
|
|
11856
|
+
// ----- react-hooks/rule-suppression -----
|
|
11857
|
+
type ReactHooksRuleSuppression = [] | [{
|
|
11858
|
+
[k: string]: unknown | undefined;
|
|
11859
|
+
}];
|
|
11860
|
+
// ----- react-hooks/rules-of-hooks -----
|
|
11861
|
+
type ReactHooksRulesOfHooks = [] | [{
|
|
11862
|
+
additionalHooks?: string;
|
|
11863
|
+
}];
|
|
11864
|
+
// ----- react-hooks/set-state-in-effect -----
|
|
11865
|
+
type ReactHooksSetStateInEffect = [] | [{
|
|
11866
|
+
[k: string]: unknown | undefined;
|
|
11867
|
+
}];
|
|
11868
|
+
// ----- react-hooks/set-state-in-render -----
|
|
11869
|
+
type ReactHooksSetStateInRender = [] | [{
|
|
11870
|
+
[k: string]: unknown | undefined;
|
|
11871
|
+
}];
|
|
11872
|
+
// ----- react-hooks/static-components -----
|
|
11873
|
+
type ReactHooksStaticComponents = [] | [{
|
|
11874
|
+
[k: string]: unknown | undefined;
|
|
11875
|
+
}];
|
|
11876
|
+
// ----- react-hooks/syntax -----
|
|
11877
|
+
type ReactHooksSyntax = [] | [{
|
|
11878
|
+
[k: string]: unknown | undefined;
|
|
11879
|
+
}];
|
|
11880
|
+
// ----- react-hooks/todo -----
|
|
11881
|
+
type ReactHooksTodo = [] | [{
|
|
11882
|
+
[k: string]: unknown | undefined;
|
|
11883
|
+
}];
|
|
11884
|
+
// ----- react-hooks/unsupported-syntax -----
|
|
11885
|
+
type ReactHooksUnsupportedSyntax = [] | [{
|
|
11886
|
+
[k: string]: unknown | undefined;
|
|
11887
|
+
}];
|
|
11888
|
+
// ----- react-hooks/use-memo -----
|
|
11889
|
+
type ReactHooksUseMemo = [] | [{
|
|
11890
|
+
[k: string]: unknown | undefined;
|
|
11891
|
+
}];
|
|
11892
|
+
// ----- react-hooks/void-use-memo -----
|
|
11893
|
+
type ReactHooksVoidUseMemo = [] | [{
|
|
11894
|
+
[k: string]: unknown | undefined;
|
|
11501
11895
|
}];
|
|
11502
11896
|
// ----- react-naming-convention/component-name -----
|
|
11503
11897
|
type ReactNamingConventionComponentName = [] | [(("PascalCase" | "CONSTANT_CASE") | {
|
|
@@ -11918,6 +12312,50 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
11918
12312
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
11919
12313
|
// ----- style/eol-last -----
|
|
11920
12314
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
12315
|
+
// ----- style/exp-list-style -----
|
|
12316
|
+
type StyleExpListStyle = [] | [{
|
|
12317
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
12318
|
+
multiLine?: _StyleExpListStyle_MultiLineConfig;
|
|
12319
|
+
overrides?: {
|
|
12320
|
+
"[]"?: _StyleExpListStyle_BaseConfig;
|
|
12321
|
+
"{}"?: _StyleExpListStyle_BaseConfig;
|
|
12322
|
+
"<>"?: _StyleExpListStyle_BaseConfig;
|
|
12323
|
+
"()"?: _StyleExpListStyle_BaseConfig;
|
|
12324
|
+
ArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
12325
|
+
ArrayPattern?: _StyleExpListStyle_BaseConfig;
|
|
12326
|
+
ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
12327
|
+
CallExpression?: _StyleExpListStyle_BaseConfig;
|
|
12328
|
+
ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12329
|
+
FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12330
|
+
FunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
12331
|
+
ImportDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12332
|
+
ImportAttributes?: _StyleExpListStyle_BaseConfig;
|
|
12333
|
+
NewExpression?: _StyleExpListStyle_BaseConfig;
|
|
12334
|
+
ObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
12335
|
+
ObjectPattern?: _StyleExpListStyle_BaseConfig;
|
|
12336
|
+
TSDeclareFunction?: _StyleExpListStyle_BaseConfig;
|
|
12337
|
+
TSFunctionType?: _StyleExpListStyle_BaseConfig;
|
|
12338
|
+
TSInterfaceBody?: _StyleExpListStyle_BaseConfig;
|
|
12339
|
+
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
12340
|
+
TSTupleType?: _StyleExpListStyle_BaseConfig;
|
|
12341
|
+
TSTypeLiteral?: _StyleExpListStyle_BaseConfig;
|
|
12342
|
+
TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
12343
|
+
TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig;
|
|
12344
|
+
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
12345
|
+
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
12346
|
+
};
|
|
12347
|
+
}];
|
|
12348
|
+
interface _StyleExpListStyle_SingleLineConfig {
|
|
12349
|
+
spacing?: ("always" | "never");
|
|
12350
|
+
maxItems?: number;
|
|
12351
|
+
}
|
|
12352
|
+
interface _StyleExpListStyle_MultiLineConfig {
|
|
12353
|
+
minItems?: number;
|
|
12354
|
+
}
|
|
12355
|
+
interface _StyleExpListStyle_BaseConfig {
|
|
12356
|
+
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
12357
|
+
multiline?: _StyleExpListStyle_MultiLineConfig;
|
|
12358
|
+
}
|
|
11921
12359
|
// ----- style/function-call-argument-newline -----
|
|
11922
12360
|
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
11923
12361
|
// ----- style/function-call-spacing -----
|
|
@@ -11948,6 +12386,10 @@ type StyleGeneratorStarSpacing = [] | [(("before" | "after" | "both" | "neither"
|
|
|
11948
12386
|
before?: boolean;
|
|
11949
12387
|
after?: boolean;
|
|
11950
12388
|
});
|
|
12389
|
+
shorthand?: (("before" | "after" | "both" | "neither") | {
|
|
12390
|
+
before?: boolean;
|
|
12391
|
+
after?: boolean;
|
|
12392
|
+
});
|
|
11951
12393
|
})];
|
|
11952
12394
|
// ----- style/implicit-arrow-linebreak -----
|
|
11953
12395
|
type StyleImplicitArrowLinebreak = [] | [("beside" | "below")];
|
|
@@ -11983,7 +12425,11 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
11983
12425
|
ObjectExpression?: (number | ("first" | "off"));
|
|
11984
12426
|
ImportDeclaration?: (number | ("first" | "off"));
|
|
11985
12427
|
flatTernaryExpressions?: boolean;
|
|
11986
|
-
offsetTernaryExpressions?: boolean
|
|
12428
|
+
offsetTernaryExpressions?: (boolean | {
|
|
12429
|
+
CallExpression?: boolean;
|
|
12430
|
+
AwaitExpression?: boolean;
|
|
12431
|
+
NewExpression?: boolean;
|
|
12432
|
+
});
|
|
11987
12433
|
offsetTernaryExpressionsOffsetCallExpressions?: boolean;
|
|
11988
12434
|
ignoredNodes?: string[];
|
|
11989
12435
|
ignoreComments?: boolean;
|
|
@@ -12193,22 +12639,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12193
12639
|
before?: boolean;
|
|
12194
12640
|
after?: boolean;
|
|
12195
12641
|
};
|
|
12196
|
-
arguments?: {
|
|
12197
|
-
before?: boolean;
|
|
12198
|
-
after?: boolean;
|
|
12199
|
-
};
|
|
12200
|
-
as?: {
|
|
12201
|
-
before?: boolean;
|
|
12202
|
-
after?: boolean;
|
|
12203
|
-
};
|
|
12204
|
-
async?: {
|
|
12205
|
-
before?: boolean;
|
|
12206
|
-
after?: boolean;
|
|
12207
|
-
};
|
|
12208
|
-
await?: {
|
|
12209
|
-
before?: boolean;
|
|
12210
|
-
after?: boolean;
|
|
12211
|
-
};
|
|
12212
12642
|
boolean?: {
|
|
12213
12643
|
before?: boolean;
|
|
12214
12644
|
after?: boolean;
|
|
@@ -12273,10 +12703,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12273
12703
|
before?: boolean;
|
|
12274
12704
|
after?: boolean;
|
|
12275
12705
|
};
|
|
12276
|
-
eval?: {
|
|
12277
|
-
before?: boolean;
|
|
12278
|
-
after?: boolean;
|
|
12279
|
-
};
|
|
12280
12706
|
export?: {
|
|
12281
12707
|
before?: boolean;
|
|
12282
12708
|
after?: boolean;
|
|
@@ -12305,18 +12731,10 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12305
12731
|
before?: boolean;
|
|
12306
12732
|
after?: boolean;
|
|
12307
12733
|
};
|
|
12308
|
-
from?: {
|
|
12309
|
-
before?: boolean;
|
|
12310
|
-
after?: boolean;
|
|
12311
|
-
};
|
|
12312
12734
|
function?: {
|
|
12313
12735
|
before?: boolean;
|
|
12314
12736
|
after?: boolean;
|
|
12315
12737
|
};
|
|
12316
|
-
get?: {
|
|
12317
|
-
before?: boolean;
|
|
12318
|
-
after?: boolean;
|
|
12319
|
-
};
|
|
12320
12738
|
goto?: {
|
|
12321
12739
|
before?: boolean;
|
|
12322
12740
|
after?: boolean;
|
|
@@ -12349,10 +12767,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12349
12767
|
before?: boolean;
|
|
12350
12768
|
after?: boolean;
|
|
12351
12769
|
};
|
|
12352
|
-
let?: {
|
|
12353
|
-
before?: boolean;
|
|
12354
|
-
after?: boolean;
|
|
12355
|
-
};
|
|
12356
12770
|
long?: {
|
|
12357
12771
|
before?: boolean;
|
|
12358
12772
|
after?: boolean;
|
|
@@ -12369,10 +12783,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12369
12783
|
before?: boolean;
|
|
12370
12784
|
after?: boolean;
|
|
12371
12785
|
};
|
|
12372
|
-
of?: {
|
|
12373
|
-
before?: boolean;
|
|
12374
|
-
after?: boolean;
|
|
12375
|
-
};
|
|
12376
12786
|
package?: {
|
|
12377
12787
|
before?: boolean;
|
|
12378
12788
|
after?: boolean;
|
|
@@ -12393,10 +12803,6 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12393
12803
|
before?: boolean;
|
|
12394
12804
|
after?: boolean;
|
|
12395
12805
|
};
|
|
12396
|
-
set?: {
|
|
12397
|
-
before?: boolean;
|
|
12398
|
-
after?: boolean;
|
|
12399
|
-
};
|
|
12400
12806
|
short?: {
|
|
12401
12807
|
before?: boolean;
|
|
12402
12808
|
after?: boolean;
|
|
@@ -12441,18 +12847,10 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12441
12847
|
before?: boolean;
|
|
12442
12848
|
after?: boolean;
|
|
12443
12849
|
};
|
|
12444
|
-
type?: {
|
|
12445
|
-
before?: boolean;
|
|
12446
|
-
after?: boolean;
|
|
12447
|
-
};
|
|
12448
12850
|
typeof?: {
|
|
12449
12851
|
before?: boolean;
|
|
12450
12852
|
after?: boolean;
|
|
12451
12853
|
};
|
|
12452
|
-
using?: {
|
|
12453
|
-
before?: boolean;
|
|
12454
|
-
after?: boolean;
|
|
12455
|
-
};
|
|
12456
12854
|
var?: {
|
|
12457
12855
|
before?: boolean;
|
|
12458
12856
|
after?: boolean;
|
|
@@ -12473,6 +12871,54 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12473
12871
|
before?: boolean;
|
|
12474
12872
|
after?: boolean;
|
|
12475
12873
|
};
|
|
12874
|
+
arguments?: {
|
|
12875
|
+
before?: boolean;
|
|
12876
|
+
after?: boolean;
|
|
12877
|
+
};
|
|
12878
|
+
as?: {
|
|
12879
|
+
before?: boolean;
|
|
12880
|
+
after?: boolean;
|
|
12881
|
+
};
|
|
12882
|
+
async?: {
|
|
12883
|
+
before?: boolean;
|
|
12884
|
+
after?: boolean;
|
|
12885
|
+
};
|
|
12886
|
+
await?: {
|
|
12887
|
+
before?: boolean;
|
|
12888
|
+
after?: boolean;
|
|
12889
|
+
};
|
|
12890
|
+
eval?: {
|
|
12891
|
+
before?: boolean;
|
|
12892
|
+
after?: boolean;
|
|
12893
|
+
};
|
|
12894
|
+
from?: {
|
|
12895
|
+
before?: boolean;
|
|
12896
|
+
after?: boolean;
|
|
12897
|
+
};
|
|
12898
|
+
get?: {
|
|
12899
|
+
before?: boolean;
|
|
12900
|
+
after?: boolean;
|
|
12901
|
+
};
|
|
12902
|
+
let?: {
|
|
12903
|
+
before?: boolean;
|
|
12904
|
+
after?: boolean;
|
|
12905
|
+
};
|
|
12906
|
+
of?: {
|
|
12907
|
+
before?: boolean;
|
|
12908
|
+
after?: boolean;
|
|
12909
|
+
};
|
|
12910
|
+
set?: {
|
|
12911
|
+
before?: boolean;
|
|
12912
|
+
after?: boolean;
|
|
12913
|
+
};
|
|
12914
|
+
type?: {
|
|
12915
|
+
before?: boolean;
|
|
12916
|
+
after?: boolean;
|
|
12917
|
+
};
|
|
12918
|
+
using?: {
|
|
12919
|
+
before?: boolean;
|
|
12920
|
+
after?: boolean;
|
|
12921
|
+
};
|
|
12476
12922
|
yield?: {
|
|
12477
12923
|
before?: boolean;
|
|
12478
12924
|
after?: boolean;
|
|
@@ -12772,6 +13218,19 @@ type StyleObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
12772
13218
|
type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
12773
13219
|
arraysInObjects?: boolean;
|
|
12774
13220
|
objectsInObjects?: boolean;
|
|
13221
|
+
overrides?: {
|
|
13222
|
+
ObjectPattern?: ("always" | "never");
|
|
13223
|
+
ObjectExpression?: ("always" | "never");
|
|
13224
|
+
ImportDeclaration?: ("always" | "never");
|
|
13225
|
+
ImportAttributes?: ("always" | "never");
|
|
13226
|
+
ExportNamedDeclaration?: ("always" | "never");
|
|
13227
|
+
ExportAllDeclaration?: ("always" | "never");
|
|
13228
|
+
TSMappedType?: ("always" | "never");
|
|
13229
|
+
TSTypeLiteral?: ("always" | "never");
|
|
13230
|
+
TSInterfaceBody?: ("always" | "never");
|
|
13231
|
+
TSEnumBody?: ("always" | "never");
|
|
13232
|
+
};
|
|
13233
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
12775
13234
|
}];
|
|
12776
13235
|
// ----- style/object-property-newline -----
|
|
12777
13236
|
type StyleObjectPropertyNewline = [] | [{
|
|
@@ -13849,6 +14308,10 @@ type TsNoUnnecessaryTypeAssertion = [] | [{
|
|
|
13849
14308
|
checkLiteralConstAssertions?: boolean;
|
|
13850
14309
|
typesToIgnore?: string[];
|
|
13851
14310
|
}];
|
|
14311
|
+
// ----- ts/no-unsafe-member-access -----
|
|
14312
|
+
type TsNoUnsafeMemberAccess = [] | [{
|
|
14313
|
+
allowOptionalChaining?: boolean;
|
|
14314
|
+
}];
|
|
13852
14315
|
// ----- ts/no-unused-expressions -----
|
|
13853
14316
|
type TsNoUnusedExpressions = [] | [{
|
|
13854
14317
|
allowShortCircuit?: boolean;
|
|
@@ -13866,6 +14329,7 @@ type TsNoUnusedVars = [] | [(("all" | "local") | {
|
|
|
13866
14329
|
destructuredArrayIgnorePattern?: string;
|
|
13867
14330
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
13868
14331
|
ignoreRestSiblings?: boolean;
|
|
14332
|
+
ignoreUsingDeclarations?: boolean;
|
|
13869
14333
|
reportUsedIgnorePattern?: boolean;
|
|
13870
14334
|
vars?: ("all" | "local");
|
|
13871
14335
|
varsIgnorePattern?: string;
|
|
@@ -14316,6 +14780,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
14316
14780
|
selectors?: string[];
|
|
14317
14781
|
comments?: string[];
|
|
14318
14782
|
}];
|
|
14783
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
14784
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
14785
|
+
withDash?: boolean;
|
|
14786
|
+
}];
|
|
14319
14787
|
// ----- unocss/enforce-class-compile -----
|
|
14320
14788
|
type UnocssEnforceClassCompile = [] | [{
|
|
14321
14789
|
prefix?: string;
|
|
@@ -14335,6 +14803,7 @@ type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
|
14335
14803
|
destructuredArrayIgnorePattern?: string;
|
|
14336
14804
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
14337
14805
|
ignoreRestSiblings?: boolean;
|
|
14806
|
+
ignoreUsingDeclarations?: boolean;
|
|
14338
14807
|
reportUsedIgnorePattern?: boolean;
|
|
14339
14808
|
vars?: ("all" | "local");
|
|
14340
14809
|
varsIgnorePattern?: string;
|
|
@@ -14348,6 +14817,7 @@ type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
|
|
|
14348
14817
|
destructuredArrayIgnorePattern?: string;
|
|
14349
14818
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
14350
14819
|
ignoreRestSiblings?: boolean;
|
|
14820
|
+
ignoreUsingDeclarations?: boolean;
|
|
14351
14821
|
reportUsedIgnorePattern?: boolean;
|
|
14352
14822
|
vars?: ("all" | "local");
|
|
14353
14823
|
varsIgnorePattern?: string;
|
|
@@ -14399,6 +14869,7 @@ type VueAttributeHyphenation = [] | [("always" | "never")] | [("always" | "never
|
|
|
14399
14869
|
type VueAttributesOrder = [] | [{
|
|
14400
14870
|
order?: (("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT") | ("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT")[])[];
|
|
14401
14871
|
alphabetical?: boolean;
|
|
14872
|
+
sortLineLength?: boolean;
|
|
14402
14873
|
}];
|
|
14403
14874
|
// ----- vue/block-lang -----
|
|
14404
14875
|
type VueBlockLang = [] | [{
|
|
@@ -15045,6 +15516,10 @@ type VueNewLineBetweenMultiLineProperty = [] | [{
|
|
|
15045
15516
|
}];
|
|
15046
15517
|
// ----- vue/next-tick-style -----
|
|
15047
15518
|
type VueNextTickStyle = [] | [("promise" | "callback")];
|
|
15519
|
+
// ----- vue/no-async-in-computed-properties -----
|
|
15520
|
+
type VueNoAsyncInComputedProperties = [] | [{
|
|
15521
|
+
ignoredObjectNames?: string[];
|
|
15522
|
+
}];
|
|
15048
15523
|
// ----- vue/no-bare-strings-in-template -----
|
|
15049
15524
|
type VueNoBareStringsInTemplate = [] | [{
|
|
15050
15525
|
allowlist?: string[];
|
|
@@ -15329,6 +15804,10 @@ type VueNoUselessVBind = [] | [{
|
|
|
15329
15804
|
ignoreIncludesComment?: boolean;
|
|
15330
15805
|
ignoreStringEscape?: boolean;
|
|
15331
15806
|
}];
|
|
15807
|
+
// ----- vue/no-v-html -----
|
|
15808
|
+
type VueNoVHtml = [] | [{
|
|
15809
|
+
ignorePattern?: string;
|
|
15810
|
+
}];
|
|
15332
15811
|
// ----- vue/no-v-text-v-html-on-component -----
|
|
15333
15812
|
type VueNoVTextVHtmlOnComponent = [] | [{
|
|
15334
15813
|
allow?: string[];
|
|
@@ -16448,4 +16927,4 @@ declare function ensurePackages(packages: (string | undefined)[]): Promise<void>
|
|
|
16448
16927
|
declare function isInEditorEnv(): boolean;
|
|
16449
16928
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
16450
16929
|
//#endregion
|
|
16451
|
-
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, command, comments, eslintConfig as default, defaultPluginRenaming, disables, ensurePackages,
|
|
16930
|
+
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, command, comments, eslintConfig as default, eslintConfig, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|