@ntnyq/eslint-config 3.0.0-beta.4 → 3.0.0-beta.5
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.cjs +14 -0
- package/dist/index.d.cts +118 -56
- package/dist/index.d.ts +118 -56
- package/dist/index.js +14 -0
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1069,6 +1069,7 @@ var vue = (options = {}) => {
|
|
|
1069
1069
|
"vue/require-prop-types": "off",
|
|
1070
1070
|
"vue/require-default-prop": "off",
|
|
1071
1071
|
"vue/multi-word-component-names": "off",
|
|
1072
|
+
"vue/no-v-text-v-html-on-component": "off",
|
|
1072
1073
|
"vue/no-setup-props-reactivity-loss": "off",
|
|
1073
1074
|
"vue/html-self-closing": [
|
|
1074
1075
|
"error",
|
|
@@ -1113,7 +1114,20 @@ var vue = (options = {}) => {
|
|
|
1113
1114
|
exceptions: ["-"]
|
|
1114
1115
|
}
|
|
1115
1116
|
],
|
|
1117
|
+
"vue/no-restricted-v-bind": ["error", "/^v-/"],
|
|
1118
|
+
"vue/no-useless-v-bind": "error",
|
|
1119
|
+
"vue/padding-line-between-blocks": "error",
|
|
1120
|
+
"vue/next-tick-style": ["error", "promise"],
|
|
1116
1121
|
"vue/array-bracket-spacing": ["error", "never"],
|
|
1122
|
+
"vue/prefer-separate-static-class": "error",
|
|
1123
|
+
"vue/no-constant-condition": "error",
|
|
1124
|
+
"vue/prefer-true-attribute-shorthand": ["error", "always"],
|
|
1125
|
+
"vue/prefer-define-options": "error",
|
|
1126
|
+
"vue/valid-define-options": "error",
|
|
1127
|
+
// TypeScript enhancements
|
|
1128
|
+
"vue/define-emits-declaration": ["error", "type-literal"],
|
|
1129
|
+
"vue/no-unused-emit-declarations": "error",
|
|
1130
|
+
"vue/this-in-template": ["error", "never"],
|
|
1117
1131
|
"vue/arrow-spacing": ["error", { before: true, after: true }],
|
|
1118
1132
|
"vue/block-spacing": ["error", "always"],
|
|
1119
1133
|
"vue/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
|
package/dist/index.d.cts
CHANGED
|
@@ -730,233 +730,233 @@ interface RuleOptions {
|
|
|
730
730
|
'command/command'?: Linter.RuleEntry<[]>;
|
|
731
731
|
/**
|
|
732
732
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
733
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
733
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
734
734
|
*/
|
|
735
735
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
736
736
|
/**
|
|
737
737
|
* Ensure a default export is present, given a default import.
|
|
738
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
738
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
739
739
|
*/
|
|
740
740
|
'import/default'?: Linter.RuleEntry<[]>;
|
|
741
741
|
/**
|
|
742
742
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
743
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
743
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
744
744
|
*/
|
|
745
745
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
746
746
|
/**
|
|
747
747
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
748
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
748
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
749
749
|
*/
|
|
750
750
|
'import/export'?: Linter.RuleEntry<[]>;
|
|
751
751
|
/**
|
|
752
752
|
* Ensure all exports appear after other statements.
|
|
753
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
753
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
754
754
|
*/
|
|
755
755
|
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
756
756
|
/**
|
|
757
757
|
* Ensure consistent use of file extension within the import path.
|
|
758
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
758
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
759
759
|
*/
|
|
760
760
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
761
761
|
/**
|
|
762
762
|
* Ensure all imports appear before other statements.
|
|
763
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
763
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
764
764
|
*/
|
|
765
765
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
766
766
|
/**
|
|
767
767
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
768
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
768
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
769
769
|
*/
|
|
770
770
|
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
771
771
|
/**
|
|
772
772
|
* Replaced by `import-x/first`.
|
|
773
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
773
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
774
774
|
* @deprecated
|
|
775
775
|
*/
|
|
776
776
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
777
777
|
/**
|
|
778
778
|
* Enforce the maximum number of dependencies a module can have.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
780
780
|
*/
|
|
781
781
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
782
782
|
/**
|
|
783
783
|
* Ensure named imports correspond to a named export in the remote file.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
785
785
|
*/
|
|
786
786
|
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
787
787
|
/**
|
|
788
788
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
790
790
|
*/
|
|
791
791
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
792
792
|
/**
|
|
793
793
|
* Enforce a newline after import statements.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
795
795
|
*/
|
|
796
796
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
797
797
|
/**
|
|
798
798
|
* Forbid import of modules using absolute paths.
|
|
799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
800
800
|
*/
|
|
801
801
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
802
802
|
/**
|
|
803
803
|
* Forbid AMD `require` and `define` calls.
|
|
804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
805
805
|
*/
|
|
806
806
|
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
807
807
|
/**
|
|
808
808
|
* Forbid anonymous values as default exports.
|
|
809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
810
810
|
*/
|
|
811
811
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
812
812
|
/**
|
|
813
813
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
814
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
815
815
|
*/
|
|
816
816
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
817
817
|
/**
|
|
818
818
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
819
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
820
820
|
*/
|
|
821
821
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
822
822
|
/**
|
|
823
823
|
* Forbid default exports.
|
|
824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
825
825
|
*/
|
|
826
826
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
827
827
|
/**
|
|
828
828
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
830
830
|
*/
|
|
831
831
|
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
832
832
|
/**
|
|
833
833
|
* Forbid repeated import of the same module in multiple places.
|
|
834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
835
835
|
*/
|
|
836
836
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
837
837
|
/**
|
|
838
838
|
* Forbid `require()` calls with expressions.
|
|
839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
839
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
840
840
|
*/
|
|
841
841
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
842
842
|
/**
|
|
843
843
|
* Forbid empty named import blocks.
|
|
844
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
844
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
845
845
|
*/
|
|
846
846
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
847
847
|
/**
|
|
848
848
|
* Forbid the use of extraneous packages.
|
|
849
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
849
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
850
850
|
*/
|
|
851
851
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
852
852
|
/**
|
|
853
853
|
* Forbid import statements with CommonJS module.exports.
|
|
854
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
854
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
855
855
|
*/
|
|
856
856
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
857
857
|
/**
|
|
858
858
|
* Forbid importing the submodules of other modules.
|
|
859
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
859
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
860
860
|
*/
|
|
861
861
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
862
862
|
/**
|
|
863
863
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
864
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
864
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
865
865
|
*/
|
|
866
866
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
867
867
|
/**
|
|
868
868
|
* Forbid use of exported name as identifier of default export.
|
|
869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
869
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
870
870
|
*/
|
|
871
871
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
872
872
|
/**
|
|
873
873
|
* Forbid use of exported name as property of default export.
|
|
874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
874
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
875
875
|
*/
|
|
876
876
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
877
877
|
/**
|
|
878
878
|
* Forbid named default exports.
|
|
879
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
879
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
880
880
|
*/
|
|
881
881
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
882
882
|
/**
|
|
883
883
|
* Forbid named exports.
|
|
884
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
884
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
885
885
|
*/
|
|
886
886
|
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
887
887
|
/**
|
|
888
888
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
889
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
889
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
890
890
|
*/
|
|
891
891
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
892
892
|
/**
|
|
893
893
|
* Forbid Node.js builtin modules.
|
|
894
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
894
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
895
895
|
*/
|
|
896
896
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
897
897
|
/**
|
|
898
898
|
* Forbid importing packages through relative paths.
|
|
899
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
899
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
900
900
|
*/
|
|
901
901
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
902
902
|
/**
|
|
903
903
|
* Forbid importing modules from parent directories.
|
|
904
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
905
905
|
*/
|
|
906
906
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
907
907
|
/**
|
|
908
908
|
* Forbid importing a default export by a different name.
|
|
909
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
910
910
|
*/
|
|
911
911
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
912
912
|
/**
|
|
913
913
|
* Enforce which files can be imported in a given folder.
|
|
914
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
915
915
|
*/
|
|
916
916
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
917
917
|
/**
|
|
918
918
|
* Forbid a module from importing itself.
|
|
919
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
920
920
|
*/
|
|
921
921
|
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
922
922
|
/**
|
|
923
923
|
* Forbid unassigned imports.
|
|
924
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
925
925
|
*/
|
|
926
926
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
927
927
|
/**
|
|
928
928
|
* Ensure imports point to a file/module that can be resolved.
|
|
929
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
929
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
930
930
|
*/
|
|
931
931
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
932
932
|
/**
|
|
933
933
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
934
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
934
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
935
935
|
*/
|
|
936
936
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
937
937
|
/**
|
|
938
938
|
* Forbid unnecessary path segments in import and require statements.
|
|
939
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
939
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
940
940
|
*/
|
|
941
941
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
942
942
|
/**
|
|
943
943
|
* Forbid webpack loader syntax in imports.
|
|
944
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
944
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
945
945
|
*/
|
|
946
946
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
947
947
|
/**
|
|
948
948
|
* Enforce a convention in module import order.
|
|
949
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
949
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
950
950
|
*/
|
|
951
951
|
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
952
952
|
/**
|
|
953
953
|
* Prefer a default export if module exports a single name or multiple names.
|
|
954
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
954
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
955
955
|
*/
|
|
956
956
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
957
957
|
/**
|
|
958
958
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
959
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
959
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
960
960
|
*/
|
|
961
961
|
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
962
962
|
/**
|
|
@@ -1734,6 +1734,11 @@ interface RuleOptions {
|
|
|
1734
1734
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
1735
1735
|
*/
|
|
1736
1736
|
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Enforce sorted sets.
|
|
1739
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
1740
|
+
*/
|
|
1741
|
+
'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>;
|
|
1737
1742
|
/**
|
|
1738
1743
|
* Enforce sorted Svelte attributes.
|
|
1739
1744
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -3106,7 +3111,7 @@ interface RuleOptions {
|
|
|
3106
3111
|
*/
|
|
3107
3112
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>;
|
|
3108
3113
|
/**
|
|
3109
|
-
* enforce order of
|
|
3114
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
3110
3115
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
3111
3116
|
*/
|
|
3112
3117
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>;
|
|
@@ -3235,6 +3240,16 @@ interface RuleOptions {
|
|
|
3235
3240
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
3236
3241
|
*/
|
|
3237
3242
|
'vue/max-lines-per-block'?: Linter.RuleEntry<VueMaxLinesPerBlock>;
|
|
3243
|
+
/**
|
|
3244
|
+
* enforce maximum number of props in Vue component
|
|
3245
|
+
* @see https://eslint.vuejs.org/rules/max-props.html
|
|
3246
|
+
*/
|
|
3247
|
+
'vue/max-props'?: Linter.RuleEntry<VueMaxProps>;
|
|
3248
|
+
/**
|
|
3249
|
+
* enforce maximum depth of template
|
|
3250
|
+
* @see https://eslint.vuejs.org/rules/max-template-depth.html
|
|
3251
|
+
*/
|
|
3252
|
+
'vue/max-template-depth'?: Linter.RuleEntry<VueMaxTemplateDepth>;
|
|
3238
3253
|
/**
|
|
3239
3254
|
* require component names to be always multi-word
|
|
3240
3255
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -3291,7 +3306,7 @@ interface RuleOptions {
|
|
|
3291
3306
|
*/
|
|
3292
3307
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>;
|
|
3293
3308
|
/**
|
|
3294
|
-
* disallow accessing computed properties in `data
|
|
3309
|
+
* disallow accessing computed properties in `data`
|
|
3295
3310
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
3296
3311
|
*/
|
|
3297
3312
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>;
|
|
@@ -3839,7 +3854,7 @@ interface RuleOptions {
|
|
|
3839
3854
|
*/
|
|
3840
3855
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>;
|
|
3841
3856
|
/**
|
|
3842
|
-
* enforce use of `defineOptions` instead of default export
|
|
3857
|
+
* enforce use of `defineOptions` instead of default export
|
|
3843
3858
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
3844
3859
|
*/
|
|
3845
3860
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>;
|
|
@@ -3883,6 +3898,11 @@ interface RuleOptions {
|
|
|
3883
3898
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
3884
3899
|
*/
|
|
3885
3900
|
'vue/require-component-is'?: Linter.RuleEntry<[]>;
|
|
3901
|
+
/**
|
|
3902
|
+
* require components to be the default export
|
|
3903
|
+
* @see https://eslint.vuejs.org/rules/require-default-export.html
|
|
3904
|
+
*/
|
|
3905
|
+
'vue/require-default-export'?: Linter.RuleEntry<[]>;
|
|
3886
3906
|
/**
|
|
3887
3907
|
* require default value for props
|
|
3888
3908
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -3952,7 +3972,7 @@ interface RuleOptions {
|
|
|
3952
3972
|
* require control the display of the content inside `<transition>`
|
|
3953
3973
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
3954
3974
|
*/
|
|
3955
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
3975
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>;
|
|
3956
3976
|
/**
|
|
3957
3977
|
* enforce adding type declarations to object props
|
|
3958
3978
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -4468,8 +4488,8 @@ type TypescriptEslintInitDeclarations = ([] | ["always"] | [] | ["never"] | [
|
|
|
4468
4488
|
]);
|
|
4469
4489
|
type TypescriptEslintMaxParams = [] | [
|
|
4470
4490
|
{
|
|
4471
|
-
maximum?: number;
|
|
4472
4491
|
max?: number;
|
|
4492
|
+
maximum?: number;
|
|
4473
4493
|
countVoidThis?: boolean;
|
|
4474
4494
|
}
|
|
4475
4495
|
];
|
|
@@ -5065,12 +5085,12 @@ type TypescriptEslintNoUnusedVars = [] | [
|
|
|
5065
5085
|
vars?: ("all" | "local");
|
|
5066
5086
|
varsIgnorePattern?: string;
|
|
5067
5087
|
args?: ("all" | "after-used" | "none");
|
|
5068
|
-
ignoreRestSiblings?: boolean;
|
|
5069
5088
|
argsIgnorePattern?: string;
|
|
5070
5089
|
caughtErrors?: ("all" | "none");
|
|
5071
5090
|
caughtErrorsIgnorePattern?: string;
|
|
5072
5091
|
destructuredArrayIgnorePattern?: string;
|
|
5073
5092
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
5093
|
+
ignoreRestSiblings?: boolean;
|
|
5074
5094
|
reportUsedIgnorePattern?: boolean;
|
|
5075
5095
|
})
|
|
5076
5096
|
];
|
|
@@ -5238,7 +5258,7 @@ type TypescriptEslintRestrictTemplateExpressions = [] | [
|
|
|
5238
5258
|
allowNever?: boolean;
|
|
5239
5259
|
}
|
|
5240
5260
|
];
|
|
5241
|
-
type TypescriptEslintReturnAwait = [] | [("
|
|
5261
|
+
type TypescriptEslintReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
|
|
5242
5262
|
type TypescriptEslintSortTypeConstituents = [] | [
|
|
5243
5263
|
{
|
|
5244
5264
|
checkIntersections?: boolean;
|
|
@@ -5414,6 +5434,7 @@ type ImportNoExtraneousDependencies = [] | [
|
|
|
5414
5434
|
packageDir?: (string | unknown[]);
|
|
5415
5435
|
includeInternal?: boolean;
|
|
5416
5436
|
includeTypes?: boolean;
|
|
5437
|
+
whitelist?: unknown[];
|
|
5417
5438
|
}
|
|
5418
5439
|
];
|
|
5419
5440
|
type ImportNoImportModuleExports = [] | [
|
|
@@ -6616,9 +6637,27 @@ type PerfectionistSortClasses = [] | [
|
|
|
6616
6637
|
ignoreCase?: boolean;
|
|
6617
6638
|
partitionByComment?: (string[] | boolean | string);
|
|
6618
6639
|
groups?: (string | string[])[];
|
|
6619
|
-
customGroups?: {
|
|
6640
|
+
customGroups?: ({
|
|
6620
6641
|
[k: string]: (string | string[]) | undefined;
|
|
6621
|
-
}
|
|
6642
|
+
} | ({
|
|
6643
|
+
groupName?: string;
|
|
6644
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
6645
|
+
order?: ("desc" | "asc");
|
|
6646
|
+
anyOf?: {
|
|
6647
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
6648
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
6649
|
+
elementNamePattern?: string;
|
|
6650
|
+
decoratorNamePattern?: string;
|
|
6651
|
+
}[];
|
|
6652
|
+
} | {
|
|
6653
|
+
groupName?: string;
|
|
6654
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
6655
|
+
order?: ("desc" | "asc");
|
|
6656
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
6657
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
6658
|
+
elementNamePattern?: string;
|
|
6659
|
+
decoratorNamePattern?: string;
|
|
6660
|
+
})[]);
|
|
6622
6661
|
}
|
|
6623
6662
|
];
|
|
6624
6663
|
type PerfectionistSortEnums = [] | [
|
|
@@ -6751,6 +6790,14 @@ type PerfectionistSortObjects = [] | [
|
|
|
6751
6790
|
};
|
|
6752
6791
|
}
|
|
6753
6792
|
];
|
|
6793
|
+
type PerfectionistSortSets = [] | [
|
|
6794
|
+
{
|
|
6795
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6796
|
+
order?: ("asc" | "desc");
|
|
6797
|
+
ignoreCase?: boolean;
|
|
6798
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
6799
|
+
}
|
|
6800
|
+
];
|
|
6754
6801
|
type PerfectionistSortSvelteAttributes = [] | [
|
|
6755
6802
|
{
|
|
6756
6803
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
@@ -7466,7 +7513,7 @@ type VueCustomEventNameCasing = ([] | [("kebab-case" | "camelCase")] | [
|
|
|
7466
7513
|
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")];
|
|
7467
7514
|
type VueDefineMacrosOrder = [] | [
|
|
7468
7515
|
{
|
|
7469
|
-
order?:
|
|
7516
|
+
order?: string[];
|
|
7470
7517
|
defineExposeLast?: boolean;
|
|
7471
7518
|
}
|
|
7472
7519
|
];
|
|
@@ -8028,6 +8075,16 @@ type VueMaxLinesPerBlock = [] | [
|
|
|
8028
8075
|
skipBlankLines?: boolean;
|
|
8029
8076
|
}
|
|
8030
8077
|
];
|
|
8078
|
+
type VueMaxProps = [] | [
|
|
8079
|
+
{
|
|
8080
|
+
maxProps?: number;
|
|
8081
|
+
}
|
|
8082
|
+
];
|
|
8083
|
+
type VueMaxTemplateDepth = [] | [
|
|
8084
|
+
{
|
|
8085
|
+
maxDepth?: number;
|
|
8086
|
+
}
|
|
8087
|
+
];
|
|
8031
8088
|
type VueMultiWordComponentNames = [] | [
|
|
8032
8089
|
{
|
|
8033
8090
|
ignores?: string[];
|
|
@@ -8462,6 +8519,11 @@ type VueRequirePropComment = [] | [
|
|
|
8462
8519
|
type?: ("JSDoc" | "line" | "block" | "any");
|
|
8463
8520
|
}
|
|
8464
8521
|
];
|
|
8522
|
+
type VueRequireToggleInsideTransition = [] | [
|
|
8523
|
+
{
|
|
8524
|
+
additionalDirectives?: string[];
|
|
8525
|
+
}
|
|
8526
|
+
];
|
|
8465
8527
|
type VueReturnInComputedProperty = [] | [
|
|
8466
8528
|
{
|
|
8467
8529
|
treatUndefinedAsUnspecified?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -730,233 +730,233 @@ interface RuleOptions {
|
|
|
730
730
|
'command/command'?: Linter.RuleEntry<[]>;
|
|
731
731
|
/**
|
|
732
732
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
733
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
733
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
734
734
|
*/
|
|
735
735
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
736
736
|
/**
|
|
737
737
|
* Ensure a default export is present, given a default import.
|
|
738
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
738
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
739
739
|
*/
|
|
740
740
|
'import/default'?: Linter.RuleEntry<[]>;
|
|
741
741
|
/**
|
|
742
742
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
743
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
743
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
744
744
|
*/
|
|
745
745
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
746
746
|
/**
|
|
747
747
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
748
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
748
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
749
749
|
*/
|
|
750
750
|
'import/export'?: Linter.RuleEntry<[]>;
|
|
751
751
|
/**
|
|
752
752
|
* Ensure all exports appear after other statements.
|
|
753
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
753
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
754
754
|
*/
|
|
755
755
|
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
756
756
|
/**
|
|
757
757
|
* Ensure consistent use of file extension within the import path.
|
|
758
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
758
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
759
759
|
*/
|
|
760
760
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
761
761
|
/**
|
|
762
762
|
* Ensure all imports appear before other statements.
|
|
763
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
763
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
764
764
|
*/
|
|
765
765
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
766
766
|
/**
|
|
767
767
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
768
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
768
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
769
769
|
*/
|
|
770
770
|
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
771
771
|
/**
|
|
772
772
|
* Replaced by `import-x/first`.
|
|
773
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
773
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
774
774
|
* @deprecated
|
|
775
775
|
*/
|
|
776
776
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
777
777
|
/**
|
|
778
778
|
* Enforce the maximum number of dependencies a module can have.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
780
780
|
*/
|
|
781
781
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
782
782
|
/**
|
|
783
783
|
* Ensure named imports correspond to a named export in the remote file.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
785
785
|
*/
|
|
786
786
|
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
787
787
|
/**
|
|
788
788
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
790
790
|
*/
|
|
791
791
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
792
792
|
/**
|
|
793
793
|
* Enforce a newline after import statements.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
795
795
|
*/
|
|
796
796
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
797
797
|
/**
|
|
798
798
|
* Forbid import of modules using absolute paths.
|
|
799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
800
800
|
*/
|
|
801
801
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
802
802
|
/**
|
|
803
803
|
* Forbid AMD `require` and `define` calls.
|
|
804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
805
805
|
*/
|
|
806
806
|
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
807
807
|
/**
|
|
808
808
|
* Forbid anonymous values as default exports.
|
|
809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
810
810
|
*/
|
|
811
811
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
812
812
|
/**
|
|
813
813
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
814
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
815
815
|
*/
|
|
816
816
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
817
817
|
/**
|
|
818
818
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
819
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
820
820
|
*/
|
|
821
821
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
822
822
|
/**
|
|
823
823
|
* Forbid default exports.
|
|
824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
825
825
|
*/
|
|
826
826
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
827
827
|
/**
|
|
828
828
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
830
830
|
*/
|
|
831
831
|
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
832
832
|
/**
|
|
833
833
|
* Forbid repeated import of the same module in multiple places.
|
|
834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
835
835
|
*/
|
|
836
836
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
837
837
|
/**
|
|
838
838
|
* Forbid `require()` calls with expressions.
|
|
839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
839
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
840
840
|
*/
|
|
841
841
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
842
842
|
/**
|
|
843
843
|
* Forbid empty named import blocks.
|
|
844
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
844
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
845
845
|
*/
|
|
846
846
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
847
847
|
/**
|
|
848
848
|
* Forbid the use of extraneous packages.
|
|
849
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
849
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
850
850
|
*/
|
|
851
851
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
852
852
|
/**
|
|
853
853
|
* Forbid import statements with CommonJS module.exports.
|
|
854
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
854
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
855
855
|
*/
|
|
856
856
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
857
857
|
/**
|
|
858
858
|
* Forbid importing the submodules of other modules.
|
|
859
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
859
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
860
860
|
*/
|
|
861
861
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
862
862
|
/**
|
|
863
863
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
864
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
864
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
865
865
|
*/
|
|
866
866
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
867
867
|
/**
|
|
868
868
|
* Forbid use of exported name as identifier of default export.
|
|
869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
869
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
870
870
|
*/
|
|
871
871
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
872
872
|
/**
|
|
873
873
|
* Forbid use of exported name as property of default export.
|
|
874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
874
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
875
875
|
*/
|
|
876
876
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
877
877
|
/**
|
|
878
878
|
* Forbid named default exports.
|
|
879
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
879
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
880
880
|
*/
|
|
881
881
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
882
882
|
/**
|
|
883
883
|
* Forbid named exports.
|
|
884
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
884
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
885
885
|
*/
|
|
886
886
|
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
887
887
|
/**
|
|
888
888
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
889
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
889
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
890
890
|
*/
|
|
891
891
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
892
892
|
/**
|
|
893
893
|
* Forbid Node.js builtin modules.
|
|
894
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
894
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
895
895
|
*/
|
|
896
896
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
897
897
|
/**
|
|
898
898
|
* Forbid importing packages through relative paths.
|
|
899
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
899
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
900
900
|
*/
|
|
901
901
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
902
902
|
/**
|
|
903
903
|
* Forbid importing modules from parent directories.
|
|
904
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
905
905
|
*/
|
|
906
906
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
907
907
|
/**
|
|
908
908
|
* Forbid importing a default export by a different name.
|
|
909
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
910
910
|
*/
|
|
911
911
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
912
912
|
/**
|
|
913
913
|
* Enforce which files can be imported in a given folder.
|
|
914
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
915
915
|
*/
|
|
916
916
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
917
917
|
/**
|
|
918
918
|
* Forbid a module from importing itself.
|
|
919
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
920
920
|
*/
|
|
921
921
|
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
922
922
|
/**
|
|
923
923
|
* Forbid unassigned imports.
|
|
924
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
925
925
|
*/
|
|
926
926
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
927
927
|
/**
|
|
928
928
|
* Ensure imports point to a file/module that can be resolved.
|
|
929
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
929
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
930
930
|
*/
|
|
931
931
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
932
932
|
/**
|
|
933
933
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
934
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
934
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
935
935
|
*/
|
|
936
936
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
937
937
|
/**
|
|
938
938
|
* Forbid unnecessary path segments in import and require statements.
|
|
939
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
939
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
940
940
|
*/
|
|
941
941
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
942
942
|
/**
|
|
943
943
|
* Forbid webpack loader syntax in imports.
|
|
944
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
944
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
945
945
|
*/
|
|
946
946
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
947
947
|
/**
|
|
948
948
|
* Enforce a convention in module import order.
|
|
949
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
949
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
950
950
|
*/
|
|
951
951
|
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
952
952
|
/**
|
|
953
953
|
* Prefer a default export if module exports a single name or multiple names.
|
|
954
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
954
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
955
955
|
*/
|
|
956
956
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
957
957
|
/**
|
|
958
958
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
959
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
959
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
960
960
|
*/
|
|
961
961
|
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
962
962
|
/**
|
|
@@ -1734,6 +1734,11 @@ interface RuleOptions {
|
|
|
1734
1734
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
1735
1735
|
*/
|
|
1736
1736
|
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Enforce sorted sets.
|
|
1739
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
1740
|
+
*/
|
|
1741
|
+
'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>;
|
|
1737
1742
|
/**
|
|
1738
1743
|
* Enforce sorted Svelte attributes.
|
|
1739
1744
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -3106,7 +3111,7 @@ interface RuleOptions {
|
|
|
3106
3111
|
*/
|
|
3107
3112
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>;
|
|
3108
3113
|
/**
|
|
3109
|
-
* enforce order of
|
|
3114
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
3110
3115
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
3111
3116
|
*/
|
|
3112
3117
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>;
|
|
@@ -3235,6 +3240,16 @@ interface RuleOptions {
|
|
|
3235
3240
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
3236
3241
|
*/
|
|
3237
3242
|
'vue/max-lines-per-block'?: Linter.RuleEntry<VueMaxLinesPerBlock>;
|
|
3243
|
+
/**
|
|
3244
|
+
* enforce maximum number of props in Vue component
|
|
3245
|
+
* @see https://eslint.vuejs.org/rules/max-props.html
|
|
3246
|
+
*/
|
|
3247
|
+
'vue/max-props'?: Linter.RuleEntry<VueMaxProps>;
|
|
3248
|
+
/**
|
|
3249
|
+
* enforce maximum depth of template
|
|
3250
|
+
* @see https://eslint.vuejs.org/rules/max-template-depth.html
|
|
3251
|
+
*/
|
|
3252
|
+
'vue/max-template-depth'?: Linter.RuleEntry<VueMaxTemplateDepth>;
|
|
3238
3253
|
/**
|
|
3239
3254
|
* require component names to be always multi-word
|
|
3240
3255
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -3291,7 +3306,7 @@ interface RuleOptions {
|
|
|
3291
3306
|
*/
|
|
3292
3307
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>;
|
|
3293
3308
|
/**
|
|
3294
|
-
* disallow accessing computed properties in `data
|
|
3309
|
+
* disallow accessing computed properties in `data`
|
|
3295
3310
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
3296
3311
|
*/
|
|
3297
3312
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>;
|
|
@@ -3839,7 +3854,7 @@ interface RuleOptions {
|
|
|
3839
3854
|
*/
|
|
3840
3855
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>;
|
|
3841
3856
|
/**
|
|
3842
|
-
* enforce use of `defineOptions` instead of default export
|
|
3857
|
+
* enforce use of `defineOptions` instead of default export
|
|
3843
3858
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
3844
3859
|
*/
|
|
3845
3860
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>;
|
|
@@ -3883,6 +3898,11 @@ interface RuleOptions {
|
|
|
3883
3898
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
3884
3899
|
*/
|
|
3885
3900
|
'vue/require-component-is'?: Linter.RuleEntry<[]>;
|
|
3901
|
+
/**
|
|
3902
|
+
* require components to be the default export
|
|
3903
|
+
* @see https://eslint.vuejs.org/rules/require-default-export.html
|
|
3904
|
+
*/
|
|
3905
|
+
'vue/require-default-export'?: Linter.RuleEntry<[]>;
|
|
3886
3906
|
/**
|
|
3887
3907
|
* require default value for props
|
|
3888
3908
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -3952,7 +3972,7 @@ interface RuleOptions {
|
|
|
3952
3972
|
* require control the display of the content inside `<transition>`
|
|
3953
3973
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
3954
3974
|
*/
|
|
3955
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
3975
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>;
|
|
3956
3976
|
/**
|
|
3957
3977
|
* enforce adding type declarations to object props
|
|
3958
3978
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -4468,8 +4488,8 @@ type TypescriptEslintInitDeclarations = ([] | ["always"] | [] | ["never"] | [
|
|
|
4468
4488
|
]);
|
|
4469
4489
|
type TypescriptEslintMaxParams = [] | [
|
|
4470
4490
|
{
|
|
4471
|
-
maximum?: number;
|
|
4472
4491
|
max?: number;
|
|
4492
|
+
maximum?: number;
|
|
4473
4493
|
countVoidThis?: boolean;
|
|
4474
4494
|
}
|
|
4475
4495
|
];
|
|
@@ -5065,12 +5085,12 @@ type TypescriptEslintNoUnusedVars = [] | [
|
|
|
5065
5085
|
vars?: ("all" | "local");
|
|
5066
5086
|
varsIgnorePattern?: string;
|
|
5067
5087
|
args?: ("all" | "after-used" | "none");
|
|
5068
|
-
ignoreRestSiblings?: boolean;
|
|
5069
5088
|
argsIgnorePattern?: string;
|
|
5070
5089
|
caughtErrors?: ("all" | "none");
|
|
5071
5090
|
caughtErrorsIgnorePattern?: string;
|
|
5072
5091
|
destructuredArrayIgnorePattern?: string;
|
|
5073
5092
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
5093
|
+
ignoreRestSiblings?: boolean;
|
|
5074
5094
|
reportUsedIgnorePattern?: boolean;
|
|
5075
5095
|
})
|
|
5076
5096
|
];
|
|
@@ -5238,7 +5258,7 @@ type TypescriptEslintRestrictTemplateExpressions = [] | [
|
|
|
5238
5258
|
allowNever?: boolean;
|
|
5239
5259
|
}
|
|
5240
5260
|
];
|
|
5241
|
-
type TypescriptEslintReturnAwait = [] | [("
|
|
5261
|
+
type TypescriptEslintReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
|
|
5242
5262
|
type TypescriptEslintSortTypeConstituents = [] | [
|
|
5243
5263
|
{
|
|
5244
5264
|
checkIntersections?: boolean;
|
|
@@ -5414,6 +5434,7 @@ type ImportNoExtraneousDependencies = [] | [
|
|
|
5414
5434
|
packageDir?: (string | unknown[]);
|
|
5415
5435
|
includeInternal?: boolean;
|
|
5416
5436
|
includeTypes?: boolean;
|
|
5437
|
+
whitelist?: unknown[];
|
|
5417
5438
|
}
|
|
5418
5439
|
];
|
|
5419
5440
|
type ImportNoImportModuleExports = [] | [
|
|
@@ -6616,9 +6637,27 @@ type PerfectionistSortClasses = [] | [
|
|
|
6616
6637
|
ignoreCase?: boolean;
|
|
6617
6638
|
partitionByComment?: (string[] | boolean | string);
|
|
6618
6639
|
groups?: (string | string[])[];
|
|
6619
|
-
customGroups?: {
|
|
6640
|
+
customGroups?: ({
|
|
6620
6641
|
[k: string]: (string | string[]) | undefined;
|
|
6621
|
-
}
|
|
6642
|
+
} | ({
|
|
6643
|
+
groupName?: string;
|
|
6644
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
6645
|
+
order?: ("desc" | "asc");
|
|
6646
|
+
anyOf?: {
|
|
6647
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
6648
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
6649
|
+
elementNamePattern?: string;
|
|
6650
|
+
decoratorNamePattern?: string;
|
|
6651
|
+
}[];
|
|
6652
|
+
} | {
|
|
6653
|
+
groupName?: string;
|
|
6654
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
6655
|
+
order?: ("desc" | "asc");
|
|
6656
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
6657
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
6658
|
+
elementNamePattern?: string;
|
|
6659
|
+
decoratorNamePattern?: string;
|
|
6660
|
+
})[]);
|
|
6622
6661
|
}
|
|
6623
6662
|
];
|
|
6624
6663
|
type PerfectionistSortEnums = [] | [
|
|
@@ -6751,6 +6790,14 @@ type PerfectionistSortObjects = [] | [
|
|
|
6751
6790
|
};
|
|
6752
6791
|
}
|
|
6753
6792
|
];
|
|
6793
|
+
type PerfectionistSortSets = [] | [
|
|
6794
|
+
{
|
|
6795
|
+
type?: ("alphabetical" | "natural" | "line-length");
|
|
6796
|
+
order?: ("asc" | "desc");
|
|
6797
|
+
ignoreCase?: boolean;
|
|
6798
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
6799
|
+
}
|
|
6800
|
+
];
|
|
6754
6801
|
type PerfectionistSortSvelteAttributes = [] | [
|
|
6755
6802
|
{
|
|
6756
6803
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
@@ -7466,7 +7513,7 @@ type VueCustomEventNameCasing = ([] | [("kebab-case" | "camelCase")] | [
|
|
|
7466
7513
|
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")];
|
|
7467
7514
|
type VueDefineMacrosOrder = [] | [
|
|
7468
7515
|
{
|
|
7469
|
-
order?:
|
|
7516
|
+
order?: string[];
|
|
7470
7517
|
defineExposeLast?: boolean;
|
|
7471
7518
|
}
|
|
7472
7519
|
];
|
|
@@ -8028,6 +8075,16 @@ type VueMaxLinesPerBlock = [] | [
|
|
|
8028
8075
|
skipBlankLines?: boolean;
|
|
8029
8076
|
}
|
|
8030
8077
|
];
|
|
8078
|
+
type VueMaxProps = [] | [
|
|
8079
|
+
{
|
|
8080
|
+
maxProps?: number;
|
|
8081
|
+
}
|
|
8082
|
+
];
|
|
8083
|
+
type VueMaxTemplateDepth = [] | [
|
|
8084
|
+
{
|
|
8085
|
+
maxDepth?: number;
|
|
8086
|
+
}
|
|
8087
|
+
];
|
|
8031
8088
|
type VueMultiWordComponentNames = [] | [
|
|
8032
8089
|
{
|
|
8033
8090
|
ignores?: string[];
|
|
@@ -8462,6 +8519,11 @@ type VueRequirePropComment = [] | [
|
|
|
8462
8519
|
type?: ("JSDoc" | "line" | "block" | "any");
|
|
8463
8520
|
}
|
|
8464
8521
|
];
|
|
8522
|
+
type VueRequireToggleInsideTransition = [] | [
|
|
8523
|
+
{
|
|
8524
|
+
additionalDirectives?: string[];
|
|
8525
|
+
}
|
|
8526
|
+
];
|
|
8465
8527
|
type VueReturnInComputedProperty = [] | [
|
|
8466
8528
|
{
|
|
8467
8529
|
treatUndefinedAsUnspecified?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -951,6 +951,7 @@ var vue = (options = {}) => {
|
|
|
951
951
|
"vue/require-prop-types": "off",
|
|
952
952
|
"vue/require-default-prop": "off",
|
|
953
953
|
"vue/multi-word-component-names": "off",
|
|
954
|
+
"vue/no-v-text-v-html-on-component": "off",
|
|
954
955
|
"vue/no-setup-props-reactivity-loss": "off",
|
|
955
956
|
"vue/html-self-closing": [
|
|
956
957
|
"error",
|
|
@@ -995,7 +996,20 @@ var vue = (options = {}) => {
|
|
|
995
996
|
exceptions: ["-"]
|
|
996
997
|
}
|
|
997
998
|
],
|
|
999
|
+
"vue/no-restricted-v-bind": ["error", "/^v-/"],
|
|
1000
|
+
"vue/no-useless-v-bind": "error",
|
|
1001
|
+
"vue/padding-line-between-blocks": "error",
|
|
1002
|
+
"vue/next-tick-style": ["error", "promise"],
|
|
998
1003
|
"vue/array-bracket-spacing": ["error", "never"],
|
|
1004
|
+
"vue/prefer-separate-static-class": "error",
|
|
1005
|
+
"vue/no-constant-condition": "error",
|
|
1006
|
+
"vue/prefer-true-attribute-shorthand": ["error", "always"],
|
|
1007
|
+
"vue/prefer-define-options": "error",
|
|
1008
|
+
"vue/valid-define-options": "error",
|
|
1009
|
+
// TypeScript enhancements
|
|
1010
|
+
"vue/define-emits-declaration": ["error", "type-literal"],
|
|
1011
|
+
"vue/no-unused-emit-declarations": "error",
|
|
1012
|
+
"vue/this-in-template": ["error", "never"],
|
|
999
1013
|
"vue/arrow-spacing": ["error", { before: true, after: true }],
|
|
1000
1014
|
"vue/block-spacing": ["error", "always"],
|
|
1001
1015
|
"vue/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.5",
|
|
5
5
|
"packageManager": "pnpm@9.9.0",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
@@ -59,34 +59,34 @@
|
|
|
59
59
|
"@eslint/js": "^9.9.1",
|
|
60
60
|
"@types/eslint": "^9.6.1",
|
|
61
61
|
"@unocss/eslint-plugin": "^0.62.3",
|
|
62
|
-
"@vitest/eslint-plugin": "^1.0
|
|
62
|
+
"@vitest/eslint-plugin": "^1.1.0",
|
|
63
63
|
"eslint-flat-config-utils": "^0.3.1",
|
|
64
64
|
"eslint-plugin-command": "^0.2.3",
|
|
65
|
-
"eslint-plugin-import-x": "^4.1
|
|
65
|
+
"eslint-plugin-import-x": "^4.2.1",
|
|
66
66
|
"eslint-plugin-jsdoc": "^50.2.2",
|
|
67
67
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
68
68
|
"eslint-plugin-markdown": "^5.1.0",
|
|
69
69
|
"eslint-plugin-n": "^17.10.2",
|
|
70
|
-
"eslint-plugin-perfectionist": "^3.
|
|
70
|
+
"eslint-plugin-perfectionist": "^3.4.0",
|
|
71
71
|
"eslint-plugin-prettier": "^5.2.1",
|
|
72
72
|
"eslint-plugin-regexp": "^2.6.0",
|
|
73
73
|
"eslint-plugin-toml": "^0.11.1",
|
|
74
74
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
75
75
|
"eslint-plugin-unused-imports": "^4.1.3",
|
|
76
|
-
"eslint-plugin-vue": "^9.
|
|
76
|
+
"eslint-plugin-vue": "^9.28.0",
|
|
77
77
|
"eslint-plugin-yml": "^1.14.0",
|
|
78
78
|
"globals": "^15.9.0",
|
|
79
79
|
"jsonc-eslint-parser": "^2.4.0",
|
|
80
80
|
"local-pkg": "^0.5.0",
|
|
81
81
|
"prettier": "^3.3.3",
|
|
82
82
|
"toml-eslint-parser": "^0.10.0",
|
|
83
|
-
"typescript-eslint": "^8.
|
|
83
|
+
"typescript-eslint": "^8.4.0",
|
|
84
84
|
"vue-eslint-parser": "^9.4.3",
|
|
85
85
|
"yaml-eslint-parser": "^1.2.3"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@ntnyq/prettier-config": "^1.21.2",
|
|
89
|
-
"@types/node": "^22.5.
|
|
89
|
+
"@types/node": "^22.5.4",
|
|
90
90
|
"bumpp": "^9.5.2",
|
|
91
91
|
"eslint": "^9.9.1",
|
|
92
92
|
"eslint-typegen": "^0.3.1",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"tsup": "^8.2.4",
|
|
98
98
|
"tsx": "^4.19.0",
|
|
99
99
|
"typescript": "^5.5.4",
|
|
100
|
-
"zx": "^8.1.
|
|
100
|
+
"zx": "^8.1.5"
|
|
101
101
|
},
|
|
102
102
|
"engines": {
|
|
103
103
|
"node": ">=18.18"
|