@kazupon/eslint-config 0.17.0 → 0.18.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.
@@ -2,235 +2,229 @@ import type { Linter } from 'eslint';
2
2
  export interface ImportsRules {
3
3
  /**
4
4
  * Enforce or ban the use of inline type-only markers for named imports.
5
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/consistent-type-specifier-style.md
5
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/consistent-type-specifier-style.md
6
6
  */
7
- 'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
7
+ 'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
8
8
  /**
9
9
  * Ensure a default export is present, given a default import.
10
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/default.md
10
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/default.md
11
11
  */
12
- 'import-x/default'?: Linter.RuleEntry<[]>;
12
+ 'import/default'?: Linter.RuleEntry<[]>;
13
13
  /**
14
14
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
15
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/dynamic-import-chunkname.md
15
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/dynamic-import-chunkname.md
16
16
  */
17
- 'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
17
+ 'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
18
18
  /**
19
19
  * Forbid any invalid exports, i.e. re-export of the same name.
20
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/export.md
20
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/export.md
21
21
  */
22
- 'import-x/export'?: Linter.RuleEntry<[]>;
22
+ 'import/export'?: Linter.RuleEntry<[]>;
23
23
  /**
24
24
  * Ensure all exports appear after other statements.
25
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/exports-last.md
25
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/exports-last.md
26
26
  */
27
- 'import-x/exports-last'?: Linter.RuleEntry<[]>;
27
+ 'import/exports-last'?: Linter.RuleEntry<[]>;
28
28
  /**
29
29
  * Ensure consistent use of file extension within the import path.
30
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/extensions.md
30
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/extensions.md
31
31
  */
32
- 'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
32
+ 'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
33
33
  /**
34
34
  * Ensure all imports appear before other statements.
35
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/first.md
35
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/first.md
36
36
  */
37
- 'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
37
+ 'import/first'?: Linter.RuleEntry<ImportFirst>;
38
38
  /**
39
- * Prefer named exports to be grouped together in a single export declaration.
40
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/group-exports.md
39
+ * Prefer named exports to be grouped together in a single export declaration
40
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/group-exports.md
41
41
  */
42
- 'import-x/group-exports'?: Linter.RuleEntry<[]>;
42
+ 'import/group-exports'?: Linter.RuleEntry<[]>;
43
43
  /**
44
- * Replaced by `import-x/first`.
45
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/imports-first.md
44
+ * Replaced by `import/first`.
45
+ * @see https://github.com/import-js/eslint-plugin-import/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md
46
46
  * @deprecated
47
47
  */
48
- 'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
48
+ 'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
49
49
  /**
50
50
  * Enforce the maximum number of dependencies a module can have.
51
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/max-dependencies.md
51
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/max-dependencies.md
52
52
  */
53
- 'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
53
+ 'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
54
54
  /**
55
55
  * Ensure named imports correspond to a named export in the remote file.
56
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/named.md
56
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/named.md
57
57
  */
58
- 'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
58
+ 'import/named'?: Linter.RuleEntry<ImportNamed>;
59
59
  /**
60
60
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
61
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/namespace.md
61
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/namespace.md
62
62
  */
63
- 'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
63
+ 'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
64
64
  /**
65
65
  * Enforce a newline after import statements.
66
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/newline-after-import.md
66
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/newline-after-import.md
67
67
  */
68
- 'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
68
+ 'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
69
69
  /**
70
70
  * Forbid import of modules using absolute paths.
71
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-absolute-path.md
71
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-absolute-path.md
72
72
  */
73
- 'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
73
+ 'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
74
74
  /**
75
75
  * Forbid AMD `require` and `define` calls.
76
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-amd.md
76
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-amd.md
77
77
  */
78
- 'import-x/no-amd'?: Linter.RuleEntry<[]>;
78
+ 'import/no-amd'?: Linter.RuleEntry<[]>;
79
79
  /**
80
80
  * Forbid anonymous values as default exports.
81
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-anonymous-default-export.md
81
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-anonymous-default-export.md
82
82
  */
83
- 'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
83
+ 'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
84
84
  /**
85
85
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
86
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-commonjs.md
86
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-commonjs.md
87
87
  */
88
- 'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
88
+ 'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
89
89
  /**
90
90
  * Forbid a module from importing a module with a dependency path back to itself.
91
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-cycle.md
91
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-cycle.md
92
92
  */
93
- 'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
93
+ 'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
94
94
  /**
95
95
  * Forbid default exports.
96
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-default-export.md
96
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-default-export.md
97
97
  */
98
- 'import-x/no-default-export'?: Linter.RuleEntry<[]>;
98
+ 'import/no-default-export'?: Linter.RuleEntry<[]>;
99
99
  /**
100
100
  * Forbid imported names marked with `@deprecated` documentation tag.
101
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-deprecated.md
101
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-deprecated.md
102
102
  */
103
- 'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
103
+ 'import/no-deprecated'?: Linter.RuleEntry<[]>;
104
104
  /**
105
105
  * Forbid repeated import of the same module in multiple places.
106
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-duplicates.md
106
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-duplicates.md
107
107
  */
108
- 'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
108
+ 'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
109
109
  /**
110
110
  * Forbid `require()` calls with expressions.
111
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-dynamic-require.md
111
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-dynamic-require.md
112
112
  */
113
- 'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
113
+ 'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
114
114
  /**
115
115
  * Forbid empty named import blocks.
116
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-empty-named-blocks.md
116
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-empty-named-blocks.md
117
117
  */
118
- 'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
118
+ 'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
119
119
  /**
120
120
  * Forbid the use of extraneous packages.
121
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-extraneous-dependencies.md
121
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-extraneous-dependencies.md
122
122
  */
123
- 'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
123
+ 'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
124
124
  /**
125
125
  * Forbid import statements with CommonJS module.exports.
126
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-import-module-exports.md
127
126
  */
128
- 'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
127
+ 'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
129
128
  /**
130
129
  * Forbid importing the submodules of other modules.
131
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-internal-modules.md
130
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-internal-modules.md
132
131
  */
133
- 'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
132
+ 'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
134
133
  /**
135
134
  * Forbid the use of mutable exports with `var` or `let`.
136
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-mutable-exports.md
135
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-mutable-exports.md
137
136
  */
138
- 'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
137
+ 'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
139
138
  /**
140
139
  * Forbid use of exported name as identifier of default export.
141
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default.md
140
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-as-default.md
142
141
  */
143
- 'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
142
+ 'import/no-named-as-default'?: Linter.RuleEntry<[]>;
144
143
  /**
145
144
  * Forbid use of exported name as property of default export.
146
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default-member.md
145
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-as-default-member.md
147
146
  */
148
- 'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
147
+ 'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
149
148
  /**
150
149
  * Forbid named default exports.
151
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-default.md
150
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-default.md
152
151
  */
153
- 'import-x/no-named-default'?: Linter.RuleEntry<[]>;
152
+ 'import/no-named-default'?: Linter.RuleEntry<[]>;
154
153
  /**
155
154
  * Forbid named exports.
156
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-export.md
155
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-export.md
157
156
  */
158
- 'import-x/no-named-export'?: Linter.RuleEntry<[]>;
157
+ 'import/no-named-export'?: Linter.RuleEntry<[]>;
159
158
  /**
160
159
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
161
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-namespace.md
160
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-namespace.md
162
161
  */
163
- 'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
162
+ 'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
164
163
  /**
165
164
  * Forbid Node.js builtin modules.
166
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-nodejs-modules.md
165
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-nodejs-modules.md
167
166
  */
168
- 'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
167
+ 'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
169
168
  /**
170
169
  * Forbid importing packages through relative paths.
171
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-packages.md
170
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-relative-packages.md
172
171
  */
173
- 'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
172
+ 'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
174
173
  /**
175
174
  * Forbid importing modules from parent directories.
176
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-parent-imports.md
175
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-relative-parent-imports.md
177
176
  */
178
- 'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
179
- /**
180
- * Forbid importing a default export by a different name.
181
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-rename-default.md
182
- */
183
- 'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
177
+ 'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
184
178
  /**
185
179
  * Enforce which files can be imported in a given folder.
186
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-restricted-paths.md
180
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-restricted-paths.md
187
181
  */
188
- 'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
182
+ 'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
189
183
  /**
190
184
  * Forbid a module from importing itself.
191
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-self-import.md
185
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-self-import.md
192
186
  */
193
- 'import-x/no-self-import'?: Linter.RuleEntry<[]>;
187
+ 'import/no-self-import'?: Linter.RuleEntry<[]>;
194
188
  /**
195
- * Forbid unassigned imports.
196
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unassigned-import.md
189
+ * Forbid unassigned imports
190
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unassigned-import.md
197
191
  */
198
- 'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
192
+ 'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
199
193
  /**
200
194
  * Ensure imports point to a file/module that can be resolved.
201
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unresolved.md
195
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unresolved.md
202
196
  */
203
- 'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
197
+ 'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
204
198
  /**
205
199
  * Forbid modules without exports, or exports without matching import in another module.
206
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unused-modules.md
200
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unused-modules.md
207
201
  */
208
- 'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
202
+ 'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
209
203
  /**
210
204
  * Forbid unnecessary path segments in import and require statements.
211
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-useless-path-segments.md
205
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-useless-path-segments.md
212
206
  */
213
- 'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
207
+ 'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
214
208
  /**
215
209
  * Forbid webpack loader syntax in imports.
216
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-webpack-loader-syntax.md
210
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-webpack-loader-syntax.md
217
211
  */
218
- 'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
212
+ 'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
219
213
  /**
220
214
  * Enforce a convention in module import order.
221
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/order.md
215
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/order.md
222
216
  */
223
- 'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
217
+ 'import/order'?: Linter.RuleEntry<ImportOrder>;
224
218
  /**
225
219
  * Prefer a default export if module exports a single name or multiple names.
226
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/prefer-default-export.md
220
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/prefer-default-export.md
227
221
  */
228
- 'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
222
+ 'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
229
223
  /**
230
224
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
231
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/unambiguous.md
225
+ * @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/unambiguous.md
232
226
  */
233
- 'import-x/unambiguous'?: Linter.RuleEntry<[]>;
227
+ 'import/unambiguous'?: Linter.RuleEntry<[]>;
234
228
  /**
235
229
  * Disallow unused variables
236
230
  * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
@@ -242,8 +236,8 @@ export interface ImportsRules {
242
236
  */
243
237
  'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
244
238
  }
