@kitschpatrol/eslint-config 5.5.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +8 -4
- package/dist/index.d.ts +791 -335
- package/dist/index.js +106 -22
- package/package.json +36 -35
- package/readme.md +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -569,7 +569,7 @@ interface RuleOptions {
|
|
|
569
569
|
*/
|
|
570
570
|
'html/element-newline'?: Linter.RuleEntry<HtmlElementNewline>
|
|
571
571
|
/**
|
|
572
|
-
* Enforce consistent naming id attributes
|
|
572
|
+
* Enforce consistent naming of id attributes
|
|
573
573
|
* @see https://html-eslint.org/docs/rules/id-naming-convention
|
|
574
574
|
*/
|
|
575
575
|
'html/id-naming-convention'?: Linter.RuleEntry<HtmlIdNamingConvention>
|
|
@@ -578,47 +578,62 @@ interface RuleOptions {
|
|
|
578
578
|
*/
|
|
579
579
|
'html/indent'?: Linter.RuleEntry<HtmlIndent>
|
|
580
580
|
/**
|
|
581
|
-
* Enforce
|
|
581
|
+
* Enforce use of lowercase for tag and attribute names.
|
|
582
582
|
* @see https://html-eslint.org/docs/rules/lowercase
|
|
583
583
|
*/
|
|
584
584
|
'html/lowercase'?: Linter.RuleEntry<[]>
|
|
585
585
|
/**
|
|
586
|
-
* Enforce element
|
|
586
|
+
* Enforce maximum element depth
|
|
587
587
|
* @see https://html-eslint.org/docs/rules/max-element-depth
|
|
588
588
|
*/
|
|
589
589
|
'html/max-element-depth'?: Linter.RuleEntry<HtmlMaxElementDepth>
|
|
590
590
|
/**
|
|
591
|
-
* Disallow
|
|
591
|
+
* Disallow use of abstract roles
|
|
592
592
|
* @see https://html-eslint.org/docs/rules/no-abstract-roles
|
|
593
593
|
*/
|
|
594
594
|
'html/no-abstract-roles'?: Linter.RuleEntry<[]>
|
|
595
595
|
/**
|
|
596
|
-
* Disallow
|
|
596
|
+
* Disallow use of accesskey attribute
|
|
597
597
|
* @see https://html-eslint.org/docs/rules/no-accesskey-attrs
|
|
598
598
|
*/
|
|
599
599
|
'html/no-accesskey-attrs'?: Linter.RuleEntry<[]>
|
|
600
600
|
/**
|
|
601
|
-
* Disallow
|
|
601
|
+
* Disallow use of aria-hidden attributes on the `body` element.
|
|
602
602
|
* @see https://html-eslint.org/docs/rules/no-aria-hidden-body
|
|
603
603
|
*/
|
|
604
604
|
'html/no-aria-hidden-body'?: Linter.RuleEntry<[]>
|
|
605
605
|
/**
|
|
606
|
-
* Disallow
|
|
606
|
+
* Disallow aria-hidden="true" on focusable elements
|
|
607
|
+
* @see https://html-eslint.org/docs/rules/no-aria-hidden-on-focusable
|
|
608
|
+
*/
|
|
609
|
+
'html/no-aria-hidden-on-focusable'?: Linter.RuleEntry<[]>
|
|
610
|
+
/**
|
|
611
|
+
* Disallow duplicate attributes
|
|
607
612
|
* @see https://html-eslint.org/docs/rules/no-duplicate-attrs
|
|
608
613
|
*/
|
|
609
614
|
'html/no-duplicate-attrs'?: Linter.RuleEntry<[]>
|
|
610
615
|
/**
|
|
611
|
-
* Disallow
|
|
616
|
+
* Disallow duplicate class names
|
|
612
617
|
* @see https://html-eslint.org/docs/rules/no-duplicate-class
|
|
613
618
|
*/
|
|
614
619
|
'html/no-duplicate-class'?: Linter.RuleEntry<[]>
|
|
615
620
|
/**
|
|
616
|
-
* Disallow
|
|
621
|
+
* Disallow duplicate id attributes
|
|
617
622
|
* @see https://html-eslint.org/docs/rules/no-duplicate-id
|
|
618
623
|
*/
|
|
619
624
|
'html/no-duplicate-id'?: Linter.RuleEntry<[]>
|
|
620
625
|
/**
|
|
621
|
-
* Disallow
|
|
626
|
+
* Disallow duplicate tags in `<head>`
|
|
627
|
+
* @see https://html-eslint.org/docs/rules/no-duplicate-in-head
|
|
628
|
+
*/
|
|
629
|
+
'html/no-duplicate-in-head'?: Linter.RuleEntry<[]>
|
|
630
|
+
/**
|
|
631
|
+
* Disallow empty or inaccessible headings.
|
|
632
|
+
* @see https://html-eslint.org/docs/rules/no-empty-headings
|
|
633
|
+
*/
|
|
634
|
+
'html/no-empty-headings'?: Linter.RuleEntry<[]>
|
|
635
|
+
/**
|
|
636
|
+
* Disallow extra spacing around attributes
|
|
622
637
|
* @see https://html-eslint.org/docs/rules/no-extra-spacing-attrs
|
|
623
638
|
*/
|
|
624
639
|
'html/no-extra-spacing-attrs'?: Linter.RuleEntry<HtmlNoExtraSpacingAttrs>
|
|
@@ -632,11 +647,20 @@ interface RuleOptions {
|
|
|
632
647
|
* @see https://html-eslint.org/docs/rules/no-heading-inside-button
|
|
633
648
|
*/
|
|
634
649
|
'html/no-heading-inside-button'?: Linter.RuleEntry<[]>
|
|
650
|
+
/**
|
|
651
|
+
* Disallow HTML attributes that have no effect in their context
|
|
652
|
+
*/
|
|
653
|
+
'html/no-ineffective-attrs'?: Linter.RuleEntry<[]>
|
|
635
654
|
/**
|
|
636
655
|
* Disallow using inline style
|
|
637
656
|
* @see https://html-eslint.org/docs/rules/no-inline-styles
|
|
638
657
|
*/
|
|
639
658
|
'html/no-inline-styles'?: Linter.RuleEntry<[]>
|
|
659
|
+
/**
|
|
660
|
+
* Disallows the use of invalid HTML entities
|
|
661
|
+
* @see https://html-eslint.org/docs/rules/no-invalid-entity
|
|
662
|
+
*/
|
|
663
|
+
'html/no-invalid-entity'?: Linter.RuleEntry<[]>
|
|
640
664
|
/**
|
|
641
665
|
* Disallows use of invalid role.
|
|
642
666
|
* @see https://html-eslint.org/docs/rules/no-invalid-role
|
|
@@ -663,7 +687,7 @@ interface RuleOptions {
|
|
|
663
687
|
*/
|
|
664
688
|
'html/no-non-scalable-viewport'?: Linter.RuleEntry<[]>
|
|
665
689
|
/**
|
|
666
|
-
* Disallow
|
|
690
|
+
* Disallow use of obsolete elements in HTML5
|
|
667
691
|
* @see https://html-eslint.org/docs/rules/no-obsolete-tags
|
|
668
692
|
*/
|
|
669
693
|
'html/no-obsolete-tags'?: Linter.RuleEntry<[]>
|
|
@@ -718,7 +742,7 @@ interface RuleOptions {
|
|
|
718
742
|
*/
|
|
719
743
|
'html/require-attrs'?: Linter.RuleEntry<HtmlRequireAttrs>
|
|
720
744
|
/**
|
|
721
|
-
* Require use of button element with a valid type attribute.
|
|
745
|
+
* Require use of the button element with a valid type attribute.
|
|
722
746
|
* @see https://html-eslint.org/docs/rules/require-button-type
|
|
723
747
|
*/
|
|
724
748
|
'html/require-button-type'?: Linter.RuleEntry<[]>
|
|
@@ -728,7 +752,7 @@ interface RuleOptions {
|
|
|
728
752
|
*/
|
|
729
753
|
'html/require-closing-tags'?: Linter.RuleEntry<HtmlRequireClosingTags>
|
|
730
754
|
/**
|
|
731
|
-
* Require `<!DOCTYPE HTML>` in
|
|
755
|
+
* Require `<!DOCTYPE HTML>` in HTML
|
|
732
756
|
* @see https://html-eslint.org/docs/rules/require-doctype
|
|
733
757
|
*/
|
|
734
758
|
'html/require-doctype'?: Linter.RuleEntry<[]>
|
|
@@ -748,7 +772,7 @@ interface RuleOptions {
|
|
|
748
772
|
*/
|
|
749
773
|
'html/require-frame-title'?: Linter.RuleEntry<[]>
|
|
750
774
|
/**
|
|
751
|
-
* Require `alt` attribute
|
|
775
|
+
* Require `alt` attribute on `<img>` tag
|
|
752
776
|
* @see https://html-eslint.org/docs/rules/require-img-alt
|
|
753
777
|
*/
|
|
754
778
|
'html/require-img-alt'?: Linter.RuleEntry<HtmlRequireImgAlt>
|
|
@@ -758,17 +782,17 @@ interface RuleOptions {
|
|
|
758
782
|
*/
|
|
759
783
|
'html/require-input-label'?: Linter.RuleEntry<[]>
|
|
760
784
|
/**
|
|
761
|
-
* Require `lang` attribute
|
|
785
|
+
* Require `lang` attribute on `<html>` tag
|
|
762
786
|
* @see https://html-eslint.org/docs/rules/require-lang
|
|
763
787
|
*/
|
|
764
788
|
'html/require-lang'?: Linter.RuleEntry<[]>
|
|
765
789
|
/**
|
|
766
|
-
* Enforce `<li>` to be in
|
|
790
|
+
* Enforce `<li>` to be in `<ul>`, `<ol>` or `<menu>`.
|
|
767
791
|
* @see https://html-eslint.org/docs/rules/require-li-container
|
|
768
792
|
*/
|
|
769
793
|
'html/require-li-container'?: Linter.RuleEntry<[]>
|
|
770
794
|
/**
|
|
771
|
-
* Enforce
|
|
795
|
+
* Enforce use of `<meta charset="...">` in `<head>`
|
|
772
796
|
* @see https://html-eslint.org/docs/rules/require-meta-charset
|
|
773
797
|
*/
|
|
774
798
|
'html/require-meta-charset'?: Linter.RuleEntry<[]>
|
|
@@ -778,22 +802,22 @@ interface RuleOptions {
|
|
|
778
802
|
*/
|
|
779
803
|
'html/require-meta-description'?: Linter.RuleEntry<[]>
|
|
780
804
|
/**
|
|
781
|
-
* Enforce
|
|
805
|
+
* Enforce use of `<meta name="viewport">` in `<head>`
|
|
782
806
|
* @see https://html-eslint.org/docs/rules/require-meta-viewport
|
|
783
807
|
*/
|
|
784
808
|
'html/require-meta-viewport'?: Linter.RuleEntry<[]>
|
|
785
809
|
/**
|
|
786
|
-
* Enforce
|
|
810
|
+
* Enforce use of specified meta tags for open graph protocol.
|
|
787
811
|
* @see https://html-eslint.org/docs/rules/require-open-graph-protocol
|
|
788
812
|
*/
|
|
789
813
|
'html/require-open-graph-protocol'?: Linter.RuleEntry<HtmlRequireOpenGraphProtocol>
|
|
790
814
|
/**
|
|
791
|
-
* Require `<title
|
|
815
|
+
* Require `<title>` in the `<head>`
|
|
792
816
|
* @see https://html-eslint.org/docs/rules/require-title
|
|
793
817
|
*/
|
|
794
818
|
'html/require-title'?: Linter.RuleEntry<[]>
|
|
795
819
|
/**
|
|
796
|
-
* Enforce
|
|
820
|
+
* Enforce priority and alphabetical sorting of attributes
|
|
797
821
|
* @see https://html-eslint.org/docs/rules/sort-attrs
|
|
798
822
|
*/
|
|
799
823
|
'html/sort-attrs'?: Linter.RuleEntry<HtmlSortAttrs>
|
|
@@ -831,233 +855,238 @@ interface RuleOptions {
|
|
|
831
855
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
832
856
|
/**
|
|
833
857
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
858
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/consistent-type-specifier-style.md
|
|
835
859
|
*/
|
|
836
860
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
837
861
|
/**
|
|
838
862
|
* Ensure a default export is present, given a default import.
|
|
839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
863
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
840
864
|
*/
|
|
841
865
|
'import/default'?: Linter.RuleEntry<[]>
|
|
842
866
|
/**
|
|
843
867
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
844
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
868
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
845
869
|
*/
|
|
846
870
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
847
871
|
/**
|
|
848
872
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
849
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
873
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
850
874
|
*/
|
|
851
875
|
'import/export'?: Linter.RuleEntry<[]>
|
|
852
876
|
/**
|
|
853
877
|
* Ensure all exports appear after other statements.
|
|
854
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
878
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
855
879
|
*/
|
|
856
880
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
857
881
|
/**
|
|
858
882
|
* Ensure consistent use of file extension within the import path.
|
|
859
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
883
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
860
884
|
*/
|
|
861
885
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
862
886
|
/**
|
|
863
887
|
* Ensure all imports appear before other statements.
|
|
864
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
888
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/first.md
|
|
865
889
|
*/
|
|
866
890
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
867
891
|
/**
|
|
868
892
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
893
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
870
894
|
*/
|
|
871
895
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
872
896
|
/**
|
|
873
897
|
* Replaced by `import-x/first`.
|
|
874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
898
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
875
899
|
* @deprecated
|
|
876
900
|
*/
|
|
877
901
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
878
902
|
/**
|
|
879
903
|
* Enforce the maximum number of dependencies a module can have.
|
|
880
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
881
905
|
*/
|
|
882
906
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
883
907
|
/**
|
|
884
908
|
* Ensure named imports correspond to a named export in the remote file.
|
|
885
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
886
910
|
*/
|
|
887
911
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
888
912
|
/**
|
|
889
913
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
890
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
891
915
|
*/
|
|
892
916
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
893
917
|
/**
|
|
894
918
|
* Enforce a newline after import statements.
|
|
895
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/newline-after-import.md
|
|
896
920
|
*/
|
|
897
921
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
898
922
|
/**
|
|
899
923
|
* Forbid import of modules using absolute paths.
|
|
900
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
901
925
|
*/
|
|
902
926
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
903
927
|
/**
|
|
904
928
|
* Forbid AMD `require` and `define` calls.
|
|
905
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
929
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
906
930
|
*/
|
|
907
931
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
908
932
|
/**
|
|
909
933
|
* Forbid anonymous values as default exports.
|
|
910
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
934
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
911
935
|
*/
|
|
912
936
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
913
937
|
/**
|
|
914
938
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
915
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
939
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
916
940
|
*/
|
|
917
941
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
918
942
|
/**
|
|
919
943
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
920
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
944
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
921
945
|
*/
|
|
922
946
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
923
947
|
/**
|
|
924
948
|
* Forbid default exports.
|
|
925
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
949
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-default-export.md
|
|
926
950
|
*/
|
|
927
951
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
928
952
|
/**
|
|
929
953
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
930
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
954
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
931
955
|
*/
|
|
932
956
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
933
957
|
/**
|
|
934
958
|
* Forbid repeated import of the same module in multiple places.
|
|
935
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
959
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-duplicates.md
|
|
936
960
|
*/
|
|
937
961
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
938
962
|
/**
|
|
939
963
|
* Forbid `require()` calls with expressions.
|
|
940
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
964
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
941
965
|
*/
|
|
942
966
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
943
967
|
/**
|
|
944
968
|
* Forbid empty named import blocks.
|
|
945
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
969
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
946
970
|
*/
|
|
947
971
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
948
972
|
/**
|
|
949
973
|
* Forbid the use of extraneous packages.
|
|
950
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
974
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
951
975
|
*/
|
|
952
976
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
953
977
|
/**
|
|
954
978
|
* Forbid import statements with CommonJS module.exports.
|
|
955
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
979
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
956
980
|
*/
|
|
957
981
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
958
982
|
/**
|
|
959
983
|
* Forbid importing the submodules of other modules.
|
|
960
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
984
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
961
985
|
*/
|
|
962
986
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
963
987
|
/**
|
|
964
988
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
965
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
989
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-mutable-exports.md
|
|
966
990
|
*/
|
|
967
991
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
968
992
|
/**
|
|
969
993
|
* Forbid use of exported name as identifier of default export.
|
|
970
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
994
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
971
995
|
*/
|
|
972
996
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
973
997
|
/**
|
|
974
998
|
* Forbid use of exported name as property of default export.
|
|
975
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
999
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
976
1000
|
*/
|
|
977
1001
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
978
1002
|
/**
|
|
979
1003
|
* Forbid named default exports.
|
|
980
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1004
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-default.md
|
|
981
1005
|
*/
|
|
982
1006
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
983
1007
|
/**
|
|
984
1008
|
* Forbid named exports.
|
|
985
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1009
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
986
1010
|
*/
|
|
987
1011
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
988
1012
|
/**
|
|
989
1013
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
990
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1014
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
991
1015
|
*/
|
|
992
1016
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
993
1017
|
/**
|
|
994
1018
|
* Forbid Node.js builtin modules.
|
|
995
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1019
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
996
1020
|
*/
|
|
997
1021
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
998
1022
|
/**
|
|
999
1023
|
* Forbid importing packages through relative paths.
|
|
1000
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1024
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
1001
1025
|
*/
|
|
1002
1026
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
1003
1027
|
/**
|
|
1004
1028
|
* Forbid importing modules from parent directories.
|
|
1005
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1029
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
1006
1030
|
*/
|
|
1007
1031
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
1008
1032
|
/**
|
|
1009
1033
|
* Forbid importing a default export by a different name.
|
|
1010
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1034
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
1011
1035
|
*/
|
|
1012
1036
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
1013
1037
|
/**
|
|
1014
1038
|
* Enforce which files can be imported in a given folder.
|
|
1015
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1039
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
1016
1040
|
*/
|
|
1017
1041
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
1018
1042
|
/**
|
|
1019
1043
|
* Forbid a module from importing itself.
|
|
1020
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1044
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
1021
1045
|
*/
|
|
1022
1046
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
1023
1047
|
/**
|
|
1024
1048
|
* Forbid unassigned imports.
|
|
1025
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1049
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
1026
1050
|
*/
|
|
1027
1051
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
1028
1052
|
/**
|
|
1029
1053
|
* Ensure imports point to a file/module that can be resolved.
|
|
1030
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1054
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
1031
1055
|
*/
|
|
1032
1056
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
1033
1057
|
/**
|
|
1034
1058
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1035
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1059
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
1036
1060
|
*/
|
|
1037
1061
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
1038
1062
|
/**
|
|
1039
1063
|
* Forbid unnecessary path segments in import and require statements.
|
|
1040
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1064
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
1041
1065
|
*/
|
|
1042
1066
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
1043
1067
|
/**
|
|
1044
1068
|
* Forbid webpack loader syntax in imports.
|
|
1045
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1069
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
1046
1070
|
*/
|
|
1047
1071
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
1048
1072
|
/**
|
|
1049
1073
|
* Enforce a convention in module import order.
|
|
1050
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1074
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
1051
1075
|
*/
|
|
1052
1076
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
1053
1077
|
/**
|
|
1054
1078
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1055
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1079
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
1056
1080
|
*/
|
|
1057
1081
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
1082
|
+
/**
|
|
1083
|
+
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
1084
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
1085
|
+
*/
|
|
1086
|
+
'import/prefer-namespace-import'?: Linter.RuleEntry<ImportPreferNamespaceImport>
|
|
1058
1087
|
/**
|
|
1059
1088
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1060
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1089
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
1061
1090
|
*/
|
|
1062
1091
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
1063
1092
|
/**
|
|
@@ -1086,7 +1115,7 @@ interface RuleOptions {
|
|
|
1086
1115
|
* Reports invalid alignment of JSDoc block asterisks.
|
|
1087
1116
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-alignment.md#repos-sticky-header
|
|
1088
1117
|
*/
|
|
1089
|
-
'jsdoc/check-alignment'?: Linter.RuleEntry<
|
|
1118
|
+
'jsdoc/check-alignment'?: Linter.RuleEntry<JsdocCheckAlignment>
|
|
1090
1119
|
/**
|
|
1091
1120
|
* Ensures that (JavaScript) examples within JSDoc adhere to ESLint rules.
|
|
1092
1121
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-examples.md#repos-sticky-header
|
|
@@ -1364,91 +1393,213 @@ interface RuleOptions {
|
|
|
1364
1393
|
'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>
|
|
1365
1394
|
/**
|
|
1366
1395
|
* Reports on unnecessary empty arrays and objects.
|
|
1396
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/no-empty-fields.md
|
|
1367
1397
|
*/
|
|
1368
|
-
'json-package/no-empty-fields'?: Linter.RuleEntry<
|
|
1398
|
+
'json-package/no-empty-fields'?: Linter.RuleEntry<JsonPackageNoEmptyFields>
|
|
1369
1399
|
/**
|
|
1370
1400
|
* Prevents adding unnecessary / redundant files.
|
|
1401
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/no-redundant-files.md
|
|
1371
1402
|
*/
|
|
1372
1403
|
'json-package/no-redundant-files'?: Linter.RuleEntry<[]>
|
|
1373
1404
|
/**
|
|
1374
1405
|
* Package properties must be declared in standard order
|
|
1406
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/order-properties.md
|
|
1375
1407
|
*/
|
|
1376
1408
|
'json-package/order-properties'?: Linter.RuleEntry<JsonPackageOrderProperties>
|
|
1377
1409
|
/**
|
|
1378
1410
|
* Enforce either object or shorthand declaration for repository.
|
|
1411
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/repository-shorthand.md
|
|
1379
1412
|
*/
|
|
1380
1413
|
'json-package/repository-shorthand'?: Linter.RuleEntry<JsonPackageRepositoryShorthand>
|
|
1381
1414
|
/**
|
|
1382
1415
|
* Requires the `author` property to be present.
|
|
1416
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-author.md
|
|
1417
|
+
*/
|
|
1418
|
+
'json-package/require-author'?: Linter.RuleEntry<JsonPackageRequireAuthor>
|
|
1419
|
+
/**
|
|
1420
|
+
* Requires the `bugs` property to be present.
|
|
1421
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-bugs.md
|
|
1422
|
+
*/
|
|
1423
|
+
'json-package/require-bugs'?: Linter.RuleEntry<JsonPackageRequireBugs>
|
|
1424
|
+
/**
|
|
1425
|
+
* Requires the `bundleDependencies` property to be present.
|
|
1426
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-bundleDependencies.md
|
|
1427
|
+
*/
|
|
1428
|
+
'json-package/require-bundleDependencies'?: Linter.RuleEntry<JsonPackageRequireBundleDependencies>
|
|
1429
|
+
/**
|
|
1430
|
+
* Requires the `dependencies` property to be present.
|
|
1431
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-dependencies.md
|
|
1383
1432
|
*/
|
|
1384
|
-
'json-package/require-
|
|
1433
|
+
'json-package/require-dependencies'?: Linter.RuleEntry<JsonPackageRequireDependencies>
|
|
1385
1434
|
/**
|
|
1386
1435
|
* Requires the `description` property to be present.
|
|
1436
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-description.md
|
|
1437
|
+
*/
|
|
1438
|
+
'json-package/require-description'?: Linter.RuleEntry<JsonPackageRequireDescription>
|
|
1439
|
+
/**
|
|
1440
|
+
* Requires the `devDependencies` property to be present.
|
|
1441
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-devDependencies.md
|
|
1387
1442
|
*/
|
|
1388
|
-
'json-package/require-
|
|
1443
|
+
'json-package/require-devDependencies'?: Linter.RuleEntry<JsonPackageRequireDevDependencies>
|
|
1389
1444
|
/**
|
|
1390
1445
|
* Requires the `engines` property to be present.
|
|
1446
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-engines.md
|
|
1391
1447
|
*/
|
|
1392
|
-
'json-package/require-engines'?: Linter.RuleEntry<
|
|
1448
|
+
'json-package/require-engines'?: Linter.RuleEntry<JsonPackageRequireEngines>
|
|
1393
1449
|
/**
|
|
1394
1450
|
* Requires the `files` property to be present.
|
|
1451
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-files.md
|
|
1395
1452
|
*/
|
|
1396
|
-
'json-package/require-files'?: Linter.RuleEntry<
|
|
1453
|
+
'json-package/require-files'?: Linter.RuleEntry<JsonPackageRequireFiles>
|
|
1397
1454
|
/**
|
|
1398
1455
|
* Requires the `keywords` property to be present.
|
|
1456
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-keywords.md
|
|
1399
1457
|
*/
|
|
1400
|
-
'json-package/require-keywords'?: Linter.RuleEntry<
|
|
1458
|
+
'json-package/require-keywords'?: Linter.RuleEntry<JsonPackageRequireKeywords>
|
|
1401
1459
|
/**
|
|
1402
1460
|
* Requires the `name` property to be present.
|
|
1461
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-name.md
|
|
1403
1462
|
*/
|
|
1404
|
-
'json-package/require-name'?: Linter.RuleEntry<
|
|
1463
|
+
'json-package/require-name'?: Linter.RuleEntry<JsonPackageRequireName>
|
|
1464
|
+
/**
|
|
1465
|
+
* Requires the `optionalDependencies` property to be present.
|
|
1466
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-optionalDependencies.md
|
|
1467
|
+
*/
|
|
1468
|
+
'json-package/require-optionalDependencies'?: Linter.RuleEntry<JsonPackageRequireOptionalDependencies>
|
|
1469
|
+
/**
|
|
1470
|
+
* Requires the `peerDependencies` property to be present.
|
|
1471
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-peerDependencies.md
|
|
1472
|
+
*/
|
|
1473
|
+
'json-package/require-peerDependencies'?: Linter.RuleEntry<JsonPackageRequirePeerDependencies>
|
|
1405
1474
|
/**
|
|
1406
1475
|
* Requires the `type` property to be present.
|
|
1476
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-type.md
|
|
1407
1477
|
*/
|
|
1408
|
-
'json-package/require-type'?: Linter.RuleEntry<
|
|
1478
|
+
'json-package/require-type'?: Linter.RuleEntry<JsonPackageRequireType>
|
|
1409
1479
|
/**
|
|
1410
1480
|
* Requires the `types` property to be present.
|
|
1481
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-types.md
|
|
1411
1482
|
*/
|
|
1412
|
-
'json-package/require-types'?: Linter.RuleEntry<
|
|
1483
|
+
'json-package/require-types'?: Linter.RuleEntry<JsonPackageRequireTypes>
|
|
1413
1484
|
/**
|
|
1414
1485
|
* Requires the `version` property to be present.
|
|
1486
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/require-version.md
|
|
1415
1487
|
*/
|
|
1416
|
-
'json-package/require-version'?: Linter.RuleEntry<
|
|
1488
|
+
'json-package/require-version'?: Linter.RuleEntry<JsonPackageRequireVersion>
|
|
1417
1489
|
/**
|
|
1418
1490
|
* Restricts the range of dependencies to allow or disallow specific types of ranges.
|
|
1491
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/restrict-dependency-ranges.md
|
|
1419
1492
|
*/
|
|
1420
1493
|
'json-package/restrict-dependency-ranges'?: Linter.RuleEntry<JsonPackageRestrictDependencyRanges>
|
|
1421
1494
|
/**
|
|
1422
|
-
*
|
|
1495
|
+
* Selected collections must be in a consistent order (lexicographical for most; lifecycle-aware for scripts).
|
|
1496
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/sort-collections.md
|
|
1423
1497
|
*/
|
|
1424
1498
|
'json-package/sort-collections'?: Linter.RuleEntry<JsonPackageSortCollections>
|
|
1425
1499
|
/**
|
|
1426
1500
|
* Checks a dependency isn't specified more than once (i.e. in `dependencies` and `devDependencies`)
|
|
1501
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/unique-dependencies.md
|
|
1427
1502
|
*/
|
|
1428
1503
|
'json-package/unique-dependencies'?: Linter.RuleEntry<[]>
|
|
1504
|
+
/**
|
|
1505
|
+
* Enforce that the `author` property is valid.
|
|
1506
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-author.md
|
|
1507
|
+
*/
|
|
1508
|
+
'json-package/valid-author'?: Linter.RuleEntry<[]>
|
|
1509
|
+
/**
|
|
1510
|
+
* Enforce that the `bin` property is valid.
|
|
1511
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-bin.md
|
|
1512
|
+
*/
|
|
1513
|
+
'json-package/valid-bin'?: Linter.RuleEntry<JsonPackageValidBin>
|
|
1514
|
+
/**
|
|
1515
|
+
* Enforce that the `bundleDependencies` (also: `bundledDependencies`) property is valid.
|
|
1516
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-bundleDependencies.md
|
|
1517
|
+
*/
|
|
1518
|
+
'json-package/valid-bundleDependencies'?: Linter.RuleEntry<[]>
|
|
1519
|
+
/**
|
|
1520
|
+
* Enforce that the `config` property is valid.
|
|
1521
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-config.md
|
|
1522
|
+
*/
|
|
1523
|
+
'json-package/valid-config'?: Linter.RuleEntry<[]>
|
|
1524
|
+
/**
|
|
1525
|
+
* Enforce that the `cpu` property is valid.
|
|
1526
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-cpu.md
|
|
1527
|
+
*/
|
|
1528
|
+
'json-package/valid-cpu'?: Linter.RuleEntry<[]>
|
|
1529
|
+
/**
|
|
1530
|
+
* Enforce that the `dependencies` property is valid.
|
|
1531
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-dependencies.md
|
|
1532
|
+
*/
|
|
1533
|
+
'json-package/valid-dependencies'?: Linter.RuleEntry<[]>
|
|
1534
|
+
/**
|
|
1535
|
+
* Enforce that the `description` property is valid.
|
|
1536
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-description.md
|
|
1537
|
+
*/
|
|
1538
|
+
'json-package/valid-description'?: Linter.RuleEntry<[]>
|
|
1539
|
+
/**
|
|
1540
|
+
* Enforce that the `devDependencies` property is valid.
|
|
1541
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-devDependencies.md
|
|
1542
|
+
*/
|
|
1543
|
+
'json-package/valid-devDependencies'?: Linter.RuleEntry<[]>
|
|
1544
|
+
/**
|
|
1545
|
+
* Enforce that the `directories` property is valid.
|
|
1546
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-directories.md
|
|
1547
|
+
*/
|
|
1548
|
+
'json-package/valid-directories'?: Linter.RuleEntry<[]>
|
|
1549
|
+
/**
|
|
1550
|
+
* Enforce that the `exports` property is valid.
|
|
1551
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-exports.md
|
|
1552
|
+
*/
|
|
1553
|
+
'json-package/valid-exports'?: Linter.RuleEntry<[]>
|
|
1554
|
+
/**
|
|
1555
|
+
* Enforce that the `license` property is valid.
|
|
1556
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-license.md
|
|
1557
|
+
*/
|
|
1558
|
+
'json-package/valid-license'?: Linter.RuleEntry<[]>
|
|
1429
1559
|
/**
|
|
1430
1560
|
* Checks existence of local dependencies in the package.json
|
|
1561
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-local-dependency.md
|
|
1562
|
+
* @deprecated
|
|
1431
1563
|
*/
|
|
1432
1564
|
'json-package/valid-local-dependency'?: Linter.RuleEntry<[]>
|
|
1433
1565
|
/**
|
|
1434
1566
|
* Enforce that package names are valid npm package names
|
|
1567
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-name.md
|
|
1435
1568
|
*/
|
|
1436
1569
|
'json-package/valid-name'?: Linter.RuleEntry<[]>
|
|
1437
1570
|
/**
|
|
1438
|
-
* Enforce that
|
|
1439
|
-
* @
|
|
1571
|
+
* Enforce that the `optionalDependencies` property is valid.
|
|
1572
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-optionalDependencies.md
|
|
1440
1573
|
*/
|
|
1441
|
-
'json-package/valid-
|
|
1574
|
+
'json-package/valid-optionalDependencies'?: Linter.RuleEntry<[]>
|
|
1442
1575
|
/**
|
|
1443
1576
|
* Enforce that package.json has all properties required by the npm spec
|
|
1577
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-package-definition.md
|
|
1444
1578
|
*/
|
|
1445
1579
|
'json-package/valid-package-definition'?: Linter.RuleEntry<JsonPackageValidPackageDefinition>
|
|
1580
|
+
/**
|
|
1581
|
+
* Enforce that the `peerDependencies` property is valid.
|
|
1582
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-peerDependencies.md
|
|
1583
|
+
*/
|
|
1584
|
+
'json-package/valid-peerDependencies'?: Linter.RuleEntry<[]>
|
|
1446
1585
|
/**
|
|
1447
1586
|
* Enforce that if repository directory is specified, it matches the path to the package.json file
|
|
1587
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-repository-directory.md
|
|
1448
1588
|
*/
|
|
1449
1589
|
'json-package/valid-repository-directory'?: Linter.RuleEntry<[]>
|
|
1590
|
+
/**
|
|
1591
|
+
* Enforce that the `scripts` property is valid.
|
|
1592
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-scripts.md
|
|
1593
|
+
*/
|
|
1594
|
+
'json-package/valid-scripts'?: Linter.RuleEntry<[]>
|
|
1595
|
+
/**
|
|
1596
|
+
* Enforce that the `type` property is valid.
|
|
1597
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-type.md
|
|
1598
|
+
*/
|
|
1599
|
+
'json-package/valid-type'?: Linter.RuleEntry<[]>
|
|
1450
1600
|
/**
|
|
1451
1601
|
* Enforce that package versions are valid semver specifiers
|
|
1602
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/HEAD/docs/rules/valid-version.md
|
|
1452
1603
|
*/
|
|
1453
1604
|
'json-package/valid-version'?: Linter.RuleEntry<[]>
|
|
1454
1605
|
/**
|
|
@@ -2088,7 +2239,7 @@ interface RuleOptions {
|
|
|
2088
2239
|
*/
|
|
2089
2240
|
'no-console'?: Linter.RuleEntry<NoConsole>
|
|
2090
2241
|
/**
|
|
2091
|
-
* Disallow reassigning `const` variables
|
|
2242
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
2092
2243
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
2093
2244
|
*/
|
|
2094
2245
|
'no-const-assign'?: Linter.RuleEntry<[]>
|
|
@@ -3261,6 +3412,11 @@ interface RuleOptions {
|
|
|
3261
3412
|
* @see https://eslint.org/docs/latest/rules/prefer-template
|
|
3262
3413
|
*/
|
|
3263
3414
|
'prefer-template'?: Linter.RuleEntry<[]>
|
|
3415
|
+
/**
|
|
3416
|
+
* Disallow losing originally caught error when re-throwing custom errors
|
|
3417
|
+
* @see https://eslint.org/docs/latest/rules/preserve-caught-error
|
|
3418
|
+
*/
|
|
3419
|
+
'preserve-caught-error'?: Linter.RuleEntry<PreserveCaughtError>
|
|
3264
3420
|
/**
|
|
3265
3421
|
* Require quotes around object literal property names
|
|
3266
3422
|
* @see https://eslint.org/docs/latest/rules/quote-props
|
|
@@ -3695,7 +3851,7 @@ interface RuleOptions {
|
|
|
3695
3851
|
'react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
3696
3852
|
/**
|
|
3697
3853
|
* Disallow nesting lazy component declarations inside other components.
|
|
3698
|
-
* @see https://eslint-react.xyz/docs/rules/no-nested-component-
|
|
3854
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
3699
3855
|
*/
|
|
3700
3856
|
'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
|
|
3701
3857
|
/**
|
|
@@ -4494,8 +4650,14 @@ interface RuleOptions {
|
|
|
4494
4650
|
/**
|
|
4495
4651
|
* disallow using navigation (links, goto, pushState, replaceState) without the base path
|
|
4496
4652
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-base/
|
|
4653
|
+
* @deprecated
|
|
4497
4654
|
*/
|
|
4498
4655
|
'svelte/no-navigation-without-base'?: Linter.RuleEntry<SvelteNoNavigationWithoutBase>
|
|
4656
|
+
/**
|
|
4657
|
+
* disallow using navigation (links, goto, pushState, replaceState) without a resolve()
|
|
4658
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
|
|
4659
|
+
*/
|
|
4660
|
+
'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>
|
|
4499
4661
|
/**
|
|
4500
4662
|
* disallow use of not function in event handler
|
|
4501
4663
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
|
|
@@ -4621,6 +4783,11 @@ interface RuleOptions {
|
|
|
4621
4783
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-style-directive/
|
|
4622
4784
|
*/
|
|
4623
4785
|
'svelte/prefer-style-directive'?: Linter.RuleEntry<[]>
|
|
4786
|
+
/**
|
|
4787
|
+
* disallow using mutable instances of built-in classes where a reactive alternative is provided by svelte/reactivity
|
|
4788
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-svelte-reactivity/
|
|
4789
|
+
*/
|
|
4790
|
+
'svelte/prefer-svelte-reactivity'?: Linter.RuleEntry<[]>
|
|
4624
4791
|
/**
|
|
4625
4792
|
* Prefer using writable $derived instead of $state and $effect
|
|
4626
4793
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-writable-derived/
|
|
@@ -4739,11 +4906,21 @@ interface RuleOptions {
|
|
|
4739
4906
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4740
4907
|
*/
|
|
4741
4908
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
|
|
4909
|
+
/**
|
|
4910
|
+
* enforce using vitest or vi but not both
|
|
4911
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
|
|
4912
|
+
*/
|
|
4913
|
+
'test/consistent-vitest-vi'?: Linter.RuleEntry<TestConsistentVitestVi>
|
|
4742
4914
|
/**
|
|
4743
4915
|
* enforce having expectation in test body
|
|
4744
4916
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
4745
4917
|
*/
|
|
4746
4918
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
4919
|
+
/**
|
|
4920
|
+
* enforce hoisted APIs to be on top of the file
|
|
4921
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/hoisted-apis-on-top.md
|
|
4922
|
+
*/
|
|
4923
|
+
'test/hoisted-apis-on-top'?: Linter.RuleEntry<[]>
|
|
4747
4924
|
/**
|
|
4748
4925
|
* enforce a maximum number of expect per test
|
|
4749
4926
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
@@ -4815,6 +4992,11 @@ interface RuleOptions {
|
|
|
4815
4992
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4816
4993
|
*/
|
|
4817
4994
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>
|
|
4995
|
+
/**
|
|
4996
|
+
* disallow importing Vitest globals
|
|
4997
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
|
|
4998
|
+
*/
|
|
4999
|
+
'test/no-importing-vitest-globals'?: Linter.RuleEntry<[]>
|
|
4818
5000
|
/**
|
|
4819
5001
|
* disallow string interpolation in snapshots
|
|
4820
5002
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
@@ -4851,7 +5033,7 @@ interface RuleOptions {
|
|
|
4851
5033
|
*/
|
|
4852
5034
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
|
|
4853
5035
|
/**
|
|
4854
|
-
*
|
|
5036
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
4855
5037
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4856
5038
|
*/
|
|
4857
5039
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
@@ -4900,6 +5082,16 @@ interface RuleOptions {
|
|
|
4900
5082
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4901
5083
|
*/
|
|
4902
5084
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
5085
|
+
/**
|
|
5086
|
+
* enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
|
|
5087
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
5088
|
+
*/
|
|
5089
|
+
'test/prefer-called-once'?: Linter.RuleEntry<[]>
|
|
5090
|
+
/**
|
|
5091
|
+
* enforce using `toBeCalledTimes(1)` or `toHaveBeenCalledTimes(1)`
|
|
5092
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-times.md
|
|
5093
|
+
*/
|
|
5094
|
+
'test/prefer-called-times'?: Linter.RuleEntry<[]>
|
|
4903
5095
|
/**
|
|
4904
5096
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4905
5097
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
@@ -4935,6 +5127,11 @@ interface RuleOptions {
|
|
|
4935
5127
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
4936
5128
|
*/
|
|
4937
5129
|
'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
5130
|
+
/**
|
|
5131
|
+
* enforce using `expectTypeOf` instead of `expect(typeof ...)`
|
|
5132
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-type-of.md
|
|
5133
|
+
*/
|
|
5134
|
+
'test/prefer-expect-type-of'?: Linter.RuleEntry<[]>
|
|
4938
5135
|
/**
|
|
4939
5136
|
* enforce having hooks in consistent order
|
|
4940
5137
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
@@ -4945,6 +5142,11 @@ interface RuleOptions {
|
|
|
4945
5142
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4946
5143
|
*/
|
|
4947
5144
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
5145
|
+
/**
|
|
5146
|
+
* enforce importing Vitest globals
|
|
5147
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
5148
|
+
*/
|
|
5149
|
+
'test/prefer-importing-vitest-globals'?: Linter.RuleEntry<[]>
|
|
4948
5150
|
/**
|
|
4949
5151
|
* enforce lowercase titles
|
|
4950
5152
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
@@ -5060,6 +5262,11 @@ interface RuleOptions {
|
|
|
5060
5262
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
5061
5263
|
*/
|
|
5062
5264
|
'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
|
|
5265
|
+
/**
|
|
5266
|
+
* disallow `.todo` usage
|
|
5267
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/warn-todo.md
|
|
5268
|
+
*/
|
|
5269
|
+
'test/warn-todo'?: Linter.RuleEntry<[]>
|
|
5063
5270
|
/**
|
|
5064
5271
|
* enforce linebreaks after opening and before closing array brackets
|
|
5065
5272
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-bracket-newline.html
|
|
@@ -5840,670 +6047,710 @@ interface RuleOptions {
|
|
|
5840
6047
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
5841
6048
|
/**
|
|
5842
6049
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
|
|
5844
6051
|
*/
|
|
5845
6052
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
5846
6053
|
/**
|
|
5847
6054
|
* Enforce a specific parameter name in catch clauses.
|
|
5848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6055
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
|
|
5849
6056
|
*/
|
|
5850
6057
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
5851
6058
|
/**
|
|
5852
6059
|
* Enforce consistent assertion style with `node:assert`.
|
|
5853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
|
|
5854
6061
|
*/
|
|
5855
6062
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
5856
6063
|
/**
|
|
5857
6064
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6065
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
|
|
5859
6066
|
*/
|
|
5860
6067
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
5861
6068
|
/**
|
|
5862
6069
|
* Use destructured variables over properties.
|
|
5863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
|
|
5864
6071
|
*/
|
|
5865
6072
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
5866
6073
|
/**
|
|
5867
6074
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
|
|
5869
6076
|
*/
|
|
5870
6077
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
5871
6078
|
/**
|
|
5872
6079
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5873
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
|
|
5874
6081
|
*/
|
|
5875
6082
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
5876
6083
|
/**
|
|
5877
6084
|
* Move function definitions to the highest possible scope.
|
|
5878
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
|
|
5879
6086
|
*/
|
|
5880
6087
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
5881
6088
|
/**
|
|
5882
6089
|
* Enforce correct `Error` subclassing.
|
|
5883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
|
|
5884
6091
|
*/
|
|
5885
6092
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
5886
6093
|
/**
|
|
5887
6094
|
* Enforce no spaces between braces.
|
|
5888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
|
|
5889
6096
|
*/
|
|
5890
6097
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
5891
6098
|
/**
|
|
5892
6099
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
|
|
5894
6101
|
*/
|
|
5895
6102
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
5896
6103
|
/**
|
|
5897
6104
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
|
|
5899
6106
|
*/
|
|
5900
6107
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
5901
6108
|
/**
|
|
5902
6109
|
* Add expiration conditions to TODO comments.
|
|
5903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
|
|
5904
6111
|
*/
|
|
5905
6112
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
5906
6113
|
/**
|
|
5907
6114
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
|
|
5909
6116
|
*/
|
|
5910
6117
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
5911
6118
|
/**
|
|
5912
6119
|
* Enforce a case style for filenames.
|
|
5913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
|
|
5914
6121
|
*/
|
|
5915
6122
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
5916
6123
|
/**
|
|
5917
6124
|
* Enforce specific import styles per module.
|
|
5918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
|
|
5919
6126
|
*/
|
|
5920
6127
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
5921
6128
|
/**
|
|
5922
6129
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
|
|
5924
6131
|
*/
|
|
5925
6132
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
5926
6133
|
/**
|
|
5927
6134
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
|
|
5929
6136
|
*/
|
|
5930
6137
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5931
6138
|
/**
|
|
5932
6139
|
* Disallow recursive access to `this` within getters and setters.
|
|
5933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
|
|
5934
6141
|
*/
|
|
5935
6142
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
5936
6143
|
/**
|
|
5937
6144
|
* Disallow anonymous functions and classes as the default export.
|
|
5938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
|
|
5939
6146
|
*/
|
|
5940
6147
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
5941
6148
|
/**
|
|
5942
6149
|
* Prevent passing a function reference directly to iterator methods.
|
|
5943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
|
|
5944
6151
|
*/
|
|
5945
6152
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
5946
6153
|
/**
|
|
5947
6154
|
* Prefer `for…of` over the `forEach` method.
|
|
5948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
|
|
5949
6156
|
*/
|
|
5950
6157
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
5951
6158
|
/**
|
|
5952
6159
|
* Disallow using the `this` argument in array methods.
|
|
5953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
|
|
5954
6161
|
*/
|
|
5955
6162
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5956
6163
|
/**
|
|
5957
6164
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
|
|
5959
6166
|
* @deprecated
|
|
5960
6167
|
*/
|
|
5961
6168
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
5962
6169
|
/**
|
|
5963
6170
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
|
|
5965
6172
|
*/
|
|
5966
6173
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
6174
|
+
/**
|
|
6175
|
+
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
6176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
|
|
6177
|
+
*/
|
|
6178
|
+
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
|
|
6179
|
+
/**
|
|
6180
|
+
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
6181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
|
|
6182
|
+
*/
|
|
6183
|
+
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
|
|
5967
6184
|
/**
|
|
5968
6185
|
* Disallow member access from await expression.
|
|
5969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
|
|
5970
6187
|
*/
|
|
5971
6188
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5972
6189
|
/**
|
|
5973
6190
|
* Disallow using `await` in `Promise` method parameters.
|
|
5974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
|
|
5975
6192
|
*/
|
|
5976
6193
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5977
6194
|
/**
|
|
5978
6195
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
|
|
5980
6197
|
*/
|
|
5981
6198
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5982
6199
|
/**
|
|
5983
6200
|
* Do not use `document.cookie` directly.
|
|
5984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
|
|
5985
6202
|
*/
|
|
5986
6203
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5987
6204
|
/**
|
|
5988
6205
|
* Disallow empty files.
|
|
5989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
|
|
5990
6207
|
*/
|
|
5991
6208
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
5992
6209
|
/**
|
|
5993
6210
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
|
|
5995
6212
|
*/
|
|
5996
6213
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5997
6214
|
/**
|
|
5998
6215
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
|
|
6000
6217
|
*/
|
|
6001
6218
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
6002
6219
|
/**
|
|
6003
6220
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
6004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
|
|
6005
6222
|
* @deprecated
|
|
6006
6223
|
*/
|
|
6007
6224
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
6008
6225
|
/**
|
|
6009
6226
|
* Disallow `instanceof` with built-in objects
|
|
6010
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
|
|
6011
6228
|
*/
|
|
6012
6229
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
6013
6230
|
/**
|
|
6014
6231
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
6015
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
|
|
6016
6233
|
*/
|
|
6017
6234
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
6018
6235
|
/**
|
|
6019
6236
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
6020
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
|
|
6021
6238
|
*/
|
|
6022
6239
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
6023
6240
|
/**
|
|
6024
6241
|
* Disallow identifiers starting with `new` or `class`.
|
|
6025
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
|
|
6026
6243
|
*/
|
|
6027
6244
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
6028
6245
|
/**
|
|
6029
6246
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
6030
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
|
|
6031
6248
|
* @deprecated
|
|
6032
6249
|
*/
|
|
6033
6250
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
6034
6251
|
/**
|
|
6035
6252
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
6036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
|
|
6037
6254
|
*/
|
|
6038
6255
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
6039
6256
|
/**
|
|
6040
6257
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
6041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
|
|
6042
6259
|
*/
|
|
6043
6260
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
6044
6261
|
/**
|
|
6045
6262
|
* Disallow named usage of default import and export.
|
|
6046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
|
|
6047
6264
|
*/
|
|
6048
6265
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
6049
6266
|
/**
|
|
6050
6267
|
* Disallow negated conditions.
|
|
6051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
|
|
6052
6269
|
*/
|
|
6053
6270
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
6054
6271
|
/**
|
|
6055
6272
|
* Disallow negated expression in equality check.
|
|
6056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
|
|
6057
6274
|
*/
|
|
6058
6275
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
6059
6276
|
/**
|
|
6060
6277
|
* Disallow nested ternary expressions.
|
|
6061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
|
|
6062
6279
|
*/
|
|
6063
6280
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
6064
6281
|
/**
|
|
6065
6282
|
* Disallow `new Array()`.
|
|
6066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
|
|
6067
6284
|
*/
|
|
6068
6285
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
6069
6286
|
/**
|
|
6070
6287
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
6071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
|
|
6072
6289
|
*/
|
|
6073
6290
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
6074
6291
|
/**
|
|
6075
6292
|
* Disallow the use of the `null` literal.
|
|
6076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
|
|
6077
6294
|
*/
|
|
6078
6295
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
6079
6296
|
/**
|
|
6080
6297
|
* Disallow the use of objects as default parameters.
|
|
6081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
|
|
6082
6299
|
*/
|
|
6083
6300
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
6084
6301
|
/**
|
|
6085
6302
|
* Disallow `process.exit()`.
|
|
6086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
|
|
6087
6304
|
*/
|
|
6088
6305
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
6089
6306
|
/**
|
|
6090
6307
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
6091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
|
|
6092
6309
|
*/
|
|
6093
6310
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
6094
6311
|
/**
|
|
6095
6312
|
* Disallow classes that only have static members.
|
|
6096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
|
|
6097
6314
|
*/
|
|
6098
6315
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
6099
6316
|
/**
|
|
6100
6317
|
* Disallow `then` property.
|
|
6101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
|
|
6102
6319
|
*/
|
|
6103
6320
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
6104
6321
|
/**
|
|
6105
6322
|
* Disallow assigning `this` to a variable.
|
|
6106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
|
|
6107
6324
|
*/
|
|
6108
6325
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
6109
6326
|
/**
|
|
6110
6327
|
* Disallow comparing `undefined` using `typeof`.
|
|
6111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
|
|
6112
6329
|
*/
|
|
6113
6330
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
6114
6331
|
/**
|
|
6115
6332
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
6116
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
|
|
6117
6334
|
*/
|
|
6118
6335
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
6119
6336
|
/**
|
|
6120
6337
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
6121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
|
|
6122
6339
|
*/
|
|
6123
6340
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
6124
6341
|
/**
|
|
6125
6342
|
* Disallow awaiting non-promise values.
|
|
6126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
|
|
6127
6344
|
*/
|
|
6128
6345
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
6129
6346
|
/**
|
|
6130
6347
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
6131
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
|
|
6132
6349
|
*/
|
|
6133
6350
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
6134
6351
|
/**
|
|
6135
6352
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
6136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
|
|
6137
6354
|
*/
|
|
6138
6355
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
6139
6356
|
/**
|
|
6140
6357
|
* Disallow unreadable array destructuring.
|
|
6141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
|
|
6142
6359
|
*/
|
|
6143
6360
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
6144
6361
|
/**
|
|
6145
6362
|
* Disallow unreadable IIFEs.
|
|
6146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
|
|
6147
6364
|
*/
|
|
6148
6365
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
6149
6366
|
/**
|
|
6150
6367
|
* Disallow unused object properties.
|
|
6151
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
|
|
6152
6369
|
*/
|
|
6153
6370
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
6371
|
+
/**
|
|
6372
|
+
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
6373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
|
|
6374
|
+
*/
|
|
6375
|
+
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
|
|
6154
6376
|
/**
|
|
6155
6377
|
* Disallow useless fallback when spreading in object literals.
|
|
6156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
|
|
6157
6379
|
*/
|
|
6158
6380
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
6159
6381
|
/**
|
|
6160
6382
|
* Disallow useless array length check.
|
|
6161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
|
|
6162
6384
|
*/
|
|
6163
6385
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
6164
6386
|
/**
|
|
6165
6387
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
6166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
|
|
6167
6389
|
*/
|
|
6168
6390
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
6169
6391
|
/**
|
|
6170
6392
|
* Disallow unnecessary spread.
|
|
6171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
|
|
6172
6394
|
*/
|
|
6173
6395
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
6174
6396
|
/**
|
|
6175
6397
|
* Disallow useless case in switch statements.
|
|
6176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
|
|
6177
6399
|
*/
|
|
6178
6400
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
6179
6401
|
/**
|
|
6180
6402
|
* Disallow useless `undefined`.
|
|
6181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
|
|
6182
6404
|
*/
|
|
6183
6405
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
6184
6406
|
/**
|
|
6185
6407
|
* Disallow number literals with zero fractions or dangling dots.
|
|
6186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
|
|
6187
6409
|
*/
|
|
6188
6410
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
6189
6411
|
/**
|
|
6190
6412
|
* Enforce proper case for numeric literals.
|
|
6191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
|
|
6192
6414
|
*/
|
|
6193
6415
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
6194
6416
|
/**
|
|
6195
6417
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
6196
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
|
|
6197
6419
|
*/
|
|
6198
6420
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
6199
6421
|
/**
|
|
6200
6422
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
6201
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
|
|
6202
6424
|
*/
|
|
6203
6425
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
6204
6426
|
/**
|
|
6205
6427
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
6206
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
|
|
6207
6429
|
*/
|
|
6208
6430
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
6209
6431
|
/**
|
|
6210
6432
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
6211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
|
|
6212
6434
|
*/
|
|
6213
6435
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
6214
6436
|
/**
|
|
6215
6437
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
6216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
|
|
6217
6439
|
*/
|
|
6218
6440
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
6219
6441
|
/**
|
|
6220
6442
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
6221
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6443
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
|
|
6222
6444
|
*/
|
|
6223
6445
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
6224
6446
|
/**
|
|
6225
6447
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6448
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
|
|
6227
6449
|
*/
|
|
6228
6450
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
6229
6451
|
/**
|
|
6230
6452
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
6231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6453
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
|
|
6232
6454
|
*/
|
|
6233
6455
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
6456
|
+
/**
|
|
6457
|
+
* Prefer `BigInt` literals over the constructor.
|
|
6458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
|
|
6459
|
+
*/
|
|
6460
|
+
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
|
|
6234
6461
|
/**
|
|
6235
6462
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
|
|
6237
6464
|
*/
|
|
6238
6465
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
6466
|
+
/**
|
|
6467
|
+
* Prefer class field declarations over `this` assignments in constructors.
|
|
6468
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
|
|
6469
|
+
*/
|
|
6470
|
+
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
|
|
6471
|
+
/**
|
|
6472
|
+
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
6473
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
|
|
6474
|
+
*/
|
|
6475
|
+
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
|
|
6239
6476
|
/**
|
|
6240
6477
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6478
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
|
|
6242
6479
|
*/
|
|
6243
6480
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
6244
6481
|
/**
|
|
6245
6482
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6483
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
|
|
6247
6484
|
*/
|
|
6248
6485
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
6249
6486
|
/**
|
|
6250
6487
|
* Prefer default parameters over reassignment.
|
|
6251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
|
|
6252
6489
|
*/
|
|
6253
6490
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
6254
6491
|
/**
|
|
6255
6492
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6256
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
|
|
6257
6494
|
*/
|
|
6258
6495
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
6259
6496
|
/**
|
|
6260
6497
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6498
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
|
|
6262
6499
|
*/
|
|
6263
6500
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
6264
6501
|
/**
|
|
6265
6502
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6266
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6503
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
|
|
6267
6504
|
*/
|
|
6268
6505
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
6269
6506
|
/**
|
|
6270
6507
|
* Prefer `.textContent` over `.innerText`.
|
|
6271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
|
|
6272
6509
|
*/
|
|
6273
6510
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
6274
6511
|
/**
|
|
6275
6512
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
|
|
6277
6514
|
*/
|
|
6278
6515
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
6279
6516
|
/**
|
|
6280
6517
|
* Prefer `export…from` when re-exporting.
|
|
6281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
|
|
6282
6519
|
*/
|
|
6283
6520
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
6284
6521
|
/**
|
|
6285
6522
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
|
|
6287
6524
|
*/
|
|
6288
6525
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
6289
6526
|
/**
|
|
6290
6527
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
|
|
6292
6529
|
*/
|
|
6293
6530
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
6294
6531
|
/**
|
|
6295
6532
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
|
|
6297
6534
|
*/
|
|
6298
6535
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
6299
6536
|
/**
|
|
6300
6537
|
* Prefer reading a JSON file as a buffer.
|
|
6301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
|
|
6302
6539
|
*/
|
|
6303
6540
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
6304
6541
|
/**
|
|
6305
6542
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6543
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
|
|
6307
6544
|
*/
|
|
6308
6545
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
6309
6546
|
/**
|
|
6310
6547
|
* Prefer using a logical operator over a ternary.
|
|
6311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6312
6549
|
*/
|
|
6313
6550
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
6314
6551
|
/**
|
|
6315
6552
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
|
|
6317
6554
|
*/
|
|
6318
6555
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
6319
6556
|
/**
|
|
6320
6557
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
|
|
6322
6559
|
*/
|
|
6323
6560
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
6324
6561
|
/**
|
|
6325
6562
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
|
|
6327
6564
|
*/
|
|
6328
6565
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
6329
6566
|
/**
|
|
6330
6567
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6568
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
|
|
6332
6569
|
*/
|
|
6333
6570
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
6334
6571
|
/**
|
|
6335
6572
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6573
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
|
|
6337
6574
|
*/
|
|
6338
6575
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
6339
6576
|
/**
|
|
6340
6577
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
|
|
6342
6579
|
*/
|
|
6343
6580
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
6344
6581
|
/**
|
|
6345
6582
|
* Prefer negative index over `.length - index` when possible.
|
|
6346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
|
|
6347
6584
|
*/
|
|
6348
6585
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
6349
6586
|
/**
|
|
6350
6587
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6588
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
|
|
6352
6589
|
*/
|
|
6353
6590
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
6354
6591
|
/**
|
|
6355
6592
|
* Prefer `Number` static properties over global ones.
|
|
6356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
|
|
6357
6594
|
*/
|
|
6358
6595
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
6359
6596
|
/**
|
|
6360
6597
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
|
|
6362
6599
|
*/
|
|
6363
6600
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
6364
6601
|
/**
|
|
6365
6602
|
* Prefer omitting the `catch` binding parameter.
|
|
6366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
|
|
6367
6604
|
*/
|
|
6368
6605
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
6369
6606
|
/**
|
|
6370
6607
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
|
|
6372
6609
|
*/
|
|
6373
6610
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
6374
6611
|
/**
|
|
6375
6612
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
6376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
|
|
6377
6614
|
*/
|
|
6378
6615
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
6379
6616
|
/**
|
|
6380
6617
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
|
|
6382
6619
|
*/
|
|
6383
6620
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
6384
6621
|
/**
|
|
6385
6622
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
|
|
6387
6624
|
*/
|
|
6388
6625
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
6389
6626
|
/**
|
|
6390
6627
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
|
|
6392
6629
|
*/
|
|
6393
6630
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
6394
6631
|
/**
|
|
6395
6632
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
|
|
6397
6634
|
*/
|
|
6398
6635
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
6399
6636
|
/**
|
|
6400
6637
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6638
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
|
|
6402
6639
|
*/
|
|
6403
6640
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
6404
6641
|
/**
|
|
6405
6642
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
|
|
6407
6644
|
*/
|
|
6408
6645
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
6409
6646
|
/**
|
|
6410
6647
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
|
|
6412
6649
|
*/
|
|
6413
6650
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
6414
6651
|
/**
|
|
6415
6652
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
|
|
6417
6654
|
*/
|
|
6418
6655
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
6419
6656
|
/**
|
|
6420
6657
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6658
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
|
|
6422
6659
|
*/
|
|
6423
6660
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
6424
6661
|
/**
|
|
6425
6662
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6663
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
|
|
6427
6664
|
*/
|
|
6428
6665
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
6429
6666
|
/**
|
|
6430
6667
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6668
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
|
|
6432
6669
|
*/
|
|
6433
6670
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
6434
6671
|
/**
|
|
6435
6672
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6673
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
|
|
6437
6674
|
*/
|
|
6438
6675
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
6439
6676
|
/**
|
|
6440
6677
|
* Prefer `switch` over multiple `else-if`.
|
|
6441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
|
|
6442
6679
|
*/
|
|
6443
6680
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
6444
6681
|
/**
|
|
6445
6682
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
6446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6683
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
|
|
6447
6684
|
*/
|
|
6448
6685
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
6449
6686
|
/**
|
|
6450
6687
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6688
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
|
|
6452
6689
|
*/
|
|
6453
6690
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
6454
6691
|
/**
|
|
6455
6692
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
|
|
6457
6694
|
*/
|
|
6458
6695
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
6459
6696
|
/**
|
|
6460
6697
|
* Prevent abbreviations.
|
|
6461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6698
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
|
|
6462
6699
|
*/
|
|
6463
6700
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
6464
6701
|
/**
|
|
6465
6702
|
* Enforce consistent relative URL style.
|
|
6466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
|
|
6467
6704
|
*/
|
|
6468
6705
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
6469
6706
|
/**
|
|
6470
6707
|
* Enforce using the separator argument with `Array#join()`.
|
|
6471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
|
|
6472
6709
|
*/
|
|
6473
6710
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
6711
|
+
/**
|
|
6712
|
+
* Require non-empty module attributes for imports and exports
|
|
6713
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
|
|
6714
|
+
*/
|
|
6715
|
+
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
|
|
6716
|
+
/**
|
|
6717
|
+
* Require non-empty specifier list in import and export statements.
|
|
6718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
|
|
6719
|
+
*/
|
|
6720
|
+
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
|
|
6474
6721
|
/**
|
|
6475
6722
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6723
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6477
6724
|
*/
|
|
6478
6725
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
6479
6726
|
/**
|
|
6480
6727
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
|
|
6482
6729
|
*/
|
|
6483
6730
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
6484
6731
|
/**
|
|
6485
6732
|
* Enforce better string content.
|
|
6486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
|
|
6487
6734
|
*/
|
|
6488
6735
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
6489
6736
|
/**
|
|
6490
6737
|
* Enforce consistent brace style for `case` clauses.
|
|
6491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
|
|
6492
6739
|
*/
|
|
6493
6740
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
6494
6741
|
/**
|
|
6495
6742
|
* Fix whitespace-insensitive template indentation.
|
|
6496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
|
|
6497
6744
|
*/
|
|
6498
6745
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
6499
6746
|
/**
|
|
6500
6747
|
* Enforce consistent case for text encoding identifiers.
|
|
6501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
|
|
6502
6749
|
*/
|
|
6503
6750
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
6504
6751
|
/**
|
|
6505
6752
|
* Require `new` when creating an error.
|
|
6506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
|
|
6507
6754
|
*/
|
|
6508
6755
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
6509
6756
|
/**
|
|
@@ -6695,6 +6942,7 @@ type AccessorPairs =
|
|
|
6695
6942
|
getWithoutSet?: boolean
|
|
6696
6943
|
setWithoutGet?: boolean
|
|
6697
6944
|
enforceForClassMembers?: boolean
|
|
6945
|
+
enforceForTSTypes?: boolean
|
|
6698
6946
|
},
|
|
6699
6947
|
]
|
|
6700
6948
|
// ----- array-bracket-newline -----
|
|
@@ -7518,7 +7766,15 @@ type GetterReturn =
|
|
|
7518
7766
|
},
|
|
7519
7767
|
]
|
|
7520
7768
|
// ----- grouped-accessor-pairs -----
|
|
7521
|
-
type GroupedAccessorPairs =
|
|
7769
|
+
type GroupedAccessorPairs =
|
|
7770
|
+
| []
|
|
7771
|
+
| ['anyOrder' | 'getBeforeSet' | 'setBeforeGet']
|
|
7772
|
+
| [
|
|
7773
|
+
'anyOrder' | 'getBeforeSet' | 'setBeforeGet',
|
|
7774
|
+
{
|
|
7775
|
+
enforceForTSTypes?: boolean
|
|
7776
|
+
},
|
|
7777
|
+
]
|
|
7522
7778
|
// ----- handle-callback-err -----
|
|
7523
7779
|
type HandleCallbackErr = [] | [string]
|
|
7524
7780
|
// ----- html/attrs-newline -----
|
|
@@ -7528,7 +7784,6 @@ type HtmlAttrsNewline =
|
|
|
7528
7784
|
{
|
|
7529
7785
|
closeStyle?: 'newline' | 'sameline'
|
|
7530
7786
|
ifAttrsMoreThan?: number
|
|
7531
|
-
[k: string]: unknown | undefined
|
|
7532
7787
|
},
|
|
7533
7788
|
]
|
|
7534
7789
|
// ----- html/element-newline -----
|
|
@@ -7538,7 +7793,6 @@ type HtmlElementNewline =
|
|
|
7538
7793
|
{
|
|
7539
7794
|
inline?: string[]
|
|
7540
7795
|
skip?: string[]
|
|
7541
|
-
[k: string]: unknown | undefined
|
|
7542
7796
|
},
|
|
7543
7797
|
]
|
|
7544
7798
|
// ----- html/id-naming-convention -----
|
|
@@ -7563,7 +7817,6 @@ type HtmlIndent =
|
|
|
7563
7817
|
tagChildrenIndent?: {
|
|
7564
7818
|
[k: string]: number
|
|
7565
7819
|
}
|
|
7566
|
-
[k: string]: unknown | undefined
|
|
7567
7820
|
},
|
|
7568
7821
|
]
|
|
7569
7822
|
// ----- html/max-element-depth -----
|
|
@@ -7583,7 +7836,6 @@ type HtmlNoExtraSpacingAttrs =
|
|
|
7583
7836
|
disallowMissing?: boolean
|
|
7584
7837
|
disallowTabs?: boolean
|
|
7585
7838
|
enforceBeforeSelfClose?: boolean
|
|
7586
|
-
[k: string]: unknown | undefined
|
|
7587
7839
|
},
|
|
7588
7840
|
]
|
|
7589
7841
|
// ----- html/no-extra-spacing-text -----
|
|
@@ -7607,22 +7859,29 @@ type HtmlNoRestrictedAttrValues = {
|
|
|
7607
7859
|
attrPatterns: string[]
|
|
7608
7860
|
attrValuePatterns: string[]
|
|
7609
7861
|
message?: string
|
|
7610
|
-
[k: string]: unknown | undefined
|
|
7611
7862
|
}[]
|
|
7612
7863
|
// ----- html/no-restricted-attrs -----
|
|
7613
7864
|
type HtmlNoRestrictedAttrs = {
|
|
7614
7865
|
tagPatterns: string[]
|
|
7615
7866
|
attrPatterns: string[]
|
|
7616
7867
|
message?: string
|
|
7617
|
-
[k: string]: unknown | undefined
|
|
7618
7868
|
}[]
|
|
7619
7869
|
// ----- html/quotes -----
|
|
7620
|
-
type HtmlQuotes =
|
|
7870
|
+
type HtmlQuotes =
|
|
7871
|
+
| []
|
|
7872
|
+
| ['single' | 'double']
|
|
7873
|
+
| [
|
|
7874
|
+
'single' | 'double',
|
|
7875
|
+
{
|
|
7876
|
+
enforceTemplatedAttrValue?: boolean
|
|
7877
|
+
},
|
|
7878
|
+
]
|
|
7621
7879
|
// ----- html/require-attrs -----
|
|
7622
7880
|
type HtmlRequireAttrs = {
|
|
7623
7881
|
tag: string
|
|
7624
7882
|
attr: string
|
|
7625
7883
|
value?: string
|
|
7884
|
+
message?: string
|
|
7626
7885
|
}[]
|
|
7627
7886
|
// ----- html/require-closing-tags -----
|
|
7628
7887
|
type HtmlRequireClosingTags =
|
|
@@ -7648,7 +7907,6 @@ type HtmlRequireImgAlt =
|
|
|
7648
7907
|
| [
|
|
7649
7908
|
{
|
|
7650
7909
|
substitute?: string[]
|
|
7651
|
-
[k: string]: unknown | undefined
|
|
7652
7910
|
},
|
|
7653
7911
|
]
|
|
7654
7912
|
// ----- html/require-open-graph-protocol -----
|
|
@@ -7658,8 +7916,12 @@ type HtmlSortAttrs =
|
|
|
7658
7916
|
| []
|
|
7659
7917
|
| [
|
|
7660
7918
|
{
|
|
7661
|
-
priority?:
|
|
7662
|
-
|
|
7919
|
+
priority?: (
|
|
7920
|
+
| string
|
|
7921
|
+
| {
|
|
7922
|
+
pattern: string
|
|
7923
|
+
}
|
|
7924
|
+
)[]
|
|
7663
7925
|
},
|
|
7664
7926
|
]
|
|
7665
7927
|
// ----- html/use-baseline -----
|
|
@@ -8101,6 +8363,14 @@ type ImportPreferDefaultExport =
|
|
|
8101
8363
|
target?: 'single' | 'any'
|
|
8102
8364
|
},
|
|
8103
8365
|
]
|
|
8366
|
+
// ----- import/prefer-namespace-import -----
|
|
8367
|
+
type ImportPreferNamespaceImport =
|
|
8368
|
+
| []
|
|
8369
|
+
| [
|
|
8370
|
+
{
|
|
8371
|
+
patterns?: string[]
|
|
8372
|
+
},
|
|
8373
|
+
]
|
|
8104
8374
|
// ----- indent -----
|
|
8105
8375
|
type Indent =
|
|
8106
8376
|
| []
|
|
@@ -8189,6 +8459,14 @@ type InitDeclarations =
|
|
|
8189
8459
|
ignoreForLoopInit?: boolean
|
|
8190
8460
|
},
|
|
8191
8461
|
]
|
|
8462
|
+
// ----- jsdoc/check-alignment -----
|
|
8463
|
+
type JsdocCheckAlignment =
|
|
8464
|
+
| []
|
|
8465
|
+
| [
|
|
8466
|
+
{
|
|
8467
|
+
innerIndent?: number
|
|
8468
|
+
},
|
|
8469
|
+
]
|
|
8192
8470
|
// ----- jsdoc/check-examples -----
|
|
8193
8471
|
type JsdocCheckExamples =
|
|
8194
8472
|
| []
|
|
@@ -8375,6 +8653,7 @@ type JsdocLinesBeforeBlock =
|
|
|
8375
8653
|
checkBlockStarts?: boolean
|
|
8376
8654
|
excludedTags?: string[]
|
|
8377
8655
|
ignoreSameLine?: boolean
|
|
8656
|
+
ignoreSingleLines?: boolean
|
|
8378
8657
|
lines?: number
|
|
8379
8658
|
},
|
|
8380
8659
|
]
|
|
@@ -8422,8 +8701,8 @@ type JsdocMatchName =
|
|
|
8422
8701
|
context?: string
|
|
8423
8702
|
disallowName?: string
|
|
8424
8703
|
message?: string
|
|
8704
|
+
replacement?: string
|
|
8425
8705
|
tags?: string[]
|
|
8426
|
-
[k: string]: unknown | undefined
|
|
8427
8706
|
}[]
|
|
8428
8707
|
},
|
|
8429
8708
|
]
|
|
@@ -8439,6 +8718,7 @@ type JsdocMultilineBlocks =
|
|
|
8439
8718
|
noMultilineBlocks?: boolean
|
|
8440
8719
|
noSingleLineBlocks?: boolean
|
|
8441
8720
|
noZeroLineText?: boolean
|
|
8721
|
+
requireSingleLineUnderCount?: number
|
|
8442
8722
|
singleLineTags?: string[]
|
|
8443
8723
|
},
|
|
8444
8724
|
]
|
|
@@ -8550,7 +8830,6 @@ type JsdocRequireAsteriskPrefix =
|
|
|
8550
8830
|
always?: string[]
|
|
8551
8831
|
any?: string[]
|
|
8552
8832
|
never?: string[]
|
|
8553
|
-
[k: string]: unknown | undefined
|
|
8554
8833
|
}
|
|
8555
8834
|
},
|
|
8556
8835
|
]
|
|
@@ -8650,6 +8929,7 @@ type JsdocRequireJsdoc =
|
|
|
8650
8929
|
enableFixer?: boolean
|
|
8651
8930
|
exemptEmptyConstructors?: boolean
|
|
8652
8931
|
exemptEmptyFunctions?: boolean
|
|
8932
|
+
exemptOverloadedImplementations?: boolean
|
|
8653
8933
|
fixerMessage?: string
|
|
8654
8934
|
minLineCount?: number
|
|
8655
8935
|
publicOnly?:
|
|
@@ -8668,6 +8948,7 @@ type JsdocRequireJsdoc =
|
|
|
8668
8948
|
FunctionExpression?: boolean
|
|
8669
8949
|
MethodDefinition?: boolean
|
|
8670
8950
|
}
|
|
8951
|
+
skipInterveningOverloadedDeclarations?: boolean
|
|
8671
8952
|
},
|
|
8672
8953
|
]
|
|
8673
8954
|
// ----- jsdoc/require-param -----
|
|
@@ -8817,6 +9098,7 @@ type JsdocRequireTemplate =
|
|
|
8817
9098
|
| []
|
|
8818
9099
|
| [
|
|
8819
9100
|
{
|
|
9101
|
+
exemptedBy?: string[]
|
|
8820
9102
|
requireSeparateTemplates?: boolean
|
|
8821
9103
|
},
|
|
8822
9104
|
]
|
|
@@ -8883,7 +9165,6 @@ type JsdocSortTags =
|
|
|
8883
9165
|
reportTagGroupSpacing?: boolean
|
|
8884
9166
|
tagSequence?: {
|
|
8885
9167
|
tags?: string[]
|
|
8886
|
-
[k: string]: unknown | undefined
|
|
8887
9168
|
}[]
|
|
8888
9169
|
},
|
|
8889
9170
|
]
|
|
@@ -8923,13 +9204,20 @@ type JsdocValidTypes =
|
|
|
8923
9204
|
allowEmptyNamepaths?: boolean
|
|
8924
9205
|
},
|
|
8925
9206
|
]
|
|
9207
|
+
// ----- json-package/no-empty-fields -----
|
|
9208
|
+
type JsonPackageNoEmptyFields =
|
|
9209
|
+
| []
|
|
9210
|
+
| [
|
|
9211
|
+
{
|
|
9212
|
+
ignoreProperties?: string[]
|
|
9213
|
+
},
|
|
9214
|
+
]
|
|
8926
9215
|
// ----- json-package/order-properties -----
|
|
8927
9216
|
type JsonPackageOrderProperties =
|
|
8928
9217
|
| []
|
|
8929
9218
|
| [
|
|
8930
9219
|
{
|
|
8931
9220
|
order?: ('legacy' | 'sort-package-json') | string[]
|
|
8932
|
-
[k: string]: unknown | undefined
|
|
8933
9221
|
},
|
|
8934
9222
|
]
|
|
8935
9223
|
// ----- json-package/repository-shorthand -----
|
|
@@ -8938,7 +9226,126 @@ type JsonPackageRepositoryShorthand =
|
|
|
8938
9226
|
| [
|
|
8939
9227
|
{
|
|
8940
9228
|
form?: 'object' | 'shorthand'
|
|
8941
|
-
|
|
9229
|
+
},
|
|
9230
|
+
]
|
|
9231
|
+
// ----- json-package/require-author -----
|
|
9232
|
+
type JsonPackageRequireAuthor =
|
|
9233
|
+
| []
|
|
9234
|
+
| [
|
|
9235
|
+
{
|
|
9236
|
+
ignorePrivate?: boolean
|
|
9237
|
+
},
|
|
9238
|
+
]
|
|
9239
|
+
// ----- json-package/require-bugs -----
|
|
9240
|
+
type JsonPackageRequireBugs =
|
|
9241
|
+
| []
|
|
9242
|
+
| [
|
|
9243
|
+
{
|
|
9244
|
+
ignorePrivate?: boolean
|
|
9245
|
+
},
|
|
9246
|
+
]
|
|
9247
|
+
// ----- json-package/require-bundleDependencies -----
|
|
9248
|
+
type JsonPackageRequireBundleDependencies =
|
|
9249
|
+
| []
|
|
9250
|
+
| [
|
|
9251
|
+
{
|
|
9252
|
+
ignorePrivate?: boolean
|
|
9253
|
+
},
|
|
9254
|
+
]
|
|
9255
|
+
// ----- json-package/require-dependencies -----
|
|
9256
|
+
type JsonPackageRequireDependencies =
|
|
9257
|
+
| []
|
|
9258
|
+
| [
|
|
9259
|
+
{
|
|
9260
|
+
ignorePrivate?: boolean
|
|
9261
|
+
},
|
|
9262
|
+
]
|
|
9263
|
+
// ----- json-package/require-description -----
|
|
9264
|
+
type JsonPackageRequireDescription =
|
|
9265
|
+
| []
|
|
9266
|
+
| [
|
|
9267
|
+
{
|
|
9268
|
+
ignorePrivate?: boolean
|
|
9269
|
+
},
|
|
9270
|
+
]
|
|
9271
|
+
// ----- json-package/require-devDependencies -----
|
|
9272
|
+
type JsonPackageRequireDevDependencies =
|
|
9273
|
+
| []
|
|
9274
|
+
| [
|
|
9275
|
+
{
|
|
9276
|
+
ignorePrivate?: boolean
|
|
9277
|
+
},
|
|
9278
|
+
]
|
|
9279
|
+
// ----- json-package/require-engines -----
|
|
9280
|
+
type JsonPackageRequireEngines =
|
|
9281
|
+
| []
|
|
9282
|
+
| [
|
|
9283
|
+
{
|
|
9284
|
+
ignorePrivate?: boolean
|
|
9285
|
+
},
|
|
9286
|
+
]
|
|
9287
|
+
// ----- json-package/require-files -----
|
|
9288
|
+
type JsonPackageRequireFiles =
|
|
9289
|
+
| []
|
|
9290
|
+
| [
|
|
9291
|
+
{
|
|
9292
|
+
ignorePrivate?: boolean
|
|
9293
|
+
},
|
|
9294
|
+
]
|
|
9295
|
+
// ----- json-package/require-keywords -----
|
|
9296
|
+
type JsonPackageRequireKeywords =
|
|
9297
|
+
| []
|
|
9298
|
+
| [
|
|
9299
|
+
{
|
|
9300
|
+
ignorePrivate?: boolean
|
|
9301
|
+
},
|
|
9302
|
+
]
|
|
9303
|
+
// ----- json-package/require-name -----
|
|
9304
|
+
type JsonPackageRequireName =
|
|
9305
|
+
| []
|
|
9306
|
+
| [
|
|
9307
|
+
{
|
|
9308
|
+
ignorePrivate?: boolean
|
|
9309
|
+
},
|
|
9310
|
+
]
|
|
9311
|
+
// ----- json-package/require-optionalDependencies -----
|
|
9312
|
+
type JsonPackageRequireOptionalDependencies =
|
|
9313
|
+
| []
|
|
9314
|
+
| [
|
|
9315
|
+
{
|
|
9316
|
+
ignorePrivate?: boolean
|
|
9317
|
+
},
|
|
9318
|
+
]
|
|
9319
|
+
// ----- json-package/require-peerDependencies -----
|
|
9320
|
+
type JsonPackageRequirePeerDependencies =
|
|
9321
|
+
| []
|
|
9322
|
+
| [
|
|
9323
|
+
{
|
|
9324
|
+
ignorePrivate?: boolean
|
|
9325
|
+
},
|
|
9326
|
+
]
|
|
9327
|
+
// ----- json-package/require-type -----
|
|
9328
|
+
type JsonPackageRequireType =
|
|
9329
|
+
| []
|
|
9330
|
+
| [
|
|
9331
|
+
{
|
|
9332
|
+
ignorePrivate?: boolean
|
|
9333
|
+
},
|
|
9334
|
+
]
|
|
9335
|
+
// ----- json-package/require-types -----
|
|
9336
|
+
type JsonPackageRequireTypes =
|
|
9337
|
+
| []
|
|
9338
|
+
| [
|
|
9339
|
+
{
|
|
9340
|
+
ignorePrivate?: boolean
|
|
9341
|
+
},
|
|
9342
|
+
]
|
|
9343
|
+
// ----- json-package/require-version -----
|
|
9344
|
+
type JsonPackageRequireVersion =
|
|
9345
|
+
| []
|
|
9346
|
+
| [
|
|
9347
|
+
{
|
|
9348
|
+
ignorePrivate?: boolean
|
|
8942
9349
|
},
|
|
8943
9350
|
]
|
|
8944
9351
|
// ----- json-package/restrict-dependency-ranges -----
|
|
@@ -8952,8 +9359,11 @@ type JsonPackageRestrictDependencyRanges =
|
|
|
8952
9359
|
| 'optionalDependencies'
|
|
8953
9360
|
| 'peerDependencies'
|
|
8954
9361
|
)[]
|
|
9362
|
+
|
|
8955
9363
|
forPackages?: string[]
|
|
9364
|
+
|
|
8956
9365
|
forVersions?: string
|
|
9366
|
+
|
|
8957
9367
|
rangeType: ('caret' | 'pin' | 'tilde') | ('caret' | 'pin' | 'tilde')[]
|
|
8958
9368
|
}
|
|
8959
9369
|
| {
|
|
@@ -8963,19 +9373,22 @@ type JsonPackageRestrictDependencyRanges =
|
|
|
8963
9373
|
| 'optionalDependencies'
|
|
8964
9374
|
| 'peerDependencies'
|
|
8965
9375
|
)[]
|
|
9376
|
+
|
|
8966
9377
|
forPackages?: string[]
|
|
9378
|
+
|
|
8967
9379
|
forVersions?: string
|
|
9380
|
+
|
|
8968
9381
|
rangeType: ('caret' | 'pin' | 'tilde') | ('caret' | 'pin' | 'tilde')[]
|
|
8969
9382
|
}[],
|
|
8970
9383
|
]
|
|
8971
9384
|
// ----- json-package/sort-collections -----
|
|
8972
9385
|
type JsonPackageSortCollections = [] | [string[]]
|
|
8973
|
-
// ----- json-package/valid-
|
|
8974
|
-
type
|
|
9386
|
+
// ----- json-package/valid-bin -----
|
|
9387
|
+
type JsonPackageValidBin =
|
|
8975
9388
|
| []
|
|
8976
9389
|
| [
|
|
8977
9390
|
{
|
|
8978
|
-
|
|
9391
|
+
enforceCase?: boolean
|
|
8979
9392
|
},
|
|
8980
9393
|
]
|
|
8981
9394
|
// ----- json-package/valid-package-definition -----
|
|
@@ -10528,6 +10941,7 @@ type NoDuplicateImports =
|
|
|
10528
10941
|
| [
|
|
10529
10942
|
{
|
|
10530
10943
|
includeExports?: boolean
|
|
10944
|
+
allowSeparateTypeImports?: boolean
|
|
10531
10945
|
},
|
|
10532
10946
|
]
|
|
10533
10947
|
// ----- no-else-return -----
|
|
@@ -10947,13 +11361,28 @@ type NoRestrictedExports =
|
|
|
10947
11361
|
},
|
|
10948
11362
|
]
|
|
10949
11363
|
// ----- no-restricted-globals -----
|
|
10950
|
-
type NoRestrictedGlobals =
|
|
10951
|
-
|
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
11364
|
+
type NoRestrictedGlobals =
|
|
11365
|
+
| (
|
|
11366
|
+
| string
|
|
11367
|
+
| {
|
|
11368
|
+
name: string
|
|
11369
|
+
message?: string
|
|
11370
|
+
}
|
|
11371
|
+
)[]
|
|
11372
|
+
| []
|
|
11373
|
+
| [
|
|
11374
|
+
{
|
|
11375
|
+
globals: (
|
|
11376
|
+
| string
|
|
11377
|
+
| {
|
|
11378
|
+
name: string
|
|
11379
|
+
message?: string
|
|
11380
|
+
}
|
|
11381
|
+
)[]
|
|
11382
|
+
checkGlobalObject?: boolean
|
|
11383
|
+
globalObjects?: string[]
|
|
11384
|
+
},
|
|
11385
|
+
]
|
|
10957
11386
|
// ----- no-restricted-imports -----
|
|
10958
11387
|
type NoRestrictedImports =
|
|
10959
11388
|
| (
|
|
@@ -11178,6 +11607,7 @@ type NoUnusedVars =
|
|
|
11178
11607
|
caughtErrorsIgnorePattern?: string
|
|
11179
11608
|
destructuredArrayIgnorePattern?: string
|
|
11180
11609
|
ignoreClassWithStaticInitBlock?: boolean
|
|
11610
|
+
ignoreUsingDeclarations?: boolean
|
|
11181
11611
|
reportUsedIgnorePattern?: boolean
|
|
11182
11612
|
},
|
|
11183
11613
|
]
|
|
@@ -14305,6 +14735,8 @@ type OneVar =
|
|
|
14305
14735
|
var?: 'always' | 'never' | 'consecutive'
|
|
14306
14736
|
let?: 'always' | 'never' | 'consecutive'
|
|
14307
14737
|
const?: 'always' | 'never' | 'consecutive'
|
|
14738
|
+
using?: 'always' | 'never' | 'consecutive'
|
|
14739
|
+
awaitUsing?: 'always' | 'never' | 'consecutive'
|
|
14308
14740
|
}
|
|
14309
14741
|
| {
|
|
14310
14742
|
initialized?: 'always' | 'never' | 'consecutive'
|
|
@@ -14505,7 +14937,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14505
14937
|
|
|
14506
14938
|
customGroups?: (
|
|
14507
14939
|
| {
|
|
14508
|
-
newlinesInside?: 'always' | 'never'
|
|
14940
|
+
newlinesInside?: ('always' | 'never') | number
|
|
14509
14941
|
|
|
14510
14942
|
fallbackSort?: {
|
|
14511
14943
|
order?: 'asc' | 'desc'
|
|
@@ -14541,7 +14973,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14541
14973
|
}[]
|
|
14542
14974
|
}
|
|
14543
14975
|
| {
|
|
14544
|
-
newlinesInside?: 'always' | 'never'
|
|
14976
|
+
newlinesInside?: ('always' | 'never') | number
|
|
14545
14977
|
|
|
14546
14978
|
fallbackSort?: {
|
|
14547
14979
|
order?: 'asc' | 'desc'
|
|
@@ -14662,14 +15094,13 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14662
15094
|
}
|
|
14663
15095
|
|
|
14664
15096
|
partitionByNewLine?: boolean
|
|
14665
|
-
|
|
14666
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15097
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
14667
15098
|
|
|
14668
15099
|
groups?: (
|
|
14669
15100
|
| string
|
|
14670
15101
|
| string[]
|
|
14671
15102
|
| {
|
|
14672
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15103
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
14673
15104
|
|
|
14674
15105
|
commentAbove?: string
|
|
14675
15106
|
}
|
|
@@ -14700,7 +15131,7 @@ type PerfectionistSortClasses =
|
|
|
14700
15131
|
|
|
14701
15132
|
customGroups?: (
|
|
14702
15133
|
| {
|
|
14703
|
-
newlinesInside?: 'always' | 'never'
|
|
15134
|
+
newlinesInside?: ('always' | 'never') | number
|
|
14704
15135
|
|
|
14705
15136
|
fallbackSort?: {
|
|
14706
15137
|
order?: 'asc' | 'desc'
|
|
@@ -14795,7 +15226,7 @@ type PerfectionistSortClasses =
|
|
|
14795
15226
|
}[]
|
|
14796
15227
|
}
|
|
14797
15228
|
| {
|
|
14798
|
-
newlinesInside?: 'always' | 'never'
|
|
15229
|
+
newlinesInside?: ('always' | 'never') | number
|
|
14799
15230
|
|
|
14800
15231
|
fallbackSort?: {
|
|
14801
15232
|
order?: 'asc' | 'desc'
|
|
@@ -14973,14 +15404,13 @@ type PerfectionistSortClasses =
|
|
|
14973
15404
|
}
|
|
14974
15405
|
|
|
14975
15406
|
partitionByNewLine?: boolean
|
|
14976
|
-
|
|
14977
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15407
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
14978
15408
|
|
|
14979
15409
|
groups?: (
|
|
14980
15410
|
| string
|
|
14981
15411
|
| string[]
|
|
14982
15412
|
| {
|
|
14983
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15413
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
14984
15414
|
|
|
14985
15415
|
commentAbove?: string
|
|
14986
15416
|
}
|
|
@@ -15092,7 +15522,7 @@ type PerfectionistSortDecorators =
|
|
|
15092
15522
|
| string
|
|
15093
15523
|
| string[]
|
|
15094
15524
|
| {
|
|
15095
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15525
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15096
15526
|
|
|
15097
15527
|
commentAbove?: string
|
|
15098
15528
|
}
|
|
@@ -15127,7 +15557,7 @@ type PerfectionistSortEnums =
|
|
|
15127
15557
|
}
|
|
15128
15558
|
| (
|
|
15129
15559
|
| {
|
|
15130
|
-
newlinesInside?: 'always' | 'never'
|
|
15560
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15131
15561
|
|
|
15132
15562
|
fallbackSort?: {
|
|
15133
15563
|
order?: 'asc' | 'desc'
|
|
@@ -15179,7 +15609,7 @@ type PerfectionistSortEnums =
|
|
|
15179
15609
|
}[]
|
|
15180
15610
|
}
|
|
15181
15611
|
| {
|
|
15182
|
-
newlinesInside?: 'always' | 'never'
|
|
15612
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15183
15613
|
|
|
15184
15614
|
fallbackSort?: {
|
|
15185
15615
|
order?: 'asc' | 'desc'
|
|
@@ -15300,14 +15730,13 @@ type PerfectionistSortEnums =
|
|
|
15300
15730
|
}
|
|
15301
15731
|
|
|
15302
15732
|
partitionByNewLine?: boolean
|
|
15303
|
-
|
|
15304
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15733
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15305
15734
|
|
|
15306
15735
|
groups?: (
|
|
15307
15736
|
| string
|
|
15308
15737
|
| string[]
|
|
15309
15738
|
| {
|
|
15310
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15739
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15311
15740
|
|
|
15312
15741
|
commentAbove?: string
|
|
15313
15742
|
}
|
|
@@ -15338,7 +15767,7 @@ type PerfectionistSortExports = {
|
|
|
15338
15767
|
|
|
15339
15768
|
customGroups?: (
|
|
15340
15769
|
| {
|
|
15341
|
-
newlinesInside?: 'always' | 'never'
|
|
15770
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15342
15771
|
|
|
15343
15772
|
fallbackSort?: {
|
|
15344
15773
|
order?: 'asc' | 'desc'
|
|
@@ -15376,7 +15805,7 @@ type PerfectionistSortExports = {
|
|
|
15376
15805
|
}[]
|
|
15377
15806
|
}
|
|
15378
15807
|
| {
|
|
15379
|
-
newlinesInside?: 'always' | 'never'
|
|
15808
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15380
15809
|
|
|
15381
15810
|
fallbackSort?: {
|
|
15382
15811
|
order?: 'asc' | 'desc'
|
|
@@ -15479,14 +15908,13 @@ type PerfectionistSortExports = {
|
|
|
15479
15908
|
}
|
|
15480
15909
|
|
|
15481
15910
|
partitionByNewLine?: boolean
|
|
15482
|
-
|
|
15483
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15911
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15484
15912
|
|
|
15485
15913
|
groups?: (
|
|
15486
15914
|
| string
|
|
15487
15915
|
| string[]
|
|
15488
15916
|
| {
|
|
15489
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15917
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15490
15918
|
|
|
15491
15919
|
commentAbove?: string
|
|
15492
15920
|
}
|
|
@@ -15523,7 +15951,7 @@ type PerfectionistSortHeritageClauses =
|
|
|
15523
15951
|
| string
|
|
15524
15952
|
| string[]
|
|
15525
15953
|
| {
|
|
15526
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
15954
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15527
15955
|
|
|
15528
15956
|
commentAbove?: string
|
|
15529
15957
|
}
|
|
@@ -15561,7 +15989,7 @@ type PerfectionistSortImports = {
|
|
|
15561
15989
|
}
|
|
15562
15990
|
| (
|
|
15563
15991
|
| {
|
|
15564
|
-
newlinesInside?: 'always' | 'never'
|
|
15992
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15565
15993
|
|
|
15566
15994
|
fallbackSort?: {
|
|
15567
15995
|
order?: 'asc' | 'desc'
|
|
@@ -15639,7 +16067,7 @@ type PerfectionistSortImports = {
|
|
|
15639
16067
|
}[]
|
|
15640
16068
|
}
|
|
15641
16069
|
| {
|
|
15642
|
-
newlinesInside?: 'always' | 'never'
|
|
16070
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15643
16071
|
|
|
15644
16072
|
fallbackSort?: {
|
|
15645
16073
|
order?: 'asc' | 'desc'
|
|
@@ -15795,8 +16223,7 @@ type PerfectionistSortImports = {
|
|
|
15795
16223
|
}
|
|
15796
16224
|
|
|
15797
16225
|
partitionByNewLine?: boolean
|
|
15798
|
-
|
|
15799
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16226
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15800
16227
|
|
|
15801
16228
|
internalPattern?:
|
|
15802
16229
|
| (
|
|
@@ -15820,7 +16247,7 @@ type PerfectionistSortImports = {
|
|
|
15820
16247
|
| string
|
|
15821
16248
|
| string[]
|
|
15822
16249
|
| {
|
|
15823
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16250
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
15824
16251
|
|
|
15825
16252
|
commentAbove?: string
|
|
15826
16253
|
}
|
|
@@ -15852,7 +16279,7 @@ type PerfectionistSortInterfaces = {
|
|
|
15852
16279
|
}
|
|
15853
16280
|
| (
|
|
15854
16281
|
| {
|
|
15855
|
-
newlinesInside?: 'always' | 'never'
|
|
16282
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15856
16283
|
|
|
15857
16284
|
fallbackSort?: {
|
|
15858
16285
|
order?: 'asc' | 'desc'
|
|
@@ -15910,7 +16337,7 @@ type PerfectionistSortInterfaces = {
|
|
|
15910
16337
|
}[]
|
|
15911
16338
|
}
|
|
15912
16339
|
| {
|
|
15913
|
-
newlinesInside?: 'always' | 'never'
|
|
16340
|
+
newlinesInside?: ('always' | 'never') | number
|
|
15914
16341
|
|
|
15915
16342
|
fallbackSort?: {
|
|
15916
16343
|
order?: 'asc' | 'desc'
|
|
@@ -16073,8 +16500,7 @@ type PerfectionistSortInterfaces = {
|
|
|
16073
16500
|
}
|
|
16074
16501
|
|
|
16075
16502
|
partitionByNewLine?: boolean
|
|
16076
|
-
|
|
16077
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16503
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16078
16504
|
|
|
16079
16505
|
ignorePattern?:
|
|
16080
16506
|
| (
|
|
@@ -16099,7 +16525,7 @@ type PerfectionistSortInterfaces = {
|
|
|
16099
16525
|
| string
|
|
16100
16526
|
| string[]
|
|
16101
16527
|
| {
|
|
16102
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16528
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16103
16529
|
|
|
16104
16530
|
commentAbove?: string
|
|
16105
16531
|
}
|
|
@@ -16127,7 +16553,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
16127
16553
|
|
|
16128
16554
|
customGroups?: (
|
|
16129
16555
|
| {
|
|
16130
|
-
newlinesInside?: 'always' | 'never'
|
|
16556
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16131
16557
|
|
|
16132
16558
|
fallbackSort?: {
|
|
16133
16559
|
order?: 'asc' | 'desc'
|
|
@@ -16175,7 +16601,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
16175
16601
|
}[]
|
|
16176
16602
|
}
|
|
16177
16603
|
| {
|
|
16178
|
-
newlinesInside?: 'always' | 'never'
|
|
16604
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16179
16605
|
|
|
16180
16606
|
fallbackSort?: {
|
|
16181
16607
|
order?: 'asc' | 'desc'
|
|
@@ -16288,14 +16714,13 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
16288
16714
|
}
|
|
16289
16715
|
|
|
16290
16716
|
partitionByNewLine?: boolean
|
|
16291
|
-
|
|
16292
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16717
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16293
16718
|
|
|
16294
16719
|
groups?: (
|
|
16295
16720
|
| string
|
|
16296
16721
|
| string[]
|
|
16297
16722
|
| {
|
|
16298
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16723
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16299
16724
|
|
|
16300
16725
|
commentAbove?: string
|
|
16301
16726
|
}
|
|
@@ -16326,7 +16751,7 @@ type PerfectionistSortJsxProps = {
|
|
|
16326
16751
|
}
|
|
16327
16752
|
| (
|
|
16328
16753
|
| {
|
|
16329
|
-
newlinesInside?: 'always' | 'never'
|
|
16754
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16330
16755
|
|
|
16331
16756
|
fallbackSort?: {
|
|
16332
16757
|
order?: 'asc' | 'desc'
|
|
@@ -16382,7 +16807,7 @@ type PerfectionistSortJsxProps = {
|
|
|
16382
16807
|
}[]
|
|
16383
16808
|
}
|
|
16384
16809
|
| {
|
|
16385
|
-
newlinesInside?: 'always' | 'never'
|
|
16810
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16386
16811
|
|
|
16387
16812
|
fallbackSort?: {
|
|
16388
16813
|
order?: 'asc' | 'desc'
|
|
@@ -16477,8 +16902,7 @@ type PerfectionistSortJsxProps = {
|
|
|
16477
16902
|
}
|
|
16478
16903
|
|
|
16479
16904
|
partitionByNewLine?: boolean
|
|
16480
|
-
|
|
16481
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16905
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16482
16906
|
|
|
16483
16907
|
ignorePattern?:
|
|
16484
16908
|
| (
|
|
@@ -16502,7 +16926,7 @@ type PerfectionistSortJsxProps = {
|
|
|
16502
16926
|
| string
|
|
16503
16927
|
| string[]
|
|
16504
16928
|
| {
|
|
16505
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
16929
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16506
16930
|
|
|
16507
16931
|
commentAbove?: string
|
|
16508
16932
|
}
|
|
@@ -16530,7 +16954,7 @@ type PerfectionistSortMaps = {
|
|
|
16530
16954
|
|
|
16531
16955
|
customGroups?: (
|
|
16532
16956
|
| {
|
|
16533
|
-
newlinesInside?: 'always' | 'never'
|
|
16957
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16534
16958
|
|
|
16535
16959
|
fallbackSort?: {
|
|
16536
16960
|
order?: 'asc' | 'desc'
|
|
@@ -16564,7 +16988,7 @@ type PerfectionistSortMaps = {
|
|
|
16564
16988
|
}[]
|
|
16565
16989
|
}
|
|
16566
16990
|
| {
|
|
16567
|
-
newlinesInside?: 'always' | 'never'
|
|
16991
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16568
16992
|
|
|
16569
16993
|
fallbackSort?: {
|
|
16570
16994
|
order?: 'asc' | 'desc'
|
|
@@ -16683,14 +17107,13 @@ type PerfectionistSortMaps = {
|
|
|
16683
17107
|
}
|
|
16684
17108
|
|
|
16685
17109
|
partitionByNewLine?: boolean
|
|
16686
|
-
|
|
16687
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17110
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16688
17111
|
|
|
16689
17112
|
groups?: (
|
|
16690
17113
|
| string
|
|
16691
17114
|
| string[]
|
|
16692
17115
|
| {
|
|
16693
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17116
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16694
17117
|
|
|
16695
17118
|
commentAbove?: string
|
|
16696
17119
|
}
|
|
@@ -16721,7 +17144,7 @@ type PerfectionistSortModules =
|
|
|
16721
17144
|
|
|
16722
17145
|
customGroups?: (
|
|
16723
17146
|
| {
|
|
16724
|
-
newlinesInside?: 'always' | 'never'
|
|
17147
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16725
17148
|
|
|
16726
17149
|
fallbackSort?: {
|
|
16727
17150
|
order?: 'asc' | 'desc'
|
|
@@ -16777,7 +17200,7 @@ type PerfectionistSortModules =
|
|
|
16777
17200
|
}[]
|
|
16778
17201
|
}
|
|
16779
17202
|
| {
|
|
16780
|
-
newlinesInside?: 'always' | 'never'
|
|
17203
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16781
17204
|
|
|
16782
17205
|
fallbackSort?: {
|
|
16783
17206
|
order?: 'asc' | 'desc'
|
|
@@ -16898,14 +17321,13 @@ type PerfectionistSortModules =
|
|
|
16898
17321
|
}
|
|
16899
17322
|
|
|
16900
17323
|
partitionByNewLine?: boolean
|
|
16901
|
-
|
|
16902
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17324
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16903
17325
|
|
|
16904
17326
|
groups?: (
|
|
16905
17327
|
| string
|
|
16906
17328
|
| string[]
|
|
16907
17329
|
| {
|
|
16908
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17330
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
16909
17331
|
|
|
16910
17332
|
commentAbove?: string
|
|
16911
17333
|
}
|
|
@@ -16938,7 +17360,7 @@ type PerfectionistSortNamedExports = {
|
|
|
16938
17360
|
|
|
16939
17361
|
customGroups?: (
|
|
16940
17362
|
| {
|
|
16941
|
-
newlinesInside?: 'always' | 'never'
|
|
17363
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16942
17364
|
|
|
16943
17365
|
fallbackSort?: {
|
|
16944
17366
|
order?: 'asc' | 'desc'
|
|
@@ -16976,7 +17398,7 @@ type PerfectionistSortNamedExports = {
|
|
|
16976
17398
|
}[]
|
|
16977
17399
|
}
|
|
16978
17400
|
| {
|
|
16979
|
-
newlinesInside?: 'always' | 'never'
|
|
17401
|
+
newlinesInside?: ('always' | 'never') | number
|
|
16980
17402
|
|
|
16981
17403
|
fallbackSort?: {
|
|
16982
17404
|
order?: 'asc' | 'desc'
|
|
@@ -17079,14 +17501,13 @@ type PerfectionistSortNamedExports = {
|
|
|
17079
17501
|
}
|
|
17080
17502
|
|
|
17081
17503
|
partitionByNewLine?: boolean
|
|
17082
|
-
|
|
17083
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17504
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17084
17505
|
|
|
17085
17506
|
groups?: (
|
|
17086
17507
|
| string
|
|
17087
17508
|
| string[]
|
|
17088
17509
|
| {
|
|
17089
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17510
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17090
17511
|
|
|
17091
17512
|
commentAbove?: string
|
|
17092
17513
|
}
|
|
@@ -17118,7 +17539,7 @@ type PerfectionistSortNamedImports = {
|
|
|
17118
17539
|
|
|
17119
17540
|
customGroups?: (
|
|
17120
17541
|
| {
|
|
17121
|
-
newlinesInside?: 'always' | 'never'
|
|
17542
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17122
17543
|
|
|
17123
17544
|
fallbackSort?: {
|
|
17124
17545
|
order?: 'asc' | 'desc'
|
|
@@ -17156,7 +17577,7 @@ type PerfectionistSortNamedImports = {
|
|
|
17156
17577
|
}[]
|
|
17157
17578
|
}
|
|
17158
17579
|
| {
|
|
17159
|
-
newlinesInside?: 'always' | 'never'
|
|
17580
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17160
17581
|
|
|
17161
17582
|
fallbackSort?: {
|
|
17162
17583
|
order?: 'asc' | 'desc'
|
|
@@ -17259,14 +17680,13 @@ type PerfectionistSortNamedImports = {
|
|
|
17259
17680
|
}
|
|
17260
17681
|
|
|
17261
17682
|
partitionByNewLine?: boolean
|
|
17262
|
-
|
|
17263
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17683
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17264
17684
|
|
|
17265
17685
|
groups?: (
|
|
17266
17686
|
| string
|
|
17267
17687
|
| string[]
|
|
17268
17688
|
| {
|
|
17269
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17689
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17270
17690
|
|
|
17271
17691
|
commentAbove?: string
|
|
17272
17692
|
}
|
|
@@ -17298,7 +17718,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
17298
17718
|
}
|
|
17299
17719
|
| (
|
|
17300
17720
|
| {
|
|
17301
|
-
newlinesInside?: 'always' | 'never'
|
|
17721
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17302
17722
|
|
|
17303
17723
|
fallbackSort?: {
|
|
17304
17724
|
order?: 'asc' | 'desc'
|
|
@@ -17356,7 +17776,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
17356
17776
|
}[]
|
|
17357
17777
|
}
|
|
17358
17778
|
| {
|
|
17359
|
-
newlinesInside?: 'always' | 'never'
|
|
17779
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17360
17780
|
|
|
17361
17781
|
fallbackSort?: {
|
|
17362
17782
|
order?: 'asc' | 'desc'
|
|
@@ -17519,8 +17939,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
17519
17939
|
}
|
|
17520
17940
|
|
|
17521
17941
|
partitionByNewLine?: boolean
|
|
17522
|
-
|
|
17523
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17942
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17524
17943
|
|
|
17525
17944
|
ignorePattern?:
|
|
17526
17945
|
| (
|
|
@@ -17545,7 +17964,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
17545
17964
|
| string
|
|
17546
17965
|
| string[]
|
|
17547
17966
|
| {
|
|
17548
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
17967
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17549
17968
|
|
|
17550
17969
|
commentAbove?: string
|
|
17551
17970
|
}
|
|
@@ -17582,7 +18001,7 @@ type PerfectionistSortObjects = {
|
|
|
17582
18001
|
}
|
|
17583
18002
|
| (
|
|
17584
18003
|
| {
|
|
17585
|
-
newlinesInside?: 'always' | 'never'
|
|
18004
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17586
18005
|
|
|
17587
18006
|
fallbackSort?: {
|
|
17588
18007
|
order?: 'asc' | 'desc'
|
|
@@ -17638,7 +18057,7 @@ type PerfectionistSortObjects = {
|
|
|
17638
18057
|
}[]
|
|
17639
18058
|
}
|
|
17640
18059
|
| {
|
|
17641
|
-
newlinesInside?: 'always' | 'never'
|
|
18060
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17642
18061
|
|
|
17643
18062
|
fallbackSort?: {
|
|
17644
18063
|
order?: 'asc' | 'desc'
|
|
@@ -17803,8 +18222,7 @@ type PerfectionistSortObjects = {
|
|
|
17803
18222
|
}
|
|
17804
18223
|
|
|
17805
18224
|
partitionByNewLine?: boolean
|
|
17806
|
-
|
|
17807
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18225
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17808
18226
|
|
|
17809
18227
|
ignorePattern?:
|
|
17810
18228
|
| (
|
|
@@ -17828,7 +18246,7 @@ type PerfectionistSortObjects = {
|
|
|
17828
18246
|
| string
|
|
17829
18247
|
| string[]
|
|
17830
18248
|
| {
|
|
17831
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18249
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
17832
18250
|
|
|
17833
18251
|
commentAbove?: string
|
|
17834
18252
|
}
|
|
@@ -17858,7 +18276,7 @@ type PerfectionistSortSets = {
|
|
|
17858
18276
|
|
|
17859
18277
|
customGroups?: (
|
|
17860
18278
|
| {
|
|
17861
|
-
newlinesInside?: 'always' | 'never'
|
|
18279
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17862
18280
|
|
|
17863
18281
|
fallbackSort?: {
|
|
17864
18282
|
order?: 'asc' | 'desc'
|
|
@@ -17894,7 +18312,7 @@ type PerfectionistSortSets = {
|
|
|
17894
18312
|
}[]
|
|
17895
18313
|
}
|
|
17896
18314
|
| {
|
|
17897
|
-
newlinesInside?: 'always' | 'never'
|
|
18315
|
+
newlinesInside?: ('always' | 'never') | number
|
|
17898
18316
|
|
|
17899
18317
|
fallbackSort?: {
|
|
17900
18318
|
order?: 'asc' | 'desc'
|
|
@@ -18015,14 +18433,13 @@ type PerfectionistSortSets = {
|
|
|
18015
18433
|
}
|
|
18016
18434
|
|
|
18017
18435
|
partitionByNewLine?: boolean
|
|
18018
|
-
|
|
18019
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18436
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
18020
18437
|
|
|
18021
18438
|
groups?: (
|
|
18022
18439
|
| string
|
|
18023
18440
|
| string[]
|
|
18024
18441
|
| {
|
|
18025
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18442
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
18026
18443
|
|
|
18027
18444
|
commentAbove?: string
|
|
18028
18445
|
}
|
|
@@ -18074,7 +18491,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
18074
18491
|
|
|
18075
18492
|
customGroups?: (
|
|
18076
18493
|
| {
|
|
18077
|
-
newlinesInside?: 'always' | 'never'
|
|
18494
|
+
newlinesInside?: ('always' | 'never') | number
|
|
18078
18495
|
|
|
18079
18496
|
fallbackSort?: {
|
|
18080
18497
|
order?: 'asc' | 'desc'
|
|
@@ -18122,7 +18539,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
18122
18539
|
}[]
|
|
18123
18540
|
}
|
|
18124
18541
|
| {
|
|
18125
|
-
newlinesInside?: 'always' | 'never'
|
|
18542
|
+
newlinesInside?: ('always' | 'never') | number
|
|
18126
18543
|
|
|
18127
18544
|
fallbackSort?: {
|
|
18128
18545
|
order?: 'asc' | 'desc'
|
|
@@ -18235,14 +18652,13 @@ type PerfectionistSortUnionTypes = {
|
|
|
18235
18652
|
}
|
|
18236
18653
|
|
|
18237
18654
|
partitionByNewLine?: boolean
|
|
18238
|
-
|
|
18239
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18655
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
18240
18656
|
|
|
18241
18657
|
groups?: (
|
|
18242
18658
|
| string
|
|
18243
18659
|
| string[]
|
|
18244
18660
|
| {
|
|
18245
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18661
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
18246
18662
|
|
|
18247
18663
|
commentAbove?: string
|
|
18248
18664
|
}
|
|
@@ -18273,7 +18689,7 @@ type PerfectionistSortVariableDeclarations =
|
|
|
18273
18689
|
|
|
18274
18690
|
customGroups?: (
|
|
18275
18691
|
| {
|
|
18276
|
-
newlinesInside?: 'always' | 'never'
|
|
18692
|
+
newlinesInside?: ('always' | 'never') | number
|
|
18277
18693
|
|
|
18278
18694
|
fallbackSort?: {
|
|
18279
18695
|
order?: 'asc' | 'desc'
|
|
@@ -18309,7 +18725,7 @@ type PerfectionistSortVariableDeclarations =
|
|
|
18309
18725
|
}[]
|
|
18310
18726
|
}
|
|
18311
18727
|
| {
|
|
18312
|
-
newlinesInside?: 'always' | 'never'
|
|
18728
|
+
newlinesInside?: ('always' | 'never') | number
|
|
18313
18729
|
|
|
18314
18730
|
fallbackSort?: {
|
|
18315
18731
|
order?: 'asc' | 'desc'
|
|
@@ -18410,14 +18826,13 @@ type PerfectionistSortVariableDeclarations =
|
|
|
18410
18826
|
}
|
|
18411
18827
|
|
|
18412
18828
|
partitionByNewLine?: boolean
|
|
18413
|
-
|
|
18414
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18829
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
18415
18830
|
|
|
18416
18831
|
groups?: (
|
|
18417
18832
|
| string
|
|
18418
18833
|
| string[]
|
|
18419
18834
|
| {
|
|
18420
|
-
newlinesBetween?: 'ignore' | 'always' | 'never'
|
|
18835
|
+
newlinesBetween?: ('ignore' | 'always' | 'never') | number
|
|
18421
18836
|
|
|
18422
18837
|
commentAbove?: string
|
|
18423
18838
|
}
|
|
@@ -18517,6 +18932,14 @@ type PreferRegexLiterals =
|
|
|
18517
18932
|
disallowRedundantWrapping?: boolean
|
|
18518
18933
|
},
|
|
18519
18934
|
]
|
|
18935
|
+
// ----- preserve-caught-error -----
|
|
18936
|
+
type PreserveCaughtError =
|
|
18937
|
+
| []
|
|
18938
|
+
| [
|
|
18939
|
+
{
|
|
18940
|
+
requireCatchParameter?: boolean
|
|
18941
|
+
},
|
|
18942
|
+
]
|
|
18520
18943
|
// ----- quote-props -----
|
|
18521
18944
|
type QuoteProps =
|
|
18522
18945
|
| []
|
|
@@ -18563,8 +18986,6 @@ type ReactNamingConventionComponentName =
|
|
|
18563
18986
|
| ('PascalCase' | 'CONSTANT_CASE')
|
|
18564
18987
|
| {
|
|
18565
18988
|
allowAllCaps?: boolean
|
|
18566
|
-
allowLeadingUnderscore?: boolean
|
|
18567
|
-
allowNamespace?: boolean
|
|
18568
18989
|
excepts?: string[]
|
|
18569
18990
|
rule?: 'PascalCase' | 'CONSTANT_CASE'
|
|
18570
18991
|
},
|
|
@@ -19192,6 +19613,17 @@ type SvelteNoNavigationWithoutBase =
|
|
|
19192
19613
|
ignoreReplaceState?: boolean
|
|
19193
19614
|
},
|
|
19194
19615
|
]
|
|
19616
|
+
// ----- svelte/no-navigation-without-resolve -----
|
|
19617
|
+
type SvelteNoNavigationWithoutResolve =
|
|
19618
|
+
| []
|
|
19619
|
+
| [
|
|
19620
|
+
{
|
|
19621
|
+
ignoreGoto?: boolean
|
|
19622
|
+
ignoreLinks?: boolean
|
|
19623
|
+
ignorePushState?: boolean
|
|
19624
|
+
ignoreReplaceState?: boolean
|
|
19625
|
+
},
|
|
19626
|
+
]
|
|
19195
19627
|
// ----- svelte/no-reactive-reassign -----
|
|
19196
19628
|
type SvelteNoReactiveReassign =
|
|
19197
19629
|
| []
|
|
@@ -19381,6 +19813,14 @@ type TestConsistentTestIt =
|
|
|
19381
19813
|
withinDescribe?: 'test' | 'it'
|
|
19382
19814
|
},
|
|
19383
19815
|
]
|
|
19816
|
+
// ----- test/consistent-vitest-vi -----
|
|
19817
|
+
type TestConsistentVitestVi =
|
|
19818
|
+
| []
|
|
19819
|
+
| [
|
|
19820
|
+
{
|
|
19821
|
+
fn?: 'vi' | 'vitest'
|
|
19822
|
+
},
|
|
19823
|
+
]
|
|
19384
19824
|
// ----- test/expect-expect -----
|
|
19385
19825
|
type TestExpectExpect =
|
|
19386
19826
|
| []
|
|
@@ -22466,6 +22906,8 @@ type TsNoBaseToString =
|
|
|
22466
22906
|
| []
|
|
22467
22907
|
| [
|
|
22468
22908
|
{
|
|
22909
|
+
checkUnknown?: boolean
|
|
22910
|
+
|
|
22469
22911
|
ignoredTypeNames?: string[]
|
|
22470
22912
|
},
|
|
22471
22913
|
]
|
|
@@ -23094,7 +23536,6 @@ type TsPreferDestructuring =
|
|
|
23094
23536
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
23095
23537
|
|
|
23096
23538
|
enforceForRenamedProperties?: boolean
|
|
23097
|
-
[k: string]: unknown | undefined
|
|
23098
23539
|
},
|
|
23099
23540
|
]
|
|
23100
23541
|
// ----- ts/prefer-literal-enum-member -----
|
|
@@ -23129,7 +23570,6 @@ type TsPreferNullishCoalescing =
|
|
|
23129
23570
|
number?: boolean
|
|
23130
23571
|
|
|
23131
23572
|
string?: boolean
|
|
23132
|
-
[k: string]: unknown | undefined
|
|
23133
23573
|
}
|
|
23134
23574
|
| true
|
|
23135
23575
|
|
|
@@ -23516,6 +23956,22 @@ type UnicornNoArrayReduce =
|
|
|
23516
23956
|
allowSimpleOperations?: boolean
|
|
23517
23957
|
},
|
|
23518
23958
|
]
|
|
23959
|
+
// ----- unicorn/no-array-reverse -----
|
|
23960
|
+
type UnicornNoArrayReverse =
|
|
23961
|
+
| []
|
|
23962
|
+
| [
|
|
23963
|
+
{
|
|
23964
|
+
allowExpressionStatement?: boolean
|
|
23965
|
+
},
|
|
23966
|
+
]
|
|
23967
|
+
// ----- unicorn/no-array-sort -----
|
|
23968
|
+
type UnicornNoArraySort =
|
|
23969
|
+
| []
|
|
23970
|
+
| [
|
|
23971
|
+
{
|
|
23972
|
+
allowExpressionStatement?: boolean
|
|
23973
|
+
},
|
|
23974
|
+
]
|
|
23519
23975
|
// ----- unicorn/no-instanceof-builtins -----
|
|
23520
23976
|
type UnicornNoInstanceofBuiltins =
|
|
23521
23977
|
| []
|