@fast-china/eslint-config 1.0.46 → 1.0.48
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/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/dist/rules/index.js +13 -13
- package/dist/rules/index.js.map +1 -1
- package/dist/typegen.d.ts +251 -175
- package/package.json +12 -12
package/dist/typegen.d.ts
CHANGED
|
@@ -470,7 +470,7 @@ export interface RuleOptions {
|
|
|
470
470
|
* Disallow default values that will never be used
|
|
471
471
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
472
472
|
*/
|
|
473
|
-
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<
|
|
473
|
+
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<TypescriptEslintNoUselessDefaultAssignment>
|
|
474
474
|
/**
|
|
475
475
|
* Disallow empty exports that don't change anything in a module file
|
|
476
476
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -644,6 +644,11 @@ export interface RuleOptions {
|
|
|
644
644
|
* @see https://typescript-eslint.io/rules/strict-boolean-expressions
|
|
645
645
|
*/
|
|
646
646
|
'@typescript-eslint/strict-boolean-expressions'?: Linter.RuleEntry<TypescriptEslintStrictBooleanExpressions>
|
|
647
|
+
/**
|
|
648
|
+
* Disallow passing a value-returning function in a position accepting a void function
|
|
649
|
+
* @see https://typescript-eslint.io/rules/strict-void-return
|
|
650
|
+
*/
|
|
651
|
+
'@typescript-eslint/strict-void-return'?: Linter.RuleEntry<TypescriptEslintStrictVoidReturn>
|
|
647
652
|
/**
|
|
648
653
|
* Require switch-case statements to be exhaustive
|
|
649
654
|
* @see https://typescript-eslint.io/rules/switch-exhaustiveness-check
|
|
@@ -677,234 +682,240 @@ export interface RuleOptions {
|
|
|
677
682
|
'@typescript-eslint/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
|
|
678
683
|
/**
|
|
679
684
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
680
|
-
* @see https://github.com/
|
|
685
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/consistent-type-specifier-style.md
|
|
681
686
|
*/
|
|
682
|
-
'import/consistent-type-specifier-style'?: Linter.RuleEntry<
|
|
687
|
+
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
683
688
|
/**
|
|
684
689
|
* Ensure a default export is present, given a default import.
|
|
685
|
-
* @see https://github.com/
|
|
690
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/default.md
|
|
686
691
|
*/
|
|
687
|
-
'import/default'?: Linter.RuleEntry<[]>
|
|
692
|
+
'import-x/default'?: Linter.RuleEntry<[]>
|
|
688
693
|
/**
|
|
689
694
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
690
|
-
* @see https://github.com/
|
|
691
|
-
*/
|
|
692
|
-
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
693
|
-
/**
|
|
694
|
-
* Enforce either using, or omitting, the `node:` protocol when importing Node.js builtin modules.
|
|
695
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/enforce-node-protocol-usage.md
|
|
695
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/dynamic-import-chunkname.md
|
|
696
696
|
*/
|
|
697
|
-
'import/
|
|
697
|
+
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
698
698
|
/**
|
|
699
699
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
700
|
-
* @see https://github.com/
|
|
700
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/export.md
|
|
701
701
|
*/
|
|
702
|
-
'import/export'?: Linter.RuleEntry<[]>
|
|
702
|
+
'import-x/export'?: Linter.RuleEntry<[]>
|
|
703
703
|
/**
|
|
704
704
|
* Ensure all exports appear after other statements.
|
|
705
|
-
* @see https://github.com/
|
|
705
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/exports-last.md
|
|
706
706
|
*/
|
|
707
|
-
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
707
|
+
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
708
708
|
/**
|
|
709
709
|
* Ensure consistent use of file extension within the import path.
|
|
710
|
-
* @see https://github.com/
|
|
710
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/extensions.md
|
|
711
711
|
*/
|
|
712
|
-
'import/extensions'?: Linter.RuleEntry<
|
|
712
|
+
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
713
713
|
/**
|
|
714
714
|
* Ensure all imports appear before other statements.
|
|
715
|
-
* @see https://github.com/
|
|
715
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/first.md
|
|
716
716
|
*/
|
|
717
|
-
'import/first'?: Linter.RuleEntry<
|
|
717
|
+
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
718
718
|
/**
|
|
719
|
-
* Prefer named exports to be grouped together in a single export declaration
|
|
720
|
-
* @see https://github.com/
|
|
719
|
+
* Prefer named exports to be grouped together in a single export declaration.
|
|
720
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/group-exports.md
|
|
721
721
|
*/
|
|
722
|
-
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
722
|
+
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
723
723
|
/**
|
|
724
|
-
* Replaced by `import/first`.
|
|
725
|
-
* @see https://github.com/
|
|
724
|
+
* Replaced by `import-x/first`.
|
|
725
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/imports-first.md
|
|
726
726
|
* @deprecated
|
|
727
727
|
*/
|
|
728
|
-
'import/imports-first'?: Linter.RuleEntry<
|
|
728
|
+
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
729
729
|
/**
|
|
730
730
|
* Enforce the maximum number of dependencies a module can have.
|
|
731
|
-
* @see https://github.com/
|
|
731
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/max-dependencies.md
|
|
732
732
|
*/
|
|
733
|
-
'import/max-dependencies'?: Linter.RuleEntry<
|
|
733
|
+
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
734
734
|
/**
|
|
735
735
|
* Ensure named imports correspond to a named export in the remote file.
|
|
736
|
-
* @see https://github.com/
|
|
736
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/named.md
|
|
737
737
|
*/
|
|
738
|
-
'import/named'?: Linter.RuleEntry<
|
|
738
|
+
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
739
739
|
/**
|
|
740
740
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
741
|
-
* @see https://github.com/
|
|
741
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/namespace.md
|
|
742
742
|
*/
|
|
743
|
-
'import/namespace'?: Linter.RuleEntry<
|
|
743
|
+
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
744
744
|
/**
|
|
745
745
|
* Enforce a newline after import statements.
|
|
746
|
-
* @see https://github.com/
|
|
746
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/newline-after-import.md
|
|
747
747
|
*/
|
|
748
|
-
'import/newline-after-import'?: Linter.RuleEntry<
|
|
748
|
+
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
749
749
|
/**
|
|
750
750
|
* Forbid import of modules using absolute paths.
|
|
751
|
-
* @see https://github.com/
|
|
751
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-absolute-path.md
|
|
752
752
|
*/
|
|
753
|
-
'import/no-absolute-path'?: Linter.RuleEntry<
|
|
753
|
+
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
754
754
|
/**
|
|
755
755
|
* Forbid AMD `require` and `define` calls.
|
|
756
|
-
* @see https://github.com/
|
|
756
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-amd.md
|
|
757
757
|
*/
|
|
758
|
-
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
758
|
+
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
759
759
|
/**
|
|
760
760
|
* Forbid anonymous values as default exports.
|
|
761
|
-
* @see https://github.com/
|
|
761
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-anonymous-default-export.md
|
|
762
762
|
*/
|
|
763
|
-
'import/no-anonymous-default-export'?: Linter.RuleEntry<
|
|
763
|
+
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
764
764
|
/**
|
|
765
765
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
766
|
-
* @see https://github.com/
|
|
766
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-commonjs.md
|
|
767
767
|
*/
|
|
768
|
-
'import/no-commonjs'?: Linter.RuleEntry<
|
|
768
|
+
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
769
769
|
/**
|
|
770
770
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
771
|
-
* @see https://github.com/
|
|
771
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-cycle.md
|
|
772
772
|
*/
|
|
773
|
-
'import/no-cycle'?: Linter.RuleEntry<
|
|
773
|
+
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
774
774
|
/**
|
|
775
775
|
* Forbid default exports.
|
|
776
|
-
* @see https://github.com/
|
|
776
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-default-export.md
|
|
777
777
|
*/
|
|
778
|
-
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
778
|
+
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
779
779
|
/**
|
|
780
780
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
781
|
-
* @see https://github.com/
|
|
781
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-deprecated.md
|
|
782
782
|
*/
|
|
783
|
-
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
783
|
+
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
784
784
|
/**
|
|
785
785
|
* Forbid repeated import of the same module in multiple places.
|
|
786
|
-
* @see https://github.com/
|
|
786
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-duplicates.md
|
|
787
787
|
*/
|
|
788
|
-
'import/no-duplicates'?: Linter.RuleEntry<
|
|
788
|
+
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
789
789
|
/**
|
|
790
790
|
* Forbid `require()` calls with expressions.
|
|
791
|
-
* @see https://github.com/
|
|
791
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-dynamic-require.md
|
|
792
792
|
*/
|
|
793
|
-
'import/no-dynamic-require'?: Linter.RuleEntry<
|
|
793
|
+
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
794
794
|
/**
|
|
795
795
|
* Forbid empty named import blocks.
|
|
796
|
-
* @see https://github.com/
|
|
796
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-empty-named-blocks.md
|
|
797
797
|
*/
|
|
798
|
-
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
798
|
+
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
799
799
|
/**
|
|
800
800
|
* Forbid the use of extraneous packages.
|
|
801
|
-
* @see https://github.com/
|
|
801
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-extraneous-dependencies.md
|
|
802
802
|
*/
|
|
803
|
-
'import/no-extraneous-dependencies'?: Linter.RuleEntry<
|
|
803
|
+
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
804
804
|
/**
|
|
805
805
|
* Forbid import statements with CommonJS module.exports.
|
|
806
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-import-module-exports.md
|
|
806
807
|
*/
|
|
807
|
-
'import/no-import-module-exports'?: Linter.RuleEntry<
|
|
808
|
+
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
808
809
|
/**
|
|
809
810
|
* Forbid importing the submodules of other modules.
|
|
810
|
-
* @see https://github.com/
|
|
811
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-internal-modules.md
|
|
811
812
|
*/
|
|
812
|
-
'import/no-internal-modules'?: Linter.RuleEntry<
|
|
813
|
+
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
813
814
|
/**
|
|
814
815
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
815
|
-
* @see https://github.com/
|
|
816
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-mutable-exports.md
|
|
816
817
|
*/
|
|
817
|
-
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
818
|
+
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
818
819
|
/**
|
|
819
820
|
* Forbid use of exported name as identifier of default export.
|
|
820
|
-
* @see https://github.com/
|
|
821
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-as-default.md
|
|
821
822
|
*/
|
|
822
|
-
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
823
|
+
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
823
824
|
/**
|
|
824
825
|
* Forbid use of exported name as property of default export.
|
|
825
|
-
* @see https://github.com/
|
|
826
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-as-default-member.md
|
|
826
827
|
*/
|
|
827
|
-
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
828
|
+
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
828
829
|
/**
|
|
829
830
|
* Forbid named default exports.
|
|
830
|
-
* @see https://github.com/
|
|
831
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-default.md
|
|
831
832
|
*/
|
|
832
|
-
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
833
|
+
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
833
834
|
/**
|
|
834
835
|
* Forbid named exports.
|
|
835
|
-
* @see https://github.com/
|
|
836
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-named-export.md
|
|
836
837
|
*/
|
|
837
|
-
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
838
|
+
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
838
839
|
/**
|
|
839
840
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
840
|
-
* @see https://github.com/
|
|
841
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-namespace.md
|
|
841
842
|
*/
|
|
842
|
-
'import/no-namespace'?: Linter.RuleEntry<
|
|
843
|
+
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
843
844
|
/**
|
|
844
845
|
* Forbid Node.js builtin modules.
|
|
845
|
-
* @see https://github.com/
|
|
846
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-nodejs-modules.md
|
|
846
847
|
*/
|
|
847
|
-
'import/no-nodejs-modules'?: Linter.RuleEntry<
|
|
848
|
+
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
848
849
|
/**
|
|
849
850
|
* Forbid importing packages through relative paths.
|
|
850
|
-
* @see https://github.com/
|
|
851
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-relative-packages.md
|
|
851
852
|
*/
|
|
852
|
-
'import/no-relative-packages'?: Linter.RuleEntry<
|
|
853
|
+
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
853
854
|
/**
|
|
854
855
|
* Forbid importing modules from parent directories.
|
|
855
|
-
* @see https://github.com/
|
|
856
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-relative-parent-imports.md
|
|
856
857
|
*/
|
|
857
|
-
'import/no-relative-parent-imports'?: Linter.RuleEntry<
|
|
858
|
+
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
859
|
+
/**
|
|
860
|
+
* Forbid importing a default export by a different name.
|
|
861
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-rename-default.md
|
|
862
|
+
*/
|
|
863
|
+
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
858
864
|
/**
|
|
859
865
|
* Enforce which files can be imported in a given folder.
|
|
860
|
-
* @see https://github.com/
|
|
866
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-restricted-paths.md
|
|
861
867
|
*/
|
|
862
|
-
'import/no-restricted-paths'?: Linter.RuleEntry<
|
|
868
|
+
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
863
869
|
/**
|
|
864
870
|
* Forbid a module from importing itself.
|
|
865
|
-
* @see https://github.com/
|
|
871
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-self-import.md
|
|
866
872
|
*/
|
|
867
|
-
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
873
|
+
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
868
874
|
/**
|
|
869
|
-
* Forbid unassigned imports
|
|
870
|
-
* @see https://github.com/
|
|
875
|
+
* Forbid unassigned imports.
|
|
876
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-unassigned-import.md
|
|
871
877
|
*/
|
|
872
|
-
'import/no-unassigned-import'?: Linter.RuleEntry<
|
|
878
|
+
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
873
879
|
/**
|
|
874
880
|
* Ensure imports point to a file/module that can be resolved.
|
|
875
|
-
* @see https://github.com/
|
|
881
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-unresolved.md
|
|
876
882
|
*/
|
|
877
|
-
'import/no-unresolved'?: Linter.RuleEntry<
|
|
883
|
+
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
878
884
|
/**
|
|
879
885
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
880
|
-
* @see https://github.com/
|
|
886
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-unused-modules.md
|
|
881
887
|
*/
|
|
882
|
-
'import/no-unused-modules'?: Linter.RuleEntry<
|
|
888
|
+
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
883
889
|
/**
|
|
884
890
|
* Forbid unnecessary path segments in import and require statements.
|
|
885
|
-
* @see https://github.com/
|
|
891
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-useless-path-segments.md
|
|
886
892
|
*/
|
|
887
|
-
'import/no-useless-path-segments'?: Linter.RuleEntry<
|
|
893
|
+
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
888
894
|
/**
|
|
889
895
|
* Forbid webpack loader syntax in imports.
|
|
890
|
-
* @see https://github.com/
|
|
896
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/no-webpack-loader-syntax.md
|
|
891
897
|
*/
|
|
892
|
-
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
898
|
+
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
893
899
|
/**
|
|
894
900
|
* Enforce a convention in module import order.
|
|
895
|
-
* @see https://github.com/
|
|
901
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/order.md
|
|
896
902
|
*/
|
|
897
|
-
'import/order'?: Linter.RuleEntry<
|
|
903
|
+
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
898
904
|
/**
|
|
899
905
|
* Prefer a default export if module exports a single name or multiple names.
|
|
900
|
-
* @see https://github.com/
|
|
906
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/prefer-default-export.md
|
|
907
|
+
*/
|
|
908
|
+
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
909
|
+
/**
|
|
910
|
+
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
911
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/prefer-namespace-import.md
|
|
901
912
|
*/
|
|
902
|
-
'import/prefer-
|
|
913
|
+
'import-x/prefer-namespace-import'?: Linter.RuleEntry<ImportXPreferNamespaceImport>
|
|
903
914
|
/**
|
|
904
915
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
905
|
-
* @see https://github.com/
|
|
916
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.2/docs/rules/unambiguous.md
|
|
906
917
|
*/
|
|
907
|
-
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
918
|
+
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
908
919
|
/**
|
|
909
920
|
* enforce line breaks after opening and before closing array brackets
|
|
910
921
|
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html
|
|
@@ -1130,6 +1141,11 @@ export interface RuleOptions {
|
|
|
1130
1141
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
1131
1142
|
*/
|
|
1132
1143
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
1144
|
+
/**
|
|
1145
|
+
* Require or disallow metadata for fenced code blocks
|
|
1146
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
1147
|
+
*/
|
|
1148
|
+
'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>
|
|
1133
1149
|
/**
|
|
1134
1150
|
* Enforce heading levels increment by one
|
|
1135
1151
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -2144,6 +2160,11 @@ export interface RuleOptions {
|
|
|
2144
2160
|
* @see https://eslint.vuejs.org/rules/no-lifecycle-after-await.html
|
|
2145
2161
|
*/
|
|
2146
2162
|
'vue/no-lifecycle-after-await'?: Linter.RuleEntry<[]>
|
|
2163
|
+
/**
|
|
2164
|
+
* disallow object, array, and function literals in template
|
|
2165
|
+
* @see https://eslint.vuejs.org/rules/no-literals-in-template.html
|
|
2166
|
+
*/
|
|
2167
|
+
'vue/no-literals-in-template'?: Linter.RuleEntry<[]>
|
|
2147
2168
|
/**
|
|
2148
2169
|
* disallow unnecessary `<template>`
|
|
2149
2170
|
* @see https://eslint.vuejs.org/rules/no-lone-template.html
|
|
@@ -2354,6 +2375,11 @@ export interface RuleOptions {
|
|
|
2354
2375
|
* @see https://eslint.vuejs.org/rules/no-undef-components.html
|
|
2355
2376
|
*/
|
|
2356
2377
|
'vue/no-undef-components'?: Linter.RuleEntry<VueNoUndefComponents>
|
|
2378
|
+
/**
|
|
2379
|
+
* disallow use of undefined custom directives
|
|
2380
|
+
* @see https://eslint.vuejs.org/rules/no-undef-directives.html
|
|
2381
|
+
*/
|
|
2382
|
+
'vue/no-undef-directives'?: Linter.RuleEntry<VueNoUndefDirectives>
|
|
2357
2383
|
/**
|
|
2358
2384
|
* disallow undefined properties
|
|
2359
2385
|
* @see https://eslint.vuejs.org/rules/no-undef-properties.html
|
|
@@ -2827,7 +2853,7 @@ export interface RuleOptions {
|
|
|
2827
2853
|
* enforce valid `v-for` directives
|
|
2828
2854
|
* @see https://eslint.vuejs.org/rules/valid-v-for.html
|
|
2829
2855
|
*/
|
|
2830
|
-
'vue/valid-v-for'?: Linter.RuleEntry<
|
|
2856
|
+
'vue/valid-v-for'?: Linter.RuleEntry<VueValidVFor>
|
|
2831
2857
|
/**
|
|
2832
2858
|
* enforce valid `v-html` directives
|
|
2833
2859
|
* @see https://eslint.vuejs.org/rules/valid-v-html.html
|
|
@@ -3746,6 +3772,11 @@ type TypescriptEslintNoUnusedVars = []|[(("all" | "local") | {
|
|
|
3746
3772
|
|
|
3747
3773
|
destructuredArrayIgnorePattern?: string
|
|
3748
3774
|
|
|
3775
|
+
enableAutofixRemoval?: {
|
|
3776
|
+
|
|
3777
|
+
imports?: boolean
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3749
3780
|
ignoreClassWithStaticInitBlock?: boolean
|
|
3750
3781
|
|
|
3751
3782
|
ignoreRestSiblings?: boolean
|
|
@@ -3775,6 +3806,11 @@ type TypescriptEslintNoUseBeforeDefine = []|[("nofunc" | {
|
|
|
3775
3806
|
|
|
3776
3807
|
variables?: boolean
|
|
3777
3808
|
})]
|
|
3809
|
+
// ----- @typescript-eslint/no-useless-default-assignment -----
|
|
3810
|
+
type TypescriptEslintNoUselessDefaultAssignment = []|[{
|
|
3811
|
+
|
|
3812
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
3813
|
+
}]
|
|
3778
3814
|
// ----- @typescript-eslint/no-var-requires -----
|
|
3779
3815
|
type TypescriptEslintNoVarRequires = []|[{
|
|
3780
3816
|
|
|
@@ -3893,6 +3929,19 @@ type TypescriptEslintPreferOptionalChain = []|[{
|
|
|
3893
3929
|
// ----- @typescript-eslint/prefer-promise-reject-errors -----
|
|
3894
3930
|
type TypescriptEslintPreferPromiseRejectErrors = []|[{
|
|
3895
3931
|
|
|
3932
|
+
allow?: (string | {
|
|
3933
|
+
from: "file"
|
|
3934
|
+
name: (string | [string, ...(string)[]])
|
|
3935
|
+
path?: string
|
|
3936
|
+
} | {
|
|
3937
|
+
from: "lib"
|
|
3938
|
+
name: (string | [string, ...(string)[]])
|
|
3939
|
+
} | {
|
|
3940
|
+
from: "package"
|
|
3941
|
+
name: (string | [string, ...(string)[]])
|
|
3942
|
+
package: string
|
|
3943
|
+
})[]
|
|
3944
|
+
|
|
3896
3945
|
allowEmptyReject?: boolean
|
|
3897
3946
|
|
|
3898
3947
|
allowThrowingAny?: boolean
|
|
@@ -4030,6 +4079,11 @@ type TypescriptEslintStrictBooleanExpressions = []|[{
|
|
|
4030
4079
|
|
|
4031
4080
|
allowString?: boolean
|
|
4032
4081
|
}]
|
|
4082
|
+
// ----- @typescript-eslint/strict-void-return -----
|
|
4083
|
+
type TypescriptEslintStrictVoidReturn = []|[{
|
|
4084
|
+
|
|
4085
|
+
allowReturnAny?: boolean
|
|
4086
|
+
}]
|
|
4033
4087
|
// ----- @typescript-eslint/switch-exhaustiveness-check -----
|
|
4034
4088
|
type TypescriptEslintSwitchExhaustivenessCheck = []|[{
|
|
4035
4089
|
|
|
@@ -4081,24 +4135,22 @@ type TypescriptEslintUnifiedSignatures = []|[{
|
|
|
4081
4135
|
|
|
4082
4136
|
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
4083
4137
|
}]
|
|
4084
|
-
// ----- import/consistent-type-specifier-style -----
|
|
4085
|
-
type
|
|
4086
|
-
// ----- import/dynamic-import-chunkname -----
|
|
4087
|
-
type
|
|
4138
|
+
// ----- import-x/consistent-type-specifier-style -----
|
|
4139
|
+
type ImportXConsistentTypeSpecifierStyle = []|[("prefer-top-level" | "prefer-inline")]
|
|
4140
|
+
// ----- import-x/dynamic-import-chunkname -----
|
|
4141
|
+
type ImportXDynamicImportChunkname = []|[{
|
|
4088
4142
|
importFunctions?: string[]
|
|
4089
4143
|
allowEmpty?: boolean
|
|
4090
4144
|
webpackChunknameFormat?: string
|
|
4091
4145
|
[k: string]: unknown | undefined
|
|
4092
4146
|
}]
|
|
4093
|
-
// ----- import/
|
|
4094
|
-
type
|
|
4095
|
-
// ----- import/extensions -----
|
|
4096
|
-
type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("always" | "ignorePackages" | "never")]|[("always" | "ignorePackages" | "never"), {
|
|
4147
|
+
// ----- import-x/extensions -----
|
|
4148
|
+
type ImportXExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("always" | "ignorePackages" | "never")]|[("always" | "ignorePackages" | "never"), {
|
|
4097
4149
|
pattern?: {
|
|
4098
4150
|
[k: string]: ("always" | "ignorePackages" | "never")
|
|
4099
4151
|
}
|
|
4100
|
-
checkTypeImports?: boolean
|
|
4101
4152
|
ignorePackages?: boolean
|
|
4153
|
+
checkTypeImports?: boolean
|
|
4102
4154
|
pathGroupOverrides?: {
|
|
4103
4155
|
pattern: string
|
|
4104
4156
|
patternOptions?: {
|
|
@@ -4106,13 +4158,14 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
|
|
|
4106
4158
|
}
|
|
4107
4159
|
action: ("enforce" | "ignore")
|
|
4108
4160
|
}[]
|
|
4161
|
+
fix?: boolean
|
|
4109
4162
|
[k: string]: unknown | undefined
|
|
4110
4163
|
}] | []|[{
|
|
4111
4164
|
pattern?: {
|
|
4112
4165
|
[k: string]: ("always" | "ignorePackages" | "never")
|
|
4113
4166
|
}
|
|
4114
|
-
checkTypeImports?: boolean
|
|
4115
4167
|
ignorePackages?: boolean
|
|
4168
|
+
checkTypeImports?: boolean
|
|
4116
4169
|
pathGroupOverrides?: {
|
|
4117
4170
|
pattern: string
|
|
4118
4171
|
patternOptions?: {
|
|
@@ -4120,46 +4173,47 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
|
|
|
4120
4173
|
}
|
|
4121
4174
|
action: ("enforce" | "ignore")
|
|
4122
4175
|
}[]
|
|
4176
|
+
fix?: boolean
|
|
4123
4177
|
[k: string]: unknown | undefined
|
|
4124
|
-
}] | []|[{
|
|
4125
|
-
[k: string]: ("always" | "ignorePackages" | "never")
|
|
4126
4178
|
}] | []|[("always" | "ignorePackages" | "never")]|[("always" | "ignorePackages" | "never"), {
|
|
4127
4179
|
[k: string]: ("always" | "ignorePackages" | "never")
|
|
4180
|
+
}] | []|[{
|
|
4181
|
+
[k: string]: ("always" | "ignorePackages" | "never")
|
|
4128
4182
|
}])
|
|
4129
|
-
// ----- import/first -----
|
|
4130
|
-
type
|
|
4131
|
-
// ----- import/imports-first -----
|
|
4132
|
-
type
|
|
4133
|
-
// ----- import/max-dependencies -----
|
|
4134
|
-
type
|
|
4183
|
+
// ----- import-x/first -----
|
|
4184
|
+
type ImportXFirst = []|[("absolute-first" | "disable-absolute-first")]
|
|
4185
|
+
// ----- import-x/imports-first -----
|
|
4186
|
+
type ImportXImportsFirst = []|[("absolute-first" | "disable-absolute-first")]
|
|
4187
|
+
// ----- import-x/max-dependencies -----
|
|
4188
|
+
type ImportXMaxDependencies = []|[{
|
|
4135
4189
|
max?: number
|
|
4136
4190
|
ignoreTypeImports?: boolean
|
|
4137
4191
|
}]
|
|
4138
|
-
// ----- import/named -----
|
|
4139
|
-
type
|
|
4192
|
+
// ----- import-x/named -----
|
|
4193
|
+
type ImportXNamed = []|[{
|
|
4140
4194
|
commonjs?: boolean
|
|
4141
4195
|
}]
|
|
4142
|
-
// ----- import/namespace -----
|
|
4143
|
-
type
|
|
4196
|
+
// ----- import-x/namespace -----
|
|
4197
|
+
type ImportXNamespace = []|[{
|
|
4144
4198
|
|
|
4145
4199
|
allowComputed?: boolean
|
|
4146
4200
|
}]
|
|
4147
|
-
// ----- import/newline-after-import -----
|
|
4148
|
-
type
|
|
4201
|
+
// ----- import-x/newline-after-import -----
|
|
4202
|
+
type ImportXNewlineAfterImport = []|[{
|
|
4149
4203
|
count?: number
|
|
4150
4204
|
exactCount?: boolean
|
|
4151
4205
|
considerComments?: boolean
|
|
4152
4206
|
}]
|
|
4153
|
-
// ----- import/no-absolute-path -----
|
|
4154
|
-
type
|
|
4207
|
+
// ----- import-x/no-absolute-path -----
|
|
4208
|
+
type ImportXNoAbsolutePath = []|[{
|
|
4155
4209
|
commonjs?: boolean
|
|
4156
4210
|
amd?: boolean
|
|
4157
4211
|
esmodule?: boolean
|
|
4158
4212
|
|
|
4159
4213
|
ignore?: [string, ...(string)[]]
|
|
4160
4214
|
}]
|
|
4161
|
-
// ----- import/no-anonymous-default-export -----
|
|
4162
|
-
type
|
|
4215
|
+
// ----- import-x/no-anonymous-default-export -----
|
|
4216
|
+
type ImportXNoAnonymousDefaultExport = []|[{
|
|
4163
4217
|
|
|
4164
4218
|
allowArray?: boolean
|
|
4165
4219
|
|
|
@@ -4177,14 +4231,14 @@ type ImportNoAnonymousDefaultExport = []|[{
|
|
|
4177
4231
|
|
|
4178
4232
|
allowNew?: boolean
|
|
4179
4233
|
}]
|
|
4180
|
-
// ----- import/no-commonjs -----
|
|
4181
|
-
type
|
|
4234
|
+
// ----- import-x/no-commonjs -----
|
|
4235
|
+
type ImportXNoCommonjs = ([]|["allow-primitive-modules"] | []|[{
|
|
4182
4236
|
allowPrimitiveModules?: boolean
|
|
4183
4237
|
allowRequire?: boolean
|
|
4184
4238
|
allowConditionalRequire?: boolean
|
|
4185
4239
|
}])
|
|
4186
|
-
// ----- import/no-cycle -----
|
|
4187
|
-
type
|
|
4240
|
+
// ----- import-x/no-cycle -----
|
|
4241
|
+
type ImportXNoCycle = []|[{
|
|
4188
4242
|
commonjs?: boolean
|
|
4189
4243
|
amd?: boolean
|
|
4190
4244
|
esmodule?: boolean
|
|
@@ -4195,20 +4249,18 @@ type ImportNoCycle = []|[{
|
|
|
4195
4249
|
ignoreExternal?: boolean
|
|
4196
4250
|
|
|
4197
4251
|
allowUnsafeDynamicCyclicDependency?: boolean
|
|
4198
|
-
|
|
4199
|
-
disableScc?: boolean
|
|
4200
4252
|
}]
|
|
4201
|
-
// ----- import/no-duplicates -----
|
|
4202
|
-
type
|
|
4253
|
+
// ----- import-x/no-duplicates -----
|
|
4254
|
+
type ImportXNoDuplicates = []|[{
|
|
4203
4255
|
considerQueryString?: boolean
|
|
4204
4256
|
"prefer-inline"?: boolean
|
|
4205
4257
|
}]
|
|
4206
|
-
// ----- import/no-dynamic-require -----
|
|
4207
|
-
type
|
|
4258
|
+
// ----- import-x/no-dynamic-require -----
|
|
4259
|
+
type ImportXNoDynamicRequire = []|[{
|
|
4208
4260
|
esmodule?: boolean
|
|
4209
4261
|
}]
|
|
4210
|
-
// ----- import/no-extraneous-dependencies -----
|
|
4211
|
-
type
|
|
4262
|
+
// ----- import-x/no-extraneous-dependencies -----
|
|
4263
|
+
type ImportXNoExtraneousDependencies = []|[{
|
|
4212
4264
|
devDependencies?: (boolean | unknown[])
|
|
4213
4265
|
optionalDependencies?: (boolean | unknown[])
|
|
4214
4266
|
peerDependencies?: (boolean | unknown[])
|
|
@@ -4216,67 +4268,73 @@ type ImportNoExtraneousDependencies = []|[{
|
|
|
4216
4268
|
packageDir?: (string | unknown[])
|
|
4217
4269
|
includeInternal?: boolean
|
|
4218
4270
|
includeTypes?: boolean
|
|
4271
|
+
whitelist?: unknown[]
|
|
4219
4272
|
}]
|
|
4220
|
-
// ----- import/no-import-module-exports -----
|
|
4221
|
-
type
|
|
4273
|
+
// ----- import-x/no-import-module-exports -----
|
|
4274
|
+
type ImportXNoImportModuleExports = []|[{
|
|
4222
4275
|
exceptions?: unknown[]
|
|
4223
4276
|
}]
|
|
4224
|
-
// ----- import/no-internal-modules -----
|
|
4225
|
-
type
|
|
4277
|
+
// ----- import-x/no-internal-modules -----
|
|
4278
|
+
type ImportXNoInternalModules = []|[({
|
|
4226
4279
|
allow?: string[]
|
|
4227
4280
|
} | {
|
|
4228
4281
|
forbid?: string[]
|
|
4229
4282
|
})]
|
|
4230
|
-
// ----- import/no-namespace -----
|
|
4231
|
-
type
|
|
4283
|
+
// ----- import-x/no-namespace -----
|
|
4284
|
+
type ImportXNoNamespace = []|[{
|
|
4232
4285
|
ignore?: string[]
|
|
4233
4286
|
[k: string]: unknown | undefined
|
|
4234
4287
|
}]
|
|
4235
|
-
// ----- import/no-nodejs-modules -----
|
|
4236
|
-
type
|
|
4288
|
+
// ----- import-x/no-nodejs-modules -----
|
|
4289
|
+
type ImportXNoNodejsModules = []|[{
|
|
4237
4290
|
allow?: string[]
|
|
4238
4291
|
}]
|
|
4239
|
-
// ----- import/no-relative-packages -----
|
|
4240
|
-
type
|
|
4292
|
+
// ----- import-x/no-relative-packages -----
|
|
4293
|
+
type ImportXNoRelativePackages = []|[{
|
|
4241
4294
|
commonjs?: boolean
|
|
4242
4295
|
amd?: boolean
|
|
4243
4296
|
esmodule?: boolean
|
|
4244
4297
|
|
|
4245
4298
|
ignore?: [string, ...(string)[]]
|
|
4246
4299
|
}]
|
|
4247
|
-
// ----- import/no-relative-parent-imports -----
|
|
4248
|
-
type
|
|
4300
|
+
// ----- import-x/no-relative-parent-imports -----
|
|
4301
|
+
type ImportXNoRelativeParentImports = []|[{
|
|
4249
4302
|
commonjs?: boolean
|
|
4250
4303
|
amd?: boolean
|
|
4251
4304
|
esmodule?: boolean
|
|
4252
4305
|
|
|
4253
4306
|
ignore?: [string, ...(string)[]]
|
|
4254
4307
|
}]
|
|
4255
|
-
// ----- import/no-
|
|
4256
|
-
type
|
|
4308
|
+
// ----- import-x/no-rename-default -----
|
|
4309
|
+
type ImportXNoRenameDefault = []|[{
|
|
4310
|
+
commonjs?: boolean
|
|
4311
|
+
preventRenamingBindings?: boolean
|
|
4312
|
+
}]
|
|
4313
|
+
// ----- import-x/no-restricted-paths -----
|
|
4314
|
+
type ImportXNoRestrictedPaths = []|[{
|
|
4257
4315
|
|
|
4258
4316
|
zones?: [{
|
|
4259
|
-
target?: (string | string[])
|
|
4260
|
-
from?: (string | string[])
|
|
4317
|
+
target?: (string | [string, ...(string)[]])
|
|
4318
|
+
from?: (string | [string, ...(string)[]])
|
|
4261
4319
|
except?: string[]
|
|
4262
4320
|
message?: string
|
|
4263
4321
|
}, ...({
|
|
4264
|
-
target?: (string | string[])
|
|
4265
|
-
from?: (string | string[])
|
|
4322
|
+
target?: (string | [string, ...(string)[]])
|
|
4323
|
+
from?: (string | [string, ...(string)[]])
|
|
4266
4324
|
except?: string[]
|
|
4267
4325
|
message?: string
|
|
4268
4326
|
})[]]
|
|
4269
4327
|
basePath?: string
|
|
4270
4328
|
}]
|
|
4271
|
-
// ----- import/no-unassigned-import -----
|
|
4272
|
-
type
|
|
4329
|
+
// ----- import-x/no-unassigned-import -----
|
|
4330
|
+
type ImportXNoUnassignedImport = []|[{
|
|
4273
4331
|
devDependencies?: (boolean | unknown[])
|
|
4274
4332
|
optionalDependencies?: (boolean | unknown[])
|
|
4275
4333
|
peerDependencies?: (boolean | unknown[])
|
|
4276
4334
|
allow?: string[]
|
|
4277
4335
|
}]
|
|
4278
|
-
// ----- import/no-unresolved -----
|
|
4279
|
-
type
|
|
4336
|
+
// ----- import-x/no-unresolved -----
|
|
4337
|
+
type ImportXNoUnresolved = []|[{
|
|
4280
4338
|
commonjs?: boolean
|
|
4281
4339
|
amd?: boolean
|
|
4282
4340
|
esmodule?: boolean
|
|
@@ -4285,25 +4343,24 @@ type ImportNoUnresolved = []|[{
|
|
|
4285
4343
|
caseSensitive?: boolean
|
|
4286
4344
|
caseSensitiveStrict?: boolean
|
|
4287
4345
|
}]
|
|
4288
|
-
// ----- import/no-unused-modules -----
|
|
4289
|
-
type
|
|
4346
|
+
// ----- import-x/no-unused-modules -----
|
|
4347
|
+
type ImportXNoUnusedModules = []|[({
|
|
4290
4348
|
unusedExports: true
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
}
|
|
4349
|
+
|
|
4350
|
+
src?: [unknown, ...(unknown)[]]
|
|
4294
4351
|
[k: string]: unknown | undefined
|
|
4295
4352
|
} | {
|
|
4296
4353
|
missingExports: true
|
|
4297
4354
|
[k: string]: unknown | undefined
|
|
4298
4355
|
})]
|
|
4299
|
-
// ----- import/no-useless-path-segments -----
|
|
4300
|
-
type
|
|
4356
|
+
// ----- import-x/no-useless-path-segments -----
|
|
4357
|
+
type ImportXNoUselessPathSegments = []|[{
|
|
4301
4358
|
commonjs?: boolean
|
|
4302
4359
|
noUselessIndex?: boolean
|
|
4303
4360
|
}]
|
|
4304
|
-
// ----- import/order -----
|
|
4305
|
-
type
|
|
4306
|
-
groups?:
|
|
4361
|
+
// ----- import-x/order -----
|
|
4362
|
+
type ImportXOrder = []|[{
|
|
4363
|
+
groups?: unknown[]
|
|
4307
4364
|
pathGroupsExcludedImportTypes?: unknown[]
|
|
4308
4365
|
distinctGroup?: boolean
|
|
4309
4366
|
pathGroups?: {
|
|
@@ -4333,10 +4390,14 @@ type ImportOrder = []|[{
|
|
|
4333
4390
|
}
|
|
4334
4391
|
warnOnUnassignedImports?: boolean
|
|
4335
4392
|
}]
|
|
4336
|
-
// ----- import/prefer-default-export -----
|
|
4337
|
-
type
|
|
4393
|
+
// ----- import-x/prefer-default-export -----
|
|
4394
|
+
type ImportXPreferDefaultExport = []|[{
|
|
4338
4395
|
target?: ("single" | "any")
|
|
4339
4396
|
}]
|
|
4397
|
+
// ----- import-x/prefer-namespace-import -----
|
|
4398
|
+
type ImportXPreferNamespaceImport = []|[{
|
|
4399
|
+
patterns?: string[]
|
|
4400
|
+
}]
|
|
4340
4401
|
// ----- jsonc/array-bracket-newline -----
|
|
4341
4402
|
type JsoncArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
4342
4403
|
multiline?: boolean
|
|
@@ -4504,6 +4565,7 @@ type JsoncObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
4504
4565
|
type JsoncObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
4505
4566
|
arraysInObjects?: boolean
|
|
4506
4567
|
objectsInObjects?: boolean
|
|
4568
|
+
emptyObjects?: ("ignore" | "always" | "never")
|
|
4507
4569
|
}]
|
|
4508
4570
|
// ----- jsonc/object-property-newline -----
|
|
4509
4571
|
type JsoncObjectPropertyNewline = []|[{
|
|
@@ -4606,6 +4668,8 @@ type JsoncSpaceUnaryOps = []|[{
|
|
|
4606
4668
|
type MarkdownFencedCodeLanguage = []|[{
|
|
4607
4669
|
required?: string[]
|
|
4608
4670
|
}]
|
|
4671
|
+
// ----- markdown/fenced-code-meta -----
|
|
4672
|
+
type MarkdownFencedCodeMeta = []|[("always" | "never")]
|
|
4609
4673
|
// ----- markdown/heading-increment -----
|
|
4610
4674
|
type MarkdownHeadingIncrement = []|[{
|
|
4611
4675
|
frontmatterTitle?: string
|
|
@@ -4614,6 +4678,7 @@ type MarkdownHeadingIncrement = []|[{
|
|
|
4614
4678
|
type MarkdownNoDuplicateDefinitions = []|[{
|
|
4615
4679
|
allowDefinitions?: string[]
|
|
4616
4680
|
allowFootnoteDefinitions?: string[]
|
|
4681
|
+
checkFootnoteDefinitions?: boolean
|
|
4617
4682
|
}]
|
|
4618
4683
|
// ----- markdown/no-duplicate-headings -----
|
|
4619
4684
|
type MarkdownNoDuplicateHeadings = []|[{
|
|
@@ -4655,6 +4720,7 @@ type MarkdownNoSpaceInEmphasis = []|[{
|
|
|
4655
4720
|
type MarkdownNoUnusedDefinitions = []|[{
|
|
4656
4721
|
allowDefinitions?: string[]
|
|
4657
4722
|
allowFootnoteDefinitions?: string[]
|
|
4723
|
+
checkFootnoteDefinitions?: boolean
|
|
4658
4724
|
}]
|
|
4659
4725
|
// ----- markdown/table-column-count -----
|
|
4660
4726
|
type MarkdownTableColumnCount = []|[{
|
|
@@ -4832,6 +4898,7 @@ type VueAttributesOrder = []|[{
|
|
|
4832
4898
|
order?: (("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT") | ("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT")[])[]
|
|
4833
4899
|
alphabetical?: boolean
|
|
4834
4900
|
sortLineLength?: boolean
|
|
4901
|
+
ignoreVBindObject?: boolean
|
|
4835
4902
|
}]
|
|
4836
4903
|
// ----- vue/block-lang -----
|
|
4837
4904
|
type VueBlockLang = []|[{
|
|
@@ -4924,7 +4991,7 @@ type VueDefineMacrosOrder = []|[{
|
|
|
4924
4991
|
type VueDefinePropsDeclaration = []|[("type-based" | "runtime")]
|
|
4925
4992
|
// ----- vue/define-props-destructuring -----
|
|
4926
4993
|
type VueDefinePropsDestructuring = []|[{
|
|
4927
|
-
destructure?: ("always" | "never")
|
|
4994
|
+
destructure?: ("only-when-assigned" | "always" | "never")
|
|
4928
4995
|
}]
|
|
4929
4996
|
// ----- vue/dot-location -----
|
|
4930
4997
|
type VueDotLocation = []|[("object" | "property")]
|
|
@@ -5576,6 +5643,7 @@ type VueNoLoneTemplate = []|[{
|
|
|
5576
5643
|
// ----- vue/no-multi-spaces -----
|
|
5577
5644
|
type VueNoMultiSpaces = []|[{
|
|
5578
5645
|
ignoreProperties?: boolean
|
|
5646
|
+
ignoreEOLComments?: boolean
|
|
5579
5647
|
}]
|
|
5580
5648
|
// ----- vue/no-multiple-template-root -----
|
|
5581
5649
|
type VueNoMultipleTemplateRoot = []|[{
|
|
@@ -5736,6 +5804,10 @@ type VueNoTemplateTargetBlank = []|[{
|
|
|
5736
5804
|
type VueNoUndefComponents = []|[{
|
|
5737
5805
|
ignorePatterns?: unknown[]
|
|
5738
5806
|
}]
|
|
5807
|
+
// ----- vue/no-undef-directives -----
|
|
5808
|
+
type VueNoUndefDirectives = []|[{
|
|
5809
|
+
ignore?: string[]
|
|
5810
|
+
}]
|
|
5739
5811
|
// ----- vue/no-undef-properties -----
|
|
5740
5812
|
type VueNoUndefProperties = []|[{
|
|
5741
5813
|
ignores?: string[]
|
|
@@ -5979,6 +6051,10 @@ type VueVSlotStyle = []|[(("shorthand" | "longform") | {
|
|
|
5979
6051
|
default?: ("shorthand" | "longform" | "v-slot")
|
|
5980
6052
|
named?: ("shorthand" | "longform")
|
|
5981
6053
|
})]
|
|
6054
|
+
// ----- vue/valid-v-for -----
|
|
6055
|
+
type VueValidVFor = []|[{
|
|
6056
|
+
allowEmptyAlias?: boolean
|
|
6057
|
+
}]
|
|
5982
6058
|
// ----- vue/valid-v-on -----
|
|
5983
6059
|
type VueValidVOn = []|[{
|
|
5984
6060
|
modifiers?: unknown[]
|
|
@@ -5988,4 +6064,4 @@ type VueValidVSlot = []|[{
|
|
|
5988
6064
|
allowModifiers?: boolean
|
|
5989
6065
|
}]
|
|
5990
6066
|
// Names of all the configs
|
|
5991
|
-
export type ConfigNames = '@fast-china/ignores/global' | 'gitignore' | '@fast-china/common' | '@fast-china/javascript >
|
|
6067
|
+
export type ConfigNames = '@fast-china/ignores/global' | 'gitignore' | '@fast-china/common' | '@fast-china/javascript > @eslint/js/recommended' | '@fast-china/javascript' | '@fast-china/javascript/md/js' | '@fast-china/javascript/script' | '@fast-china/import > import-x/recommended' | '@fast-china/import > import-x/typescript' | '@fast-china/import' | '@fast-china/regexp' | '@fast-china/typescript > typescript-eslint/base' | '@fast-china/typescript > typescript-eslint/eslint-recommended' | '@fast-china/typescript > typescript-eslint/recommended' | '@fast-china/typescript' | '@fast-china/typescript/dts' | '@fast-china/typescript/vite' | '@fast-china/typescript/md/js' | '@fast-china/json > ExtendedConfig[0]' | '@fast-china/json > ExtendedConfig[1]' | '@fast-china/json > ExtendedConfig[2]' | '@fast-china/json > ExtendedConfig[3]' | '@fast-china/json > ExtendedConfig[4]' | '@fast-china/json > ExtendedConfig[5]' | '@fast-china/json > ExtendedConfig[6]' | '@fast-china/json > ExtendedConfig[7]' | '@fast-china/json > ExtendedConfig[8]' | '@fast-china/json' | '@fast-china/json/settings' | '@fast-china/sort/package' | '@fast-china/sort/tsconfig' | '@fast-china/vue/ts > @fast-china/typescript > typescript-eslint/base' | '@fast-china/vue/ts > @fast-china/typescript > typescript-eslint/eslint-recommended' | '@fast-china/vue/ts > @fast-china/typescript > typescript-eslint/recommended' | '@fast-china/vue/ts > @fast-china/typescript' | '@fast-china/vue/ts' | '@fast-china/vue > vue/base/setup' | '@fast-china/vue > vue/base/setup-for-vue' | '@fast-china/vue > vue/essential/rules' | '@fast-china/vue > vue/strongly-recommended/rules' | '@fast-china/vue > vue/recommended/rules' | '@fast-china/vue' | '@fast-china/reactivity' | '@fast-china/markdown > markdown/recommended' | '@fast-china/markdown' | '@fast-china/prettier > config-prettier' | '@fast-china/prettier > eslint-plugin-prettier/recommended' | '@fast-china/prettier' | '@eslint/js/recommended'
|