@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.
- package/README.md +8 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/configs/index.d.cts +1 -0
- package/dist/configs/index.d.ts +1 -0
- package/dist/configs/markdown.d.cts +28 -0
- package/dist/configs/markdown.d.ts +28 -0
- package/dist/globs.d.cts +1 -0
- package/dist/globs.d.ts +1 -0
- package/dist/index.cjs +185 -56
- package/dist/index.js +174 -57
- package/dist/types/gens/eslint.d.cts +2 -1
- package/dist/types/gens/eslint.d.ts +2 -1
- package/dist/types/gens/imports.d.cts +139 -138
- package/dist/types/gens/imports.d.ts +139 -138
- package/dist/types/gens/javascript.d.cts +6 -1
- package/dist/types/gens/javascript.d.ts +6 -1
- package/dist/types/gens/markdown.d.cts +42 -0
- package/dist/types/gens/markdown.d.ts +42 -0
- package/dist/types/gens/unicorn.d.cts +153 -138
- package/dist/types/gens/unicorn.d.ts +153 -138
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +15 -10
|
@@ -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/
|
|
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
|
|
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/
|
|
10
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/default.md
|
|
11
11
|
*/
|
|
12
|
-
'import
|
|
12
|
+
'import/default'?: Linter.RuleEntry<[]>;
|
|
13
13
|
/**
|
|
14
14
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15
|
-
* @see https://github.com/
|
|
15
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/dynamic-import-chunkname.md
|
|
16
16
|
*/
|
|
17
|
-
'import
|
|
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/
|
|
20
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/export.md
|
|
21
21
|
*/
|
|
22
|
-
'import
|
|
22
|
+
'import/export'?: Linter.RuleEntry<[]>;
|
|
23
23
|
/**
|
|
24
24
|
* Ensure all exports appear after other statements.
|
|
25
|
-
* @see https://github.com/
|
|
25
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/exports-last.md
|
|
26
26
|
*/
|
|
27
|
-
'import
|
|
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/
|
|
30
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/extensions.md
|
|
31
31
|
*/
|
|
32
|
-
'import
|
|
32
|
+
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
33
33
|
/**
|
|
34
34
|
* Ensure all imports appear before other statements.
|
|
35
|
-
* @see https://github.com/
|
|
35
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/first.md
|
|
36
36
|
*/
|
|
37
|
-
'import
|
|
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/
|
|
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
|
|
42
|
+
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
43
43
|
/**
|
|
44
|
-
* Replaced by `import
|
|
45
|
-
* @see https://github.com/
|
|
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
|
|
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/
|
|
51
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/max-dependencies.md
|
|
52
52
|
*/
|
|
53
|
-
'import
|
|
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/
|
|
56
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/named.md
|
|
57
57
|
*/
|
|
58
|
-
'import
|
|
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/
|
|
61
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/namespace.md
|
|
62
62
|
*/
|
|
63
|
-
'import
|
|
63
|
+
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
64
64
|
/**
|
|
65
65
|
* Enforce a newline after import statements.
|
|
66
|
-
* @see https://github.com/
|
|
66
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/newline-after-import.md
|
|
67
67
|
*/
|
|
68
|
-
'import
|
|
68
|
+
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
69
69
|
/**
|
|
70
70
|
* Forbid import of modules using absolute paths.
|
|
71
|
-
* @see https://github.com/
|
|
71
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-absolute-path.md
|
|
72
72
|
*/
|
|
73
|
-
'import
|
|
73
|
+
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
74
74
|
/**
|
|
75
75
|
* Forbid AMD `require` and `define` calls.
|
|
76
|
-
* @see https://github.com/
|
|
76
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-amd.md
|
|
77
77
|
*/
|
|
78
|
-
'import
|
|
78
|
+
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
79
79
|
/**
|
|
80
80
|
* Forbid anonymous values as default exports.
|
|
81
|
-
* @see https://github.com/
|
|
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
|
|
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/
|
|
86
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-commonjs.md
|
|
87
87
|
*/
|
|
88
|
-
'import
|
|
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/
|
|
91
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-cycle.md
|
|
92
92
|
*/
|
|
93
|
-
'import
|
|
93
|
+
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
94
94
|
/**
|
|
95
95
|
* Forbid default exports.
|
|
96
|
-
* @see https://github.com/
|
|
96
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-default-export.md
|
|
97
97
|
*/
|
|
98
|
-
'import
|
|
98
|
+
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
99
99
|
/**
|
|
100
100
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
101
|
-
* @see https://github.com/
|
|
101
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-deprecated.md
|
|
102
102
|
*/
|
|
103
|
-
'import
|
|
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/
|
|
106
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-duplicates.md
|
|
107
107
|
*/
|
|
108
|
-
'import
|
|
108
|
+
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
109
109
|
/**
|
|
110
110
|
* Forbid `require()` calls with expressions.
|
|
111
|
-
* @see https://github.com/
|
|
111
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-dynamic-require.md
|
|
112
112
|
*/
|
|
113
|
-
'import
|
|
113
|
+
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
114
114
|
/**
|
|
115
115
|
* Forbid empty named import blocks.
|
|
116
|
-
* @see https://github.com/
|
|
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
|
|
118
|
+
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
119
119
|
/**
|
|
120
120
|
* Forbid the use of extraneous packages.
|
|
121
|
-
* @see https://github.com/
|
|
121
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-extraneous-dependencies.md
|
|
122
122
|
*/
|
|
123
|
-
'import
|
|
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
|
|
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/
|
|
130
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-internal-modules.md
|
|
132
131
|
*/
|
|
133
|
-
'import
|
|
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/
|
|
135
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-mutable-exports.md
|
|
137
136
|
*/
|
|
138
|
-
'import
|
|
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/
|
|
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
|
|
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/
|
|
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
|
|
147
|
+
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
149
148
|
/**
|
|
150
149
|
* Forbid named default exports.
|
|
151
|
-
* @see https://github.com/
|
|
150
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-default.md
|
|
152
151
|
*/
|
|
153
|
-
'import
|
|
152
|
+
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
154
153
|
/**
|
|
155
154
|
* Forbid named exports.
|
|
156
|
-
* @see https://github.com/
|
|
155
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-export.md
|
|
157
156
|
*/
|
|
158
|
-
'import
|
|
157
|
+
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
159
158
|
/**
|
|
160
159
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
161
|
-
* @see https://github.com/
|
|
160
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-namespace.md
|
|
162
161
|
*/
|
|
163
|
-
'import
|
|
162
|
+
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
164
163
|
/**
|
|
165
164
|
* Forbid Node.js builtin modules.
|
|
166
|
-
* @see https://github.com/
|
|
165
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-nodejs-modules.md
|
|
167
166
|
*/
|
|
168
|
-
'import
|
|
167
|
+
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
169
168
|
/**
|
|
170
169
|
* Forbid importing packages through relative paths.
|
|
171
|
-
* @see https://github.com/
|
|
170
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-relative-packages.md
|
|
172
171
|
*/
|
|
173
|
-
'import
|
|
172
|
+
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
174
173
|
/**
|
|
175
174
|
* Forbid importing modules from parent directories.
|
|
176
|
-
* @see https://github.com/
|
|
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
|
|
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/
|
|
180
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-restricted-paths.md
|
|
187
181
|
*/
|
|
188
|
-
'import
|
|
182
|
+
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
189
183
|
/**
|
|
190
184
|
* Forbid a module from importing itself.
|
|
191
|
-
* @see https://github.com/
|
|
185
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-self-import.md
|
|
192
186
|
*/
|
|
193
|
-
'import
|
|
187
|
+
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
194
188
|
/**
|
|
195
|
-
* Forbid unassigned imports
|
|
196
|
-
* @see https://github.com/
|
|
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
|
|
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/
|
|
195
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unresolved.md
|
|
202
196
|
*/
|
|
203
|
-
'import
|
|
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/
|
|
200
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unused-modules.md
|
|
207
201
|
*/
|
|
208
|
-
'import
|
|
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/
|
|
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
|
|
207
|
+
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
214
208
|
/**
|
|
215
209
|
* Forbid webpack loader syntax in imports.
|
|
216
|
-
* @see https://github.com/
|
|
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
|
|
212
|
+
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
219
213
|
/**
|
|
220
214
|
* Enforce a convention in module import order.
|
|
221
|
-
* @see https://github.com/
|
|
215
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/order.md
|
|
222
216
|
*/
|
|
223
|
-
'import
|
|
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/
|
|
220
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/prefer-default-export.md
|
|
227
221
|
*/
|
|
228
|
-
'import
|
|
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/
|
|
225
|
+
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/unambiguous.md
|
|
232
226
|
*/
|
|
233
|
-
'import
|
|
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
|
|
246
|
-
type
|
|
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
|
|
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
|
|
282
|
-
type
|
|
283
|
-
type
|
|
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
|
|
285
|
+
type ImportNamed = [] | [
|
|
290
286
|
{
|
|
291
287
|
commonjs?: boolean;
|
|
292
288
|
}
|
|
293
289
|
];
|
|
294
|
-
type
|
|
290
|
+
type ImportNamespace = [] | [
|
|
295
291
|
{
|
|
296
292
|
allowComputed?: boolean;
|
|
297
293
|
}
|
|
298
294
|
];
|
|
299
|
-
type
|
|
295
|
+
type ImportNewlineAfterImport = [] | [
|
|
300
296
|
{
|
|
301
297
|
count?: number;
|
|
302
298
|
exactCount?: boolean;
|
|
303
299
|
considerComments?: boolean;
|
|
304
300
|
}
|
|
305
301
|
];
|
|
306
|
-
type
|
|
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
|
|
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
|
|
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
|
|
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
|
|
341
|
+
type ImportNoDuplicates = [] | [
|
|
345
342
|
{
|
|
346
343
|
considerQueryString?: boolean;
|
|
347
344
|
"prefer-inline"?: boolean;
|
|
348
345
|
}
|
|
349
346
|
];
|
|
350
|
-
type
|
|
347
|
+
type ImportNoDynamicRequire = [] | [
|
|
351
348
|
{
|
|
352
349
|
esmodule?: boolean;
|
|
353
350
|
}
|
|
354
351
|
];
|
|
355
|
-
type
|
|
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
|
|
363
|
+
type ImportNoImportModuleExports = [] | [
|
|
367
364
|
{
|
|
368
365
|
exceptions?: unknown[];
|
|
369
366
|
}
|
|
370
367
|
];
|
|
371
|
-
type
|
|
368
|
+
type ImportNoInternalModules = [] | [
|
|
372
369
|
({
|
|
373
370
|
allow?: string[];
|
|
374
371
|
} | {
|
|
375
372
|
forbid?: string[];
|
|
376
373
|
})
|
|
377
374
|
];
|
|
378
|
-
type
|
|
375
|
+
type ImportNoNamespace = [] | [
|
|
379
376
|
{
|
|
380
377
|
ignore?: string[];
|
|
381
378
|
[k: string]: unknown | undefined;
|
|
382
379
|
}
|
|
383
380
|
];
|
|
384
|
-
type
|
|
381
|
+
type ImportNoNodejsModules = [] | [
|
|
385
382
|
{
|
|
386
383
|
allow?: string[];
|
|
387
384
|
}
|
|
388
385
|
];
|
|
389
|
-
type
|
|
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
|
|
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
|
|
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 |
|
|
416
|
-
from?: (string |
|
|
406
|
+
target?: (string | string[]);
|
|
407
|
+
from?: (string | string[]);
|
|
417
408
|
except?: string[];
|
|
418
409
|
message?: string;
|
|
419
410
|
},
|
|
420
411
|
...({
|
|
421
|
-
target?: (string |
|
|
422
|
-
from?: (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
|
|
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
|
|
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
|
|
439
|
+
type ImportNoUnusedModules = [] | [
|
|
449
440
|
({
|
|
450
441
|
unusedExports: true;
|
|
451
|
-
src?:
|
|
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
|
|
451
|
+
type ImportNoUselessPathSegments = [] | [
|
|
459
452
|
{
|
|
460
453
|
commonjs?: boolean;
|
|
461
454
|
noUselessIndex?: boolean;
|
|
462
455
|
}
|
|
463
456
|
];
|
|
464
|
-
type
|
|
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
|
|
487
|
+
type ImportPreferDefaultExport = [] | [
|
|
487
488
|
{
|
|
488
489
|
target?: ("single" | "any");
|
|
489
490
|
}
|