@kirklin/eslint-config 2.3.3 → 2.5.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/README.md +12 -6
- package/README.zh-cn.md +12 -6
- package/dist/cli.cjs +63 -52
- package/dist/cli.js +63 -52
- package/dist/index.cjs +184 -71
- package/dist/index.d.cts +904 -225
- package/dist/index.d.ts +904 -225
- package/dist/index.js +180 -71
- package/package.json +55 -46
package/dist/index.d.cts
CHANGED
|
@@ -44,7 +44,7 @@ interface VendoredPrettierOptionsRequired {
|
|
|
44
44
|
*/
|
|
45
45
|
bracketSpacing: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* Put the `>` of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being
|
|
47
|
+
* Put the `>` of a multi-line HTML (HTML, XML, JSX, Vue, Angular) element at the end of the last line instead of being
|
|
48
48
|
* alone on the next line (does not apply to self closing elements).
|
|
49
49
|
*/
|
|
50
50
|
bracketSameLine: boolean;
|
|
@@ -98,10 +98,30 @@ interface VendoredPrettierOptionsRequired {
|
|
|
98
98
|
*/
|
|
99
99
|
vueIndentScriptAndStyle: boolean;
|
|
100
100
|
/**
|
|
101
|
-
* Enforce single attribute per line in HTML, Vue and JSX.
|
|
101
|
+
* Enforce single attribute per line in HTML, XML, Vue and JSX.
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
104
|
singleAttributePerLine: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* How to handle whitespaces in XML.
|
|
107
|
+
* @default "preserve"
|
|
108
|
+
*/
|
|
109
|
+
xmlQuoteAttributes: "single" | "double" | "preserve";
|
|
110
|
+
/**
|
|
111
|
+
* Whether to put a space inside the brackets of self-closing XML elements.
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
xmlSelfClosingSpace: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Whether to sort attributes by key in XML elements.
|
|
117
|
+
* @default false
|
|
118
|
+
*/
|
|
119
|
+
xmlSortAttributesByKey: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* How to handle whitespaces in XML.
|
|
122
|
+
* @default "ignore"
|
|
123
|
+
*/
|
|
124
|
+
xmlWhitespaceSensitivity: "ignore" | "strict" | "preserve";
|
|
105
125
|
}
|
|
106
126
|
|
|
107
127
|
/* eslint-disable */
|
|
@@ -613,7 +633,7 @@ interface RuleOptions {
|
|
|
613
633
|
*/
|
|
614
634
|
'func-names'?: Linter.RuleEntry<FuncNames>
|
|
615
635
|
/**
|
|
616
|
-
* Enforce the consistent use of either `function` declarations or expressions
|
|
636
|
+
* Enforce the consistent use of either `function` declarations or expressions assigned to variables
|
|
617
637
|
* @see https://eslint.org/docs/latest/rules/func-style
|
|
618
638
|
*/
|
|
619
639
|
'func-style'?: Linter.RuleEntry<FuncStyle>
|
|
@@ -691,42 +711,42 @@ interface RuleOptions {
|
|
|
691
711
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
692
712
|
/**
|
|
693
713
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
694
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
714
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/consistent-type-specifier-style.md
|
|
695
715
|
*/
|
|
696
716
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
697
717
|
/**
|
|
698
718
|
* Ensure a default export is present, given a default import.
|
|
699
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
719
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/default.md
|
|
700
720
|
*/
|
|
701
721
|
'import/default'?: Linter.RuleEntry<[]>
|
|
702
722
|
/**
|
|
703
723
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
704
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/dynamic-import-chunkname.md
|
|
705
725
|
*/
|
|
706
726
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
707
727
|
/**
|
|
708
728
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
709
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/export.md
|
|
710
730
|
*/
|
|
711
731
|
'import/export'?: Linter.RuleEntry<[]>
|
|
712
732
|
/**
|
|
713
733
|
* Ensure all exports appear after other statements.
|
|
714
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/exports-last.md
|
|
715
735
|
*/
|
|
716
736
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
717
737
|
/**
|
|
718
738
|
* Ensure consistent use of file extension within the import path.
|
|
719
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/extensions.md
|
|
720
740
|
*/
|
|
721
741
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
722
742
|
/**
|
|
723
743
|
* Ensure all imports appear before other statements.
|
|
724
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/first.md
|
|
725
745
|
*/
|
|
726
746
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
727
747
|
/**
|
|
728
748
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
729
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
749
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/group-exports.md
|
|
730
750
|
*/
|
|
731
751
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
732
752
|
/**
|
|
@@ -737,182 +757,182 @@ interface RuleOptions {
|
|
|
737
757
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
738
758
|
/**
|
|
739
759
|
* Enforce the maximum number of dependencies a module can have.
|
|
740
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
760
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/max-dependencies.md
|
|
741
761
|
*/
|
|
742
762
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
743
763
|
/**
|
|
744
764
|
* Ensure named imports correspond to a named export in the remote file.
|
|
745
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
765
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/named.md
|
|
746
766
|
*/
|
|
747
767
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
748
768
|
/**
|
|
749
769
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
750
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
770
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/namespace.md
|
|
751
771
|
*/
|
|
752
772
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
753
773
|
/**
|
|
754
774
|
* Enforce a newline after import statements.
|
|
755
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
775
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/newline-after-import.md
|
|
756
776
|
*/
|
|
757
777
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
758
778
|
/**
|
|
759
779
|
* Forbid import of modules using absolute paths.
|
|
760
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
780
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-absolute-path.md
|
|
761
781
|
*/
|
|
762
782
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
763
783
|
/**
|
|
764
784
|
* Forbid AMD `require` and `define` calls.
|
|
765
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
785
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-amd.md
|
|
766
786
|
*/
|
|
767
787
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
768
788
|
/**
|
|
769
789
|
* Forbid anonymous values as default exports.
|
|
770
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
790
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-anonymous-default-export.md
|
|
771
791
|
*/
|
|
772
792
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
773
793
|
/**
|
|
774
794
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
775
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
795
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-commonjs.md
|
|
776
796
|
*/
|
|
777
797
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
778
798
|
/**
|
|
779
799
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
780
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
800
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-cycle.md
|
|
781
801
|
*/
|
|
782
802
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
783
803
|
/**
|
|
784
804
|
* Forbid default exports.
|
|
785
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-default-export.md
|
|
786
806
|
*/
|
|
787
807
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
788
808
|
/**
|
|
789
809
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
790
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-deprecated.md
|
|
791
811
|
*/
|
|
792
812
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
793
813
|
/**
|
|
794
814
|
* Forbid repeated import of the same module in multiple places.
|
|
795
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-duplicates.md
|
|
796
816
|
*/
|
|
797
817
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
798
818
|
/**
|
|
799
819
|
* Forbid `require()` calls with expressions.
|
|
800
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-dynamic-require.md
|
|
801
821
|
*/
|
|
802
822
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
803
823
|
/**
|
|
804
824
|
* Forbid empty named import blocks.
|
|
805
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-empty-named-blocks.md
|
|
806
826
|
*/
|
|
807
827
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
808
828
|
/**
|
|
809
829
|
* Forbid the use of extraneous packages.
|
|
810
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-extraneous-dependencies.md
|
|
811
831
|
*/
|
|
812
832
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
813
833
|
/**
|
|
814
834
|
* Forbid import statements with CommonJS module.exports.
|
|
815
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-import-module-exports.md
|
|
816
836
|
*/
|
|
817
837
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
818
838
|
/**
|
|
819
839
|
* Forbid importing the submodules of other modules.
|
|
820
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-internal-modules.md
|
|
821
841
|
*/
|
|
822
842
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
823
843
|
/**
|
|
824
844
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
825
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-mutable-exports.md
|
|
826
846
|
*/
|
|
827
847
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
828
848
|
/**
|
|
829
849
|
* Forbid use of exported name as identifier of default export.
|
|
830
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default.md
|
|
831
851
|
*/
|
|
832
852
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
833
853
|
/**
|
|
834
854
|
* Forbid use of exported name as property of default export.
|
|
835
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default-member.md
|
|
836
856
|
*/
|
|
837
857
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
838
858
|
/**
|
|
839
859
|
* Forbid named default exports.
|
|
840
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-default.md
|
|
841
861
|
*/
|
|
842
862
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
843
863
|
/**
|
|
844
864
|
* Forbid named exports.
|
|
845
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-export.md
|
|
846
866
|
*/
|
|
847
867
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
848
868
|
/**
|
|
849
869
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
850
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-namespace.md
|
|
851
871
|
*/
|
|
852
872
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
853
873
|
/**
|
|
854
874
|
* Forbid Node.js builtin modules.
|
|
855
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-nodejs-modules.md
|
|
856
876
|
*/
|
|
857
877
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
858
878
|
/**
|
|
859
879
|
* Forbid importing packages through relative paths.
|
|
860
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-packages.md
|
|
861
881
|
*/
|
|
862
882
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
863
883
|
/**
|
|
864
884
|
* Forbid importing modules from parent directories.
|
|
865
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-parent-imports.md
|
|
866
886
|
*/
|
|
867
887
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
868
888
|
/**
|
|
869
889
|
* Enforce which files can be imported in a given folder.
|
|
870
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-restricted-paths.md
|
|
871
891
|
*/
|
|
872
892
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
873
893
|
/**
|
|
874
894
|
* Forbid a module from importing itself.
|
|
875
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
895
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-self-import.md
|
|
876
896
|
*/
|
|
877
897
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
878
898
|
/**
|
|
879
899
|
* Forbid unassigned imports.
|
|
880
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
900
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unassigned-import.md
|
|
881
901
|
*/
|
|
882
902
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
883
903
|
/**
|
|
884
904
|
* Ensure imports point to a file/module that can be resolved.
|
|
885
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
905
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unresolved.md
|
|
886
906
|
*/
|
|
887
907
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
888
908
|
/**
|
|
889
909
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
890
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
910
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unused-modules.md
|
|
891
911
|
*/
|
|
892
912
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
893
913
|
/**
|
|
894
914
|
* Forbid unnecessary path segments in import and require statements.
|
|
895
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
915
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-useless-path-segments.md
|
|
896
916
|
*/
|
|
897
917
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
898
918
|
/**
|
|
899
919
|
* Forbid webpack loader syntax in imports.
|
|
900
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
920
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-webpack-loader-syntax.md
|
|
901
921
|
*/
|
|
902
922
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
903
923
|
/**
|
|
904
924
|
* Enforce a convention in module import order.
|
|
905
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
925
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/order.md
|
|
906
926
|
*/
|
|
907
927
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
908
928
|
/**
|
|
909
929
|
* Prefer a default export if module exports a single name or multiple names.
|
|
910
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
930
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/prefer-default-export.md
|
|
911
931
|
*/
|
|
912
932
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
913
933
|
/**
|
|
914
934
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
915
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
935
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/unambiguous.md
|
|
916
936
|
*/
|
|
917
937
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
918
938
|
/**
|
|
@@ -1448,6 +1468,11 @@ interface RuleOptions {
|
|
|
1448
1468
|
* @see https://github.com/kirklin/eslint-plugin-kirklin/blob/main/src/rules/import-dedupe.md
|
|
1449
1469
|
*/
|
|
1450
1470
|
'kirklin/import-dedupe'?: Linter.RuleEntry<[]>
|
|
1471
|
+
/**
|
|
1472
|
+
* Enforce consistent indentation in `unindent` template tag
|
|
1473
|
+
* @see https://github.com/kirklin/eslint-plugin-kirklin/blob/main/src/rules/indent-unindent.test.ts
|
|
1474
|
+
*/
|
|
1475
|
+
'kirklin/indent-unindent'?: Linter.RuleEntry<KirklinIndentUnindent>
|
|
1451
1476
|
/**
|
|
1452
1477
|
* Prevent importing modules in `dist` folder
|
|
1453
1478
|
* @see https://github.com/kirklin/eslint-plugin-kirklin/blob/main/src/rules/no-import-dist.test.ts
|
|
@@ -1471,6 +1496,7 @@ interface RuleOptions {
|
|
|
1471
1496
|
/**
|
|
1472
1497
|
* Enforce position of line comments
|
|
1473
1498
|
* @see https://eslint.org/docs/latest/rules/line-comment-position
|
|
1499
|
+
* @deprecated
|
|
1474
1500
|
*/
|
|
1475
1501
|
'line-comment-position'?: Linter.RuleEntry<LineCommentPosition>
|
|
1476
1502
|
/**
|
|
@@ -1552,6 +1578,7 @@ interface RuleOptions {
|
|
|
1552
1578
|
/**
|
|
1553
1579
|
* Enforce a particular style for multiline comments
|
|
1554
1580
|
* @see https://eslint.org/docs/latest/rules/multiline-comment-style
|
|
1581
|
+
* @deprecated
|
|
1555
1582
|
*/
|
|
1556
1583
|
'multiline-comment-style'?: Linter.RuleEntry<MultilineCommentStyle>
|
|
1557
1584
|
/**
|
|
@@ -1924,7 +1951,7 @@ interface RuleOptions {
|
|
|
1924
1951
|
* Disallow characters which are made with multiple code points in character class syntax
|
|
1925
1952
|
* @see https://eslint.org/docs/latest/rules/no-misleading-character-class
|
|
1926
1953
|
*/
|
|
1927
|
-
'no-misleading-character-class'?: Linter.RuleEntry<
|
|
1954
|
+
'no-misleading-character-class'?: Linter.RuleEntry<NoMisleadingCharacterClass>
|
|
1928
1955
|
/**
|
|
1929
1956
|
* Disallow mixed binary operators
|
|
1930
1957
|
* @see https://eslint.org/docs/latest/rules/no-mixed-operators
|
|
@@ -2934,6 +2961,16 @@ interface RuleOptions {
|
|
|
2934
2961
|
*/
|
|
2935
2962
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2936
2963
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2964
|
+
/**
|
|
2965
|
+
* enforce boolean attributes notation in JSX
|
|
2966
|
+
* @see https://eslint-react.xyz/rules/avoid-shorthand-boolean
|
|
2967
|
+
*/
|
|
2968
|
+
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2969
|
+
/**
|
|
2970
|
+
* enforce using fragment component instead of shorthand fragment syntax
|
|
2971
|
+
* @see https://eslint-react.xyz/rules/avoid-shorthand-fragment
|
|
2972
|
+
*/
|
|
2973
|
+
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2937
2974
|
/**
|
|
2938
2975
|
* require all 'forwardRef' components include a 'ref' parameter
|
|
2939
2976
|
* @see https://eslint-react.xyz/rules/ensure-forward-ref-using-ref
|
|
@@ -3136,6 +3173,416 @@ interface RuleOptions {
|
|
|
3136
3173
|
* @see https://eslint-react.xyz/rules/prefer-shorthand-fragment
|
|
3137
3174
|
*/
|
|
3138
3175
|
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
3176
|
+
/**
|
|
3177
|
+
* disallow confusing quantifiers
|
|
3178
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
3179
|
+
*/
|
|
3180
|
+
'regexp/confusing-quantifier'?: Linter.RuleEntry<[]>
|
|
3181
|
+
/**
|
|
3182
|
+
* enforce consistent escaping of control characters
|
|
3183
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
|
|
3184
|
+
*/
|
|
3185
|
+
'regexp/control-character-escape'?: Linter.RuleEntry<[]>
|
|
3186
|
+
/**
|
|
3187
|
+
* enforce single grapheme in string literal
|
|
3188
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
|
|
3189
|
+
*/
|
|
3190
|
+
'regexp/grapheme-string-literal'?: Linter.RuleEntry<[]>
|
|
3191
|
+
/**
|
|
3192
|
+
* enforce consistent usage of hexadecimal escape
|
|
3193
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
|
|
3194
|
+
*/
|
|
3195
|
+
'regexp/hexadecimal-escape'?: Linter.RuleEntry<RegexpHexadecimalEscape>
|
|
3196
|
+
/**
|
|
3197
|
+
* enforce into your favorite case
|
|
3198
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
|
|
3199
|
+
*/
|
|
3200
|
+
'regexp/letter-case'?: Linter.RuleEntry<RegexpLetterCase>
|
|
3201
|
+
/**
|
|
3202
|
+
* enforce match any character style
|
|
3203
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
|
|
3204
|
+
*/
|
|
3205
|
+
'regexp/match-any'?: Linter.RuleEntry<RegexpMatchAny>
|
|
3206
|
+
/**
|
|
3207
|
+
* enforce use of escapes on negation
|
|
3208
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
|
|
3209
|
+
*/
|
|
3210
|
+
'regexp/negation'?: Linter.RuleEntry<[]>
|
|
3211
|
+
/**
|
|
3212
|
+
* disallow elements that contradict assertions
|
|
3213
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
|
|
3214
|
+
*/
|
|
3215
|
+
'regexp/no-contradiction-with-assertion'?: Linter.RuleEntry<[]>
|
|
3216
|
+
/**
|
|
3217
|
+
* disallow control characters
|
|
3218
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
|
|
3219
|
+
*/
|
|
3220
|
+
'regexp/no-control-character'?: Linter.RuleEntry<[]>
|
|
3221
|
+
/**
|
|
3222
|
+
* disallow duplicate characters in the RegExp character class
|
|
3223
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
|
|
3224
|
+
*/
|
|
3225
|
+
'regexp/no-dupe-characters-character-class'?: Linter.RuleEntry<[]>
|
|
3226
|
+
/**
|
|
3227
|
+
* disallow duplicate disjunctions
|
|
3228
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
|
|
3229
|
+
*/
|
|
3230
|
+
'regexp/no-dupe-disjunctions'?: Linter.RuleEntry<RegexpNoDupeDisjunctions>
|
|
3231
|
+
/**
|
|
3232
|
+
* disallow alternatives without elements
|
|
3233
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
|
|
3234
|
+
*/
|
|
3235
|
+
'regexp/no-empty-alternative'?: Linter.RuleEntry<[]>
|
|
3236
|
+
/**
|
|
3237
|
+
* disallow capturing group that captures empty.
|
|
3238
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
|
|
3239
|
+
*/
|
|
3240
|
+
'regexp/no-empty-capturing-group'?: Linter.RuleEntry<[]>
|
|
3241
|
+
/**
|
|
3242
|
+
* disallow character classes that match no characters
|
|
3243
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
|
|
3244
|
+
*/
|
|
3245
|
+
'regexp/no-empty-character-class'?: Linter.RuleEntry<[]>
|
|
3246
|
+
/**
|
|
3247
|
+
* disallow empty group
|
|
3248
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
|
|
3249
|
+
*/
|
|
3250
|
+
'regexp/no-empty-group'?: Linter.RuleEntry<[]>
|
|
3251
|
+
/**
|
|
3252
|
+
* disallow empty lookahead assertion or empty lookbehind assertion
|
|
3253
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
|
|
3254
|
+
*/
|
|
3255
|
+
'regexp/no-empty-lookarounds-assertion'?: Linter.RuleEntry<[]>
|
|
3256
|
+
/**
|
|
3257
|
+
* disallow empty string literals in character classes
|
|
3258
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
|
|
3259
|
+
*/
|
|
3260
|
+
'regexp/no-empty-string-literal'?: Linter.RuleEntry<[]>
|
|
3261
|
+
/**
|
|
3262
|
+
* disallow escape backspace (`[\b]`)
|
|
3263
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
|
|
3264
|
+
*/
|
|
3265
|
+
'regexp/no-escape-backspace'?: Linter.RuleEntry<[]>
|
|
3266
|
+
/**
|
|
3267
|
+
* disallow unnecessary nested lookaround assertions
|
|
3268
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
|
|
3269
|
+
*/
|
|
3270
|
+
'regexp/no-extra-lookaround-assertions'?: Linter.RuleEntry<[]>
|
|
3271
|
+
/**
|
|
3272
|
+
* disallow invalid regular expression strings in `RegExp` constructors
|
|
3273
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
|
|
3274
|
+
*/
|
|
3275
|
+
'regexp/no-invalid-regexp'?: Linter.RuleEntry<[]>
|
|
3276
|
+
/**
|
|
3277
|
+
* disallow invisible raw character
|
|
3278
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
|
|
3279
|
+
*/
|
|
3280
|
+
'regexp/no-invisible-character'?: Linter.RuleEntry<[]>
|
|
3281
|
+
/**
|
|
3282
|
+
* disallow lazy quantifiers at the end of an expression
|
|
3283
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
|
|
3284
|
+
*/
|
|
3285
|
+
'regexp/no-lazy-ends'?: Linter.RuleEntry<RegexpNoLazyEnds>
|
|
3286
|
+
/**
|
|
3287
|
+
* disallow legacy RegExp features
|
|
3288
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
|
|
3289
|
+
*/
|
|
3290
|
+
'regexp/no-legacy-features'?: Linter.RuleEntry<RegexpNoLegacyFeatures>
|
|
3291
|
+
/**
|
|
3292
|
+
* disallow capturing groups that do not behave as one would expect
|
|
3293
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
|
|
3294
|
+
*/
|
|
3295
|
+
'regexp/no-misleading-capturing-group'?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>
|
|
3296
|
+
/**
|
|
3297
|
+
* disallow multi-code-point characters in character classes and quantifiers
|
|
3298
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
|
|
3299
|
+
*/
|
|
3300
|
+
'regexp/no-misleading-unicode-character'?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>
|
|
3301
|
+
/**
|
|
3302
|
+
* disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
|
|
3303
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
|
|
3304
|
+
*/
|
|
3305
|
+
'regexp/no-missing-g-flag'?: Linter.RuleEntry<RegexpNoMissingGFlag>
|
|
3306
|
+
/**
|
|
3307
|
+
* disallow non-standard flags
|
|
3308
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
|
|
3309
|
+
*/
|
|
3310
|
+
'regexp/no-non-standard-flag'?: Linter.RuleEntry<[]>
|
|
3311
|
+
/**
|
|
3312
|
+
* disallow obscure character ranges
|
|
3313
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
|
|
3314
|
+
*/
|
|
3315
|
+
'regexp/no-obscure-range'?: Linter.RuleEntry<RegexpNoObscureRange>
|
|
3316
|
+
/**
|
|
3317
|
+
* disallow octal escape sequence
|
|
3318
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
|
|
3319
|
+
*/
|
|
3320
|
+
'regexp/no-octal'?: Linter.RuleEntry<[]>
|
|
3321
|
+
/**
|
|
3322
|
+
* disallow optional assertions
|
|
3323
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
|
|
3324
|
+
*/
|
|
3325
|
+
'regexp/no-optional-assertion'?: Linter.RuleEntry<[]>
|
|
3326
|
+
/**
|
|
3327
|
+
* disallow backreferences that reference a group that might not be matched
|
|
3328
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
|
|
3329
|
+
*/
|
|
3330
|
+
'regexp/no-potentially-useless-backreference'?: Linter.RuleEntry<[]>
|
|
3331
|
+
/**
|
|
3332
|
+
* disallow standalone backslashes (`\`)
|
|
3333
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
|
|
3334
|
+
*/
|
|
3335
|
+
'regexp/no-standalone-backslash'?: Linter.RuleEntry<[]>
|
|
3336
|
+
/**
|
|
3337
|
+
* disallow exponential and polynomial backtracking
|
|
3338
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
|
|
3339
|
+
*/
|
|
3340
|
+
'regexp/no-super-linear-backtracking'?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>
|
|
3341
|
+
/**
|
|
3342
|
+
* disallow quantifiers that cause quadratic moves
|
|
3343
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
|
|
3344
|
+
*/
|
|
3345
|
+
'regexp/no-super-linear-move'?: Linter.RuleEntry<RegexpNoSuperLinearMove>
|
|
3346
|
+
/**
|
|
3347
|
+
* disallow trivially nested assertions
|
|
3348
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
|
|
3349
|
+
*/
|
|
3350
|
+
'regexp/no-trivially-nested-assertion'?: Linter.RuleEntry<[]>
|
|
3351
|
+
/**
|
|
3352
|
+
* disallow nested quantifiers that can be rewritten as one quantifier
|
|
3353
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
|
|
3354
|
+
*/
|
|
3355
|
+
'regexp/no-trivially-nested-quantifier'?: Linter.RuleEntry<[]>
|
|
3356
|
+
/**
|
|
3357
|
+
* disallow unused capturing group
|
|
3358
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
|
|
3359
|
+
*/
|
|
3360
|
+
'regexp/no-unused-capturing-group'?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>
|
|
3361
|
+
/**
|
|
3362
|
+
* disallow assertions that are known to always accept (or reject)
|
|
3363
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
|
|
3364
|
+
*/
|
|
3365
|
+
'regexp/no-useless-assertions'?: Linter.RuleEntry<[]>
|
|
3366
|
+
/**
|
|
3367
|
+
* disallow useless backreferences in regular expressions
|
|
3368
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
|
|
3369
|
+
*/
|
|
3370
|
+
'regexp/no-useless-backreference'?: Linter.RuleEntry<[]>
|
|
3371
|
+
/**
|
|
3372
|
+
* disallow character class with one character
|
|
3373
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
|
|
3374
|
+
*/
|
|
3375
|
+
'regexp/no-useless-character-class'?: Linter.RuleEntry<RegexpNoUselessCharacterClass>
|
|
3376
|
+
/**
|
|
3377
|
+
* disallow useless `$` replacements in replacement string
|
|
3378
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
|
|
3379
|
+
*/
|
|
3380
|
+
'regexp/no-useless-dollar-replacements'?: Linter.RuleEntry<[]>
|
|
3381
|
+
/**
|
|
3382
|
+
* disallow unnecessary escape characters in RegExp
|
|
3383
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
|
|
3384
|
+
*/
|
|
3385
|
+
'regexp/no-useless-escape'?: Linter.RuleEntry<[]>
|
|
3386
|
+
/**
|
|
3387
|
+
* disallow unnecessary regex flags
|
|
3388
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
|
|
3389
|
+
*/
|
|
3390
|
+
'regexp/no-useless-flag'?: Linter.RuleEntry<RegexpNoUselessFlag>
|
|
3391
|
+
/**
|
|
3392
|
+
* disallow unnecessarily non-greedy quantifiers
|
|
3393
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
|
|
3394
|
+
*/
|
|
3395
|
+
'regexp/no-useless-lazy'?: Linter.RuleEntry<[]>
|
|
3396
|
+
/**
|
|
3397
|
+
* disallow unnecessary non-capturing group
|
|
3398
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
|
|
3399
|
+
*/
|
|
3400
|
+
'regexp/no-useless-non-capturing-group'?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>
|
|
3401
|
+
/**
|
|
3402
|
+
* disallow quantifiers that can be removed
|
|
3403
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
|
|
3404
|
+
*/
|
|
3405
|
+
'regexp/no-useless-quantifier'?: Linter.RuleEntry<[]>
|
|
3406
|
+
/**
|
|
3407
|
+
* disallow unnecessary character ranges
|
|
3408
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
|
|
3409
|
+
*/
|
|
3410
|
+
'regexp/no-useless-range'?: Linter.RuleEntry<[]>
|
|
3411
|
+
/**
|
|
3412
|
+
* disallow unnecessary elements in expression character classes
|
|
3413
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
|
|
3414
|
+
*/
|
|
3415
|
+
'regexp/no-useless-set-operand'?: Linter.RuleEntry<[]>
|
|
3416
|
+
/**
|
|
3417
|
+
* disallow string disjunction of single characters in `\q{...}`
|
|
3418
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
|
|
3419
|
+
*/
|
|
3420
|
+
'regexp/no-useless-string-literal'?: Linter.RuleEntry<[]>
|
|
3421
|
+
/**
|
|
3422
|
+
* disallow unnecessary `{n,m}` quantifier
|
|
3423
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
|
|
3424
|
+
*/
|
|
3425
|
+
'regexp/no-useless-two-nums-quantifier'?: Linter.RuleEntry<[]>
|
|
3426
|
+
/**
|
|
3427
|
+
* disallow quantifiers with a maximum of zero
|
|
3428
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
|
|
3429
|
+
*/
|
|
3430
|
+
'regexp/no-zero-quantifier'?: Linter.RuleEntry<[]>
|
|
3431
|
+
/**
|
|
3432
|
+
* disallow the alternatives of lookarounds that end with a non-constant quantifier
|
|
3433
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
|
|
3434
|
+
*/
|
|
3435
|
+
'regexp/optimal-lookaround-quantifier'?: Linter.RuleEntry<[]>
|
|
3436
|
+
/**
|
|
3437
|
+
* require optimal quantifiers for concatenated quantifiers
|
|
3438
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
|
|
3439
|
+
*/
|
|
3440
|
+
'regexp/optimal-quantifier-concatenation'?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>
|
|
3441
|
+
/**
|
|
3442
|
+
* enforce using character class
|
|
3443
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
|
|
3444
|
+
*/
|
|
3445
|
+
'regexp/prefer-character-class'?: Linter.RuleEntry<RegexpPreferCharacterClass>
|
|
3446
|
+
/**
|
|
3447
|
+
* enforce using `\d`
|
|
3448
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
|
|
3449
|
+
*/
|
|
3450
|
+
'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>
|
|
3451
|
+
/**
|
|
3452
|
+
* enforces escape of replacement `$` character (`$$`).
|
|
3453
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
|
|
3454
|
+
*/
|
|
3455
|
+
'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>
|
|
3456
|
+
/**
|
|
3457
|
+
* prefer lookarounds over capturing group that do not replace
|
|
3458
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
|
|
3459
|
+
*/
|
|
3460
|
+
'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>
|
|
3461
|
+
/**
|
|
3462
|
+
* enforce using named backreferences
|
|
3463
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
|
|
3464
|
+
*/
|
|
3465
|
+
'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>
|
|
3466
|
+
/**
|
|
3467
|
+
* enforce using named capture groups
|
|
3468
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
|
|
3469
|
+
*/
|
|
3470
|
+
'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>
|
|
3471
|
+
/**
|
|
3472
|
+
* enforce using named replacement
|
|
3473
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
|
|
3474
|
+
*/
|
|
3475
|
+
'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>
|
|
3476
|
+
/**
|
|
3477
|
+
* enforce using `+` quantifier
|
|
3478
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
|
|
3479
|
+
*/
|
|
3480
|
+
'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>
|
|
3481
|
+
/**
|
|
3482
|
+
* prefer predefined assertion over equivalent lookarounds
|
|
3483
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
|
|
3484
|
+
*/
|
|
3485
|
+
'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>
|
|
3486
|
+
/**
|
|
3487
|
+
* enforce using quantifier
|
|
3488
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
3489
|
+
*/
|
|
3490
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<[]>
|
|
3491
|
+
/**
|
|
3492
|
+
* enforce using `?` quantifier
|
|
3493
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
3494
|
+
*/
|
|
3495
|
+
'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>
|
|
3496
|
+
/**
|
|
3497
|
+
* enforce using character class range
|
|
3498
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
|
|
3499
|
+
*/
|
|
3500
|
+
'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>
|
|
3501
|
+
/**
|
|
3502
|
+
* enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
|
|
3503
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
|
|
3504
|
+
*/
|
|
3505
|
+
'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>
|
|
3506
|
+
/**
|
|
3507
|
+
* enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
|
|
3508
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
|
|
3509
|
+
*/
|
|
3510
|
+
'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
3511
|
+
/**
|
|
3512
|
+
* enforce using result array `groups`
|
|
3513
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
|
|
3514
|
+
*/
|
|
3515
|
+
'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>
|
|
3516
|
+
/**
|
|
3517
|
+
* prefer character class set operations instead of lookarounds
|
|
3518
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
|
|
3519
|
+
*/
|
|
3520
|
+
'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>
|
|
3521
|
+
/**
|
|
3522
|
+
* enforce using `*` quantifier
|
|
3523
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
|
|
3524
|
+
*/
|
|
3525
|
+
'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>
|
|
3526
|
+
/**
|
|
3527
|
+
* enforce use of unicode codepoint escapes
|
|
3528
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
|
|
3529
|
+
*/
|
|
3530
|
+
'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>
|
|
3531
|
+
/**
|
|
3532
|
+
* enforce using `\w`
|
|
3533
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
|
|
3534
|
+
*/
|
|
3535
|
+
'regexp/prefer-w'?: Linter.RuleEntry<[]>
|
|
3536
|
+
/**
|
|
3537
|
+
* enforce the use of the `u` flag
|
|
3538
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
|
|
3539
|
+
*/
|
|
3540
|
+
'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>
|
|
3541
|
+
/**
|
|
3542
|
+
* enforce the use of the `v` flag
|
|
3543
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
|
|
3544
|
+
*/
|
|
3545
|
+
'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>
|
|
3546
|
+
/**
|
|
3547
|
+
* require simplify set operations
|
|
3548
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
|
|
3549
|
+
*/
|
|
3550
|
+
'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>
|
|
3551
|
+
/**
|
|
3552
|
+
* sort alternatives if order doesn't matter
|
|
3553
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
|
|
3554
|
+
*/
|
|
3555
|
+
'regexp/sort-alternatives'?: Linter.RuleEntry<[]>
|
|
3556
|
+
/**
|
|
3557
|
+
* enforces elements order in character class
|
|
3558
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
|
|
3559
|
+
*/
|
|
3560
|
+
'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>
|
|
3561
|
+
/**
|
|
3562
|
+
* require regex flags to be sorted
|
|
3563
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
|
|
3564
|
+
*/
|
|
3565
|
+
'regexp/sort-flags'?: Linter.RuleEntry<[]>
|
|
3566
|
+
/**
|
|
3567
|
+
* disallow not strictly valid regular expressions
|
|
3568
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
|
|
3569
|
+
*/
|
|
3570
|
+
'regexp/strict'?: Linter.RuleEntry<[]>
|
|
3571
|
+
/**
|
|
3572
|
+
* enforce consistent usage of unicode escape or unicode codepoint escape
|
|
3573
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
|
|
3574
|
+
*/
|
|
3575
|
+
'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>
|
|
3576
|
+
/**
|
|
3577
|
+
* enforce consistent naming of unicode properties
|
|
3578
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
|
|
3579
|
+
*/
|
|
3580
|
+
'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>
|
|
3581
|
+
/**
|
|
3582
|
+
* use the `i` flag if it simplifies the pattern
|
|
3583
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
|
|
3584
|
+
*/
|
|
3585
|
+
'regexp/use-ignore-case'?: Linter.RuleEntry<[]>
|
|
3139
3586
|
/**
|
|
3140
3587
|
* Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
|
|
3141
3588
|
* @see https://eslint.org/docs/latest/rules/require-atomic-updates
|
|
@@ -3488,8 +3935,9 @@ interface RuleOptions {
|
|
|
3488
3935
|
*/
|
|
3489
3936
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
3490
3937
|
/**
|
|
3491
|
-
* Enforce JSX indentation
|
|
3938
|
+
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
3492
3939
|
* @see https://eslint.style/rules/jsx/jsx-indent
|
|
3940
|
+
* @deprecated
|
|
3493
3941
|
*/
|
|
3494
3942
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
|
|
3495
3943
|
/**
|
|
@@ -3674,7 +4122,7 @@ interface RuleOptions {
|
|
|
3674
4122
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
|
|
3675
4123
|
/**
|
|
3676
4124
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3677
|
-
* @see https://eslint.style/rules/
|
|
4125
|
+
* @see https://eslint.style/rules/ts/object-curly-newline
|
|
3678
4126
|
*/
|
|
3679
4127
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
|
|
3680
4128
|
/**
|
|
@@ -3684,7 +4132,7 @@ interface RuleOptions {
|
|
|
3684
4132
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
|
|
3685
4133
|
/**
|
|
3686
4134
|
* Enforce placing object properties on separate lines
|
|
3687
|
-
* @see https://eslint.style/rules/
|
|
4135
|
+
* @see https://eslint.style/rules/ts/object-property-newline
|
|
3688
4136
|
*/
|
|
3689
4137
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
|
|
3690
4138
|
/**
|
|
@@ -4008,6 +4456,11 @@ interface RuleOptions {
|
|
|
4008
4456
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-store-async/
|
|
4009
4457
|
*/
|
|
4010
4458
|
'svelte/no-store-async'?: Linter.RuleEntry<[]>
|
|
4459
|
+
/**
|
|
4460
|
+
* svelte/internal will be removed in Svelte 6.
|
|
4461
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-svelte-internal/
|
|
4462
|
+
*/
|
|
4463
|
+
'svelte/no-svelte-internal'?: Linter.RuleEntry<[]>
|
|
4011
4464
|
/**
|
|
4012
4465
|
* disallow `target="_blank"` attribute without `rel="noopener noreferrer"`
|
|
4013
4466
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-target-blank/
|
|
@@ -4943,6 +5396,11 @@ interface RuleOptions {
|
|
|
4943
5396
|
* @see https://typescript-eslint.io/rules/no-unnecessary-qualifier
|
|
4944
5397
|
*/
|
|
4945
5398
|
'ts/no-unnecessary-qualifier'?: Linter.RuleEntry<[]>
|
|
5399
|
+
/**
|
|
5400
|
+
* Disallow unnecessary template expressions
|
|
5401
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-template-expression
|
|
5402
|
+
*/
|
|
5403
|
+
'ts/no-unnecessary-template-expression'?: Linter.RuleEntry<[]>
|
|
4946
5404
|
/**
|
|
4947
5405
|
* Disallow type arguments that are equal to the default
|
|
4948
5406
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-arguments
|
|
@@ -5024,8 +5482,9 @@ interface RuleOptions {
|
|
|
5024
5482
|
*/
|
|
5025
5483
|
'ts/no-useless-empty-export'?: Linter.RuleEntry<[]>
|
|
5026
5484
|
/**
|
|
5027
|
-
* Disallow unnecessary template
|
|
5485
|
+
* Disallow unnecessary template expressions
|
|
5028
5486
|
* @see https://typescript-eslint.io/rules/no-useless-template-literals
|
|
5487
|
+
* @deprecated
|
|
5029
5488
|
*/
|
|
5030
5489
|
'ts/no-useless-template-literals'?: Linter.RuleEntry<[]>
|
|
5031
5490
|
/**
|
|
@@ -5153,6 +5612,7 @@ interface RuleOptions {
|
|
|
5153
5612
|
/**
|
|
5154
5613
|
* Enforce using `@ts-expect-error` over `@ts-ignore`
|
|
5155
5614
|
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
5615
|
+
* @deprecated
|
|
5156
5616
|
*/
|
|
5157
5617
|
'ts/prefer-ts-expect-error'?: Linter.RuleEntry<[]>
|
|
5158
5618
|
/**
|
|
@@ -5172,7 +5632,7 @@ interface RuleOptions {
|
|
|
5172
5632
|
*/
|
|
5173
5633
|
'ts/require-array-sort-compare'?: Linter.RuleEntry<TsRequireArraySortCompare>
|
|
5174
5634
|
/**
|
|
5175
|
-
* Disallow async functions which have no `await` expression
|
|
5635
|
+
* Disallow async functions which do not return promises and have no `await` expression
|
|
5176
5636
|
* @see https://typescript-eslint.io/rules/require-await
|
|
5177
5637
|
*/
|
|
5178
5638
|
'ts/require-await'?: Linter.RuleEntry<[]>
|
|
@@ -5187,7 +5647,7 @@ interface RuleOptions {
|
|
|
5187
5647
|
*/
|
|
5188
5648
|
'ts/restrict-template-expressions'?: Linter.RuleEntry<TsRestrictTemplateExpressions>
|
|
5189
5649
|
/**
|
|
5190
|
-
* Enforce consistent
|
|
5650
|
+
* Enforce consistent awaiting of returned promises
|
|
5191
5651
|
* @see https://typescript-eslint.io/rules/return-await
|
|
5192
5652
|
*/
|
|
5193
5653
|
'ts/return-await'?: Linter.RuleEntry<TsReturnAwait>
|
|
@@ -5200,6 +5660,7 @@ interface RuleOptions {
|
|
|
5200
5660
|
/**
|
|
5201
5661
|
* Enforce constituents of a type union/intersection to be sorted alphabetically
|
|
5202
5662
|
* @see https://typescript-eslint.io/rules/sort-type-constituents
|
|
5663
|
+
* @deprecated
|
|
5203
5664
|
*/
|
|
5204
5665
|
'ts/sort-type-constituents'?: Linter.RuleEntry<TsSortTypeConstituents>
|
|
5205
5666
|
/**
|
|
@@ -5268,652 +5729,682 @@ interface RuleOptions {
|
|
|
5268
5729
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
5269
5730
|
/**
|
|
5270
5731
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md
|
|
5272
5733
|
*/
|
|
5273
5734
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
5274
5735
|
/**
|
|
5275
5736
|
* Enforce a specific parameter name in catch clauses.
|
|
5276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md
|
|
5277
5738
|
*/
|
|
5278
5739
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
5279
5740
|
/**
|
|
5280
5741
|
* Use destructured variables over properties.
|
|
5281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md
|
|
5282
5743
|
*/
|
|
5283
5744
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
5745
|
+
/**
|
|
5746
|
+
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5748
|
+
*/
|
|
5749
|
+
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
5284
5750
|
/**
|
|
5285
5751
|
* Move function definitions to the highest possible scope.
|
|
5286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md
|
|
5287
5753
|
*/
|
|
5288
5754
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
5289
5755
|
/**
|
|
5290
5756
|
* Enforce correct `Error` subclassing.
|
|
5291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md
|
|
5292
5758
|
*/
|
|
5293
5759
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
5294
5760
|
/**
|
|
5295
5761
|
* Enforce no spaces between braces.
|
|
5296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5762
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md
|
|
5297
5763
|
*/
|
|
5298
5764
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
5299
5765
|
/**
|
|
5300
5766
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
|
|
5302
5768
|
*/
|
|
5303
5769
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
5304
5770
|
/**
|
|
5305
5771
|
* Require escape sequences to use uppercase values.
|
|
5306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
|
|
5307
5773
|
*/
|
|
5308
5774
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
5309
5775
|
/**
|
|
5310
5776
|
* Add expiration conditions to TODO comments.
|
|
5311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
|
|
5312
5778
|
*/
|
|
5313
5779
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
5314
5780
|
/**
|
|
5315
5781
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5782
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
|
|
5317
5783
|
*/
|
|
5318
5784
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
5319
5785
|
/**
|
|
5320
5786
|
* Enforce a case style for filenames.
|
|
5321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
|
|
5322
5788
|
*/
|
|
5323
5789
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
5324
5790
|
/**
|
|
5325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
|
|
5326
5792
|
* @deprecated
|
|
5327
5793
|
*/
|
|
5328
5794
|
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
5329
5795
|
/**
|
|
5330
5796
|
* Enforce specific import styles per module.
|
|
5331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
|
|
5332
5798
|
*/
|
|
5333
5799
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
5334
5800
|
/**
|
|
5335
5801
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
|
|
5337
5803
|
*/
|
|
5338
5804
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
5339
5805
|
/**
|
|
5340
5806
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5342
5808
|
*/
|
|
5343
5809
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5344
5810
|
/**
|
|
5345
5811
|
* Disallow anonymous functions and classes as the default export.
|
|
5346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
|
|
5347
5813
|
*/
|
|
5348
5814
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
5349
5815
|
/**
|
|
5350
5816
|
* Prevent passing a function reference directly to iterator methods.
|
|
5351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
|
|
5352
5818
|
*/
|
|
5353
5819
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
5354
5820
|
/**
|
|
5355
5821
|
* Prefer `for…of` over the `forEach` method.
|
|
5356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
|
|
5357
5823
|
*/
|
|
5358
5824
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
5359
5825
|
/**
|
|
5360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
5361
5827
|
* @deprecated
|
|
5362
5828
|
*/
|
|
5363
5829
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
5364
5830
|
/**
|
|
5365
5831
|
* Disallow using the `this` argument in array methods.
|
|
5366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
|
|
5367
5833
|
*/
|
|
5368
5834
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5369
5835
|
/**
|
|
5370
5836
|
* Enforce combining multiple `Array#push()` into one call.
|
|
5371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
|
|
5372
5838
|
*/
|
|
5373
5839
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
5374
5840
|
/**
|
|
5375
5841
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
|
|
5377
5843
|
*/
|
|
5378
5844
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
5379
5845
|
/**
|
|
5380
5846
|
* Disallow member access from await expression.
|
|
5381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
|
|
5382
5848
|
*/
|
|
5383
5849
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5384
5850
|
/**
|
|
5385
5851
|
* Disallow using `await` in `Promise` method parameters.
|
|
5386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5387
5853
|
*/
|
|
5388
5854
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5389
5855
|
/**
|
|
5390
5856
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
|
|
5392
5858
|
*/
|
|
5393
5859
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5394
5860
|
/**
|
|
5395
5861
|
* Do not use `document.cookie` directly.
|
|
5396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
|
|
5397
5863
|
*/
|
|
5398
5864
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5399
5865
|
/**
|
|
5400
5866
|
* Disallow empty files.
|
|
5401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
|
|
5402
5868
|
*/
|
|
5403
5869
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
5404
5870
|
/**
|
|
5405
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
5406
5872
|
* @deprecated
|
|
5407
5873
|
*/
|
|
5408
5874
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
5409
5875
|
/**
|
|
5410
5876
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
|
|
5412
5878
|
*/
|
|
5413
5879
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5414
5880
|
/**
|
|
5415
5881
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
|
|
5417
5883
|
*/
|
|
5418
5884
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
5419
5885
|
/**
|
|
5420
5886
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
5421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
|
|
5422
5888
|
*/
|
|
5423
5889
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5890
|
+
/**
|
|
5891
|
+
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5893
|
+
*/
|
|
5894
|
+
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
5424
5895
|
/**
|
|
5425
5896
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5427
5898
|
*/
|
|
5428
5899
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
5429
5900
|
/**
|
|
5430
5901
|
* Disallow identifiers starting with `new` or `class`.
|
|
5431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
|
|
5432
5903
|
*/
|
|
5433
5904
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
5434
5905
|
/**
|
|
5435
5906
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
|
|
5437
5908
|
*/
|
|
5438
5909
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5910
|
+
/**
|
|
5911
|
+
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5913
|
+
*/
|
|
5914
|
+
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5439
5915
|
/**
|
|
5440
5916
|
* Disallow negated conditions.
|
|
5441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
|
|
5442
5918
|
*/
|
|
5443
5919
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
5920
|
+
/**
|
|
5921
|
+
* Disallow negated expression in equality check.
|
|
5922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5923
|
+
*/
|
|
5924
|
+
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
5444
5925
|
/**
|
|
5445
5926
|
* Disallow nested ternary expressions.
|
|
5446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
|
|
5447
5928
|
*/
|
|
5448
5929
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
5449
5930
|
/**
|
|
5450
5931
|
* Disallow `new Array()`.
|
|
5451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
|
|
5452
5933
|
*/
|
|
5453
5934
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
5454
5935
|
/**
|
|
5455
5936
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
|
|
5457
5938
|
*/
|
|
5458
5939
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
5459
5940
|
/**
|
|
5460
5941
|
* Disallow the use of the `null` literal.
|
|
5461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
|
|
5462
5943
|
*/
|
|
5463
5944
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
5464
5945
|
/**
|
|
5465
5946
|
* Disallow the use of objects as default parameters.
|
|
5466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5467
5948
|
*/
|
|
5468
5949
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
5469
5950
|
/**
|
|
5470
5951
|
* Disallow `process.exit()`.
|
|
5471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
|
|
5472
5953
|
*/
|
|
5473
5954
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
5474
5955
|
/**
|
|
5475
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
|
|
5476
5957
|
* @deprecated
|
|
5477
5958
|
*/
|
|
5478
5959
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
5479
5960
|
/**
|
|
5480
5961
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5482
5963
|
*/
|
|
5483
5964
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5484
5965
|
/**
|
|
5485
5966
|
* Disallow classes that only have static members.
|
|
5486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
|
|
5487
5968
|
*/
|
|
5488
5969
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
5489
5970
|
/**
|
|
5490
5971
|
* Disallow `then` property.
|
|
5491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
|
|
5492
5973
|
*/
|
|
5493
5974
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
5494
5975
|
/**
|
|
5495
5976
|
* Disallow assigning `this` to a variable.
|
|
5496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
|
|
5497
5978
|
*/
|
|
5498
5979
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
5499
5980
|
/**
|
|
5500
5981
|
* Disallow comparing `undefined` using `typeof`.
|
|
5501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
|
|
5502
5983
|
*/
|
|
5503
5984
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
5504
5985
|
/**
|
|
5505
5986
|
* Disallow awaiting non-promise values.
|
|
5506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
|
|
5507
5988
|
*/
|
|
5508
5989
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
5509
5990
|
/**
|
|
5510
5991
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5512
5993
|
*/
|
|
5513
5994
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
5514
5995
|
/**
|
|
5515
5996
|
* Disallow unreadable array destructuring.
|
|
5516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5517
5998
|
*/
|
|
5518
5999
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
5519
6000
|
/**
|
|
5520
6001
|
* Disallow unreadable IIFEs.
|
|
5521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md
|
|
5522
6003
|
*/
|
|
5523
6004
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
5524
6005
|
/**
|
|
5525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
5526
6007
|
* @deprecated
|
|
5527
6008
|
*/
|
|
5528
6009
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
5529
6010
|
/**
|
|
5530
6011
|
* Disallow unused object properties.
|
|
5531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md
|
|
5532
6013
|
*/
|
|
5533
6014
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
5534
6015
|
/**
|
|
5535
6016
|
* Disallow useless fallback when spreading in object literals.
|
|
5536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5537
6018
|
*/
|
|
5538
6019
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
5539
6020
|
/**
|
|
5540
6021
|
* Disallow useless array length check.
|
|
5541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md
|
|
5542
6023
|
*/
|
|
5543
6024
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
5544
6025
|
/**
|
|
5545
6026
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5547
6028
|
*/
|
|
5548
6029
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
5549
6030
|
/**
|
|
5550
6031
|
* Disallow unnecessary spread.
|
|
5551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md
|
|
5552
6033
|
*/
|
|
5553
6034
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
5554
6035
|
/**
|
|
5555
6036
|
* Disallow useless case in switch statements.
|
|
5556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md
|
|
5557
6038
|
*/
|
|
5558
6039
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
5559
6040
|
/**
|
|
5560
6041
|
* Disallow useless `undefined`.
|
|
5561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md
|
|
5562
6043
|
*/
|
|
5563
6044
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
5564
6045
|
/**
|
|
5565
6046
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md
|
|
5567
6048
|
*/
|
|
5568
6049
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
5569
6050
|
/**
|
|
5570
6051
|
* Enforce proper case for numeric literals.
|
|
5571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md
|
|
5572
6053
|
*/
|
|
5573
6054
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
5574
6055
|
/**
|
|
5575
6056
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md
|
|
5577
6058
|
*/
|
|
5578
6059
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
5579
6060
|
/**
|
|
5580
6061
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
|
|
5582
6063
|
*/
|
|
5583
6064
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
5584
6065
|
/**
|
|
5585
6066
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
|
|
5587
6068
|
*/
|
|
5588
6069
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
5589
6070
|
/**
|
|
5590
6071
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
|
|
5592
6073
|
*/
|
|
5593
6074
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
5594
6075
|
/**
|
|
5595
6076
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
|
|
5597
6078
|
*/
|
|
5598
6079
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
5599
6080
|
/**
|
|
5600
6081
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
|
|
5602
6083
|
*/
|
|
5603
6084
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
5604
6085
|
/**
|
|
5605
|
-
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
|
|
5606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6086
|
+
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
|
|
5607
6088
|
*/
|
|
5608
6089
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
5609
6090
|
/**
|
|
5610
6091
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
|
|
5612
6093
|
*/
|
|
5613
6094
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
5614
6095
|
/**
|
|
5615
6096
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5617
6098
|
*/
|
|
5618
6099
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
5619
6100
|
/**
|
|
5620
6101
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
|
|
5622
6103
|
*/
|
|
5623
6104
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
5624
6105
|
/**
|
|
5625
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
5626
6107
|
* @deprecated
|
|
5627
6108
|
*/
|
|
5628
6109
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
5629
6110
|
/**
|
|
5630
6111
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
|
|
5632
6113
|
*/
|
|
5633
6114
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
5634
6115
|
/**
|
|
5635
6116
|
* Prefer default parameters over reassignment.
|
|
5636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
|
|
5637
6118
|
*/
|
|
5638
6119
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
5639
6120
|
/**
|
|
5640
6121
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
|
|
5642
6123
|
*/
|
|
5643
6124
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
5644
6125
|
/**
|
|
5645
6126
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5647
6128
|
*/
|
|
5648
6129
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
5649
6130
|
/**
|
|
5650
6131
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5652
6133
|
*/
|
|
5653
6134
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
5654
6135
|
/**
|
|
5655
6136
|
* Prefer `.textContent` over `.innerText`.
|
|
5656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5657
6138
|
*/
|
|
5658
6139
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
5659
6140
|
/**
|
|
5660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
5661
6142
|
* @deprecated
|
|
5662
6143
|
*/
|
|
5663
6144
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
5664
6145
|
/**
|
|
5665
6146
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
|
|
5667
6148
|
*/
|
|
5668
6149
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
5669
6150
|
/**
|
|
5670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
5671
6152
|
* @deprecated
|
|
5672
6153
|
*/
|
|
5673
6154
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
5674
6155
|
/**
|
|
5675
6156
|
* Prefer `export…from` when re-exporting.
|
|
5676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
|
|
5677
6158
|
*/
|
|
5678
6159
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
5679
6160
|
/**
|
|
5680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
5681
6162
|
* @deprecated
|
|
5682
6163
|
*/
|
|
5683
6164
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
5684
6165
|
/**
|
|
5685
|
-
* Prefer `.includes()` over `.indexOf()
|
|
5686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6166
|
+
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
|
|
5687
6168
|
*/
|
|
5688
6169
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
5689
6170
|
/**
|
|
5690
6171
|
* Prefer reading a JSON file as a buffer.
|
|
5691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5692
6173
|
*/
|
|
5693
6174
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
5694
6175
|
/**
|
|
5695
6176
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5697
6178
|
*/
|
|
5698
6179
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
5699
6180
|
/**
|
|
5700
6181
|
* Prefer using a logical operator over a ternary.
|
|
5701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5702
6183
|
*/
|
|
5703
6184
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
5704
6185
|
/**
|
|
5705
6186
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
|
|
5707
6188
|
*/
|
|
5708
6189
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
5709
6190
|
/**
|
|
5710
6191
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5712
6193
|
*/
|
|
5713
6194
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
5714
6195
|
/**
|
|
5715
6196
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5717
6198
|
*/
|
|
5718
6199
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
5719
6200
|
/**
|
|
5720
6201
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
|
|
5722
6203
|
*/
|
|
5723
6204
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
5724
6205
|
/**
|
|
5725
6206
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5727
6208
|
*/
|
|
5728
6209
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
5729
6210
|
/**
|
|
5730
6211
|
* Prefer negative index over `.length - index` when possible.
|
|
5731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
|
|
5732
6213
|
*/
|
|
5733
6214
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
5734
6215
|
/**
|
|
5735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
5736
6217
|
* @deprecated
|
|
5737
6218
|
*/
|
|
5738
6219
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
5739
6220
|
/**
|
|
5740
6221
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
|
|
5742
6223
|
*/
|
|
5743
6224
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
5744
6225
|
/**
|
|
5745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
5746
6227
|
* @deprecated
|
|
5747
6228
|
*/
|
|
5748
6229
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
5749
6230
|
/**
|
|
5750
6231
|
* Prefer `Number` static properties over global ones.
|
|
5751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
|
|
5752
6233
|
*/
|
|
5753
6234
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5754
6235
|
/**
|
|
5755
6236
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
|
|
5757
6238
|
*/
|
|
5758
6239
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
5759
6240
|
/**
|
|
5760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
5761
6242
|
* @deprecated
|
|
5762
6243
|
*/
|
|
5763
6244
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
5764
6245
|
/**
|
|
5765
6246
|
* Prefer omitting the `catch` binding parameter.
|
|
5766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5767
6248
|
*/
|
|
5768
6249
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5769
6250
|
/**
|
|
5770
6251
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
|
|
5772
6253
|
*/
|
|
5773
6254
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5774
6255
|
/**
|
|
5775
6256
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
5776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
|
|
5777
6258
|
*/
|
|
5778
6259
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5779
6260
|
/**
|
|
5780
6261
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
|
|
5782
6263
|
*/
|
|
5783
6264
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
5784
6265
|
/**
|
|
5785
6266
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
|
|
5787
6268
|
*/
|
|
5788
6269
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
5789
6270
|
/**
|
|
5790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
5791
6272
|
* @deprecated
|
|
5792
6273
|
*/
|
|
5793
6274
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
5794
6275
|
/**
|
|
5795
6276
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
|
|
5797
6278
|
*/
|
|
5798
6279
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
5799
6280
|
/**
|
|
5800
6281
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
|
|
5802
6283
|
*/
|
|
5803
6284
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
5804
6285
|
/**
|
|
5805
6286
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5806
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
|
|
5807
6288
|
*/
|
|
5808
6289
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
5809
6290
|
/**
|
|
5810
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6291
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
5811
6292
|
* @deprecated
|
|
5812
6293
|
*/
|
|
5813
6294
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
6295
|
+
/**
|
|
6296
|
+
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
|
|
6298
|
+
*/
|
|
6299
|
+
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
5814
6300
|
/**
|
|
5815
6301
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
|
|
5817
6303
|
*/
|
|
5818
6304
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
5819
6305
|
/**
|
|
5820
6306
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
|
|
5822
6308
|
*/
|
|
5823
6309
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
5824
6310
|
/**
|
|
5825
6311
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5827
6313
|
*/
|
|
5828
6314
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5829
6315
|
/**
|
|
5830
6316
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5832
6318
|
*/
|
|
5833
6319
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
6320
|
+
/**
|
|
6321
|
+
* Prefer using `structuredClone` to create a deep clone.
|
|
6322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
|
|
6323
|
+
*/
|
|
6324
|
+
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5834
6325
|
/**
|
|
5835
6326
|
* Prefer `switch` over multiple `else-if`.
|
|
5836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
|
|
5837
6328
|
*/
|
|
5838
6329
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5839
6330
|
/**
|
|
5840
6331
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
|
|
5842
6333
|
*/
|
|
5843
6334
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5844
6335
|
/**
|
|
5845
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
5846
6337
|
* @deprecated
|
|
5847
6338
|
*/
|
|
5848
6339
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5849
6340
|
/**
|
|
5850
6341
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
|
|
5852
6343
|
*/
|
|
5853
6344
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5854
6345
|
/**
|
|
5855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5856
6347
|
* @deprecated
|
|
5857
6348
|
*/
|
|
5858
6349
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5859
6350
|
/**
|
|
5860
6351
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
|
|
5862
6353
|
*/
|
|
5863
6354
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5864
6355
|
/**
|
|
5865
6356
|
* Prevent abbreviations.
|
|
5866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
|
|
5867
6358
|
*/
|
|
5868
6359
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5869
6360
|
/**
|
|
5870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6361
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
5871
6362
|
* @deprecated
|
|
5872
6363
|
*/
|
|
5873
6364
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5874
6365
|
/**
|
|
5875
6366
|
* Enforce consistent relative URL style.
|
|
5876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
|
|
5877
6368
|
*/
|
|
5878
6369
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5879
6370
|
/**
|
|
5880
6371
|
* Enforce using the separator argument with `Array#join()`.
|
|
5881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
|
|
5882
6373
|
*/
|
|
5883
6374
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5884
6375
|
/**
|
|
5885
6376
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5887
6378
|
*/
|
|
5888
6379
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5889
6380
|
/**
|
|
5890
6381
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
|
|
5892
6383
|
*/
|
|
5893
6384
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5894
6385
|
/**
|
|
5895
6386
|
* Enforce better string content.
|
|
5896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
|
|
5897
6388
|
*/
|
|
5898
6389
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5899
6390
|
/**
|
|
5900
6391
|
* Enforce consistent brace style for `case` clauses.
|
|
5901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
|
|
5902
6393
|
*/
|
|
5903
6394
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5904
6395
|
/**
|
|
5905
6396
|
* Fix whitespace-insensitive template indentation.
|
|
5906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
|
|
5907
6398
|
*/
|
|
5908
6399
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5909
6400
|
/**
|
|
5910
6401
|
* Enforce consistent case for text encoding identifiers.
|
|
5911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5912
6403
|
*/
|
|
5913
6404
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5914
6405
|
/**
|
|
5915
|
-
* Require `new` when
|
|
5916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6406
|
+
* Require `new` when creating an error.
|
|
6407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
|
|
5917
6408
|
*/
|
|
5918
6409
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5919
6410
|
/**
|
|
@@ -5941,21 +6432,11 @@ interface RuleOptions {
|
|
|
5941
6432
|
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5942
6433
|
*/
|
|
5943
6434
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
5944
|
-
/**
|
|
5945
|
-
* Disallow unused variables
|
|
5946
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5947
|
-
*/
|
|
5948
|
-
'unused-imports/no-unused-imports-ts'?: Linter.RuleEntry<UnusedImportsNoUnusedImportsTs>
|
|
5949
6435
|
/**
|
|
5950
6436
|
* Disallow unused variables
|
|
5951
6437
|
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5952
6438
|
*/
|
|
5953
6439
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
5954
|
-
/**
|
|
5955
|
-
* Disallow unused variables
|
|
5956
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5957
|
-
*/
|
|
5958
|
-
'unused-imports/no-unused-vars-ts'?: Linter.RuleEntry<UnusedImportsNoUnusedVarsTs>
|
|
5959
6440
|
/**
|
|
5960
6441
|
* Require calls to `isNaN()` when checking for `NaN`
|
|
5961
6442
|
* @see https://eslint.org/docs/latest/rules/use-isnan
|
|
@@ -7545,6 +8026,9 @@ type _FuncNamesValue = ("always" | "as-needed" | "never")
|
|
|
7545
8026
|
// ----- func-style -----
|
|
7546
8027
|
type FuncStyle = []|[("declaration" | "expression")]|[("declaration" | "expression"), {
|
|
7547
8028
|
allowArrowFunctions?: boolean
|
|
8029
|
+
overrides?: {
|
|
8030
|
+
namedExports?: ("declaration" | "expression" | "ignore")
|
|
8031
|
+
}
|
|
7548
8032
|
}]
|
|
7549
8033
|
// ----- function-call-argument-newline -----
|
|
7550
8034
|
type FunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
|
|
@@ -8921,6 +9405,12 @@ type KirklinConsistentListNewline = []|[{
|
|
|
8921
9405
|
TSTypeParameterInstantiation?: boolean
|
|
8922
9406
|
ObjectPattern?: boolean
|
|
8923
9407
|
ArrayPattern?: boolean
|
|
9408
|
+
JSXOpeningElement?: boolean
|
|
9409
|
+
}]
|
|
9410
|
+
// ----- kirklin/indent-unindent -----
|
|
9411
|
+
type KirklinIndentUnindent = []|[{
|
|
9412
|
+
indent?: number
|
|
9413
|
+
tags?: string[]
|
|
8924
9414
|
}]
|
|
8925
9415
|
// ----- line-comment-position -----
|
|
8926
9416
|
type LineCommentPosition = []|[(("above" | "beside") | {
|
|
@@ -9173,9 +9663,11 @@ type NoExtendNative = []|[{
|
|
|
9173
9663
|
exceptions?: string[]
|
|
9174
9664
|
}]
|
|
9175
9665
|
// ----- no-extra-boolean-cast -----
|
|
9176
|
-
type NoExtraBooleanCast = []|[{
|
|
9666
|
+
type NoExtraBooleanCast = []|[({
|
|
9667
|
+
enforceForInnerExpressions?: boolean
|
|
9668
|
+
} | {
|
|
9177
9669
|
enforceForLogicalOperands?: boolean
|
|
9178
|
-
}]
|
|
9670
|
+
})]
|
|
9179
9671
|
// ----- no-extra-parens -----
|
|
9180
9672
|
type NoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
9181
9673
|
conditionalAssign?: boolean
|
|
@@ -9249,6 +9741,10 @@ type NoMagicNumbers = []|[{
|
|
|
9249
9741
|
ignoreDefaultValues?: boolean
|
|
9250
9742
|
ignoreClassFieldInitialValues?: boolean
|
|
9251
9743
|
}]
|
|
9744
|
+
// ----- no-misleading-character-class -----
|
|
9745
|
+
type NoMisleadingCharacterClass = []|[{
|
|
9746
|
+
allowEscape?: boolean
|
|
9747
|
+
}]
|
|
9252
9748
|
// ----- no-mixed-operators -----
|
|
9253
9749
|
type NoMixedOperators = []|[{
|
|
9254
9750
|
groups?: [("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ...(("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"))[]][]
|
|
@@ -9305,8 +9801,10 @@ type NoRedeclare = []|[{
|
|
|
9305
9801
|
// ----- no-restricted-exports -----
|
|
9306
9802
|
type NoRestrictedExports = []|[({
|
|
9307
9803
|
restrictedNamedExports?: string[]
|
|
9804
|
+
restrictedNamedExportsPattern?: string
|
|
9308
9805
|
} | {
|
|
9309
9806
|
restrictedNamedExports?: string[]
|
|
9807
|
+
restrictedNamedExportsPattern?: string
|
|
9310
9808
|
restrictDefaultExports?: {
|
|
9311
9809
|
direct?: boolean
|
|
9312
9810
|
named?: boolean
|
|
@@ -9514,6 +10012,9 @@ type NodeHashbang = []|[{
|
|
|
9514
10012
|
})[]])
|
|
9515
10013
|
ignoreUnpublished?: boolean
|
|
9516
10014
|
additionalExecutables?: string[]
|
|
10015
|
+
executableMap?: {
|
|
10016
|
+
[k: string]: string
|
|
10017
|
+
}
|
|
9517
10018
|
}]
|
|
9518
10019
|
// ----- node/no-deprecated-api -----
|
|
9519
10020
|
type NodeNoDeprecatedApi = []|[{
|
|
@@ -9647,6 +10148,7 @@ type NodeNoUnpublishedImport = []|[{
|
|
|
9647
10148
|
})[]])
|
|
9648
10149
|
resolvePaths?: string[]
|
|
9649
10150
|
ignoreTypeImport?: boolean
|
|
10151
|
+
ignorePrivate?: boolean
|
|
9650
10152
|
}]
|
|
9651
10153
|
// ----- node/no-unpublished-require -----
|
|
9652
10154
|
type NodeNoUnpublishedRequire = []|[{
|
|
@@ -9669,6 +10171,7 @@ type NodeNoUnpublishedRequire = []|[{
|
|
|
9669
10171
|
})[]])
|
|
9670
10172
|
resolvePaths?: string[]
|
|
9671
10173
|
tryExtensions?: string[]
|
|
10174
|
+
ignorePrivate?: boolean
|
|
9672
10175
|
}]
|
|
9673
10176
|
// ----- node/no-unsupported-features/es-builtins -----
|
|
9674
10177
|
type NodeNoUnsupportedFeaturesEsBuiltins = []|[{
|
|
@@ -9683,7 +10186,8 @@ type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
|
9683
10186
|
// ----- node/no-unsupported-features/node-builtins -----
|
|
9684
10187
|
type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
9685
10188
|
version?: string
|
|
9686
|
-
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.constants" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.lutimes" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readdir" | "fs.promises.readFile" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rmdir" | "fs.promises.rm" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.promises.FileHandle" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.lchmod" | "fs.lchown" | "fs.lutimes" | "fs.link" | "fs.lstat" | "fs.mkdir" | "fs.mkdtemp" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.native" | "fs.rename" | "fs.rmdir" | "fs.rm" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.lutimesSync" | "fs.linkSync" | "fs.lstatSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statSync" | "fs.statfsSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.constants" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.lutimes" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readdir" | "fs/promises.readFile" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rmdir" | "fs/promises.rm" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "fs/promises.FileHandle" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
10189
|
+
allowExperimental?: boolean
|
|
10190
|
+
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
9687
10191
|
}]
|
|
9688
10192
|
// ----- node/prefer-global/buffer -----
|
|
9689
10193
|
type NodePreferGlobalBuffer = []|[("always" | "never")]
|
|
@@ -9723,6 +10227,9 @@ type NodeShebang = []|[{
|
|
|
9723
10227
|
})[]])
|
|
9724
10228
|
ignoreUnpublished?: boolean
|
|
9725
10229
|
additionalExecutables?: string[]
|
|
10230
|
+
executableMap?: {
|
|
10231
|
+
[k: string]: string
|
|
10232
|
+
}
|
|
9726
10233
|
}]
|
|
9727
10234
|
// ----- nonblock-statement-body-position -----
|
|
9728
10235
|
type NonblockStatementBodyPosition = []|[("beside" | "below" | "any")]|[("beside" | "below" | "any"), {
|
|
@@ -9839,6 +10346,9 @@ type PerfectionistSortAstroAttributes = []|[{
|
|
|
9839
10346
|
}]
|
|
9840
10347
|
// ----- perfectionist/sort-classes -----
|
|
9841
10348
|
type PerfectionistSortClasses = []|[{
|
|
10349
|
+
"custom-groups"?: {
|
|
10350
|
+
[k: string]: unknown | undefined
|
|
10351
|
+
}
|
|
9842
10352
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9843
10353
|
"ignore-case"?: boolean
|
|
9844
10354
|
order?: ("asc" | "desc")
|
|
@@ -10075,6 +10585,124 @@ type ReactRefreshOnlyExportComponents = []|[{
|
|
|
10075
10585
|
checkJS?: boolean
|
|
10076
10586
|
allowExportNames?: string[]
|
|
10077
10587
|
}]
|
|
10588
|
+
// ----- regexp/hexadecimal-escape -----
|
|
10589
|
+
type RegexpHexadecimalEscape = []|[("always" | "never")]
|
|
10590
|
+
// ----- regexp/letter-case -----
|
|
10591
|
+
type RegexpLetterCase = []|[{
|
|
10592
|
+
caseInsensitive?: ("lowercase" | "uppercase" | "ignore")
|
|
10593
|
+
unicodeEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
10594
|
+
hexadecimalEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
10595
|
+
controlEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
10596
|
+
}]
|
|
10597
|
+
// ----- regexp/match-any -----
|
|
10598
|
+
type RegexpMatchAny = []|[{
|
|
10599
|
+
|
|
10600
|
+
allows?: [("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"), ...(("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"))[]]
|
|
10601
|
+
}]
|
|
10602
|
+
// ----- regexp/no-dupe-disjunctions -----
|
|
10603
|
+
type RegexpNoDupeDisjunctions = []|[{
|
|
10604
|
+
report?: ("all" | "trivial" | "interesting")
|
|
10605
|
+
reportExponentialBacktracking?: ("none" | "certain" | "potential")
|
|
10606
|
+
reportUnreachable?: ("certain" | "potential")
|
|
10607
|
+
}]
|
|
10608
|
+
// ----- regexp/no-lazy-ends -----
|
|
10609
|
+
type RegexpNoLazyEnds = []|[{
|
|
10610
|
+
ignorePartial?: boolean
|
|
10611
|
+
}]
|
|
10612
|
+
// ----- regexp/no-legacy-features -----
|
|
10613
|
+
type RegexpNoLegacyFeatures = []|[{
|
|
10614
|
+
staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[]
|
|
10615
|
+
prototypeMethods?: ("compile")[]
|
|
10616
|
+
}]
|
|
10617
|
+
// ----- regexp/no-misleading-capturing-group -----
|
|
10618
|
+
type RegexpNoMisleadingCapturingGroup = []|[{
|
|
10619
|
+
reportBacktrackingEnds?: boolean
|
|
10620
|
+
}]
|
|
10621
|
+
// ----- regexp/no-misleading-unicode-character -----
|
|
10622
|
+
type RegexpNoMisleadingUnicodeCharacter = []|[{
|
|
10623
|
+
fixable?: boolean
|
|
10624
|
+
}]
|
|
10625
|
+
// ----- regexp/no-missing-g-flag -----
|
|
10626
|
+
type RegexpNoMissingGFlag = []|[{
|
|
10627
|
+
strictTypes?: boolean
|
|
10628
|
+
}]
|
|
10629
|
+
// ----- regexp/no-obscure-range -----
|
|
10630
|
+
type RegexpNoObscureRange = []|[{
|
|
10631
|
+
allowed?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
|
|
10632
|
+
}]
|
|
10633
|
+
// ----- regexp/no-super-linear-backtracking -----
|
|
10634
|
+
type RegexpNoSuperLinearBacktracking = []|[{
|
|
10635
|
+
report?: ("certain" | "potential")
|
|
10636
|
+
}]
|
|
10637
|
+
// ----- regexp/no-super-linear-move -----
|
|
10638
|
+
type RegexpNoSuperLinearMove = []|[{
|
|
10639
|
+
report?: ("certain" | "potential")
|
|
10640
|
+
ignoreSticky?: boolean
|
|
10641
|
+
ignorePartial?: boolean
|
|
10642
|
+
}]
|
|
10643
|
+
// ----- regexp/no-unused-capturing-group -----
|
|
10644
|
+
type RegexpNoUnusedCapturingGroup = []|[{
|
|
10645
|
+
fixable?: boolean
|
|
10646
|
+
allowNamed?: boolean
|
|
10647
|
+
}]
|
|
10648
|
+
// ----- regexp/no-useless-character-class -----
|
|
10649
|
+
type RegexpNoUselessCharacterClass = []|[{
|
|
10650
|
+
ignores?: string[]
|
|
10651
|
+
}]
|
|
10652
|
+
// ----- regexp/no-useless-flag -----
|
|
10653
|
+
type RegexpNoUselessFlag = []|[{
|
|
10654
|
+
ignore?: ("i" | "m" | "s" | "g" | "y")[]
|
|
10655
|
+
strictTypes?: boolean
|
|
10656
|
+
}]
|
|
10657
|
+
// ----- regexp/no-useless-non-capturing-group -----
|
|
10658
|
+
type RegexpNoUselessNonCapturingGroup = []|[{
|
|
10659
|
+
allowTop?: (boolean | ("always" | "never" | "partial"))
|
|
10660
|
+
}]
|
|
10661
|
+
// ----- regexp/optimal-quantifier-concatenation -----
|
|
10662
|
+
type RegexpOptimalQuantifierConcatenation = []|[{
|
|
10663
|
+
capturingGroups?: ("ignore" | "report")
|
|
10664
|
+
}]
|
|
10665
|
+
// ----- regexp/prefer-character-class -----
|
|
10666
|
+
type RegexpPreferCharacterClass = []|[{
|
|
10667
|
+
minAlternatives?: number
|
|
10668
|
+
}]
|
|
10669
|
+
// ----- regexp/prefer-d -----
|
|
10670
|
+
type RegexpPreferD = []|[{
|
|
10671
|
+
insideCharacterClass?: ("ignore" | "range" | "d")
|
|
10672
|
+
}]
|
|
10673
|
+
// ----- regexp/prefer-lookaround -----
|
|
10674
|
+
type RegexpPreferLookaround = []|[{
|
|
10675
|
+
lookbehind?: boolean
|
|
10676
|
+
strictTypes?: boolean
|
|
10677
|
+
}]
|
|
10678
|
+
// ----- regexp/prefer-named-replacement -----
|
|
10679
|
+
type RegexpPreferNamedReplacement = []|[{
|
|
10680
|
+
strictTypes?: boolean
|
|
10681
|
+
}]
|
|
10682
|
+
// ----- regexp/prefer-range -----
|
|
10683
|
+
type RegexpPreferRange = []|[{
|
|
10684
|
+
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
|
|
10685
|
+
}]
|
|
10686
|
+
// ----- regexp/prefer-result-array-groups -----
|
|
10687
|
+
type RegexpPreferResultArrayGroups = []|[{
|
|
10688
|
+
strictTypes?: boolean
|
|
10689
|
+
}]
|
|
10690
|
+
// ----- regexp/sort-character-class-elements -----
|
|
10691
|
+
type RegexpSortCharacterClassElements = []|[{
|
|
10692
|
+
order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[]
|
|
10693
|
+
}]
|
|
10694
|
+
// ----- regexp/unicode-escape -----
|
|
10695
|
+
type RegexpUnicodeEscape = []|[("unicodeCodePointEscape" | "unicodeEscape")]
|
|
10696
|
+
// ----- regexp/unicode-property -----
|
|
10697
|
+
type RegexpUnicodeProperty = []|[{
|
|
10698
|
+
generalCategory?: ("always" | "never" | "ignore")
|
|
10699
|
+
key?: ("short" | "long" | "ignore")
|
|
10700
|
+
property?: (("short" | "long" | "ignore") | {
|
|
10701
|
+
binary?: ("short" | "long" | "ignore")
|
|
10702
|
+
generalCategory?: ("short" | "long" | "ignore")
|
|
10703
|
+
script?: ("short" | "long" | "ignore")
|
|
10704
|
+
})
|
|
10705
|
+
}]
|
|
10078
10706
|
// ----- require-atomic-updates -----
|
|
10079
10707
|
type RequireAtomicUpdates = []|[{
|
|
10080
10708
|
allowProperties?: boolean
|
|
@@ -10232,6 +10860,7 @@ type StyleArrayElementNewline = []|[(_StyleArrayElementNewlineBasicConfig | {
|
|
|
10232
10860
|
ArrayPattern?: _StyleArrayElementNewlineBasicConfig
|
|
10233
10861
|
})]
|
|
10234
10862
|
type _StyleArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
10863
|
+
consistent?: boolean
|
|
10235
10864
|
multiline?: boolean
|
|
10236
10865
|
minItems?: (number | null)
|
|
10237
10866
|
})
|
|
@@ -10428,7 +11057,7 @@ type StyleJsxNewline = []|[{
|
|
|
10428
11057
|
}]
|
|
10429
11058
|
// ----- style/jsx-one-expression-per-line -----
|
|
10430
11059
|
type StyleJsxOneExpressionPerLine = []|[{
|
|
10431
|
-
allow?: ("none" | "literal" | "single-child" | "single-line")
|
|
11060
|
+
allow?: ("none" | "literal" | "single-child" | "single-line" | "non-jsx")
|
|
10432
11061
|
}]
|
|
10433
11062
|
// ----- style/jsx-pascal-case -----
|
|
10434
11063
|
type StyleJsxPascalCase = []|[{
|
|
@@ -11061,6 +11690,16 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
11061
11690
|
minProperties?: number
|
|
11062
11691
|
consistent?: boolean
|
|
11063
11692
|
})
|
|
11693
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
11694
|
+
multiline?: boolean
|
|
11695
|
+
minProperties?: number
|
|
11696
|
+
consistent?: boolean
|
|
11697
|
+
})
|
|
11698
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
11699
|
+
multiline?: boolean
|
|
11700
|
+
minProperties?: number
|
|
11701
|
+
consistent?: boolean
|
|
11702
|
+
})
|
|
11064
11703
|
})]
|
|
11065
11704
|
// ----- style/object-curly-spacing -----
|
|
11066
11705
|
type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -11110,6 +11749,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
|
|
|
11110
11749
|
type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
11111
11750
|
avoidEscape?: boolean
|
|
11112
11751
|
allowTemplateLiterals?: boolean
|
|
11752
|
+
ignoreStringLiterals?: boolean
|
|
11113
11753
|
})]
|
|
11114
11754
|
// ----- style/rest-spread-spacing -----
|
|
11115
11755
|
type StyleRestSpreadSpacing = []|[("always" | "never")]
|
|
@@ -12597,6 +13237,18 @@ type TsNoFloatingPromises = []|[{
|
|
|
12597
13237
|
ignoreVoid?: boolean
|
|
12598
13238
|
|
|
12599
13239
|
ignoreIIFE?: boolean
|
|
13240
|
+
allowForKnownSafePromises?: (string | {
|
|
13241
|
+
from: "file"
|
|
13242
|
+
name: (string | [string, ...(string)[]])
|
|
13243
|
+
path?: string
|
|
13244
|
+
} | {
|
|
13245
|
+
from: "lib"
|
|
13246
|
+
name: (string | [string, ...(string)[]])
|
|
13247
|
+
} | {
|
|
13248
|
+
from: "package"
|
|
13249
|
+
name: (string | [string, ...(string)[]])
|
|
13250
|
+
package: string
|
|
13251
|
+
})[]
|
|
12600
13252
|
}]
|
|
12601
13253
|
// ----- ts/no-inferrable-types -----
|
|
12602
13254
|
type TsNoInferrableTypes = []|[{
|
|
@@ -12972,6 +13624,8 @@ type TsSortTypeConstituents = []|[{
|
|
|
12972
13624
|
|
|
12973
13625
|
checkUnions?: boolean
|
|
12974
13626
|
|
|
13627
|
+
caseSensitive?: boolean
|
|
13628
|
+
|
|
12975
13629
|
groupOrder?: ("conditional" | "function" | "import" | "intersection" | "keyword" | "nullish" | "literal" | "named" | "object" | "operator" | "tuple" | "union")[]
|
|
12976
13630
|
}]
|
|
12977
13631
|
// ----- ts/space-before-blocks -----
|
|
@@ -13193,11 +13847,16 @@ type UnicornPreferExportFrom = []|[{
|
|
|
13193
13847
|
// ----- unicorn/prefer-number-properties -----
|
|
13194
13848
|
type UnicornPreferNumberProperties = []|[{
|
|
13195
13849
|
checkInfinity?: boolean
|
|
13850
|
+
checkNaN?: boolean
|
|
13196
13851
|
}]
|
|
13197
13852
|
// ----- unicorn/prefer-object-from-entries -----
|
|
13198
13853
|
type UnicornPreferObjectFromEntries = []|[{
|
|
13199
13854
|
functions?: unknown[]
|
|
13200
13855
|
}]
|
|
13856
|
+
// ----- unicorn/prefer-structured-clone -----
|
|
13857
|
+
type UnicornPreferStructuredClone = []|[{
|
|
13858
|
+
functions?: unknown[]
|
|
13859
|
+
}]
|
|
13201
13860
|
// ----- unicorn/prefer-switch -----
|
|
13202
13861
|
type UnicornPreferSwitch = []|[{
|
|
13203
13862
|
minimumCases?: number
|
|
@@ -13264,17 +13923,6 @@ type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
|
13264
13923
|
caughtErrorsIgnorePattern?: string
|
|
13265
13924
|
destructuredArrayIgnorePattern?: string
|
|
13266
13925
|
})]
|
|
13267
|
-
// ----- unused-imports/no-unused-imports-ts -----
|
|
13268
|
-
type UnusedImportsNoUnusedImportsTs = []|[(("all" | "local") | {
|
|
13269
|
-
vars?: ("all" | "local")
|
|
13270
|
-
varsIgnorePattern?: string
|
|
13271
|
-
args?: ("all" | "after-used" | "none")
|
|
13272
|
-
ignoreRestSiblings?: boolean
|
|
13273
|
-
argsIgnorePattern?: string
|
|
13274
|
-
caughtErrors?: ("all" | "none")
|
|
13275
|
-
caughtErrorsIgnorePattern?: string
|
|
13276
|
-
destructuredArrayIgnorePattern?: string
|
|
13277
|
-
})]
|
|
13278
13926
|
// ----- unused-imports/no-unused-vars -----
|
|
13279
13927
|
type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
13280
13928
|
vars?: ("all" | "local")
|
|
@@ -13286,17 +13934,6 @@ type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
13286
13934
|
caughtErrorsIgnorePattern?: string
|
|
13287
13935
|
destructuredArrayIgnorePattern?: string
|
|
13288
13936
|
})]
|
|
13289
|
-
// ----- unused-imports/no-unused-vars-ts -----
|
|
13290
|
-
type UnusedImportsNoUnusedVarsTs = []|[(("all" | "local") | {
|
|
13291
|
-
vars?: ("all" | "local")
|
|
13292
|
-
varsIgnorePattern?: string
|
|
13293
|
-
args?: ("all" | "after-used" | "none")
|
|
13294
|
-
ignoreRestSiblings?: boolean
|
|
13295
|
-
argsIgnorePattern?: string
|
|
13296
|
-
caughtErrors?: ("all" | "none")
|
|
13297
|
-
caughtErrorsIgnorePattern?: string
|
|
13298
|
-
destructuredArrayIgnorePattern?: string
|
|
13299
|
-
})]
|
|
13300
13937
|
// ----- use-isnan -----
|
|
13301
13938
|
type UseIsnan = []|[{
|
|
13302
13939
|
enforceForSwitchCase?: boolean
|
|
@@ -13323,6 +13960,7 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
13323
13960
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
13324
13961
|
})]
|
|
13325
13962
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
13963
|
+
consistent?: boolean
|
|
13326
13964
|
multiline?: boolean
|
|
13327
13965
|
minItems?: (number | null)
|
|
13328
13966
|
})
|
|
@@ -14297,6 +14935,16 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
14297
14935
|
minProperties?: number
|
|
14298
14936
|
consistent?: boolean
|
|
14299
14937
|
})
|
|
14938
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
14939
|
+
multiline?: boolean
|
|
14940
|
+
minProperties?: number
|
|
14941
|
+
consistent?: boolean
|
|
14942
|
+
})
|
|
14943
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
14944
|
+
multiline?: boolean
|
|
14945
|
+
minProperties?: number
|
|
14946
|
+
consistent?: boolean
|
|
14947
|
+
})
|
|
14300
14948
|
})]
|
|
14301
14949
|
// ----- vue/object-curly-spacing -----
|
|
14302
14950
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -14684,7 +15332,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14684
15332
|
onlyEquality?: boolean
|
|
14685
15333
|
}]
|
|
14686
15334
|
// Names of all the configs
|
|
14687
|
-
type ConfigNames = 'kirklin/astro/setup' | 'kirklin/astro/rules' | 'kirklin/eslint-comments/rules' | 'kirklin/formatter/setup' | 'kirklin/imports/rules' | 'kirklin/imports/disables/bin' | 'kirklin/javascript/rules' | 'kirklin/javascript/disables/cli' | 'kirklin/jsdoc/rules' | 'kirklin/jsonc/setup' | 'kirklin/jsonc/rules' | 'kirklin/markdown/setup' | 'kirklin/markdown/processor' | 'kirklin/markdown/parser' | 'kirklin/markdown/disables' | 'kirklin/node/rules' | 'kirklin/perfectionist/setup' | 'kirklin/react/setup' | 'kirklin/react/rules' | 'kirklin/solid/setup' | 'kirklin/solid/rules' | 'kirklin/sort/package-json' | 'kirklin/stylistic/rules' | 'kirklin/svelte/setup' | 'kirklin/svelte/rules' | 'kirklin/test/setup' | 'kirklin/test/rules' | 'kirklin/toml/setup' | 'kirklin/toml/rules' | 'kirklin/typescript/setup' | 'kirklin/typescript/parser' | 'kirklin/typescript/rules' | 'kirklin/typescript/disables/dts' | 'kirklin/typescript/disables/test' | 'kirklin/typescript/disables/cjs' | 'kirklin/unicorn/rules' | 'kirklin/unocss' | 'kirklin/vue/setup' | 'kirklin/vue/rules' | 'kirklin/yaml/setup' | 'kirklin/yaml/rules'
|
|
15335
|
+
type ConfigNames = 'kirklin/astro/setup' | 'kirklin/astro/rules' | 'kirklin/eslint-comments/rules' | 'kirklin/formatter/setup' | 'kirklin/imports/rules' | 'kirklin/imports/disables/bin' | 'kirklin/javascript/setup' | 'kirklin/javascript/rules' | 'kirklin/javascript/disables/cli' | 'kirklin/jsx/setup' | 'kirklin/jsdoc/rules' | 'kirklin/jsonc/setup' | 'kirklin/jsonc/rules' | 'kirklin/markdown/setup' | 'kirklin/markdown/processor' | 'kirklin/markdown/parser' | 'kirklin/markdown/disables' | 'kirklin/node/rules' | 'kirklin/perfectionist/setup' | 'kirklin/react/setup' | 'kirklin/react/rules' | 'kirklin/solid/setup' | 'kirklin/solid/rules' | 'kirklin/sort/package-json' | 'kirklin/stylistic/rules' | 'kirklin/svelte/setup' | 'kirklin/svelte/rules' | 'kirklin/test/setup' | 'kirklin/test/rules' | 'kirklin/toml/setup' | 'kirklin/toml/rules' | 'kirklin/regexp/rules' | 'kirklin/typescript/setup' | 'kirklin/typescript/parser' | 'kirklin/typescript/rules' | 'kirklin/typescript/disables/dts' | 'kirklin/typescript/disables/test' | 'kirklin/typescript/disables/cjs' | 'kirklin/unicorn/rules' | 'kirklin/unocss' | 'kirklin/vue/setup' | 'kirklin/vue/rules' | 'kirklin/yaml/setup' | 'kirklin/yaml/rules'
|
|
14688
15336
|
|
|
14689
15337
|
type Awaitable<T> = T | Promise<T>;
|
|
14690
15338
|
type Rules = RuleOptions;
|
|
@@ -14732,6 +15380,12 @@ interface OptionsFormatters {
|
|
|
14732
15380
|
* Currently only support Prettier.
|
|
14733
15381
|
*/
|
|
14734
15382
|
html?: "prettier" | boolean;
|
|
15383
|
+
/**
|
|
15384
|
+
* Enable formatting support for XML.
|
|
15385
|
+
*
|
|
15386
|
+
* Currently only support Prettier.
|
|
15387
|
+
*/
|
|
15388
|
+
xml?: "prettier" | boolean;
|
|
14735
15389
|
/**
|
|
14736
15390
|
* Enable formatting support for Markdown.
|
|
14737
15391
|
*
|
|
@@ -14790,6 +15444,11 @@ interface OptionsTypeScriptParserOptions {
|
|
|
14790
15444
|
* @default ['**\/*.{ts,tsx}']
|
|
14791
15445
|
*/
|
|
14792
15446
|
filesTypeAware?: string[];
|
|
15447
|
+
/**
|
|
15448
|
+
* Glob patterns for files that should not be type aware.
|
|
15449
|
+
* @default ['**\/*.md\/**', '**\/*.astro/*.ts']
|
|
15450
|
+
*/
|
|
15451
|
+
ignoresTypeAware?: string[];
|
|
14793
15452
|
}
|
|
14794
15453
|
interface OptionsTypeScriptWithTypes {
|
|
14795
15454
|
/**
|
|
@@ -14809,6 +15468,12 @@ interface StylisticConfig extends Pick<StylisticCustomizeOptions, "indent" | "qu
|
|
|
14809
15468
|
interface OptionsOverrides {
|
|
14810
15469
|
overrides?: TypedFlatConfigItem["rules"];
|
|
14811
15470
|
}
|
|
15471
|
+
interface OptionsRegExp {
|
|
15472
|
+
/**
|
|
15473
|
+
* Override rule levels
|
|
15474
|
+
*/
|
|
15475
|
+
level?: "error" | "warn";
|
|
15476
|
+
}
|
|
14812
15477
|
interface OptionsIsInEditor {
|
|
14813
15478
|
isInEditor?: boolean;
|
|
14814
15479
|
}
|
|
@@ -14917,9 +15582,17 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
14917
15582
|
/**
|
|
14918
15583
|
* Enable stylistic rules.
|
|
14919
15584
|
*
|
|
15585
|
+
* @see https://eslint.style/
|
|
14920
15586
|
* @default true
|
|
14921
15587
|
*/
|
|
14922
15588
|
stylistic?: boolean | (StylisticConfig & OptionsOverrides);
|
|
15589
|
+
/**
|
|
15590
|
+
* Enable regexp rules.
|
|
15591
|
+
*
|
|
15592
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/
|
|
15593
|
+
* @default true
|
|
15594
|
+
*/
|
|
15595
|
+
regexp?: boolean | (OptionsRegExp & OptionsOverrides);
|
|
14923
15596
|
/**
|
|
14924
15597
|
* Enable react rules.
|
|
14925
15598
|
*
|
|
@@ -15043,6 +15716,8 @@ declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Pro
|
|
|
15043
15716
|
|
|
15044
15717
|
declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
15045
15718
|
|
|
15719
|
+
declare function jsx(): Promise<TypedFlatConfigItem[]>;
|
|
15720
|
+
|
|
15046
15721
|
declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
15047
15722
|
|
|
15048
15723
|
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
@@ -15095,6 +15770,8 @@ declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverri
|
|
|
15095
15770
|
|
|
15096
15771
|
declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
15097
15772
|
|
|
15773
|
+
declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
15774
|
+
|
|
15098
15775
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
15099
15776
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
15100
15777
|
declare const GLOB_JS = "**/*.?([cm])js";
|
|
@@ -15115,8 +15792,10 @@ declare const GLOB_SVELTE = "**/*.svelte";
|
|
|
15115
15792
|
declare const GLOB_VUE = "**/*.vue";
|
|
15116
15793
|
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
15117
15794
|
declare const GLOB_TOML = "**/*.toml";
|
|
15795
|
+
declare const GLOB_XML = "**/*.xml";
|
|
15118
15796
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
15119
15797
|
declare const GLOB_ASTRO = "**/*.astro";
|
|
15798
|
+
declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
|
|
15120
15799
|
declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
|
|
15121
15800
|
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
15122
15801
|
declare const GLOB_TESTS: string[];
|
|
@@ -15194,4 +15873,4 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
|
15194
15873
|
} ? U : T>;
|
|
15195
15874
|
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
15196
15875
|
|
|
15197
|
-
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type StylisticOptions, type TypedFlatConfigItem, astro, combine, command, comments, kirklin as default, defaultPluginRenaming, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, javascript, jsdoc, jsonc, kirklin, markdown, node, parserPlain, perfectionist, react, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
15876
|
+
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, type StylisticConfig, StylisticConfigDefaults, type StylisticOptions, type TypedFlatConfigItem, astro, combine, command, comments, kirklin as default, defaultPluginRenaming, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, kirklin, markdown, node, parserPlain, perfectionist, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|