245
- type ImportXConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
246
- type ImportXDynamicImportChunkname = [] | [
239
+ type ImportConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
240
+ type ImportDynamicImportChunkname = [] | [
247
241
  {
248
242
  importFunctions?: string[];
249
243
  allowEmpty?: boolean;
@@ -251,12 +245,13 @@ type ImportXDynamicImportChunkname = [] | [
251
245
  [k: string]: unknown | undefined;
252
246
  }
253
247
  ];
254
- type ImportXExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [
248
+ type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [
255
249
  ("always" | "ignorePackages" | "never"),
256
250
  {
257
251
  pattern?: {
258
252
  [k: string]: ("always" | "ignorePackages" | "never");
259
253
  };
254
+ checkTypeImports?: boolean;
260
255
  ignorePackages?: boolean;
261
256
  [k: string]: unknown | undefined;
262
257
  }
@@ -265,6 +260,7 @@ type ImportXExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] |
265
260
  pattern?: {
266
261
  [k: string]: ("always" | "ignorePackages" | "never");
267
262
  };
263
+ checkTypeImports?: boolean;
268
264
  ignorePackages?: boolean;
269
265
  [k: string]: unknown | undefined;
270
266
  }
@@ -278,32 +274,32 @@ type ImportXExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] |
278
274
  [k: string]: ("always" | "ignorePackages" | "never");
279
275
  }
