@kazupon/eslint-config 0.18.0 → 0.19.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.cjs +97 -216
- package/dist/index.d.cts +14216 -3
- package/dist/index.d.ts +14216 -3
- package/dist/index.js +70 -89
- package/package.json +15 -15
- package/dist/config.d.cts +0 -9
- package/dist/config.d.ts +0 -9
- package/dist/configs/comments.d.cts +0 -15
- package/dist/configs/comments.d.ts +0 -15
- package/dist/configs/imports.d.cts +0 -21
- package/dist/configs/imports.d.ts +0 -21
- package/dist/configs/index.d.cts +0 -17
- package/dist/configs/index.d.ts +0 -17
- package/dist/configs/javascript.d.cts +0 -15
- package/dist/configs/javascript.d.ts +0 -15
- package/dist/configs/jsdoc.d.cts +0 -27
- package/dist/configs/jsdoc.d.ts +0 -27
- package/dist/configs/jsonc.d.cts +0 -39
- package/dist/configs/jsonc.d.ts +0 -39
- package/dist/configs/markdown.d.cts +0 -28
- package/dist/configs/markdown.d.ts +0 -28
- package/dist/configs/prettier.d.cts +0 -15
- package/dist/configs/prettier.d.ts +0 -15
- package/dist/configs/promise.d.cts +0 -15
- package/dist/configs/promise.d.ts +0 -15
- package/dist/configs/react.d.cts +0 -26
- package/dist/configs/react.d.ts +0 -26
- package/dist/configs/regexp.d.cts +0 -15
- package/dist/configs/regexp.d.ts +0 -15
- package/dist/configs/svelte.d.cts +0 -21
- package/dist/configs/svelte.d.ts +0 -21
- package/dist/configs/toml.d.cts +0 -15
- package/dist/configs/toml.d.ts +0 -15
- package/dist/configs/typescript.d.cts +0 -38
- package/dist/configs/typescript.d.ts +0 -38
- package/dist/configs/unicorn.d.cts +0 -20
- package/dist/configs/unicorn.d.ts +0 -20
- package/dist/configs/vitest.d.cts +0 -22
- package/dist/configs/vitest.d.ts +0 -22
- package/dist/configs/vue.d.cts +0 -36
- package/dist/configs/vue.d.ts +0 -36
- package/dist/configs/yml.d.cts +0 -22
- package/dist/configs/yml.d.ts +0 -22
- package/dist/globs.d.cts +0 -14
- package/dist/globs.d.ts +0 -14
- package/dist/types/gens/comments.d.cts +0 -65
- package/dist/types/gens/comments.d.ts +0 -65
- package/dist/types/gens/eslint.d.cts +0 -23
- package/dist/types/gens/eslint.d.ts +0 -23
- package/dist/types/gens/imports.d.cts +0 -520
- package/dist/types/gens/imports.d.ts +0 -520
- package/dist/types/gens/javascript.d.cts +0 -3163
- package/dist/types/gens/javascript.d.ts +0 -3163
- package/dist/types/gens/jsdoc.d.cts +0 -796
- package/dist/types/gens/jsdoc.d.ts +0 -796
- package/dist/types/gens/jsonc.d.cts +0 -513
- package/dist/types/gens/jsonc.d.ts +0 -513
- package/dist/types/gens/markdown.d.cts +0 -42
- package/dist/types/gens/markdown.d.ts +0 -42
- package/dist/types/gens/prettier.d.cts +0 -2
- package/dist/types/gens/prettier.d.ts +0 -2
- package/dist/types/gens/promise.d.cts +0 -113
- package/dist/types/gens/promise.d.ts +0 -113
- package/dist/types/gens/react.d.cts +0 -1053
- package/dist/types/gens/react.d.ts +0 -1053
- package/dist/types/gens/regexp.d.cts +0 -553
- package/dist/types/gens/regexp.d.ts +0 -553
- package/dist/types/gens/svelte.d.cts +0 -491
- package/dist/types/gens/svelte.d.ts +0 -491
- package/dist/types/gens/toml.d.cts +0 -256
- package/dist/types/gens/toml.d.ts +0 -256
- package/dist/types/gens/typescript.d.cts +0 -1578
- package/dist/types/gens/typescript.d.ts +0 -1578
- package/dist/types/gens/unicorn.d.cts +0 -925
- package/dist/types/gens/unicorn.d.ts +0 -925
- package/dist/types/gens/vitest.d.cts +0 -377
- package/dist/types/gens/vitest.d.ts +0 -377
- package/dist/types/gens/vue.d.cts +0 -2746
- package/dist/types/gens/vue.d.ts +0 -2746
- package/dist/types/gens/yml.d.cts +0 -375
- package/dist/types/gens/yml.d.ts +0 -375
- package/dist/types/index.d.cts +0 -19
- package/dist/types/index.d.ts +0 -19
- package/dist/types/overrides.d.cts +0 -8
- package/dist/types/overrides.d.ts +0 -8
- package/dist/utils.d.cts +0 -18
- package/dist/utils.d.ts +0 -18
|
@@ -1,520 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
export interface ImportsRules {
|
|
3
|
-
/**
|
|
4
|
-
* Enforce or ban the use of inline type-only markers for named imports.
|
|
5
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/consistent-type-specifier-style.md
|
|
6
|
-
*/
|
|
7
|
-
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
8
|
-
/**
|
|
9
|
-
* Ensure a default export is present, given a default import.
|
|
10
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/default.md
|
|
11
|
-
*/
|
|
12
|
-
'import/default'?: Linter.RuleEntry<[]>;
|
|
13
|
-
/**
|
|
14
|
-
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/dynamic-import-chunkname.md
|
|
16
|
-
*/
|
|
17
|
-
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
18
|
-
/**
|
|
19
|
-
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
20
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/export.md
|
|
21
|
-
*/
|
|
22
|
-
'import/export'?: Linter.RuleEntry<[]>;
|
|
23
|
-
/**
|
|
24
|
-
* Ensure all exports appear after other statements.
|
|
25
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/exports-last.md
|
|
26
|
-
*/
|
|
27
|
-
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
28
|
-
/**
|
|
29
|
-
* Ensure consistent use of file extension within the import path.
|
|
30
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/extensions.md
|
|
31
|
-
*/
|
|
32
|
-
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
33
|
-
/**
|
|
34
|
-
* Ensure all imports appear before other statements.
|
|
35
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/first.md
|
|
36
|
-
*/
|
|
37
|
-
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
38
|
-
/**
|
|
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
|
-
*/
|
|
42
|
-
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
43
|
-
/**
|
|
44
|
-
* Replaced by `import/first`.
|
|
45
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md
|
|
46
|
-
* @deprecated
|
|
47
|
-
*/
|
|
48
|
-
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
49
|
-
/**
|
|
50
|
-
* Enforce the maximum number of dependencies a module can have.
|
|
51
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/max-dependencies.md
|
|
52
|
-
*/
|
|
53
|
-
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
54
|
-
/**
|
|
55
|
-
* Ensure named imports correspond to a named export in the remote file.
|
|
56
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/named.md
|
|
57
|
-
*/
|
|
58
|
-
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
59
|
-
/**
|
|
60
|
-
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
61
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/namespace.md
|
|
62
|
-
*/
|
|
63
|
-
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
64
|
-
/**
|
|
65
|
-
* Enforce a newline after import statements.
|
|
66
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/newline-after-import.md
|
|
67
|
-
*/
|
|
68
|
-
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
69
|
-
/**
|
|
70
|
-
* Forbid import of modules using absolute paths.
|
|
71
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-absolute-path.md
|
|
72
|
-
*/
|
|
73
|
-
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
74
|
-
/**
|
|
75
|
-
* Forbid AMD `require` and `define` calls.
|
|
76
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-amd.md
|
|
77
|
-
*/
|
|
78
|
-
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
79
|
-
/**
|
|
80
|
-
* Forbid anonymous values as default exports.
|
|
81
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-anonymous-default-export.md
|
|
82
|
-
*/
|
|
83
|
-
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
84
|
-
/**
|
|
85
|
-
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
86
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-commonjs.md
|
|
87
|
-
*/
|
|
88
|
-
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
89
|
-
/**
|
|
90
|
-
* Forbid a module from importing a module with a dependency path back to itself.
|
|
91
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-cycle.md
|
|
92
|
-
*/
|
|
93
|
-
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
94
|
-
/**
|
|
95
|
-
* Forbid default exports.
|
|
96
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-default-export.md
|
|
97
|
-
*/
|
|
98
|
-
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
99
|
-
/**
|
|
100
|
-
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
101
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-deprecated.md
|
|
102
|
-
*/
|
|
103
|
-
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
104
|
-
/**
|
|
105
|
-
* Forbid repeated import of the same module in multiple places.
|
|
106
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-duplicates.md
|
|
107
|
-
*/
|
|
108
|
-
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
109
|
-
/**
|
|
110
|
-
* Forbid `require()` calls with expressions.
|
|
111
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-dynamic-require.md
|
|
112
|
-
*/
|
|
113
|
-
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
114
|
-
/**
|
|
115
|
-
* Forbid empty named import blocks.
|
|
116
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-empty-named-blocks.md
|
|
117
|
-
*/
|
|
118
|
-
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
119
|
-
/**
|
|
120
|
-
* Forbid the use of extraneous packages.
|
|
121
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-extraneous-dependencies.md
|
|
122
|
-
*/
|
|
123
|
-
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
124
|
-
/**
|
|
125
|
-
* Forbid import statements with CommonJS module.exports.
|
|
126
|
-
*/
|
|
127
|
-
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
128
|
-
/**
|
|
129
|
-
* Forbid importing the submodules of other modules.
|
|
130
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-internal-modules.md
|
|
131
|
-
*/
|
|
132
|
-
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
133
|
-
/**
|
|
134
|
-
* Forbid the use of mutable exports with `var` or `let`.
|
|
135
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-mutable-exports.md
|
|
136
|
-
*/
|
|
137
|
-
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
138
|
-
/**
|
|
139
|
-
* Forbid use of exported name as identifier of default export.
|
|
140
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-as-default.md
|
|
141
|
-
*/
|
|
142
|
-
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
143
|
-
/**
|
|
144
|
-
* Forbid use of exported name as property of default export.
|
|
145
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-as-default-member.md
|
|
146
|
-
*/
|
|
147
|
-
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
148
|
-
/**
|
|
149
|
-
* Forbid named default exports.
|
|
150
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-default.md
|
|
151
|
-
*/
|
|
152
|
-
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
153
|
-
/**
|
|
154
|
-
* Forbid named exports.
|
|
155
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-named-export.md
|
|
156
|
-
*/
|
|
157
|
-
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
158
|
-
/**
|
|
159
|
-
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
160
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-namespace.md
|
|
161
|
-
*/
|
|
162
|
-
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
163
|
-
/**
|
|
164
|
-
* Forbid Node.js builtin modules.
|
|
165
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-nodejs-modules.md
|
|
166
|
-
*/
|
|
167
|
-
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
168
|
-
/**
|
|
169
|
-
* Forbid importing packages through relative paths.
|
|
170
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-relative-packages.md
|
|
171
|
-
*/
|
|
172
|
-
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
173
|
-
/**
|
|
174
|
-
* Forbid importing modules from parent directories.
|
|
175
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-relative-parent-imports.md
|
|
176
|
-
*/
|
|
177
|
-
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
178
|
-
/**
|
|
179
|
-
* Enforce which files can be imported in a given folder.
|
|
180
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-restricted-paths.md
|
|
181
|
-
*/
|
|
182
|
-
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
183
|
-
/**
|
|
184
|
-
* Forbid a module from importing itself.
|
|
185
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-self-import.md
|
|
186
|
-
*/
|
|
187
|
-
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
188
|
-
/**
|
|
189
|
-
* Forbid unassigned imports
|
|
190
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unassigned-import.md
|
|
191
|
-
*/
|
|
192
|
-
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
193
|
-
/**
|
|
194
|
-
* Ensure imports point to a file/module that can be resolved.
|
|
195
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unresolved.md
|
|
196
|
-
*/
|
|
197
|
-
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
198
|
-
/**
|
|
199
|
-
* Forbid modules without exports, or exports without matching import in another module.
|
|
200
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-unused-modules.md
|
|
201
|
-
*/
|
|
202
|
-
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
203
|
-
/**
|
|
204
|
-
* Forbid unnecessary path segments in import and require statements.
|
|
205
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-useless-path-segments.md
|
|
206
|
-
*/
|
|
207
|
-
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
208
|
-
/**
|
|
209
|
-
* Forbid webpack loader syntax in imports.
|
|
210
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-webpack-loader-syntax.md
|
|
211
|
-
*/
|
|
212
|
-
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
213
|
-
/**
|
|
214
|
-
* Enforce a convention in module import order.
|
|
215
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/order.md
|
|
216
|
-
*/
|
|
217
|
-
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
218
|
-
/**
|
|
219
|
-
* Prefer a default export if module exports a single name or multiple names.
|
|
220
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/prefer-default-export.md
|
|
221
|
-
*/
|
|
222
|
-
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
223
|
-
/**
|
|
224
|
-
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
225
|
-
* @see https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/unambiguous.md
|
|
226
|
-
*/
|
|
227
|
-
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
228
|
-
/**
|
|
229
|
-
* Disallow unused variables
|
|
230
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
231
|
-
*/
|
|
232
|
-
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
|
|
233
|
-
/**
|
|
234
|
-
* Disallow unused variables
|
|
235
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
236
|
-
*/
|
|
237
|
-
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
|
|
238
|
-
}
|
|
239
|
-
type ImportConsistentTypeSpecifierStyle = [] | [("prefer-inline" | "prefer-top-level")];
|
|
240
|
-
type ImportDynamicImportChunkname = [] | [
|
|
241
|
-
{
|
|
242
|
-
importFunctions?: string[];
|
|
243
|
-
allowEmpty?: boolean;
|
|
244
|
-
webpackChunknameFormat?: string;
|
|
245
|
-
[k: string]: unknown | undefined;
|
|
246
|
-
}
|
|
247
|
-
];
|
|
248
|
-
type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [
|
|
249
|
-
("always" | "ignorePackages" | "never"),
|
|
250
|
-
{
|
|
251
|
-
pattern?: {
|
|
252
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
253
|
-
};
|
|
254
|
-
checkTypeImports?: boolean;
|
|
255
|
-
ignorePackages?: boolean;
|
|
256
|
-
[k: string]: unknown | undefined;
|
|
257
|
-
}
|
|
258
|
-
] | [] | [
|
|
259
|
-
{
|
|
260
|
-
pattern?: {
|
|
261
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
262
|
-
};
|
|
263
|
-
checkTypeImports?: boolean;
|
|
264
|
-
ignorePackages?: boolean;
|
|
265
|
-
[k: string]: unknown | undefined;
|
|
266
|
-
}
|
|
267
|
-
] | [] | [
|
|
268
|
-
{
|
|
269
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
270
|
-
}
|
|
271
|
-
] | [] | [("always" | "ignorePackages" | "never")] | [
|
|
272
|
-
("always" | "ignorePackages" | "never"),
|
|
273
|
-
{
|
|
274
|
-
[k: string]: ("always" | "ignorePackages" | "never");
|
|
275
|
-
}
|
|
276
|
-
]);
|
|
277
|
-
type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
278
|
-
type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
279
|
-
type ImportMaxDependencies = [] | [
|
|
280
|
-
{
|
|
281
|
-
max?: number;
|
|
282
|
-
ignoreTypeImports?: boolean;
|
|
283
|
-
}
|
|
284
|
-
];
|
|
285
|
-
type ImportNamed = [] | [
|
|
286
|
-
{
|
|
287
|
-
commonjs?: boolean;
|
|
288
|
-
}
|
|
289
|
-
];
|
|
290
|
-
type ImportNamespace = [] | [
|
|
291
|
-
{
|
|
292
|
-
allowComputed?: boolean;
|
|
293
|
-
}
|
|
294
|
-
];
|
|
295
|
-
type ImportNewlineAfterImport = [] | [
|
|
296
|
-
{
|
|
297
|
-
count?: number;
|
|
298
|
-
exactCount?: boolean;
|
|
299
|
-
considerComments?: boolean;
|
|
300
|
-
}
|
|
301
|
-
];
|
|
302
|
-
type ImportNoAbsolutePath = [] | [
|
|
303
|
-
{
|
|
304
|
-
commonjs?: boolean;
|
|
305
|
-
amd?: boolean;
|
|
306
|
-
esmodule?: boolean;
|
|
307
|
-
ignore?: [string, ...(string)[]];
|
|
308
|
-
}
|
|
309
|
-
];
|
|
310
|
-
type ImportNoAnonymousDefaultExport = [] | [
|
|
311
|
-
{
|
|
312
|
-
allowArray?: boolean;
|
|
313
|
-
allowArrowFunction?: boolean;
|
|
314
|
-
allowCallExpression?: boolean;
|
|
315
|
-
allowAnonymousClass?: boolean;
|
|
316
|
-
allowAnonymousFunction?: boolean;
|
|
317
|
-
allowLiteral?: boolean;
|
|
318
|
-
allowObject?: boolean;
|
|
319
|
-
allowNew?: boolean;
|
|
320
|
-
}
|
|
321
|
-
];
|
|
322
|
-
type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [
|
|
323
|
-
{
|
|
324
|
-
allowPrimitiveModules?: boolean;
|
|
325
|
-
allowRequire?: boolean;
|
|
326
|
-
allowConditionalRequire?: boolean;
|
|
327
|
-
}
|
|
328
|
-
]);
|
|
329
|
-
type ImportNoCycle = [] | [
|
|
330
|
-
{
|
|
331
|
-
commonjs?: boolean;
|
|
332
|
-
amd?: boolean;
|
|
333
|
-
esmodule?: boolean;
|
|
334
|
-
ignore?: [string, ...(string)[]];
|
|
335
|
-
maxDepth?: (number | "∞");
|
|
336
|
-
ignoreExternal?: boolean;
|
|
337
|
-
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
338
|
-
disableScc?: boolean;
|
|
339
|
-
}
|
|
340
|
-
];
|
|
341
|
-
type ImportNoDuplicates = [] | [
|
|
342
|
-
{
|
|
343
|
-
considerQueryString?: boolean;
|
|
344
|
-
"prefer-inline"?: boolean;
|
|
345
|
-
}
|
|
346
|
-
];
|
|
347
|
-
type ImportNoDynamicRequire = [] | [
|
|
348
|
-
{
|
|
349
|
-
esmodule?: boolean;
|
|
350
|
-
}
|
|
351
|
-
];
|
|
352
|
-
type ImportNoExtraneousDependencies = [] | [
|
|
353
|
-
{
|
|
354
|
-
devDependencies?: (boolean | unknown[]);
|
|
355
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
356
|
-
peerDependencies?: (boolean | unknown[]);
|
|
357
|
-
bundledDependencies?: (boolean | unknown[]);
|
|
358
|
-
packageDir?: (string | unknown[]);
|
|
359
|
-
includeInternal?: boolean;
|
|
360
|
-
includeTypes?: boolean;
|
|
361
|
-
}
|
|
362
|
-
];
|
|
363
|
-
type ImportNoImportModuleExports = [] | [
|
|
364
|
-
{
|
|
365
|
-
exceptions?: unknown[];
|
|
366
|
-
}
|
|
367
|
-
];
|
|
368
|
-
type ImportNoInternalModules = [] | [
|
|
369
|
-
({
|
|
370
|
-
allow?: string[];
|
|
371
|
-
} | {
|
|
372
|
-
forbid?: string[];
|
|
373
|
-
})
|
|
374
|
-
];
|
|
375
|
-
type ImportNoNamespace = [] | [
|
|
376
|
-
{
|
|
377
|
-
ignore?: string[];
|
|
378
|
-
[k: string]: unknown | undefined;
|
|
379
|
-
}
|
|
380
|
-
];
|
|
381
|
-
type ImportNoNodejsModules = [] | [
|
|
382
|
-
{
|
|
383
|
-
allow?: string[];
|
|
384
|
-
}
|
|
385
|
-
];
|
|
386
|
-
type ImportNoRelativePackages = [] | [
|
|
387
|
-
{
|
|
388
|
-
commonjs?: boolean;
|
|
389
|
-
amd?: boolean;
|
|
390
|
-
esmodule?: boolean;
|
|
391
|
-
ignore?: [string, ...(string)[]];
|
|
392
|
-
}
|
|
393
|
-
];
|
|
394
|
-
type ImportNoRelativeParentImports = [] | [
|
|
395
|
-
{
|
|
396
|
-
commonjs?: boolean;
|
|
397
|
-
amd?: boolean;
|
|
398
|
-
esmodule?: boolean;
|
|
399
|
-
ignore?: [string, ...(string)[]];
|
|
400
|
-
}
|
|
401
|
-
];
|
|
402
|
-
type ImportNoRestrictedPaths = [] | [
|
|
403
|
-
{
|
|
404
|
-
zones?: [
|
|
405
|
-
{
|
|
406
|
-
target?: (string | string[]);
|
|
407
|
-
from?: (string | string[]);
|
|
408
|
-
except?: string[];
|
|
409
|
-
message?: string;
|
|
410
|
-
},
|
|
411
|
-
...({
|
|
412
|
-
target?: (string | string[]);
|
|
413
|
-
from?: (string | string[]);
|
|
414
|
-
except?: string[];
|
|
415
|
-
message?: string;
|
|
416
|
-
})[]
|
|
417
|
-
];
|
|
418
|
-
basePath?: string;
|
|
419
|
-
}
|
|
420
|
-
];
|
|
421
|
-
type ImportNoUnassignedImport = [] | [
|
|
422
|
-
{
|
|
423
|
-
devDependencies?: (boolean | unknown[]);
|
|
424
|
-
optionalDependencies?: (boolean | unknown[]);
|
|
425
|
-
peerDependencies?: (boolean | unknown[]);
|
|
426
|
-
allow?: string[];
|
|
427
|
-
}
|
|
428
|
-
];
|
|
429
|
-
type ImportNoUnresolved = [] | [
|
|
430
|
-
{
|
|
431
|
-
commonjs?: boolean;
|
|
432
|
-
amd?: boolean;
|
|
433
|
-
esmodule?: boolean;
|
|
434
|
-
ignore?: [string, ...(string)[]];
|
|
435
|
-
caseSensitive?: boolean;
|
|
436
|
-
caseSensitiveStrict?: boolean;
|
|
437
|
-
}
|
|
438
|
-
];
|
|
439
|
-
type ImportNoUnusedModules = [] | [
|
|
440
|
-
({
|
|
441
|
-
unusedExports: true;
|
|
442
|
-
src?: {
|
|
443
|
-
[k: string]: unknown | undefined;
|
|
444
|
-
};
|
|
445
|
-
[k: string]: unknown | undefined;
|
|
446
|
-
} | {
|
|
447
|
-
missingExports: true;
|
|
448
|
-
[k: string]: unknown | undefined;
|
|
449
|
-
})
|
|
450
|
-
];
|
|
451
|
-
type ImportNoUselessPathSegments = [] | [
|
|
452
|
-
{
|
|
453
|
-
commonjs?: boolean;
|
|
454
|
-
noUselessIndex?: boolean;
|
|
455
|
-
}
|
|
456
|
-
];
|
|
457
|
-
type ImportOrder = [] | [
|
|
458
|
-
{
|
|
459
|
-
groups?: unknown[];
|
|
460
|
-
pathGroupsExcludedImportTypes?: unknown[];
|
|
461
|
-
distinctGroup?: boolean;
|
|
462
|
-
pathGroups?: {
|
|
463
|
-
pattern: string;
|
|
464
|
-
patternOptions?: {
|
|
465
|
-
[k: string]: unknown | undefined;
|
|
466
|
-
};
|
|
467
|
-
group: ("builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type");
|
|
468
|
-
position?: ("after" | "before");
|
|
469
|
-
}[];
|
|
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
|
-
});
|
|
479
|
-
alphabetize?: {
|
|
480
|
-
caseInsensitive?: boolean;
|
|
481
|
-
order?: ("ignore" | "asc" | "desc");
|
|
482
|
-
orderImportKind?: ("ignore" | "asc" | "desc");
|
|
483
|
-
};
|
|
484
|
-
warnOnUnassignedImports?: boolean;
|
|
485
|
-
}
|
|
486
|
-
];
|
|
487
|
-
type ImportPreferDefaultExport = [] | [
|
|
488
|
-
{
|
|
489
|
-
target?: ("single" | "any");
|
|
490
|
-
}
|
|
491
|
-
];
|
|
492
|
-
type UnusedImportsNoUnusedImports = [] | [
|
|
493
|
-
(("all" | "local") | {
|
|
494
|
-
vars?: ("all" | "local");
|
|
495
|
-
varsIgnorePattern?: string;
|
|
496
|
-
args?: ("all" | "after-used" | "none");
|
|
497
|
-
ignoreRestSiblings?: boolean;
|
|
498
|
-
argsIgnorePattern?: string;
|
|
499
|
-
caughtErrors?: ("all" | "none");
|
|
500
|
-
caughtErrorsIgnorePattern?: string;
|
|
501
|
-
destructuredArrayIgnorePattern?: string;
|
|
502
|
-
ignoreClassWithStaticInitBlock?: boolean;
|
|
503
|
-
reportUsedIgnorePattern?: boolean;
|
|
504
|
-
})
|
|
505
|
-
];
|
|
506
|
-
type UnusedImportsNoUnusedVars = [] | [
|
|
507
|
-
(("all" | "local") | {
|
|
508
|
-
vars?: ("all" | "local");
|
|
509
|
-
varsIgnorePattern?: string;
|
|
510
|
-
args?: ("all" | "after-used" | "none");
|
|
511
|
-
ignoreRestSiblings?: boolean;
|
|
512
|
-
argsIgnorePattern?: string;
|
|
513
|
-
caughtErrors?: ("all" | "none");
|
|
514
|
-
caughtErrorsIgnorePattern?: string;
|
|
515
|
-
destructuredArrayIgnorePattern?: string;
|
|
516
|
-
ignoreClassWithStaticInitBlock?: boolean;
|
|
517
|
-
reportUsedIgnorePattern?: boolean;
|
|
518
|
-
})
|
|
519
|
-
];
|
|
520
|
-
export {};
|