@ntnyq/eslint-config 7.0.0-beta.32 → 7.0.0-beta.33
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.d.mts +104 -56
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -2838,258 +2838,263 @@ interface RuleOptions {
|
|
|
2838
2838
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
2839
2839
|
/**
|
|
2840
2840
|
* Forbid authoring of barrel files.
|
|
2841
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2841
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/avoid-barrel-files.md
|
|
2842
2842
|
*/
|
|
2843
2843
|
'import-x/avoid-barrel-files'?: Linter.RuleEntry<ImportXAvoidBarrelFiles>;
|
|
2844
2844
|
/**
|
|
2845
2845
|
* Forbid importing barrel files.
|
|
2846
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2846
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/avoid-importing-barrel-files.md
|
|
2847
2847
|
*/
|
|
2848
2848
|
'import-x/avoid-importing-barrel-files'?: Linter.RuleEntry<ImportXAvoidImportingBarrelFiles>;
|
|
2849
2849
|
/**
|
|
2850
2850
|
* Forbid namespace imports.
|
|
2851
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2851
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/avoid-namespace-import.md
|
|
2852
2852
|
*/
|
|
2853
2853
|
'import-x/avoid-namespace-import'?: Linter.RuleEntry<ImportXAvoidNamespaceImport>;
|
|
2854
2854
|
/**
|
|
2855
2855
|
* Forbid re-exporting * from a module.
|
|
2856
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2856
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/avoid-re-export-all.md
|
|
2857
2857
|
*/
|
|
2858
2858
|
'import-x/avoid-re-export-all'?: Linter.RuleEntry<[]>;
|
|
2859
2859
|
/**
|
|
2860
2860
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2861
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2861
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/consistent-type-specifier-style.md
|
|
2862
2862
|
*/
|
|
2863
2863
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
2864
2864
|
/**
|
|
2865
2865
|
* Ensure a default export is present, given a default import.
|
|
2866
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2866
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/default.md
|
|
2867
2867
|
*/
|
|
2868
2868
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
2869
2869
|
/**
|
|
2870
2870
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2871
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2871
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/dynamic-import-chunkname.md
|
|
2872
2872
|
*/
|
|
2873
2873
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
2874
2874
|
/**
|
|
2875
2875
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2876
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2876
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/export.md
|
|
2877
2877
|
*/
|
|
2878
2878
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
2879
2879
|
/**
|
|
2880
2880
|
* Ensure all exports appear after other statements.
|
|
2881
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2881
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/exports-last.md
|
|
2882
2882
|
*/
|
|
2883
2883
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Ensure consistent use of file extension within the import path.
|
|
2886
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2886
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/extensions.md
|
|
2887
2887
|
*/
|
|
2888
2888
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
2889
2889
|
/**
|
|
2890
2890
|
* Ensure all imports appear before other statements.
|
|
2891
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2891
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/first.md
|
|
2892
2892
|
*/
|
|
2893
2893
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
2894
2894
|
/**
|
|
2895
2895
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2896
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2896
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/group-exports.md
|
|
2897
2897
|
*/
|
|
2898
2898
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
2899
2899
|
/**
|
|
2900
2900
|
* Replaced by `import-x/first`.
|
|
2901
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2901
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/imports-first.md
|
|
2902
2902
|
* @deprecated
|
|
2903
2903
|
*/
|
|
2904
2904
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
2905
2905
|
/**
|
|
2906
2906
|
* Enforce the maximum number of dependencies a module can have.
|
|
2907
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2907
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/max-dependencies.md
|
|
2908
2908
|
*/
|
|
2909
2909
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
2910
2910
|
/**
|
|
2911
2911
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2912
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2912
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/named.md
|
|
2913
2913
|
*/
|
|
2914
2914
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
2915
2915
|
/**
|
|
2916
2916
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2917
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2917
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/namespace.md
|
|
2918
2918
|
*/
|
|
2919
2919
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
2920
2920
|
/**
|
|
2921
2921
|
* Enforce a newline after import statements.
|
|
2922
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2922
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/newline-after-import.md
|
|
2923
2923
|
*/
|
|
2924
2924
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
2925
2925
|
/**
|
|
2926
2926
|
* Forbid import of modules using absolute paths.
|
|
2927
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2927
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-absolute-path.md
|
|
2928
2928
|
*/
|
|
2929
2929
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
2930
2930
|
/**
|
|
2931
2931
|
* Forbid AMD `require` and `define` calls.
|
|
2932
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2932
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-amd.md
|
|
2933
2933
|
*/
|
|
2934
2934
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
2935
2935
|
/**
|
|
2936
2936
|
* Forbid anonymous values as default exports.
|
|
2937
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2937
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-anonymous-default-export.md
|
|
2938
2938
|
*/
|
|
2939
2939
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
2940
2940
|
/**
|
|
2941
2941
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2942
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2942
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-commonjs.md
|
|
2943
2943
|
*/
|
|
2944
2944
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
2945
2945
|
/**
|
|
2946
2946
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2947
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2947
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-cycle.md
|
|
2948
2948
|
*/
|
|
2949
2949
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
2950
2950
|
/**
|
|
2951
2951
|
* Forbid default exports.
|
|
2952
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2952
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-default-export.md
|
|
2953
2953
|
*/
|
|
2954
2954
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
2955
2955
|
/**
|
|
2956
2956
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2957
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2957
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-deprecated.md
|
|
2958
2958
|
*/
|
|
2959
2959
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
2960
2960
|
/**
|
|
2961
2961
|
* Forbid repeated import of the same module in multiple places.
|
|
2962
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2962
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-duplicates.md
|
|
2963
2963
|
*/
|
|
2964
2964
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
2965
2965
|
/**
|
|
2966
2966
|
* Forbid `require()` calls with expressions.
|
|
2967
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2967
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-dynamic-require.md
|
|
2968
2968
|
*/
|
|
2969
2969
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
2970
2970
|
/**
|
|
2971
2971
|
* Forbid empty named import blocks.
|
|
2972
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2972
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-empty-named-blocks.md
|
|
2973
2973
|
*/
|
|
2974
2974
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
2975
2975
|
/**
|
|
2976
2976
|
* Forbid the use of extraneous packages.
|
|
2977
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2977
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-extraneous-dependencies.md
|
|
2978
2978
|
*/
|
|
2979
2979
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Forbid import statements with CommonJS module.exports.
|
|
2982
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2982
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-import-module-exports.md
|
|
2983
2983
|
*/
|
|
2984
2984
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
2985
2985
|
/**
|
|
2986
2986
|
* Forbid importing the submodules of other modules.
|
|
2987
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2987
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-internal-modules.md
|
|
2988
2988
|
*/
|
|
2989
2989
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
2990
2990
|
/**
|
|
2991
2991
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2992
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2992
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-mutable-exports.md
|
|
2993
2993
|
*/
|
|
2994
2994
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
2995
2995
|
/**
|
|
2996
2996
|
* Forbid use of exported name as identifier of default export.
|
|
2997
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2997
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-named-as-default.md
|
|
2998
2998
|
*/
|
|
2999
2999
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
3000
3000
|
/**
|
|
3001
3001
|
* Forbid use of exported name as property of default export.
|
|
3002
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3002
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-named-as-default-member.md
|
|
3003
3003
|
*/
|
|
3004
3004
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
3005
3005
|
/**
|
|
3006
3006
|
* Forbid named default exports.
|
|
3007
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3007
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-named-default.md
|
|
3008
3008
|
*/
|
|
3009
3009
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
3010
3010
|
/**
|
|
3011
3011
|
* Forbid named exports.
|
|
3012
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3012
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-named-export.md
|
|
3013
3013
|
*/
|
|
3014
3014
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
3015
3015
|
/**
|
|
3016
3016
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
3017
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3017
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-namespace.md
|
|
3018
3018
|
*/
|
|
3019
3019
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
3020
3020
|
/**
|
|
3021
3021
|
* Forbid Node.js builtin modules.
|
|
3022
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3022
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-nodejs-modules.md
|
|
3023
3023
|
*/
|
|
3024
3024
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Forbid importing packages through relative paths.
|
|
3027
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3027
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-relative-packages.md
|
|
3028
3028
|
*/
|
|
3029
3029
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
3030
3030
|
/**
|
|
3031
3031
|
* Forbid importing modules from parent directories.
|
|
3032
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3032
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-relative-parent-imports.md
|
|
3033
3033
|
*/
|
|
3034
3034
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
3035
3035
|
/**
|
|
3036
3036
|
* Forbid importing a default export by a different name.
|
|
3037
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3037
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-rename-default.md
|
|
3038
3038
|
*/
|
|
3039
3039
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
3040
3040
|
/**
|
|
3041
3041
|
* Enforce which files can be imported in a given folder.
|
|
3042
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3042
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-restricted-paths.md
|
|
3043
3043
|
*/
|
|
3044
3044
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Forbid a module from importing itself.
|
|
3047
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3047
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-self-import.md
|
|
3048
3048
|
*/
|
|
3049
3049
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Forbid a package from importing itself through its own `exports` map.
|
|
3052
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-self-package-import.md
|
|
3053
|
+
*/
|
|
3054
|
+
'import-x/no-self-package-import'?: Linter.RuleEntry<ImportXNoSelfPackageImport>;
|
|
3050
3055
|
/**
|
|
3051
3056
|
* Forbid unassigned imports.
|
|
3052
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3057
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-unassigned-import.md
|
|
3053
3058
|
*/
|
|
3054
3059
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
3055
3060
|
/**
|
|
3056
3061
|
* Ensure imports point to a file/module that can be resolved.
|
|
3057
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3062
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-unresolved.md
|
|
3058
3063
|
*/
|
|
3059
3064
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
3060
3065
|
/**
|
|
3061
3066
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
3062
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3067
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-unused-modules.md
|
|
3063
3068
|
*/
|
|
3064
3069
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
3065
3070
|
/**
|
|
3066
3071
|
* Forbid unnecessary path segments in import and require statements.
|
|
3067
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3072
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-useless-path-segments.md
|
|
3068
3073
|
*/
|
|
3069
3074
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
3070
3075
|
/**
|
|
3071
3076
|
* Forbid webpack loader syntax in imports.
|
|
3072
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3077
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/no-webpack-loader-syntax.md
|
|
3073
3078
|
*/
|
|
3074
3079
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
3075
3080
|
/**
|
|
3076
3081
|
* Enforce a convention in module import order.
|
|
3077
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3082
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/order.md
|
|
3078
3083
|
*/
|
|
3079
3084
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
3080
3085
|
/**
|
|
3081
3086
|
* Prefer a default export if module exports a single name or multiple names.
|
|
3082
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3087
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/prefer-default-export.md
|
|
3083
3088
|
*/
|
|
3084
3089
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
3085
3090
|
/**
|
|
3086
3091
|
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
3087
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3092
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/prefer-namespace-import.md
|
|
3088
3093
|
*/
|
|
3089
3094
|
'import-x/prefer-namespace-import'?: Linter.RuleEntry<ImportXPreferNamespaceImport>;
|
|
3090
3095
|
/**
|
|
3091
3096
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3092
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3097
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.19.0/docs/rules/unambiguous.md
|
|
3093
3098
|
*/
|
|
3094
3099
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
3095
3100
|
/**
|
|
@@ -9332,7 +9337,7 @@ interface RuleOptions {
|
|
|
9332
9337
|
*/
|
|
9333
9338
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>;
|
|
9334
9339
|
/**
|
|
9335
|
-
* enforce declaration style of `defineProps`
|
|
9340
|
+
* enforce declaration style of `defineProps` and `defineModel`
|
|
9336
9341
|
* @see https://eslint.vuejs.org/rules/define-props-declaration.html
|
|
9337
9342
|
*/
|
|
9338
9343
|
'vue/define-props-declaration'?: Linter.RuleEntry<VueDefinePropsDeclaration>;
|
|
@@ -9445,7 +9450,7 @@ interface RuleOptions {
|
|
|
9445
9450
|
* require the registered component name to match the imported component name
|
|
9446
9451
|
* @see https://eslint.vuejs.org/rules/match-component-import-name.html
|
|
9447
9452
|
*/
|
|
9448
|
-
'vue/match-component-import-name'?: Linter.RuleEntry<
|
|
9453
|
+
'vue/match-component-import-name'?: Linter.RuleEntry<VueMatchComponentImportName>;
|
|
9449
9454
|
/**
|
|
9450
9455
|
* enforce the maximum number of attributes per line
|
|
9451
9456
|
* @see https://eslint.vuejs.org/rules/max-attributes-per-line.html
|
|
@@ -9601,6 +9606,11 @@ interface RuleOptions {
|
|
|
9601
9606
|
* @see https://eslint.vuejs.org/rules/no-deprecated-html-element-is.html
|
|
9602
9607
|
*/
|
|
9603
9608
|
'vue/no-deprecated-html-element-is'?: Linter.RuleEntry<[]>;
|
|
9609
|
+
/**
|
|
9610
|
+
* disallow using deprecated HTML elements
|
|
9611
|
+
* @see https://eslint.vuejs.org/rules/no-deprecated-html-elements.html
|
|
9612
|
+
*/
|
|
9613
|
+
'vue/no-deprecated-html-elements'?: Linter.RuleEntry<VueNoDeprecatedHtmlElements>;
|
|
9604
9614
|
/**
|
|
9605
9615
|
* disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+)
|
|
9606
9616
|
* @see https://eslint.vuejs.org/rules/no-deprecated-inline-template.html
|
|
@@ -10222,7 +10232,7 @@ interface RuleOptions {
|
|
|
10222
10232
|
* require a name property in Vue components
|
|
10223
10233
|
* @see https://eslint.vuejs.org/rules/require-name-property.html
|
|
10224
10234
|
*/
|
|
10225
|
-
'vue/require-name-property'?: Linter.RuleEntry<
|
|
10235
|
+
'vue/require-name-property'?: Linter.RuleEntry<VueRequireNameProperty>;
|
|
10226
10236
|
/**
|
|
10227
10237
|
* require props to have a comment
|
|
10228
10238
|
* @see https://eslint.vuejs.org/rules/require-prop-comment.html
|
|
@@ -12244,7 +12254,7 @@ type ImportXAvoidNamespaceImport = [] | [{
|
|
|
12244
12254
|
allowList?: string[];
|
|
12245
12255
|
}];
|
|
12246
12256
|
// ----- import-x/consistent-type-specifier-style -----
|
|
12247
|
-
type ImportXConsistentTypeSpecifierStyle = [] | [("prefer-top-level" | "prefer-inline")];
|
|
12257
|
+
type ImportXConsistentTypeSpecifierStyle = [] | [("prefer-top-level" | "prefer-inline" | "prefer-top-level-if-only-type-imports" | "top-level" | "inline")];
|
|
12248
12258
|
// ----- import-x/dynamic-import-chunkname -----
|
|
12249
12259
|
type ImportXDynamicImportChunkname = [] | [{
|
|
12250
12260
|
importFunctions?: string[];
|
|
@@ -12351,10 +12361,12 @@ type ImportXNoCycle = [] | [{
|
|
|
12351
12361
|
maxDepth?: (number | "∞");
|
|
12352
12362
|
ignoreExternal?: boolean;
|
|
12353
12363
|
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
12364
|
+
includeTypes?: boolean;
|
|
12354
12365
|
}];
|
|
12355
12366
|
// ----- import-x/no-duplicates -----
|
|
12356
12367
|
type ImportXNoDuplicates = [] | [{
|
|
12357
12368
|
considerQueryString?: boolean;
|
|
12369
|
+
considerReexports?: boolean;
|
|
12358
12370
|
"prefer-inline"?: boolean;
|
|
12359
12371
|
whitelist?: string[][];
|
|
12360
12372
|
}];
|
|
@@ -12372,6 +12384,9 @@ type ImportXNoExtraneousDependencies = [] | [{
|
|
|
12372
12384
|
includeInternal?: boolean;
|
|
12373
12385
|
includeTypes?: boolean;
|
|
12374
12386
|
whitelist?: unknown[];
|
|
12387
|
+
transitiveDependencies?: {
|
|
12388
|
+
[k: string]: string[] | undefined;
|
|
12389
|
+
};
|
|
12375
12390
|
}];
|
|
12376
12391
|
// ----- import-x/no-import-module-exports -----
|
|
12377
12392
|
type ImportXNoImportModuleExports = [] | [{
|
|
@@ -12412,6 +12427,8 @@ type ImportXNoRelativeParentImports = [] | [{
|
|
|
12412
12427
|
}), ...((string | {
|
|
12413
12428
|
[k: string]: unknown | undefined;
|
|
12414
12429
|
}))[]];
|
|
12430
|
+
maxLevels?: number;
|
|
12431
|
+
ignorePrivateImports?: boolean;
|
|
12415
12432
|
}];
|
|
12416
12433
|
// ----- import-x/no-rename-default -----
|
|
12417
12434
|
type ImportXNoRenameDefault = [] | [{
|
|
@@ -12434,6 +12451,11 @@ type ImportXNoRestrictedPaths = [] | [{
|
|
|
12434
12451
|
})[]];
|
|
12435
12452
|
basePath?: string;
|
|
12436
12453
|
}];
|
|
12454
|
+
// ----- import-x/no-self-package-import -----
|
|
12455
|
+
type ImportXNoSelfPackageImport = [] | [{
|
|
12456
|
+
allowInFiles?: string[];
|
|
12457
|
+
ignoreTypeImports?: boolean;
|
|
12458
|
+
}];
|
|
12437
12459
|
// ----- import-x/no-unassigned-import -----
|
|
12438
12460
|
type ImportXNoUnassignedImport = [] | [{
|
|
12439
12461
|
devDependencies?: (boolean | unknown[]);
|
|
@@ -12453,6 +12475,7 @@ type ImportXNoUnresolved = [] | [{
|
|
|
12453
12475
|
}))[]];
|
|
12454
12476
|
caseSensitive?: boolean;
|
|
12455
12477
|
caseSensitiveStrict?: boolean;
|
|
12478
|
+
includeTypes?: boolean;
|
|
12456
12479
|
}];
|
|
12457
12480
|
// ----- import-x/no-unused-modules -----
|
|
12458
12481
|
type ImportXNoUnusedModules = [] | [({
|
|
@@ -13074,6 +13097,12 @@ type JsdocRequireThrows = [] | [{
|
|
|
13074
13097
|
context?: string;
|
|
13075
13098
|
})[];
|
|
13076
13099
|
exemptedBy?: string[];
|
|
13100
|
+
publicOnly?: (boolean | {
|
|
13101
|
+
ancestorsOnly?: boolean;
|
|
13102
|
+
cjs?: boolean;
|
|
13103
|
+
esm?: boolean;
|
|
13104
|
+
window?: boolean;
|
|
13105
|
+
});
|
|
13077
13106
|
}];
|
|
13078
13107
|
// ----- jsdoc/require-yields -----
|
|
13079
13108
|
type JsdocRequireYields = [] | [{
|
|
@@ -20143,6 +20172,10 @@ type VuePerfectionistRequireComposableReturnBindings = [] | [{
|
|
|
20143
20172
|
ignoreNames?: string[];
|
|
20144
20173
|
allowAliases?: boolean;
|
|
20145
20174
|
allowParameters?: boolean;
|
|
20175
|
+
allowWrappers?: {
|
|
20176
|
+
source: string;
|
|
20177
|
+
names: [string, ...(string)[]];
|
|
20178
|
+
}[];
|
|
20146
20179
|
}];
|
|
20147
20180
|
// ----- vue-perfectionist/require-injection-key -----
|
|
20148
20181
|
type VuePerfectionistRequireInjectionKey = [] | [{
|
|
@@ -21163,6 +21196,10 @@ type VueMatchComponentFileName = [] | [{
|
|
|
21163
21196
|
extensions?: string[];
|
|
21164
21197
|
shouldMatchCase?: boolean;
|
|
21165
21198
|
}];
|
|
21199
|
+
// ----- vue/match-component-import-name -----
|
|
21200
|
+
type VueMatchComponentImportName = [] | [{
|
|
21201
|
+
ignoreConflictingNames?: boolean;
|
|
21202
|
+
}];
|
|
21166
21203
|
// ----- vue/max-attributes-per-line -----
|
|
21167
21204
|
type VueMaxAttributesPerLine = [] | [{
|
|
21168
21205
|
singleline?: (number | {
|
|
@@ -21282,6 +21319,7 @@ type VueMultilineHtmlElementContentNewline = [] | [{
|
|
|
21282
21319
|
ignoreWhenEmpty?: boolean;
|
|
21283
21320
|
ignores?: string[];
|
|
21284
21321
|
allowEmptyLines?: boolean;
|
|
21322
|
+
ignoreComments?: boolean;
|
|
21285
21323
|
}];
|
|
21286
21324
|
// ----- vue/multiline-ternary -----
|
|
21287
21325
|
type VueMultilineTernary = [] | [("always" | "always-multiline" | "never")];
|
|
@@ -21319,6 +21357,10 @@ type VueNoConsole = [] | [{
|
|
|
21319
21357
|
type VueNoConstantCondition = [] | [{
|
|
21320
21358
|
checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false);
|
|
21321
21359
|
}];
|
|
21360
|
+
// ----- vue/no-deprecated-html-elements -----
|
|
21361
|
+
type VueNoDeprecatedHtmlElements = [] | [{
|
|
21362
|
+
ignores?: string[];
|
|
21363
|
+
}];
|
|
21322
21364
|
// ----- vue/no-deprecated-model-definition -----
|
|
21323
21365
|
type VueNoDeprecatedModelDefinition = [] | [{
|
|
21324
21366
|
allowVue3Compat?: boolean;
|
|
@@ -21662,6 +21704,7 @@ type VuePaddingLineBetweenTags = [] | [{
|
|
|
21662
21704
|
blankLine: ("always" | "never" | "consistent");
|
|
21663
21705
|
prev: string;
|
|
21664
21706
|
next: string;
|
|
21707
|
+
betweenConditionalTags?: boolean;
|
|
21665
21708
|
}[]];
|
|
21666
21709
|
// ----- vue/padding-lines-in-component-definition -----
|
|
21667
21710
|
type VuePaddingLinesInComponentDefinition = [] | [(("always" | "never") | {
|
|
@@ -21705,6 +21748,10 @@ type VueRequireMacroVariableName = [] | [{
|
|
|
21705
21748
|
useSlots?: string;
|
|
21706
21749
|
useAttrs?: string;
|
|
21707
21750
|
}];
|
|
21751
|
+
// ----- vue/require-name-property -----
|
|
21752
|
+
type VueRequireNameProperty = [] | [{
|
|
21753
|
+
checkScriptSetup?: boolean;
|
|
21754
|
+
}];
|
|
21708
21755
|
// ----- vue/require-prop-comment -----
|
|
21709
21756
|
type VueRequirePropComment = [] | [{
|
|
21710
21757
|
type?: ("JSDoc" | "line" | "block" | "any");
|
|
@@ -21737,6 +21784,7 @@ type VueSinglelineHtmlElementContentNewline = [] | [{
|
|
|
21737
21784
|
ignoreWhenEmpty?: boolean;
|
|
21738
21785
|
ignores?: string[];
|
|
21739
21786
|
externalIgnores?: string[];
|
|
21787
|
+
ignoreComments?: boolean;
|
|
21740
21788
|
}];
|
|
21741
21789
|
// ----- vue/slot-name-casing -----
|
|
21742
21790
|
type VueSlotNameCasing = [] | [("camelCase" | "kebab-case" | "singleword")];
|
|
@@ -21786,7 +21834,7 @@ type VueVOnEventHyphenation = [] | [("always" | "never")] | [("always" | "never"
|
|
|
21786
21834
|
ignoreTags?: string[];
|
|
21787
21835
|
}];
|
|
21788
21836
|
// ----- vue/v-on-handler-style -----
|
|
21789
|
-
type VueVOnHandlerStyle = [] | [(("inline" | "inline-function") | ["method", ("inline" | "inline-function")])] | [(("inline" | "inline-function") | ["method", ("inline" | "inline-function")]), {
|
|
21837
|
+
type VueVOnHandlerStyle = [] | [(("inline" | "inline-function") | [("method" | "inline"), ("inline" | "inline-function")])] | [(("inline" | "inline-function") | [("method" | "inline"), ("inline" | "inline-function")]), {
|
|
21790
21838
|
ignoreIncludesComment?: boolean;
|
|
21791
21839
|
}];
|
|
21792
21840
|
// ----- vue/v-on-style -----
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.33",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"@eslint/js": "^10.0.1",
|
|
95
95
|
"@eslint/markdown": "^9.0.0",
|
|
96
96
|
"@ntnyq/utils": "^0.27.1",
|
|
97
|
-
"@unocss/eslint-plugin": "^66.13.
|
|
97
|
+
"@unocss/eslint-plugin": "^66.13.1",
|
|
98
98
|
"@vitest/eslint-plugin": "^1.6.28",
|
|
99
99
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
100
100
|
"eslint-flat-config-utils": "^3.2.0",
|
|
101
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
101
|
+
"eslint-import-resolver-typescript": "^4.4.6",
|
|
102
102
|
"eslint-merge-processors": "^2.0.0",
|
|
103
103
|
"eslint-parser-plain": "^0.1.1",
|
|
104
104
|
"eslint-plugin-antfu": "^3.3.1",
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
"eslint-plugin-de-morgan": "^2.3.0",
|
|
107
107
|
"eslint-plugin-depend": "^1.5.0",
|
|
108
108
|
"eslint-plugin-github-action": "^0.5.0",
|
|
109
|
-
"eslint-plugin-import-x": "^4.
|
|
110
|
-
"eslint-plugin-jsdoc": "^65.
|
|
109
|
+
"eslint-plugin-import-x": "^4.19.0",
|
|
110
|
+
"eslint-plugin-jsdoc": "^65.7.3",
|
|
111
111
|
"eslint-plugin-jsonc": "^3.4.2",
|
|
112
112
|
"eslint-plugin-n": "^18.6.0",
|
|
113
113
|
"eslint-plugin-ntnyq": "^0.21.0",
|
|
114
|
-
"eslint-plugin-oxfmt": "^0.
|
|
114
|
+
"eslint-plugin-oxfmt": "^0.35.0",
|
|
115
115
|
"eslint-plugin-perfectionist": "^5.14.0",
|
|
116
116
|
"eslint-plugin-pinia": "^0.4.2",
|
|
117
117
|
"eslint-plugin-prettier": "^5.5.7",
|
|
@@ -119,16 +119,16 @@
|
|
|
119
119
|
"eslint-plugin-svgo": "^0.14.1",
|
|
120
120
|
"eslint-plugin-toml": "^1.5.1",
|
|
121
121
|
"eslint-plugin-unicorn": "^80.0.0",
|
|
122
|
-
"eslint-plugin-vue": "^10.
|
|
123
|
-
"eslint-plugin-vue-perfectionist": "^0.19.
|
|
122
|
+
"eslint-plugin-vue": "^10.13.0",
|
|
123
|
+
"eslint-plugin-vue-perfectionist": "^0.19.1",
|
|
124
124
|
"eslint-plugin-yml": "^3.10.1",
|
|
125
125
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
126
|
-
"globals": "^17.
|
|
126
|
+
"globals": "^17.15.0",
|
|
127
127
|
"jsonc-eslint-parser": "^3.3.2",
|
|
128
128
|
"local-pkg": "^2.0.0",
|
|
129
129
|
"toml-eslint-parser": "^1.0.3",
|
|
130
130
|
"typescript-eslint": "^8.74.0",
|
|
131
|
-
"vue-eslint-parser": "^10.
|
|
131
|
+
"vue-eslint-parser": "^10.5.1",
|
|
132
132
|
"yaml-eslint-parser": "^2.1.0"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
@@ -144,10 +144,10 @@
|
|
|
144
144
|
"jiti": "^2.7.0",
|
|
145
145
|
"nano-staged": "^1.0.2",
|
|
146
146
|
"npm-run-all2": "^9.1.0",
|
|
147
|
-
"oxfmt": "^0.
|
|
148
|
-
"prettier": "^3.10.
|
|
147
|
+
"oxfmt": "^0.81.0",
|
|
148
|
+
"prettier": "^3.10.2",
|
|
149
149
|
"tinyglobby": "^0.2.17",
|
|
150
|
-
"tsdown": "^0.23.
|
|
150
|
+
"tsdown": "^0.23.8",
|
|
151
151
|
"tsx": "^4.23.15",
|
|
152
152
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
153
153
|
"uncase": "^0.3.0",
|