280
276
  ]);
281
- type ImportXFirst = [] | [("absolute-first" | "disable-absolute-first")];
282
- type ImportXImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
283
- type ImportXMaxDependencies = [] | [
277
+ type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")];
278
+ type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
279
+ type ImportMaxDependencies = [] | [
284
280
  {
285
281
  max?: number;
286
282
  ignoreTypeImports?: boolean;
287
283
  }
288
284
  ];
289
- type ImportXNamed = [] | [
285
+ type ImportNamed = [] | [
290
286
  {
291
287
  commonjs?: boolean;
292
288
  }
293
289
  ];
294
- type ImportXNamespace = [] | [
290
+ type ImportNamespace = [] | [
295
291
  {
296
292
  allowComputed?: boolean;
297
293
  }
298
294
  ];
299
- type ImportXNewlineAfterImport = [] | [
295
+ type ImportNewlineAfterImport = [] | [
300
296
  {
301
297
  count?: number;
302
298
  exactCount?: boolean;
303
299
  considerComments?: boolean;
304
300
  }
305
301
  ];
306
- type ImportXNoAbsolutePath = [] | [
302
+ type ImportNoAbsolutePath = [] | [
307
303
  {
308
304
  commonjs?: boolean;
309
305
  amd?: boolean;
@@ -311,7 +307,7 @@ type ImportXNoAbsolutePath = [] | [
311
307
  ignore?: [string, ...(string)[]];
312
308
  }
313
309
  ];
314
- type ImportXNoAnonymousDefaultExport = [] | [
310
+ type ImportNoAnonymousDefaultExport = [] | [
315
311
  {
316
312
  allowArray?: boolean;
317
313
  allowArrowFunction?: boolean;
@@ -323,14 +319,14 @@ type ImportXNoAnonymousDefaultExport = [] | [
323
319
  allowNew?: boolean;
324
320
  }
325
321
  ];
326
- type ImportXNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [
322
+ type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [
327
323
  {
328
324
  allowPrimitiveModules?: boolean;
329
325
  allowRequire?: boolean;
330
326
  allowConditionalRequire?: boolean;
331
327
  }
332
328
  ]);
333
- type ImportXNoCycle = [] | [
329
+ type ImportNoCycle = [] | [
334
330
  {
335
331
  commonjs?: boolean;
336
332
  amd?: boolean;
@@ -339,20 +335,21 @@ type ImportXNoCycle = [] | [
339
335
  maxDepth?: (number | "∞");
340
336
  ignoreExternal?: boolean;
341
337
  allowUnsafeDynamicCyclicDependency?: boolean;
338
+ disableScc?: boolean;
342
339
  }
343
340
  ];
344
- type ImportXNoDuplicates = [] | [
341
+ type ImportNoDuplicates = [] | [
345
342
  {
346
343
  considerQueryString?: boolean;
347
344
  "prefer-inline"?: boolean;
348
345
  }
349
346
  ];
350
- type ImportXNoDynamicRequire = [] | [
347
+ type ImportNoDynamicRequire = [] | [
351
348
  {
352
349
  esmodule?: boolean;
353
350
  }
354
351
  ];
355
- type ImportXNoExtraneousDependencies = [] | [
352
+ type ImportNoExtraneousDependencies = [] | [
356
353
  {
357
354
  devDependencies?: (boolean | unknown[]);
358
355
  optionalDependencies?: (boolean | unknown[]);
@@ -363,30 +360,30 @@ type ImportXNoExtraneousDependencies = [] | [
363
360
  includeTypes?: boolean;
364
361
  }
365
362
  ];
366
- type ImportXNoImportModuleExports = [] | [
363
+ type ImportNoImportModuleExports = [] | [
367
364
  {
368
365
  exceptions?: unknown[];
369
366
  }
370
367
  ];
371
- type ImportXNoInternalModules = [] | [
368
+ type ImportNoInternalModules = [] | [
372
369
  ({
373
370
  allow?: string[];
374
371
  } | {
375
372
  forbid?: string[];
376
373
  })
377
374
  ];
378
- type ImportXNoNamespace = [] | [
375
+ type ImportNoNamespace = [] | [
379
376
  {
380
377
  ignore?: string[];
381
378
  [k: string]: unknown | undefined;
382
379
  }
383
380
  ];
384
- type ImportXNoNodejsModules = [] | [
381
+ type ImportNoNodejsModules = [] | [
385
382
  {
386
383
  allow?: string[];
387
384
  }
388
385
  ];
389
- type ImportXNoRelativePackages = [] | [
386
+ type ImportNoRelativePackages = [] | [
390
387
  {
391
388
  commonjs?: boolean;
392
389
  amd?: boolean;
@@ -394,7 +391,7 @@ type ImportXNoRelativePackages = [] | [
394
391
  ignore?: [string, ...(string)[]];
395
392
  }
396
393
  ];
397
- type ImportXNoRelativeParentImports = [] | [
394
+ type ImportNoRelativeParentImports = [] | [
398
395
  {
399
396
  commonjs?: boolean;
400
397
  amd?: boolean;
@@ -402,24 +399,18 @@ type ImportXNoRelativeParentImports = [] | [
402
399
  ignore?: [string, ...(string)[]];
403
400
  }
404
401
  ];
405
- type ImportXNoRenameDefault = [] | [
406
- {
407
- commonjs?: boolean;
408
- preventRenamingBindings?: boolean;
409
- }
410
- ];
411
- type ImportXNoRestrictedPaths = [] | [
402
+ type ImportNoRestrictedPaths = [] | [
412
403
  {
413
404
  zones?: [
414
405
  {
415
- target?: (string | [string, ...(string)[]]);
416
- from?: (string | [string, ...(string)[]]);
406
+ target?: (string | string[]);
407
+ from?: (string | string[]);
417
408
  except?: string[];
418
409
  message?: string;
419
410
  },
420
411
  ...({
421
- target?: (string | [string, ...(string)[]]);
422
- from?: (string | [string, ...(string)[]]);
412
+ target?: (string | string[]);
413
+ from?: (string | string[]);
423
414
  except?: string[];
424
415
  message?: string;
425
416
  })[]
@@ -427,7 +418,7 @@ type ImportXNoRestrictedPaths = [] | [
427
418
  basePath?: string;
428
419
  }
429
420
  ];
430
- type ImportXNoUnassignedImport = [] | [
421
+ type ImportNoUnassignedImport = [] | [
431
422
  {
432
423
  devDependencies?: (boolean | unknown[]);
433
424
  optionalDependencies?: (boolean | unknown[]);
@@ -435,7 +426,7 @@ type ImportXNoUnassignedImport = [] | [
435
426
  allow?: string[];
436
427
  }
437
428
  ];
438
- type ImportXNoUnresolved = [] | [
429
+ type ImportNoUnresolved = [] | [
439
430
  {
440
431
  commonjs?: boolean;
441
432
  amd?: boolean;
@@ -445,23 +436,25 @@ type ImportXNoUnresolved = [] | [
445
436
  caseSensitiveStrict?: boolean;
446
437
  }
447
438
  ];
448
- type ImportXNoUnusedModules = [] | [
439
+ type ImportNoUnusedModules = [] | [
449
440
  ({
450
441
  unusedExports: true;
451
- src?: [unknown, ...(unknown)[]];
442
+ src?: {
443
+ [k: string]: unknown | undefined;
444
+ };
452
445
  [k: string]: unknown | undefined;
453
446
  } | {
454
447
  missingExports: true;
455
448
  [k: string]: unknown | undefined;
456
449
  })
457
450
  ];
458
- type ImportXNoUselessPathSegments = [] | [
451
+ type ImportNoUselessPathSegments = [] | [
459
452
  {
460
453
  commonjs?: boolean;
461
454
  noUselessIndex?: boolean;
462
455
  }
463
456
  ];
464
- type ImportXOrder = [] | [
457
+ type ImportOrder = [] | [
465
458
  {
466
459
  groups?: unknown[];
467
460
  pathGroupsExcludedImportTypes?: unknown[];
@@ -475,6 +468,14 @@ type ImportXOrder = [] | [
475
468
  position?: ("after" | "before");
476
469
  }[];
477
470
  "newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
471
+ named?: (boolean | {
472
+ enabled?: boolean;
473
+ import?: boolean;
474
+ export?: boolean;
475
+ require?: boolean;
476
+ cjsExports?: boolean;
477
+ types?: ("mixed" | "types-first" | "types-last");
478
+ });
478
479
  alphabetize?: {
479
480
  caseInsensitive?: boolean;
480
481
  order?: ("ignore" | "asc" | "desc");
@@ -483,7 +484,7 @@ type ImportXOrder = [] | [
483
484
  warnOnUnassignedImports?: boolean;
484
485
  }
485
486
  ];
486
- type ImportXPreferDefaultExport = [] | [
487
+ type ImportPreferDefaultExport = [] | [
487
488
  {
488
489
  target?: ("single" | "any");
489
490
  }
@@ -1391,7 +1391,7 @@ export interface JavascriptRules {
1391
1391
  * Enforce the use of `u` or `v` flag on RegExp
1392
1392
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
1393
1393
  */
1394
- 'require-unicode-regexp'?: Linter.RuleEntry<[]>;
1394
+ 'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>;
1395
1395
  /**
1396
1396
  * Require generator functions to contain `yield`
1397
1397
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -3022,6 +3022,11 @@ type RequireAtomicUpdates = [] | [
3022
3022
  allowProperties?: boolean;
3023
3023
  }
3024
3024
  ];
3025
+ type RequireUnicodeRegexp = [] | [
3026
+ {
3027
+ requireFlag?: ("u" | "v");
3028
+ }
3029
+ ];
3025
3030
  type RestSpreadSpacing = [] | [("always" | "never")];
3026
3031
  type Semi = ([] | ["never"] | [
3027
3032
  "never",
@@ -1391,7 +1391,7 @@ export interface JavascriptRules {
1391
1391
  * Enforce the use of `u` or `v` flag on RegExp
1392
1392
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
1393
1393
  */
1394
- 'require-unicode-regexp'?: Linter.RuleEntry<[]>;
1394
+ 'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>;
1395
1395
  /**
1396
1396
  * Require generator functions to contain `yield`
1397
1397
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -3022,6 +3022,11 @@ type RequireAtomicUpdates = [] | [
3022
3022
  allowProperties?: boolean;
3023
3023
  }
3024
3024
  ];
3025
+ type RequireUnicodeRegexp = [] | [
3026
+ {
3027
+ requireFlag?: ("u" | "v");
3028
+ }
3029
+ ];
3025
3030
  type RestSpreadSpacing = [] | [("always" | "never")];
3026
3031
  type Semi = ([] | ["never"] | [
3027
3032
  "never",