@sxzz/eslint-config 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +151 -110
- package/dist/index.js +7 -8
- package/package.json +20 -20
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as eslint_plugin_n from 'eslint-plugin-n';
|
|
|
4
4
|
import * as eslint_plugin_sxzz from 'eslint-plugin-sxzz';
|
|
5
5
|
import * as eslint_plugin_antfu from 'eslint-plugin-antfu';
|
|
6
6
|
import _configCommand from 'eslint-plugin-command/config';
|
|
7
|
+
export { default as configComments } from '@eslint-community/eslint-plugin-eslint-comments/configs';
|
|
7
8
|
import * as eslintPluginImportX from 'eslint-plugin-import-x';
|
|
8
9
|
export { eslintPluginImportX as pluginImport };
|
|
9
10
|
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
@@ -27,6 +28,51 @@ declare const ignores: Linter.Config[];
|
|
|
27
28
|
declare const imports: Linter.Config[];
|
|
28
29
|
|
|
29
30
|
interface Rules {
|
|
31
|
+
/**
|
|
32
|
+
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
33
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
34
|
+
*/
|
|
35
|
+
'@eslint-community/eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommunityEslintCommentsDisableEnablePair>;
|
|
36
|
+
/**
|
|
37
|
+
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
38
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
39
|
+
*/
|
|
40
|
+
'@eslint-community/eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>;
|
|
41
|
+
/**
|
|
42
|
+
* disallow duplicate `eslint-disable` comments
|
|
43
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
44
|
+
*/
|
|
45
|
+
'@eslint-community/eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>;
|
|
46
|
+
/**
|
|
47
|
+
* disallow `eslint-disable` comments about specific rules
|
|
48
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
49
|
+
*/
|
|
50
|
+
'@eslint-community/eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommunityEslintCommentsNoRestrictedDisable>;
|
|
51
|
+
/**
|
|
52
|
+
* disallow `eslint-disable` comments without rule names
|
|
53
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
54
|
+
*/
|
|
55
|
+
'@eslint-community/eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>;
|
|
56
|
+
/**
|
|
57
|
+
* disallow unused `eslint-disable` comments
|
|
58
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
59
|
+
*/
|
|
60
|
+
'@eslint-community/eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
61
|
+
/**
|
|
62
|
+
* disallow unused `eslint-enable` comments
|
|
63
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
64
|
+
*/
|
|
65
|
+
'@eslint-community/eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>;
|
|
66
|
+
/**
|
|
67
|
+
* disallow ESLint directive-comments
|
|
68
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
69
|
+
*/
|
|
70
|
+
'@eslint-community/eslint-comments/no-use'?: Linter.RuleEntry<EslintCommunityEslintCommentsNoUse>;
|
|
71
|
+
/**
|
|
72
|
+
* require include descriptions in ESLint directive-comments
|
|
73
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
74
|
+
*/
|
|
75
|
+
'@eslint-community/eslint-comments/require-description'?: Linter.RuleEntry<EslintCommunityEslintCommentsRequireDescription>;
|
|
30
76
|
/**
|
|
31
77
|
* Require that function overload signatures be consecutive
|
|
32
78
|
* @see https://typescript-eslint.io/rules/adjacent-overload-signatures
|
|
@@ -713,6 +759,11 @@ interface Rules {
|
|
|
713
759
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
|
|
714
760
|
*/
|
|
715
761
|
'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>;
|
|
762
|
+
/**
|
|
763
|
+
* Prevent using top-level await
|
|
764
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
|
|
765
|
+
*/
|
|
766
|
+
'antfu/no-top-level-await'?: Linter.RuleEntry<[]>;
|
|
716
767
|
/**
|
|
717
768
|
* Do not use `exports =`
|
|
718
769
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
|
|
@@ -892,51 +943,6 @@ interface Rules {
|
|
|
892
943
|
* @see https://eslint.org/docs/latest/rules/eqeqeq
|
|
893
944
|
*/
|
|
894
945
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>;
|
|
895
|
-
/**
|
|
896
|
-
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
897
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
898
|
-
*/
|
|
899
|
-
'eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommentsDisableEnablePair>;
|
|
900
|
-
/**
|
|
901
|
-
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
902
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
903
|
-
*/
|
|
904
|
-
'eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>;
|
|
905
|
-
/**
|
|
906
|
-
* disallow duplicate `eslint-disable` comments
|
|
907
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
908
|
-
*/
|
|
909
|
-
'eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>;
|
|
910
|
-
/**
|
|
911
|
-
* disallow `eslint-disable` comments about specific rules
|
|
912
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
913
|
-
*/
|
|
914
|
-
'eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommentsNoRestrictedDisable>;
|
|
915
|
-
/**
|
|
916
|
-
* disallow `eslint-disable` comments without rule names
|
|
917
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
918
|
-
*/
|
|
919
|
-
'eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>;
|
|
920
|
-
/**
|
|
921
|
-
* disallow unused `eslint-disable` comments
|
|
922
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
923
|
-
*/
|
|
924
|
-
'eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
925
|
-
/**
|
|
926
|
-
* disallow unused `eslint-enable` comments
|
|
927
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
928
|
-
*/
|
|
929
|
-
'eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>;
|
|
930
|
-
/**
|
|
931
|
-
* disallow ESLint directive-comments
|
|
932
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
933
|
-
*/
|
|
934
|
-
'eslint-comments/no-use'?: Linter.RuleEntry<EslintCommentsNoUse>;
|
|
935
|
-
/**
|
|
936
|
-
* require include descriptions in ESLint directive-comments
|
|
937
|
-
* @see https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
938
|
-
*/
|
|
939
|
-
'eslint-comments/require-description'?: Linter.RuleEntry<EslintCommentsRequireDescription>;
|
|
940
946
|
/**
|
|
941
947
|
* Enforce "for" loop update clause moving the counter in the right direction
|
|
942
948
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
@@ -1037,233 +1043,233 @@ interface Rules {
|
|
|
1037
1043
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
1038
1044
|
/**
|
|
1039
1045
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1040
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1046
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
|
|
1041
1047
|
*/
|
|
1042
1048
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
1043
1049
|
/**
|
|
1044
1050
|
* Ensure a default export is present, given a default import.
|
|
1045
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1051
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
|
|
1046
1052
|
*/
|
|
1047
1053
|
'import/default'?: Linter.RuleEntry<[]>;
|
|
1048
1054
|
/**
|
|
1049
1055
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1050
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1056
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
|
|
1051
1057
|
*/
|
|
1052
1058
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
1053
1059
|
/**
|
|
1054
1060
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1055
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1061
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
|
|
1056
1062
|
*/
|
|
1057
1063
|
'import/export'?: Linter.RuleEntry<[]>;
|
|
1058
1064
|
/**
|
|
1059
1065
|
* Ensure all exports appear after other statements.
|
|
1060
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1066
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
|
|
1061
1067
|
*/
|
|
1062
1068
|
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
1063
1069
|
/**
|
|
1064
1070
|
* Ensure consistent use of file extension within the import path.
|
|
1065
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1071
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
|
|
1066
1072
|
*/
|
|
1067
1073
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
1068
1074
|
/**
|
|
1069
1075
|
* Ensure all imports appear before other statements.
|
|
1070
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1076
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
|
|
1071
1077
|
*/
|
|
1072
1078
|
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
1073
1079
|
/**
|
|
1074
1080
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1075
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1081
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
|
|
1076
1082
|
*/
|
|
1077
1083
|
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
1078
1084
|
/**
|
|
1079
1085
|
* Replaced by `import-x/first`.
|
|
1080
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1086
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
|
|
1081
1087
|
* @deprecated
|
|
1082
1088
|
*/
|
|
1083
1089
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
1084
1090
|
/**
|
|
1085
1091
|
* Enforce the maximum number of dependencies a module can have.
|
|
1086
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1092
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
|
|
1087
1093
|
*/
|
|
1088
1094
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
1089
1095
|
/**
|
|
1090
1096
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1091
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1097
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
|
|
1092
1098
|
*/
|
|
1093
1099
|
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
1094
1100
|
/**
|
|
1095
1101
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1096
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1102
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
|
|
1097
1103
|
*/
|
|
1098
1104
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
1099
1105
|
/**
|
|
1100
1106
|
* Enforce a newline after import statements.
|
|
1101
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1107
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
|
|
1102
1108
|
*/
|
|
1103
1109
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
1104
1110
|
/**
|
|
1105
1111
|
* Forbid import of modules using absolute paths.
|
|
1106
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1112
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
|
|
1107
1113
|
*/
|
|
1108
1114
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
1109
1115
|
/**
|
|
1110
1116
|
* Forbid AMD `require` and `define` calls.
|
|
1111
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1117
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
|
|
1112
1118
|
*/
|
|
1113
1119
|
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
1114
1120
|
/**
|
|
1115
1121
|
* Forbid anonymous values as default exports.
|
|
1116
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1122
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
|
|
1117
1123
|
*/
|
|
1118
1124
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
1119
1125
|
/**
|
|
1120
1126
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1121
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1127
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
|
|
1122
1128
|
*/
|
|
1123
1129
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
1124
1130
|
/**
|
|
1125
1131
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1126
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1132
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
|
|
1127
1133
|
*/
|
|
1128
1134
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
1129
1135
|
/**
|
|
1130
1136
|
* Forbid default exports.
|
|
1131
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1137
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
|
|
1132
1138
|
*/
|
|
1133
1139
|
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
1134
1140
|
/**
|
|
1135
1141
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1136
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1142
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
|
|
1137
1143
|
*/
|
|
1138
1144
|
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
1139
1145
|
/**
|
|
1140
1146
|
* Forbid repeated import of the same module in multiple places.
|
|
1141
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1147
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
|
|
1142
1148
|
*/
|
|
1143
1149
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
1144
1150
|
/**
|
|
1145
1151
|
* Forbid `require()` calls with expressions.
|
|
1146
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1152
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
|
|
1147
1153
|
*/
|
|
1148
1154
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
1149
1155
|
/**
|
|
1150
1156
|
* Forbid empty named import blocks.
|
|
1151
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1157
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
|
|
1152
1158
|
*/
|
|
1153
1159
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
1154
1160
|
/**
|
|
1155
1161
|
* Forbid the use of extraneous packages.
|
|
1156
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1162
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
|
|
1157
1163
|
*/
|
|
1158
1164
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
1159
1165
|
/**
|
|
1160
1166
|
* Forbid import statements with CommonJS module.exports.
|
|
1161
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1167
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
|
|
1162
1168
|
*/
|
|
1163
1169
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
1164
1170
|
/**
|
|
1165
1171
|
* Forbid importing the submodules of other modules.
|
|
1166
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1172
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
|
|
1167
1173
|
*/
|
|
1168
1174
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
1169
1175
|
/**
|
|
1170
1176
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1171
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1177
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
|
|
1172
1178
|
*/
|
|
1173
1179
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
1174
1180
|
/**
|
|
1175
1181
|
* Forbid use of exported name as identifier of default export.
|
|
1176
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1182
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
|
|
1177
1183
|
*/
|
|
1178
1184
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
1179
1185
|
/**
|
|
1180
1186
|
* Forbid use of exported name as property of default export.
|
|
1181
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1187
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
|
|
1182
1188
|
*/
|
|
1183
1189
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
1184
1190
|
/**
|
|
1185
1191
|
* Forbid named default exports.
|
|
1186
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1192
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
|
|
1187
1193
|
*/
|
|
1188
1194
|
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
1189
1195
|
/**
|
|
1190
1196
|
* Forbid named exports.
|
|
1191
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1197
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
|
|
1192
1198
|
*/
|
|
1193
1199
|
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
1194
1200
|
/**
|
|
1195
1201
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1196
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1202
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
|
|
1197
1203
|
*/
|
|
1198
1204
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
1199
1205
|
/**
|
|
1200
1206
|
* Forbid Node.js builtin modules.
|
|
1201
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1207
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
|
|
1202
1208
|
*/
|
|
1203
1209
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
1204
1210
|
/**
|
|
1205
1211
|
* Forbid importing packages through relative paths.
|
|
1206
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1212
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
|
|
1207
1213
|
*/
|
|
1208
1214
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
1209
1215
|
/**
|
|
1210
1216
|
* Forbid importing modules from parent directories.
|
|
1211
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1217
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
|
|
1212
1218
|
*/
|
|
1213
1219
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
1214
1220
|
/**
|
|
1215
1221
|
* Forbid importing a default export by a different name.
|
|
1216
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1222
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
|
|
1217
1223
|
*/
|
|
1218
1224
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
1219
1225
|
/**
|
|
1220
1226
|
* Enforce which files can be imported in a given folder.
|
|
1221
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1227
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
|
|
1222
1228
|
*/
|
|
1223
1229
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
1224
1230
|
/**
|
|
1225
1231
|
* Forbid a module from importing itself.
|
|
1226
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1232
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
|
|
1227
1233
|
*/
|
|
1228
1234
|
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
1229
1235
|
/**
|
|
1230
1236
|
* Forbid unassigned imports.
|
|
1231
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1237
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
|
|
1232
1238
|
*/
|
|
1233
1239
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
1234
1240
|
/**
|
|
1235
1241
|
* Ensure imports point to a file/module that can be resolved.
|
|
1236
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1242
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
|
|
1237
1243
|
*/
|
|
1238
1244
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
1239
1245
|
/**
|
|
1240
1246
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1241
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1247
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
|
|
1242
1248
|
*/
|
|
1243
1249
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
1244
1250
|
/**
|
|
1245
1251
|
* Forbid unnecessary path segments in import and require statements.
|
|
1246
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1252
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
|
|
1247
1253
|
*/
|
|
1248
1254
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
1249
1255
|
/**
|
|
1250
1256
|
* Forbid webpack loader syntax in imports.
|
|
1251
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1257
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
|
|
1252
1258
|
*/
|
|
1253
1259
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
1254
1260
|
/**
|
|
1255
1261
|
* Enforce a convention in module import order.
|
|
1256
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1262
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
|
|
1257
1263
|
*/
|
|
1258
1264
|
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
1259
1265
|
/**
|
|
1260
1266
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1261
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1267
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
|
|
1262
1268
|
*/
|
|
1263
1269
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
1264
1270
|
/**
|
|
1265
1271
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1266
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1272
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
|
|
1267
1273
|
*/
|
|
1268
1274
|
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
1269
1275
|
/**
|
|
@@ -5876,6 +5882,22 @@ interface Rules {
|
|
|
5876
5882
|
*/
|
|
5877
5883
|
'yoda'?: Linter.RuleEntry<Yoda>;
|
|
5878
5884
|
}
|
|
5885
|
+
type EslintCommunityEslintCommentsDisableEnablePair = [] | [
|
|
5886
|
+
{
|
|
5887
|
+
allowWholeFile?: boolean;
|
|
5888
|
+
}
|
|
5889
|
+
];
|
|
5890
|
+
type EslintCommunityEslintCommentsNoRestrictedDisable = string[];
|
|
5891
|
+
type EslintCommunityEslintCommentsNoUse = [] | [
|
|
5892
|
+
{
|
|
5893
|
+
allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
5894
|
+
}
|
|
5895
|
+
];
|
|
5896
|
+
type EslintCommunityEslintCommentsRequireDescription = [] | [
|
|
5897
|
+
{
|
|
5898
|
+
ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
5899
|
+
}
|
|
5900
|
+
];
|
|
5879
5901
|
type TypescriptEslintArrayType = [] | [
|
|
5880
5902
|
{
|
|
5881
5903
|
default?: ("array" | "generic" | "array-simple");
|
|
@@ -6755,6 +6777,18 @@ type TypescriptEslintRestrictTemplateExpressions = [] | [
|
|
|
6755
6777
|
allowNumber?: boolean;
|
|
6756
6778
|
allowRegExp?: boolean;
|
|
6757
6779
|
allowNever?: boolean;
|
|
6780
|
+
allow?: (string | {
|
|
6781
|
+
from: "file";
|
|
6782
|
+
name: (string | [string, ...(string)[]]);
|
|
6783
|
+
path?: string;
|
|
6784
|
+
} | {
|
|
6785
|
+
from: "lib";
|
|
6786
|
+
name: (string | [string, ...(string)[]]);
|
|
6787
|
+
} | {
|
|
6788
|
+
from: "package";
|
|
6789
|
+
name: (string | [string, ...(string)[]]);
|
|
6790
|
+
package: string;
|
|
6791
|
+
})[];
|
|
6758
6792
|
}
|
|
6759
6793
|
];
|
|
6760
6794
|
type TypescriptEslintReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
|
|
@@ -6823,7 +6857,7 @@ type AccessorPairs = [] | [
|
|
|
6823
6857
|
];
|
|
6824
6858
|
type AntfuConsistentChaining = [] | [
|
|
6825
6859
|
{
|
|
6826
|
-
|
|
6860
|
+
allowLeadingPropertyAccess?: boolean;
|
|
6827
6861
|
}
|
|
6828
6862
|
];
|
|
6829
6863
|
type AntfuConsistentListNewline = [] | [
|
|
@@ -7010,22 +7044,6 @@ type Eqeqeq = ([] | ["always"] | [
|
|
|
7010
7044
|
null?: ("always" | "never" | "ignore");
|
|
7011
7045
|
}
|
|
7012
7046
|
] | [] | [("smart" | "allow-null")]);
|
|
7013
|
-
type EslintCommentsDisableEnablePair = [] | [
|
|
7014
|
-
{
|
|
7015
|
-
allowWholeFile?: boolean;
|
|
7016
|
-
}
|
|
7017
|
-
];
|
|
7018
|
-
type EslintCommentsNoRestrictedDisable = string[];
|
|
7019
|
-
type EslintCommentsNoUse = [] | [
|
|
7020
|
-
{
|
|
7021
|
-
allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
7022
|
-
}
|
|
7023
|
-
];
|
|
7024
|
-
type EslintCommentsRequireDescription = [] | [
|
|
7025
|
-
{
|
|
7026
|
-
ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
7027
|
-
}
|
|
7028
|
-
];
|
|
7029
7047
|
type FuncCallSpacing = ([] | ["never"] | [] | ["always"] | [
|
|
7030
7048
|
"always",
|
|
7031
7049
|
{
|
|
@@ -7785,6 +7803,7 @@ type JsdocRequireParam = [] | [
|
|
|
7785
7803
|
enableRestElementFixer?: boolean;
|
|
7786
7804
|
enableRootFixer?: boolean;
|
|
7787
7805
|
exemptedBy?: string[];
|
|
7806
|
+
ignoreWhenAllParamsMissing?: boolean;
|
|
7788
7807
|
unnamedRootBase?: string[];
|
|
7789
7808
|
useDefaultObjectProperties?: boolean;
|
|
7790
7809
|
}
|
|
@@ -9575,6 +9594,8 @@ type PerfectionistSortArrayIncludes = [] | [
|
|
|
9575
9594
|
order?: ("asc" | "desc");
|
|
9576
9595
|
ignoreCase?: boolean;
|
|
9577
9596
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9597
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9598
|
+
partitionByNewLine?: boolean;
|
|
9578
9599
|
}
|
|
9579
9600
|
];
|
|
9580
9601
|
type PerfectionistSortAstroAttributes = [] | [
|
|
@@ -9626,6 +9647,7 @@ type PerfectionistSortEnums = [] | [
|
|
|
9626
9647
|
sortByValue?: boolean;
|
|
9627
9648
|
forceNumericSort?: boolean;
|
|
9628
9649
|
partitionByComment?: (string[] | boolean | string);
|
|
9650
|
+
partitionByNewLine?: boolean;
|
|
9629
9651
|
}
|
|
9630
9652
|
];
|
|
9631
9653
|
type PerfectionistSortExports = [] | [
|
|
@@ -9633,6 +9655,9 @@ type PerfectionistSortExports = [] | [
|
|
|
9633
9655
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
9634
9656
|
order?: ("asc" | "desc");
|
|
9635
9657
|
ignoreCase?: boolean;
|
|
9658
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9659
|
+
partitionByNewLine?: boolean;
|
|
9660
|
+
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9636
9661
|
}
|
|
9637
9662
|
];
|
|
9638
9663
|
type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
|
|
@@ -9668,6 +9693,7 @@ type PerfectionistSortInterfaces = [] | [
|
|
|
9668
9693
|
order?: ("asc" | "desc");
|
|
9669
9694
|
ignoreCase?: boolean;
|
|
9670
9695
|
ignorePattern?: string[];
|
|
9696
|
+
partitionByComment?: (boolean | string | string[]);
|
|
9671
9697
|
partitionByNewLine?: boolean;
|
|
9672
9698
|
groupKind?: ("mixed" | "optional-first" | "required-first");
|
|
9673
9699
|
groups?: (string | string[])[];
|
|
@@ -9682,6 +9708,8 @@ type PerfectionistSortIntersectionTypes = [] | [
|
|
|
9682
9708
|
order?: ("asc" | "desc");
|
|
9683
9709
|
ignoreCase?: boolean;
|
|
9684
9710
|
groups?: (string | string[])[];
|
|
9711
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9712
|
+
partitionByNewLine?: boolean;
|
|
9685
9713
|
}
|
|
9686
9714
|
];
|
|
9687
9715
|
type PerfectionistSortJsxProps = [] | [
|
|
@@ -9701,6 +9729,8 @@ type PerfectionistSortMaps = [] | [
|
|
|
9701
9729
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
9702
9730
|
order?: ("asc" | "desc");
|
|
9703
9731
|
ignoreCase?: boolean;
|
|
9732
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9733
|
+
partitionByNewLine?: boolean;
|
|
9704
9734
|
}
|
|
9705
9735
|
];
|
|
9706
9736
|
type PerfectionistSortNamedExports = [] | [
|
|
@@ -9709,6 +9739,8 @@ type PerfectionistSortNamedExports = [] | [
|
|
|
9709
9739
|
order?: ("asc" | "desc");
|
|
9710
9740
|
ignoreCase?: boolean;
|
|
9711
9741
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9742
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9743
|
+
partitionByNewLine?: boolean;
|
|
9712
9744
|
}
|
|
9713
9745
|
];
|
|
9714
9746
|
type PerfectionistSortNamedImports = [] | [
|
|
@@ -9718,6 +9750,8 @@ type PerfectionistSortNamedImports = [] | [
|
|
|
9718
9750
|
ignoreCase?: boolean;
|
|
9719
9751
|
ignoreAlias?: boolean;
|
|
9720
9752
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
9753
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9754
|
+
partitionByNewLine?: boolean;
|
|
9721
9755
|
}
|
|
9722
9756
|
];
|
|
9723
9757
|
type PerfectionistSortObjectTypes = [] | [
|
|
@@ -9725,6 +9759,7 @@ type PerfectionistSortObjectTypes = [] | [
|
|
|
9725
9759
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
9726
9760
|
order?: ("asc" | "desc");
|
|
9727
9761
|
ignoreCase?: boolean;
|
|
9762
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9728
9763
|
partitionByNewLine?: boolean;
|
|
9729
9764
|
groupKind?: ("mixed" | "required-first" | "optional-first");
|
|
9730
9765
|
groups?: (string | string[])[];
|
|
@@ -9755,6 +9790,8 @@ type PerfectionistSortSets = [] | [
|
|
|
9755
9790
|
order?: ("asc" | "desc");
|
|
9756
9791
|
ignoreCase?: boolean;
|
|
9757
9792
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9793
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9794
|
+
partitionByNewLine?: boolean;
|
|
9758
9795
|
}
|
|
9759
9796
|
];
|
|
9760
9797
|
type PerfectionistSortSvelteAttributes = [] | [
|
|
@@ -9781,6 +9818,8 @@ type PerfectionistSortUnionTypes = [] | [
|
|
|
9781
9818
|
order?: ("asc" | "desc");
|
|
9782
9819
|
ignoreCase?: boolean;
|
|
9783
9820
|
groups?: (string | string[])[];
|
|
9821
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9822
|
+
partitionByNewLine?: boolean;
|
|
9784
9823
|
}
|
|
9785
9824
|
];
|
|
9786
9825
|
type PerfectionistSortVariableDeclarations = [] | [
|
|
@@ -9788,6 +9827,8 @@ type PerfectionistSortVariableDeclarations = [] | [
|
|
|
9788
9827
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
9789
9828
|
order?: ("asc" | "desc");
|
|
9790
9829
|
ignoreCase?: boolean;
|
|
9830
|
+
partitionByComment?: (string[] | boolean | string);
|
|
9831
|
+
partitionByNewLine?: boolean;
|
|
9791
9832
|
}
|
|
9792
9833
|
];
|
|
9793
9834
|
type PerfectionistSortVueAttributes = [] | [
|
|
@@ -11996,7 +12037,7 @@ type InteropDefault<T> = T extends {
|
|
|
11996
12037
|
declare const configJs: any;
|
|
11997
12038
|
declare const pluginAntfu: typeof eslint_plugin_antfu.default;
|
|
11998
12039
|
declare const pluginSxzz: typeof eslint_plugin_sxzz.default;
|
|
11999
|
-
|
|
12040
|
+
|
|
12000
12041
|
declare const pluginMarkdown: any;
|
|
12001
12042
|
|
|
12002
12043
|
declare const pluginUnicorn: any;
|
|
@@ -12044,4 +12085,4 @@ declare function sxzz(config?: Config | Config[], { command: enableCommand, mark
|
|
|
12044
12085
|
command: boolean;
|
|
12045
12086
|
}>): Config[];
|
|
12046
12087
|
|
|
12047
|
-
export { type Config, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropDefault, type Rules, presetAll as all, presetBasic as basic, command, comments, configCommand, configJs, configPrettier, getVueVersion, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditor, javascript, jsdoc, jsonc, markdown, node, pluginAntfu,
|
|
12088
|
+
export { type Config, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type InteropDefault, type Rules, presetAll as all, presetBasic as basic, command, comments, configCommand, configJs, configPrettier, getVueVersion, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditor, javascript, jsdoc, jsonc, markdown, node, pluginAntfu, pluginIgnore, pluginJsdoc, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPrettier, pluginSxzz, pluginUnicorn, pluginUnocss, pluginUnusedImports, pluginVue, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, regexp, restrictedSyntaxJs, sortImports, sortPackageJson, sortTsconfig, specialCases, sxzz, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _configJs from "@eslint/js";
|
|
3
3
|
import * as _pluginAntfu from "eslint-plugin-antfu";
|
|
4
4
|
import * as _pluginSxzz from "eslint-plugin-sxzz";
|
|
5
|
-
import
|
|
5
|
+
import { default as default2 } from "@eslint-community/eslint-plugin-eslint-comments/configs";
|
|
6
6
|
import * as _pluginMarkdown from "@eslint/markdown";
|
|
7
7
|
import tseslint from "typescript-eslint";
|
|
8
8
|
import * as _pluginUnicorn from "eslint-plugin-unicorn";
|
|
@@ -29,7 +29,6 @@ function interopDefault(m) {
|
|
|
29
29
|
var configJs = /* @__PURE__ */ interopDefault(_configJs);
|
|
30
30
|
var pluginAntfu = /* @__PURE__ */ interopDefault(_pluginAntfu);
|
|
31
31
|
var pluginSxzz = /* @__PURE__ */ interopDefault(_pluginSxzz);
|
|
32
|
-
var pluginComments = /* @__PURE__ */ interopDefault(_pluginComments);
|
|
33
32
|
var pluginMarkdown = /* @__PURE__ */ interopDefault(_pluginMarkdown);
|
|
34
33
|
var pluginUnicorn = /* @__PURE__ */ interopDefault(_pluginUnicorn);
|
|
35
34
|
var pluginVue = /* @__PURE__ */ interopDefault(_pluginVue);
|
|
@@ -53,14 +52,14 @@ var command = [
|
|
|
53
52
|
|
|
54
53
|
// src/configs/comments.ts
|
|
55
54
|
var comments = [
|
|
55
|
+
{
|
|
56
|
+
...default2.recommended,
|
|
57
|
+
name: "sxzz/comments/recommended"
|
|
58
|
+
},
|
|
56
59
|
{
|
|
57
60
|
name: "sxzz/comments",
|
|
58
|
-
plugins: {
|
|
59
|
-
"eslint-comments": pluginComments
|
|
60
|
-
},
|
|
61
61
|
rules: {
|
|
62
|
-
|
|
63
|
-
"eslint-comments/disable-enable-pair": [
|
|
62
|
+
"@eslint-community/eslint-comments/disable-enable-pair": [
|
|
64
63
|
"error",
|
|
65
64
|
{ allowWholeFile: true }
|
|
66
65
|
]
|
|
@@ -1060,6 +1059,7 @@ export {
|
|
|
1060
1059
|
command,
|
|
1061
1060
|
comments,
|
|
1062
1061
|
configCommand,
|
|
1062
|
+
default2 as configComments,
|
|
1063
1063
|
configJs,
|
|
1064
1064
|
configPrettier,
|
|
1065
1065
|
getVueVersion,
|
|
@@ -1078,7 +1078,6 @@ export {
|
|
|
1078
1078
|
parserVue,
|
|
1079
1079
|
parserYml,
|
|
1080
1080
|
pluginAntfu,
|
|
1081
|
-
pluginComments,
|
|
1082
1081
|
pluginIgnore,
|
|
1083
1082
|
pluginImport,
|
|
1084
1083
|
pluginJsdoc,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "ESLint config for @sxzz.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,46 +30,46 @@
|
|
|
30
30
|
"eslint": "^9.5.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@eslint/
|
|
34
|
-
"@eslint/
|
|
35
|
-
"@
|
|
33
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
34
|
+
"@eslint/js": "^9.11.1",
|
|
35
|
+
"@eslint/markdown": "^6.1.1",
|
|
36
|
+
"@unocss/eslint-plugin": "^0.63.1",
|
|
36
37
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
37
38
|
"eslint-config-prettier": "^9.1.0",
|
|
38
|
-
"eslint-plugin-antfu": "^2.
|
|
39
|
-
"eslint-plugin-command": "^0.2.
|
|
40
|
-
"eslint-plugin-
|
|
41
|
-
"eslint-plugin-
|
|
42
|
-
"eslint-plugin-jsdoc": "^50.2.2",
|
|
39
|
+
"eslint-plugin-antfu": "^2.7.0",
|
|
40
|
+
"eslint-plugin-command": "^0.2.6",
|
|
41
|
+
"eslint-plugin-import-x": "^4.3.1",
|
|
42
|
+
"eslint-plugin-jsdoc": "^50.3.0",
|
|
43
43
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
44
|
-
"eslint-plugin-n": "^17.10.
|
|
45
|
-
"eslint-plugin-perfectionist": "^3.
|
|
44
|
+
"eslint-plugin-n": "^17.10.3",
|
|
45
|
+
"eslint-plugin-perfectionist": "^3.7.0",
|
|
46
46
|
"eslint-plugin-prettier": "^5.2.1",
|
|
47
47
|
"eslint-plugin-regexp": "^2.6.0",
|
|
48
48
|
"eslint-plugin-sxzz": "^0.1.0",
|
|
49
49
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
50
|
-
"eslint-plugin-unused-imports": "^4.1.
|
|
50
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
51
51
|
"eslint-plugin-vue": "^9.28.0",
|
|
52
52
|
"eslint-plugin-yml": "^1.14.0",
|
|
53
53
|
"globals": "^15.9.0",
|
|
54
54
|
"jsonc-eslint-parser": "^2.4.0",
|
|
55
55
|
"local-pkg": "^0.5.0",
|
|
56
56
|
"prettier": "^3.3.3",
|
|
57
|
-
"typescript-eslint": "^8.
|
|
57
|
+
"typescript-eslint": "^8.7.0",
|
|
58
58
|
"vue-eslint-parser": "^9.4.3",
|
|
59
59
|
"yaml-eslint-parser": "^1.2.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@eslint/config-inspector": "^0.5.4",
|
|
63
63
|
"@sxzz/prettier-config": "^2.0.2",
|
|
64
|
-
"@types/node": "^22.
|
|
65
|
-
"bumpp": "^9.
|
|
66
|
-
"eslint": "^9.
|
|
64
|
+
"@types/node": "^22.7.4",
|
|
65
|
+
"bumpp": "^9.6.1",
|
|
66
|
+
"eslint": "^9.11.1",
|
|
67
67
|
"eslint-typegen": "^0.3.2",
|
|
68
|
-
"importx": "^0.
|
|
68
|
+
"importx": "^0.5.0",
|
|
69
69
|
"picocolors": "^1.1.0",
|
|
70
|
-
"tsup": "^8.
|
|
71
|
-
"tsx": "^4.19.
|
|
72
|
-
"typescript": "^5.
|
|
70
|
+
"tsup": "^8.3.0",
|
|
71
|
+
"tsx": "^4.19.1",
|
|
72
|
+
"typescript": "^5.6.2"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": "^18.18.0 || >=20.0.0"
|