@ntnyq/eslint-config 3.0.0-beta.3 → 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/README.md +27 -0
- package/dist/index.cjs +16 -0
- package/dist/index.d.cts +134 -56
- package/dist/index.d.ts +134 -56
- package/dist/index.js +16 -0
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -30,6 +30,33 @@ const ntnyq = require('@ntnyq/eslint-config')
|
|
|
30
30
|
module.exports = ntnyq()
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
## VSCode Config
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"eslint.enable": true,
|
|
38
|
+
"prettier.enable": true,
|
|
39
|
+
"editor.formatOnSave": true,
|
|
40
|
+
"editor.codeActionsOnSave": {
|
|
41
|
+
"source.fixAll.eslint": "explicit"
|
|
42
|
+
},
|
|
43
|
+
"eslint.validate": [
|
|
44
|
+
"vue",
|
|
45
|
+
"html",
|
|
46
|
+
"yaml",
|
|
47
|
+
"toml",
|
|
48
|
+
"json",
|
|
49
|
+
"jsonc",
|
|
50
|
+
"json5",
|
|
51
|
+
"markdown",
|
|
52
|
+
"javascript",
|
|
53
|
+
"typescript",
|
|
54
|
+
"javascriptreact",
|
|
55
|
+
"typescriptreact"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
33
60
|
## Credits
|
|
34
61
|
|
|
35
62
|
- [@sxzz/eslint-config](https://github.com/sxzz/eslint-config)
|
package/dist/index.cjs
CHANGED
|
@@ -353,6 +353,8 @@ var imports = (options = {}) => [
|
|
|
353
353
|
"import/no-named-as-default-member": "off",
|
|
354
354
|
"import/first": "error",
|
|
355
355
|
"import/export": "error",
|
|
356
|
+
// 'import/no-named-default': 'error',
|
|
357
|
+
"import/no-self-import": "error",
|
|
356
358
|
"import/no-duplicates": "error",
|
|
357
359
|
"import/no-mutable-exports": "error",
|
|
358
360
|
"import/newline-after-import": "error",
|
|
@@ -1067,6 +1069,7 @@ var vue = (options = {}) => {
|
|
|
1067
1069
|
"vue/require-prop-types": "off",
|
|
1068
1070
|
"vue/require-default-prop": "off",
|
|
1069
1071
|
"vue/multi-word-component-names": "off",
|
|
1072
|
+
"vue/no-v-text-v-html-on-component": "off",
|
|
1070
1073
|
"vue/no-setup-props-reactivity-loss": "off",
|
|
1071
1074
|
"vue/html-self-closing": [
|
|
1072
1075
|
"error",
|
|
@@ -1111,7 +1114,20 @@ var vue = (options = {}) => {
|
|
|
1111
1114
|
exceptions: ["-"]
|
|
1112
1115
|
}
|
|
1113
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"],
|
|
1114
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"],
|
|
1115
1131
|
"vue/arrow-spacing": ["error", { before: true, after: true }],
|
|
1116
1132
|
"vue/block-spacing": ["error", "always"],
|
|
1117
1133
|
"vue/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
|
package/dist/index.d.cts
CHANGED
|
@@ -227,6 +227,11 @@ interface RuleOptions {
|
|
|
227
227
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
228
228
|
*/
|
|
229
229
|
'@typescript-eslint/no-confusing-void-expression'?: Linter.RuleEntry<TypescriptEslintNoConfusingVoidExpression>;
|
|
230
|
+
/**
|
|
231
|
+
* Disallow using code marked as `@deprecated`
|
|
232
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
233
|
+
*/
|
|
234
|
+
'@typescript-eslint/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
230
235
|
/**
|
|
231
236
|
* Disallow duplicate class members
|
|
232
237
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -714,7 +719,7 @@ interface RuleOptions {
|
|
|
714
719
|
*/
|
|
715
720
|
'@typescript-eslint/unified-signatures'?: Linter.RuleEntry<TypescriptEslintUnifiedSignatures>;
|
|
716
721
|
/**
|
|
717
|
-
* Enforce typing arguments in
|
|
722
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
718
723
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
719
724
|
*/
|
|
720
725
|
'@typescript-eslint/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>;
|
|
@@ -725,228 +730,233 @@ interface RuleOptions {
|
|
|
725
730
|
'command/command'?: Linter.RuleEntry<[]>;
|
|
726
731
|
/**
|
|
727
732
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
728
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
733
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
729
734
|
*/
|
|
730
735
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
731
736
|
/**
|
|
732
737
|
* Ensure a default export is present, given a default import.
|
|
733
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
738
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
734
739
|
*/
|
|
735
740
|
'import/default'?: Linter.RuleEntry<[]>;
|
|
736
741
|
/**
|
|
737
742
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
738
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
743
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
739
744
|
*/
|
|
740
745
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
741
746
|
/**
|
|
742
747
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
743
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
748
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
744
749
|
*/
|
|
745
750
|
'import/export'?: Linter.RuleEntry<[]>;
|
|
746
751
|
/**
|
|
747
752
|
* Ensure all exports appear after other statements.
|
|
748
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
753
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
749
754
|
*/
|
|
750
755
|
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
751
756
|
/**
|
|
752
757
|
* Ensure consistent use of file extension within the import path.
|
|
753
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
758
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
754
759
|
*/
|
|
755
760
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
756
761
|
/**
|
|
757
762
|
* Ensure all imports appear before other statements.
|
|
758
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
763
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
759
764
|
*/
|
|
760
765
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
761
766
|
/**
|
|
762
767
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
763
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
768
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
764
769
|
*/
|
|
765
770
|
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
766
771
|
/**
|
|
767
772
|
* Replaced by `import-x/first`.
|
|
768
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
773
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
769
774
|
* @deprecated
|
|
770
775
|
*/
|
|
771
776
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
772
777
|
/**
|
|
773
778
|
* Enforce the maximum number of dependencies a module can have.
|
|
774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
775
780
|
*/
|
|
776
781
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
777
782
|
/**
|
|
778
783
|
* Ensure named imports correspond to a named export in the remote file.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
780
785
|
*/
|
|
781
786
|
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
782
787
|
/**
|
|
783
788
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
785
790
|
*/
|
|
786
791
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
787
792
|
/**
|
|
788
793
|
* Enforce a newline after import statements.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
790
795
|
*/
|
|
791
796
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
792
797
|
/**
|
|
793
798
|
* Forbid import of modules using absolute paths.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
795
800
|
*/
|
|
796
801
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
797
802
|
/**
|
|
798
803
|
* Forbid AMD `require` and `define` calls.
|
|
799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
800
805
|
*/
|
|
801
806
|
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
802
807
|
/**
|
|
803
808
|
* Forbid anonymous values as default exports.
|
|
804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
805
810
|
*/
|
|
806
811
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
807
812
|
/**
|
|
808
813
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
814
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
810
815
|
*/
|
|
811
816
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
812
817
|
/**
|
|
813
818
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
819
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
815
820
|
*/
|
|
816
821
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
817
822
|
/**
|
|
818
823
|
* Forbid default exports.
|
|
819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
820
825
|
*/
|
|
821
826
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
822
827
|
/**
|
|
823
828
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
825
830
|
*/
|
|
826
831
|
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
827
832
|
/**
|
|
828
833
|
* Forbid repeated import of the same module in multiple places.
|
|
829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
830
835
|
*/
|
|
831
836
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
832
837
|
/**
|
|
833
838
|
* Forbid `require()` calls with expressions.
|
|
834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
839
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
835
840
|
*/
|
|
836
841
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
837
842
|
/**
|
|
838
843
|
* Forbid empty named import blocks.
|
|
839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
844
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
840
845
|
*/
|
|
841
846
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
842
847
|
/**
|
|
843
848
|
* Forbid the use of extraneous packages.
|
|
844
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
849
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
845
850
|
*/
|
|
846
851
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
847
852
|
/**
|
|
848
853
|
* Forbid import statements with CommonJS module.exports.
|
|
849
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
854
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
850
855
|
*/
|
|
851
856
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
852
857
|
/**
|
|
853
858
|
* Forbid importing the submodules of other modules.
|
|
854
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
859
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
855
860
|
*/
|
|
856
861
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
857
862
|
/**
|
|
858
863
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
859
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
864
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
860
865
|
*/
|
|
861
866
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
862
867
|
/**
|
|
863
868
|
* Forbid use of exported name as identifier of default export.
|
|
864
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
869
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
865
870
|
*/
|
|
866
871
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
867
872
|
/**
|
|
868
873
|
* Forbid use of exported name as property of default export.
|
|
869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
874
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
870
875
|
*/
|
|
871
876
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
872
877
|
/**
|
|
873
878
|
* Forbid named default exports.
|
|
874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
879
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
875
880
|
*/
|
|
876
881
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
877
882
|
/**
|
|
878
883
|
* Forbid named exports.
|
|
879
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
884
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
880
885
|
*/
|
|
881
886
|
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
882
887
|
/**
|
|
883
888
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
884
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
889
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
885
890
|
*/
|
|
886
891
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
887
892
|
/**
|
|
888
893
|
* Forbid Node.js builtin modules.
|
|
889
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
894
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
890
895
|
*/
|
|
891
896
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
892
897
|
/**
|
|
893
898
|
* Forbid importing packages through relative paths.
|
|
894
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
899
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
895
900
|
*/
|
|
896
901
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
897
902
|
/**
|
|
898
903
|
* Forbid importing modules from parent directories.
|
|
899
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
900
905
|
*/
|
|
901
906
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
907
|
+
/**
|
|
908
|
+
* Forbid importing a default export by a different name.
|
|
909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
910
|
+
*/
|
|
911
|
+
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
902
912
|
/**
|
|
903
913
|
* Enforce which files can be imported in a given folder.
|
|
904
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
905
915
|
*/
|
|
906
916
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
907
917
|
/**
|
|
908
918
|
* Forbid a module from importing itself.
|
|
909
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
910
920
|
*/
|
|
911
921
|
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
912
922
|
/**
|
|
913
923
|
* Forbid unassigned imports.
|
|
914
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
915
925
|
*/
|
|
916
926
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
917
927
|
/**
|
|
918
928
|
* Ensure imports point to a file/module that can be resolved.
|
|
919
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
929
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
920
930
|
*/
|
|
921
931
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
922
932
|
/**
|
|
923
933
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
924
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
934
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
925
935
|
*/
|
|
926
936
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
927
937
|
/**
|
|
928
938
|
* Forbid unnecessary path segments in import and require statements.
|
|
929
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
939
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
930
940
|
*/
|
|
931
941
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
932
942
|
/**
|
|
933
943
|
* Forbid webpack loader syntax in imports.
|
|
934
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
944
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
935
945
|
*/
|
|
936
946
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
937
947
|
/**
|
|
938
948
|
* Enforce a convention in module import order.
|
|
939
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
949
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
940
950
|
*/
|
|
941
951
|
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
942
952
|
/**
|
|
943
953
|
* Prefer a default export if module exports a single name or multiple names.
|
|
944
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
954
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
945
955
|
*/
|
|
946
956
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
947
957
|
/**
|
|
948
958
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
949
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
959
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
950
960
|
*/
|
|
951
961
|
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
952
962
|
/**
|
|
@@ -1724,6 +1734,11 @@ interface RuleOptions {
|
|
|
1724
1734
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
1725
1735
|
*/
|
|
1726
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>;
|
|
1727
1742
|
/**
|
|
1728
1743
|
* Enforce sorted Svelte attributes.
|
|
1729
1744
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -3096,7 +3111,7 @@ interface RuleOptions {
|
|
|
3096
3111
|
*/
|
|
3097
3112
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>;
|
|
3098
3113
|
/**
|
|
3099
|
-
* enforce order of
|
|
3114
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
3100
3115
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
3101
3116
|
*/
|
|
3102
3117
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>;
|
|
@@ -3225,6 +3240,16 @@ interface RuleOptions {
|
|
|
3225
3240
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
3226
3241
|
*/
|
|
3227
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>;
|
|
3228
3253
|
/**
|
|
3229
3254
|
* require component names to be always multi-word
|
|
3230
3255
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -3281,7 +3306,7 @@ interface RuleOptions {
|
|
|
3281
3306
|
*/
|
|
3282
3307
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>;
|
|
3283
3308
|
/**
|
|
3284
|
-
* disallow accessing computed properties in `data
|
|
3309
|
+
* disallow accessing computed properties in `data`
|
|
3285
3310
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
3286
3311
|
*/
|
|
3287
3312
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>;
|
|
@@ -3829,7 +3854,7 @@ interface RuleOptions {
|
|
|
3829
3854
|
*/
|
|
3830
3855
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>;
|
|
3831
3856
|
/**
|
|
3832
|
-
* enforce use of `defineOptions` instead of default export
|
|
3857
|
+
* enforce use of `defineOptions` instead of default export
|
|
3833
3858
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
3834
3859
|
*/
|
|
3835
3860
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>;
|
|
@@ -3873,6 +3898,11 @@ interface RuleOptions {
|
|
|
3873
3898
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
3874
3899
|
*/
|
|
3875
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<[]>;
|
|
3876
3906
|
/**
|
|
3877
3907
|
* require default value for props
|
|
3878
3908
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -3942,7 +3972,7 @@ interface RuleOptions {
|
|
|
3942
3972
|
* require control the display of the content inside `<transition>`
|
|
3943
3973
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
3944
3974
|
*/
|
|
3945
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
3975
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>;
|
|
3946
3976
|
/**
|
|
3947
3977
|
* enforce adding type declarations to object props
|
|
3948
3978
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -4458,8 +4488,8 @@ type TypescriptEslintInitDeclarations = ([] | ["always"] | [] | ["never"] | [
|
|
|
4458
4488
|
]);
|
|
4459
4489
|
type TypescriptEslintMaxParams = [] | [
|
|
4460
4490
|
{
|
|
4461
|
-
maximum?: number;
|
|
4462
4491
|
max?: number;
|
|
4492
|
+
maximum?: number;
|
|
4463
4493
|
countVoidThis?: boolean;
|
|
4464
4494
|
}
|
|
4465
4495
|
];
|
|
@@ -5055,12 +5085,12 @@ type TypescriptEslintNoUnusedVars = [] | [
|
|
|
5055
5085
|
vars?: ("all" | "local");
|
|
5056
5086
|
varsIgnorePattern?: string;
|
|
5057
5087
|
args?: ("all" | "after-used" | "none");
|
|
5058
|
-
ignoreRestSiblings?: boolean;
|
|
5059
5088
|
argsIgnorePattern?: string;
|
|
5060
5089
|
caughtErrors?: ("all" | "none");
|
|
5061
5090
|
caughtErrorsIgnorePattern?: string;
|
|
5062
5091
|
destructuredArrayIgnorePattern?: string;
|
|
5063
5092
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
5093
|
+
ignoreRestSiblings?: boolean;
|
|
5064
5094
|
reportUsedIgnorePattern?: boolean;
|
|
5065
5095
|
})
|
|
5066
5096
|
];
|
|
@@ -5228,7 +5258,7 @@ type TypescriptEslintRestrictTemplateExpressions = [] | [
|
|
|
5228
5258
|
allowNever?: boolean;
|
|
5229
5259
|
}
|
|
5230
5260
|
];
|
|
5231
|
-
type TypescriptEslintReturnAwait = [] | [("
|
|
5261
|
+
type TypescriptEslintReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
|
|
5232
5262
|
type TypescriptEslintSortTypeConstituents = [] | [
|
|
5233
5263
|
{
|
|
5234
5264
|
checkIntersections?: boolean;
|
|
@@ -5404,6 +5434,7 @@ type ImportNoExtraneousDependencies = [] | [
|
|
|
5404
5434
|
packageDir?: (string | unknown[]);
|
|
5405
5435
|
includeInternal?: boolean;
|
|
5406
5436
|
includeTypes?: boolean;
|
|
5437
|
+
whitelist?: unknown[];
|
|
5407
5438
|
}
|
|
5408
5439
|
];
|
|
5409
5440
|
type ImportNoImportModuleExports = [] | [
|
|
@@ -5445,6 +5476,12 @@ type ImportNoRelativeParentImports = [] | [
|
|
|
5445
5476
|
ignore?: [string, ...(string)[]];
|
|
5446
5477
|
}
|
|
5447
5478
|
];
|
|
5479
|
+
type ImportNoRenameDefault = [] | [
|
|
5480
|
+
{
|
|
5481
|
+
commonjs?: boolean;
|
|
5482
|
+
preventRenamingBindings?: boolean;
|
|
5483
|
+
}
|
|
5484
|
+
];
|
|
5448
5485
|
type ImportNoRestrictedPaths = [] | [
|
|
5449
5486
|
{
|
|
5450
5487
|
zones?: [
|
|
@@ -6600,9 +6637,27 @@ type PerfectionistSortClasses = [] | [
|
|
|
6600
6637
|
ignoreCase?: boolean;
|
|
6601
6638
|
partitionByComment?: (string[] | boolean | string);
|
|
6602
6639
|
groups?: (string | string[])[];
|
|
6603
|
-
customGroups?: {
|
|
6640
|
+
customGroups?: ({
|
|
6604
6641
|
[k: string]: (string | string[]) | undefined;
|
|
6605
|
-
}
|
|
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
|
+
})[]);
|
|
6606
6661
|
}
|
|
6607
6662
|
];
|
|
6608
6663
|
type PerfectionistSortEnums = [] | [
|
|
@@ -6735,6 +6790,14 @@ type PerfectionistSortObjects = [] | [
|
|
|
6735
6790
|
};
|
|
6736
6791
|
}
|
|
6737
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
|
+
];
|
|
6738
6801
|
type PerfectionistSortSvelteAttributes = [] | [
|
|
6739
6802
|
{
|
|
6740
6803
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
@@ -7450,7 +7513,7 @@ type VueCustomEventNameCasing = ([] | [("kebab-case" | "camelCase")] | [
|
|
|
7450
7513
|
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")];
|
|
7451
7514
|
type VueDefineMacrosOrder = [] | [
|
|
7452
7515
|
{
|
|
7453
|
-
order?:
|
|
7516
|
+
order?: string[];
|
|
7454
7517
|
defineExposeLast?: boolean;
|
|
7455
7518
|
}
|
|
7456
7519
|
];
|
|
@@ -8012,6 +8075,16 @@ type VueMaxLinesPerBlock = [] | [
|
|
|
8012
8075
|
skipBlankLines?: boolean;
|
|
8013
8076
|
}
|
|
8014
8077
|
];
|
|
8078
|
+
type VueMaxProps = [] | [
|
|
8079
|
+
{
|
|
8080
|
+
maxProps?: number;
|
|
8081
|
+
}
|
|
8082
|
+
];
|
|
8083
|
+
type VueMaxTemplateDepth = [] | [
|
|
8084
|
+
{
|
|
8085
|
+
maxDepth?: number;
|
|
8086
|
+
}
|
|
8087
|
+
];
|
|
8015
8088
|
type VueMultiWordComponentNames = [] | [
|
|
8016
8089
|
{
|
|
8017
8090
|
ignores?: string[];
|
|
@@ -8446,6 +8519,11 @@ type VueRequirePropComment = [] | [
|
|
|
8446
8519
|
type?: ("JSDoc" | "line" | "block" | "any");
|
|
8447
8520
|
}
|
|
8448
8521
|
];
|
|
8522
|
+
type VueRequireToggleInsideTransition = [] | [
|
|
8523
|
+
{
|
|
8524
|
+
additionalDirectives?: string[];
|
|
8525
|
+
}
|
|
8526
|
+
];
|
|
8449
8527
|
type VueReturnInComputedProperty = [] | [
|
|
8450
8528
|
{
|
|
8451
8529
|
treatUndefinedAsUnspecified?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,11 @@ interface RuleOptions {
|
|
|
227
227
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
228
228
|
*/
|
|
229
229
|
'@typescript-eslint/no-confusing-void-expression'?: Linter.RuleEntry<TypescriptEslintNoConfusingVoidExpression>;
|
|
230
|
+
/**
|
|
231
|
+
* Disallow using code marked as `@deprecated`
|
|
232
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
233
|
+
*/
|
|
234
|
+
'@typescript-eslint/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
230
235
|
/**
|
|
231
236
|
* Disallow duplicate class members
|
|
232
237
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -714,7 +719,7 @@ interface RuleOptions {
|
|
|
714
719
|
*/
|
|
715
720
|
'@typescript-eslint/unified-signatures'?: Linter.RuleEntry<TypescriptEslintUnifiedSignatures>;
|
|
716
721
|
/**
|
|
717
|
-
* Enforce typing arguments in
|
|
722
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
718
723
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
719
724
|
*/
|
|
720
725
|
'@typescript-eslint/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>;
|
|
@@ -725,228 +730,233 @@ interface RuleOptions {
|
|
|
725
730
|
'command/command'?: Linter.RuleEntry<[]>;
|
|
726
731
|
/**
|
|
727
732
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
728
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
733
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
729
734
|
*/
|
|
730
735
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
731
736
|
/**
|
|
732
737
|
* Ensure a default export is present, given a default import.
|
|
733
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
738
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
734
739
|
*/
|
|
735
740
|
'import/default'?: Linter.RuleEntry<[]>;
|
|
736
741
|
/**
|
|
737
742
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
738
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
743
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
739
744
|
*/
|
|
740
745
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
741
746
|
/**
|
|
742
747
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
743
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
748
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
744
749
|
*/
|
|
745
750
|
'import/export'?: Linter.RuleEntry<[]>;
|
|
746
751
|
/**
|
|
747
752
|
* Ensure all exports appear after other statements.
|
|
748
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
753
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
749
754
|
*/
|
|
750
755
|
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
751
756
|
/**
|
|
752
757
|
* Ensure consistent use of file extension within the import path.
|
|
753
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
758
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
754
759
|
*/
|
|
755
760
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
756
761
|
/**
|
|
757
762
|
* Ensure all imports appear before other statements.
|
|
758
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
763
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
759
764
|
*/
|
|
760
765
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
761
766
|
/**
|
|
762
767
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
763
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
768
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
764
769
|
*/
|
|
765
770
|
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
766
771
|
/**
|
|
767
772
|
* Replaced by `import-x/first`.
|
|
768
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
773
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
769
774
|
* @deprecated
|
|
770
775
|
*/
|
|
771
776
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
772
777
|
/**
|
|
773
778
|
* Enforce the maximum number of dependencies a module can have.
|
|
774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
775
780
|
*/
|
|
776
781
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
777
782
|
/**
|
|
778
783
|
* Ensure named imports correspond to a named export in the remote file.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
780
785
|
*/
|
|
781
786
|
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
782
787
|
/**
|
|
783
788
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
785
790
|
*/
|
|
786
791
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
787
792
|
/**
|
|
788
793
|
* Enforce a newline after import statements.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
790
795
|
*/
|
|
791
796
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
792
797
|
/**
|
|
793
798
|
* Forbid import of modules using absolute paths.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
795
800
|
*/
|
|
796
801
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
797
802
|
/**
|
|
798
803
|
* Forbid AMD `require` and `define` calls.
|
|
799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
800
805
|
*/
|
|
801
806
|
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
802
807
|
/**
|
|
803
808
|
* Forbid anonymous values as default exports.
|
|
804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
805
810
|
*/
|
|
806
811
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
807
812
|
/**
|
|
808
813
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
814
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
810
815
|
*/
|
|
811
816
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
812
817
|
/**
|
|
813
818
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
819
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
815
820
|
*/
|
|
816
821
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
817
822
|
/**
|
|
818
823
|
* Forbid default exports.
|
|
819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
820
825
|
*/
|
|
821
826
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
822
827
|
/**
|
|
823
828
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
825
830
|
*/
|
|
826
831
|
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
827
832
|
/**
|
|
828
833
|
* Forbid repeated import of the same module in multiple places.
|
|
829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
830
835
|
*/
|
|
831
836
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
832
837
|
/**
|
|
833
838
|
* Forbid `require()` calls with expressions.
|
|
834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
839
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
835
840
|
*/
|
|
836
841
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
837
842
|
/**
|
|
838
843
|
* Forbid empty named import blocks.
|
|
839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
844
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
840
845
|
*/
|
|
841
846
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
842
847
|
/**
|
|
843
848
|
* Forbid the use of extraneous packages.
|
|
844
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
849
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
845
850
|
*/
|
|
846
851
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
847
852
|
/**
|
|
848
853
|
* Forbid import statements with CommonJS module.exports.
|
|
849
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
854
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
850
855
|
*/
|
|
851
856
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
852
857
|
/**
|
|
853
858
|
* Forbid importing the submodules of other modules.
|
|
854
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
859
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
855
860
|
*/
|
|
856
861
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
857
862
|
/**
|
|
858
863
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
859
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
864
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
860
865
|
*/
|
|
861
866
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
862
867
|
/**
|
|
863
868
|
* Forbid use of exported name as identifier of default export.
|
|
864
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
869
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
865
870
|
*/
|
|
866
871
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
867
872
|
/**
|
|
868
873
|
* Forbid use of exported name as property of default export.
|
|
869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
874
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
870
875
|
*/
|
|
871
876
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
872
877
|
/**
|
|
873
878
|
* Forbid named default exports.
|
|
874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
879
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
875
880
|
*/
|
|
876
881
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
877
882
|
/**
|
|
878
883
|
* Forbid named exports.
|
|
879
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
884
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
880
885
|
*/
|
|
881
886
|
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
882
887
|
/**
|
|
883
888
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
884
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
889
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
885
890
|
*/
|
|
886
891
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
887
892
|
/**
|
|
888
893
|
* Forbid Node.js builtin modules.
|
|
889
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
894
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
890
895
|
*/
|
|
891
896
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
892
897
|
/**
|
|
893
898
|
* Forbid importing packages through relative paths.
|
|
894
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
899
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
895
900
|
*/
|
|
896
901
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
897
902
|
/**
|
|
898
903
|
* Forbid importing modules from parent directories.
|
|
899
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
900
905
|
*/
|
|
901
906
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
907
|
+
/**
|
|
908
|
+
* Forbid importing a default export by a different name.
|
|
909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
910
|
+
*/
|
|
911
|
+
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
902
912
|
/**
|
|
903
913
|
* Enforce which files can be imported in a given folder.
|
|
904
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
905
915
|
*/
|
|
906
916
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
907
917
|
/**
|
|
908
918
|
* Forbid a module from importing itself.
|
|
909
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
910
920
|
*/
|
|
911
921
|
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
912
922
|
/**
|
|
913
923
|
* Forbid unassigned imports.
|
|
914
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
915
925
|
*/
|
|
916
926
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
917
927
|
/**
|
|
918
928
|
* Ensure imports point to a file/module that can be resolved.
|
|
919
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
929
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
920
930
|
*/
|
|
921
931
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
922
932
|
/**
|
|
923
933
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
924
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
934
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
925
935
|
*/
|
|
926
936
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
927
937
|
/**
|
|
928
938
|
* Forbid unnecessary path segments in import and require statements.
|
|
929
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
939
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
930
940
|
*/
|
|
931
941
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
932
942
|
/**
|
|
933
943
|
* Forbid webpack loader syntax in imports.
|
|
934
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
944
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
935
945
|
*/
|
|
936
946
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
937
947
|
/**
|
|
938
948
|
* Enforce a convention in module import order.
|
|
939
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
949
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
940
950
|
*/
|
|
941
951
|
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
942
952
|
/**
|
|
943
953
|
* Prefer a default export if module exports a single name or multiple names.
|
|
944
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
954
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
945
955
|
*/
|
|
946
956
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
947
957
|
/**
|
|
948
958
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
949
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
959
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
950
960
|
*/
|
|
951
961
|
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
952
962
|
/**
|
|
@@ -1724,6 +1734,11 @@ interface RuleOptions {
|
|
|
1724
1734
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
1725
1735
|
*/
|
|
1726
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>;
|
|
1727
1742
|
/**
|
|
1728
1743
|
* Enforce sorted Svelte attributes.
|
|
1729
1744
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -3096,7 +3111,7 @@ interface RuleOptions {
|
|
|
3096
3111
|
*/
|
|
3097
3112
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>;
|
|
3098
3113
|
/**
|
|
3099
|
-
* enforce order of
|
|
3114
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
3100
3115
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
3101
3116
|
*/
|
|
3102
3117
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>;
|
|
@@ -3225,6 +3240,16 @@ interface RuleOptions {
|
|
|
3225
3240
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
3226
3241
|
*/
|
|
3227
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>;
|
|
3228
3253
|
/**
|
|
3229
3254
|
* require component names to be always multi-word
|
|
3230
3255
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -3281,7 +3306,7 @@ interface RuleOptions {
|
|
|
3281
3306
|
*/
|
|
3282
3307
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>;
|
|
3283
3308
|
/**
|
|
3284
|
-
* disallow accessing computed properties in `data
|
|
3309
|
+
* disallow accessing computed properties in `data`
|
|
3285
3310
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
3286
3311
|
*/
|
|
3287
3312
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>;
|
|
@@ -3829,7 +3854,7 @@ interface RuleOptions {
|
|
|
3829
3854
|
*/
|
|
3830
3855
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>;
|
|
3831
3856
|
/**
|
|
3832
|
-
* enforce use of `defineOptions` instead of default export
|
|
3857
|
+
* enforce use of `defineOptions` instead of default export
|
|
3833
3858
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
3834
3859
|
*/
|
|
3835
3860
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>;
|
|
@@ -3873,6 +3898,11 @@ interface RuleOptions {
|
|
|
3873
3898
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
3874
3899
|
*/
|
|
3875
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<[]>;
|
|
3876
3906
|
/**
|
|
3877
3907
|
* require default value for props
|
|
3878
3908
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -3942,7 +3972,7 @@ interface RuleOptions {
|
|
|
3942
3972
|
* require control the display of the content inside `<transition>`
|
|
3943
3973
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
3944
3974
|
*/
|
|
3945
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
3975
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>;
|
|
3946
3976
|
/**
|
|
3947
3977
|
* enforce adding type declarations to object props
|
|
3948
3978
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -4458,8 +4488,8 @@ type TypescriptEslintInitDeclarations = ([] | ["always"] | [] | ["never"] | [
|
|
|
4458
4488
|
]);
|
|
4459
4489
|
type TypescriptEslintMaxParams = [] | [
|
|
4460
4490
|
{
|
|
4461
|
-
maximum?: number;
|
|
4462
4491
|
max?: number;
|
|
4492
|
+
maximum?: number;
|
|
4463
4493
|
countVoidThis?: boolean;
|
|
4464
4494
|
}
|
|
4465
4495
|
];
|
|
@@ -5055,12 +5085,12 @@ type TypescriptEslintNoUnusedVars = [] | [
|
|
|
5055
5085
|
vars?: ("all" | "local");
|
|
5056
5086
|
varsIgnorePattern?: string;
|
|
5057
5087
|
args?: ("all" | "after-used" | "none");
|
|
5058
|
-
ignoreRestSiblings?: boolean;
|
|
5059
5088
|
argsIgnorePattern?: string;
|
|
5060
5089
|
caughtErrors?: ("all" | "none");
|
|
5061
5090
|
caughtErrorsIgnorePattern?: string;
|
|
5062
5091
|
destructuredArrayIgnorePattern?: string;
|
|
5063
5092
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
5093
|
+
ignoreRestSiblings?: boolean;
|
|
5064
5094
|
reportUsedIgnorePattern?: boolean;
|
|
5065
5095
|
})
|
|
5066
5096
|
];
|
|
@@ -5228,7 +5258,7 @@ type TypescriptEslintRestrictTemplateExpressions = [] | [
|
|
|
5228
5258
|
allowNever?: boolean;
|
|
5229
5259
|
}
|
|
5230
5260
|
];
|
|
5231
|
-
type TypescriptEslintReturnAwait = [] | [("
|
|
5261
|
+
type TypescriptEslintReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
|
|
5232
5262
|
type TypescriptEslintSortTypeConstituents = [] | [
|
|
5233
5263
|
{
|
|
5234
5264
|
checkIntersections?: boolean;
|
|
@@ -5404,6 +5434,7 @@ type ImportNoExtraneousDependencies = [] | [
|
|
|
5404
5434
|
packageDir?: (string | unknown[]);
|
|
5405
5435
|
includeInternal?: boolean;
|
|
5406
5436
|
includeTypes?: boolean;
|
|
5437
|
+
whitelist?: unknown[];
|
|
5407
5438
|
}
|
|
5408
5439
|
];
|
|
5409
5440
|
type ImportNoImportModuleExports = [] | [
|
|
@@ -5445,6 +5476,12 @@ type ImportNoRelativeParentImports = [] | [
|
|
|
5445
5476
|
ignore?: [string, ...(string)[]];
|
|
5446
5477
|
}
|
|
5447
5478
|
];
|
|
5479
|
+
type ImportNoRenameDefault = [] | [
|
|
5480
|
+
{
|
|
5481
|
+
commonjs?: boolean;
|
|
5482
|
+
preventRenamingBindings?: boolean;
|
|
5483
|
+
}
|
|
5484
|
+
];
|
|
5448
5485
|
type ImportNoRestrictedPaths = [] | [
|
|
5449
5486
|
{
|
|
5450
5487
|
zones?: [
|
|
@@ -6600,9 +6637,27 @@ type PerfectionistSortClasses = [] | [
|
|
|
6600
6637
|
ignoreCase?: boolean;
|
|
6601
6638
|
partitionByComment?: (string[] | boolean | string);
|
|
6602
6639
|
groups?: (string | string[])[];
|
|
6603
|
-
customGroups?: {
|
|
6640
|
+
customGroups?: ({
|
|
6604
6641
|
[k: string]: (string | string[]) | undefined;
|
|
6605
|
-
}
|
|
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
|
+
})[]);
|
|
6606
6661
|
}
|
|
6607
6662
|
];
|
|
6608
6663
|
type PerfectionistSortEnums = [] | [
|
|
@@ -6735,6 +6790,14 @@ type PerfectionistSortObjects = [] | [
|
|
|
6735
6790
|
};
|
|
6736
6791
|
}
|
|
6737
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
|
+
];
|
|
6738
6801
|
type PerfectionistSortSvelteAttributes = [] | [
|
|
6739
6802
|
{
|
|
6740
6803
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
@@ -7450,7 +7513,7 @@ type VueCustomEventNameCasing = ([] | [("kebab-case" | "camelCase")] | [
|
|
|
7450
7513
|
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")];
|
|
7451
7514
|
type VueDefineMacrosOrder = [] | [
|
|
7452
7515
|
{
|
|
7453
|
-
order?:
|
|
7516
|
+
order?: string[];
|
|
7454
7517
|
defineExposeLast?: boolean;
|
|
7455
7518
|
}
|
|
7456
7519
|
];
|
|
@@ -8012,6 +8075,16 @@ type VueMaxLinesPerBlock = [] | [
|
|
|
8012
8075
|
skipBlankLines?: boolean;
|
|
8013
8076
|
}
|
|
8014
8077
|
];
|
|
8078
|
+
type VueMaxProps = [] | [
|
|
8079
|
+
{
|
|
8080
|
+
maxProps?: number;
|
|
8081
|
+
}
|
|
8082
|
+
];
|
|
8083
|
+
type VueMaxTemplateDepth = [] | [
|
|
8084
|
+
{
|
|
8085
|
+
maxDepth?: number;
|
|
8086
|
+
}
|
|
8087
|
+
];
|
|
8015
8088
|
type VueMultiWordComponentNames = [] | [
|
|
8016
8089
|
{
|
|
8017
8090
|
ignores?: string[];
|
|
@@ -8446,6 +8519,11 @@ type VueRequirePropComment = [] | [
|
|
|
8446
8519
|
type?: ("JSDoc" | "line" | "block" | "any");
|
|
8447
8520
|
}
|
|
8448
8521
|
];
|
|
8522
|
+
type VueRequireToggleInsideTransition = [] | [
|
|
8523
|
+
{
|
|
8524
|
+
additionalDirectives?: string[];
|
|
8525
|
+
}
|
|
8526
|
+
];
|
|
8449
8527
|
type VueReturnInComputedProperty = [] | [
|
|
8450
8528
|
{
|
|
8451
8529
|
treatUndefinedAsUnspecified?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -235,6 +235,8 @@ var imports = (options = {}) => [
|
|
|
235
235
|
"import/no-named-as-default-member": "off",
|
|
236
236
|
"import/first": "error",
|
|
237
237
|
"import/export": "error",
|
|
238
|
+
// 'import/no-named-default': 'error',
|
|
239
|
+
"import/no-self-import": "error",
|
|
238
240
|
"import/no-duplicates": "error",
|
|
239
241
|
"import/no-mutable-exports": "error",
|
|
240
242
|
"import/newline-after-import": "error",
|
|
@@ -949,6 +951,7 @@ var vue = (options = {}) => {
|
|
|
949
951
|
"vue/require-prop-types": "off",
|
|
950
952
|
"vue/require-default-prop": "off",
|
|
951
953
|
"vue/multi-word-component-names": "off",
|
|
954
|
+
"vue/no-v-text-v-html-on-component": "off",
|
|
952
955
|
"vue/no-setup-props-reactivity-loss": "off",
|
|
953
956
|
"vue/html-self-closing": [
|
|
954
957
|
"error",
|
|
@@ -993,7 +996,20 @@ var vue = (options = {}) => {
|
|
|
993
996
|
exceptions: ["-"]
|
|
994
997
|
}
|
|
995
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"],
|
|
996
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"],
|
|
997
1013
|
"vue/arrow-spacing": ["error", { before: true, after: true }],
|
|
998
1014
|
"vue/block-spacing": ["error", "always"],
|
|
999
1015
|
"vue/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "3.0.0-beta.5",
|
|
5
|
+
"packageManager": "pnpm@9.9.0",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"eslint",
|
|
@@ -56,48 +56,48 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
59
|
-
"@eslint/js": "^9.9.
|
|
60
|
-
"@types/eslint": "^9.6.
|
|
61
|
-
"@unocss/eslint-plugin": "^0.62.
|
|
62
|
-
"@vitest/eslint-plugin": "^1.0
|
|
63
|
-
"eslint-flat-config-utils": "^0.3.
|
|
59
|
+
"@eslint/js": "^9.9.1",
|
|
60
|
+
"@types/eslint": "^9.6.1",
|
|
61
|
+
"@unocss/eslint-plugin": "^0.62.3",
|
|
62
|
+
"@vitest/eslint-plugin": "^1.1.0",
|
|
63
|
+
"eslint-flat-config-utils": "^0.3.1",
|
|
64
64
|
"eslint-plugin-command": "^0.2.3",
|
|
65
|
-
"eslint-plugin-import-x": "^
|
|
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.4
|
|
90
|
-
"bumpp": "^9.5.
|
|
91
|
-
"eslint": "^9.9.
|
|
89
|
+
"@types/node": "^22.5.4",
|
|
90
|
+
"bumpp": "^9.5.2",
|
|
91
|
+
"eslint": "^9.9.1",
|
|
92
92
|
"eslint-typegen": "^0.3.1",
|
|
93
|
-
"husky": "^9.1.
|
|
93
|
+
"husky": "^9.1.5",
|
|
94
94
|
"nano-staged": "^0.8.0",
|
|
95
95
|
"npm-run-all2": "^6.2.2",
|
|
96
96
|
"rimraf": "^6.0.1",
|
|
97
97
|
"tsup": "^8.2.4",
|
|
98
|
-
"tsx": "^4.
|
|
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"
|