@jsse/eslint-config 0.2.6 → 0.2.8
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.cts +130 -96
- package/dist/index.d.ts +130 -96
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -4174,24 +4174,25 @@ type AntfuConsistentListNewline =
|
|
|
4174
4174
|
| [
|
|
4175
4175
|
{
|
|
4176
4176
|
ArrayExpression?: boolean;
|
|
4177
|
+
ArrayPattern?: boolean;
|
|
4177
4178
|
ArrowFunctionExpression?: boolean;
|
|
4178
4179
|
CallExpression?: boolean;
|
|
4179
4180
|
ExportNamedDeclaration?: boolean;
|
|
4180
4181
|
FunctionDeclaration?: boolean;
|
|
4181
4182
|
FunctionExpression?: boolean;
|
|
4182
4183
|
ImportDeclaration?: boolean;
|
|
4184
|
+
JSONArrayExpression?: boolean;
|
|
4185
|
+
JSONObjectExpression?: boolean;
|
|
4186
|
+
JSXOpeningElement?: boolean;
|
|
4183
4187
|
NewExpression?: boolean;
|
|
4184
4188
|
ObjectExpression?: boolean;
|
|
4189
|
+
ObjectPattern?: boolean;
|
|
4190
|
+
TSFunctionType?: boolean;
|
|
4185
4191
|
TSInterfaceDeclaration?: boolean;
|
|
4186
4192
|
TSTupleType?: boolean;
|
|
4187
4193
|
TSTypeLiteral?: boolean;
|
|
4188
4194
|
TSTypeParameterDeclaration?: boolean;
|
|
4189
4195
|
TSTypeParameterInstantiation?: boolean;
|
|
4190
|
-
ObjectPattern?: boolean;
|
|
4191
|
-
ArrayPattern?: boolean;
|
|
4192
|
-
JSXOpeningElement?: boolean;
|
|
4193
|
-
JSONArrayExpression?: boolean;
|
|
4194
|
-
JSONObjectExpression?: boolean;
|
|
4195
4196
|
},
|
|
4196
4197
|
];
|
|
4197
4198
|
// ----- antfu/indent-unindent -----
|
|
@@ -4317,228 +4318,233 @@ interface IgnoresRuleOptions {}
|
|
|
4317
4318
|
interface ImportsRuleOptions {
|
|
4318
4319
|
/**
|
|
4319
4320
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4321
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/consistent-type-specifier-style.md
|
|
4321
4322
|
*/
|
|
4322
4323
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4323
4324
|
/**
|
|
4324
4325
|
* Ensure a default export is present, given a default import.
|
|
4325
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/default.md
|
|
4326
4327
|
*/
|
|
4327
4328
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4328
4329
|
/**
|
|
4329
4330
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4330
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/dynamic-import-chunkname.md
|
|
4331
4332
|
*/
|
|
4332
4333
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4333
4334
|
/**
|
|
4334
4335
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4335
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/export.md
|
|
4336
4337
|
*/
|
|
4337
4338
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4338
4339
|
/**
|
|
4339
4340
|
* Ensure all exports appear after other statements.
|
|
4340
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/exports-last.md
|
|
4341
4342
|
*/
|
|
4342
4343
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4343
4344
|
/**
|
|
4344
4345
|
* Ensure consistent use of file extension within the import path.
|
|
4345
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/extensions.md
|
|
4346
4347
|
*/
|
|
4347
4348
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4348
4349
|
/**
|
|
4349
4350
|
* Ensure all imports appear before other statements.
|
|
4350
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/first.md
|
|
4351
4352
|
*/
|
|
4352
4353
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4353
4354
|
/**
|
|
4354
4355
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4355
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/group-exports.md
|
|
4356
4357
|
*/
|
|
4357
4358
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4358
4359
|
/**
|
|
4359
4360
|
* Replaced by `import-x/first`.
|
|
4360
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/imports-first.md
|
|
4361
4362
|
* @deprecated
|
|
4362
4363
|
*/
|
|
4363
4364
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4364
4365
|
/**
|
|
4365
4366
|
* Enforce the maximum number of dependencies a module can have.
|
|
4366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4367
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/max-dependencies.md
|
|
4367
4368
|
*/
|
|
4368
4369
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4369
4370
|
/**
|
|
4370
4371
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4372
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/named.md
|
|
4372
4373
|
*/
|
|
4373
4374
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4374
4375
|
/**
|
|
4375
4376
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4377
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/namespace.md
|
|
4377
4378
|
*/
|
|
4378
4379
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4379
4380
|
/**
|
|
4380
4381
|
* Enforce a newline after import statements.
|
|
4381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4382
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/newline-after-import.md
|
|
4382
4383
|
*/
|
|
4383
4384
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4384
4385
|
/**
|
|
4385
4386
|
* Forbid import of modules using absolute paths.
|
|
4386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4387
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-absolute-path.md
|
|
4387
4388
|
*/
|
|
4388
4389
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4389
4390
|
/**
|
|
4390
4391
|
* Forbid AMD `require` and `define` calls.
|
|
4391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4392
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-amd.md
|
|
4392
4393
|
*/
|
|
4393
4394
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4394
4395
|
/**
|
|
4395
4396
|
* Forbid anonymous values as default exports.
|
|
4396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4397
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-anonymous-default-export.md
|
|
4397
4398
|
*/
|
|
4398
4399
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4399
4400
|
/**
|
|
4400
4401
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4402
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-commonjs.md
|
|
4402
4403
|
*/
|
|
4403
4404
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4404
4405
|
/**
|
|
4405
4406
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4407
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-cycle.md
|
|
4407
4408
|
*/
|
|
4408
4409
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4409
4410
|
/**
|
|
4410
4411
|
* Forbid default exports.
|
|
4411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4412
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-default-export.md
|
|
4412
4413
|
*/
|
|
4413
4414
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4414
4415
|
/**
|
|
4415
4416
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4417
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-deprecated.md
|
|
4417
4418
|
*/
|
|
4418
4419
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4419
4420
|
/**
|
|
4420
4421
|
* Forbid repeated import of the same module in multiple places.
|
|
4421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4422
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-duplicates.md
|
|
4422
4423
|
*/
|
|
4423
4424
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4424
4425
|
/**
|
|
4425
4426
|
* Forbid `require()` calls with expressions.
|
|
4426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4427
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-dynamic-require.md
|
|
4427
4428
|
*/
|
|
4428
4429
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4429
4430
|
/**
|
|
4430
4431
|
* Forbid empty named import blocks.
|
|
4431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4432
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-empty-named-blocks.md
|
|
4432
4433
|
*/
|
|
4433
4434
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4434
4435
|
/**
|
|
4435
4436
|
* Forbid the use of extraneous packages.
|
|
4436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4437
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-extraneous-dependencies.md
|
|
4437
4438
|
*/
|
|
4438
4439
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4439
4440
|
/**
|
|
4440
4441
|
* Forbid import statements with CommonJS module.exports.
|
|
4441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4442
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-import-module-exports.md
|
|
4442
4443
|
*/
|
|
4443
4444
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4444
4445
|
/**
|
|
4445
4446
|
* Forbid importing the submodules of other modules.
|
|
4446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4447
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-internal-modules.md
|
|
4447
4448
|
*/
|
|
4448
4449
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4449
4450
|
/**
|
|
4450
4451
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4452
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-mutable-exports.md
|
|
4452
4453
|
*/
|
|
4453
4454
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4454
4455
|
/**
|
|
4455
4456
|
* Forbid use of exported name as identifier of default export.
|
|
4456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4457
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default.md
|
|
4457
4458
|
*/
|
|
4458
4459
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4459
4460
|
/**
|
|
4460
4461
|
* Forbid use of exported name as property of default export.
|
|
4461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4462
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default-member.md
|
|
4462
4463
|
*/
|
|
4463
4464
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4464
4465
|
/**
|
|
4465
4466
|
* Forbid named default exports.
|
|
4466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4467
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-default.md
|
|
4467
4468
|
*/
|
|
4468
4469
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4469
4470
|
/**
|
|
4470
4471
|
* Forbid named exports.
|
|
4471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4472
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-export.md
|
|
4472
4473
|
*/
|
|
4473
4474
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4474
4475
|
/**
|
|
4475
4476
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4477
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-namespace.md
|
|
4477
4478
|
*/
|
|
4478
4479
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4479
4480
|
/**
|
|
4480
4481
|
* Forbid Node.js builtin modules.
|
|
4481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4482
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-nodejs-modules.md
|
|
4482
4483
|
*/
|
|
4483
4484
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4484
4485
|
/**
|
|
4485
4486
|
* Forbid importing packages through relative paths.
|
|
4486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4487
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-packages.md
|
|
4487
4488
|
*/
|
|
4488
4489
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4489
4490
|
/**
|
|
4490
4491
|
* Forbid importing modules from parent directories.
|
|
4491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4492
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-parent-imports.md
|
|
4492
4493
|
*/
|
|
4493
4494
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4495
|
+
/**
|
|
4496
|
+
* Forbid importing a default export by a different name.
|
|
4497
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-rename-default.md
|
|
4498
|
+
*/
|
|
4499
|
+
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4494
4500
|
/**
|
|
4495
4501
|
* Enforce which files can be imported in a given folder.
|
|
4496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4502
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-restricted-paths.md
|
|
4497
4503
|
*/
|
|
4498
4504
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4499
4505
|
/**
|
|
4500
4506
|
* Forbid a module from importing itself.
|
|
4501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4507
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-self-import.md
|
|
4502
4508
|
*/
|
|
4503
4509
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4504
4510
|
/**
|
|
4505
4511
|
* Forbid unassigned imports.
|
|
4506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4512
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unassigned-import.md
|
|
4507
4513
|
*/
|
|
4508
4514
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4509
4515
|
/**
|
|
4510
4516
|
* Ensure imports point to a file/module that can be resolved.
|
|
4511
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4517
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unresolved.md
|
|
4512
4518
|
*/
|
|
4513
4519
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4514
4520
|
/**
|
|
4515
4521
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4516
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4522
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unused-modules.md
|
|
4517
4523
|
*/
|
|
4518
4524
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4519
4525
|
/**
|
|
4520
4526
|
* Forbid unnecessary path segments in import and require statements.
|
|
4521
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4527
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-useless-path-segments.md
|
|
4522
4528
|
*/
|
|
4523
4529
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4524
4530
|
/**
|
|
4525
4531
|
* Forbid webpack loader syntax in imports.
|
|
4526
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4532
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-webpack-loader-syntax.md
|
|
4527
4533
|
*/
|
|
4528
4534
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4529
4535
|
/**
|
|
4530
4536
|
* Enforce a convention in module import order.
|
|
4531
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4537
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/order.md
|
|
4532
4538
|
*/
|
|
4533
4539
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4534
4540
|
/**
|
|
4535
4541
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4536
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4542
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/prefer-default-export.md
|
|
4537
4543
|
*/
|
|
4538
4544
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4539
4545
|
/**
|
|
4540
4546
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4541
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
4547
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/unambiguous.md
|
|
4542
4548
|
*/
|
|
4543
4549
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4544
4550
|
}
|
|
@@ -4792,6 +4798,15 @@ type ImportNoRelativeParentImports$1 =
|
|
|
4792
4798
|
ignore?: [string, ...string[]];
|
|
4793
4799
|
},
|
|
4794
4800
|
];
|
|
4801
|
+
// ----- import/no-rename-default -----
|
|
4802
|
+
type ImportNoRenameDefault$1 =
|
|
4803
|
+
| []
|
|
4804
|
+
| [
|
|
4805
|
+
{
|
|
4806
|
+
commonjs?: boolean;
|
|
4807
|
+
preventRenamingBindings?: boolean;
|
|
4808
|
+
},
|
|
4809
|
+
];
|
|
4795
4810
|
// ----- import/no-restricted-paths -----
|
|
4796
4811
|
type ImportNoRestrictedPaths$1 =
|
|
4797
4812
|
| []
|
|
@@ -14450,6 +14465,11 @@ interface TypescriptRuleOptions {
|
|
|
14450
14465
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
14451
14466
|
*/
|
|
14452
14467
|
"@typescript-eslint/no-confusing-void-expression"?: Linter.RuleEntry<TypescriptEslintNoConfusingVoidExpression>;
|
|
14468
|
+
/**
|
|
14469
|
+
* Disallow using code marked as `@deprecated`
|
|
14470
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
14471
|
+
*/
|
|
14472
|
+
"@typescript-eslint/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
14453
14473
|
/**
|
|
14454
14474
|
* Disallow duplicate class members
|
|
14455
14475
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -14945,7 +14965,7 @@ interface TypescriptRuleOptions {
|
|
|
14945
14965
|
*/
|
|
14946
14966
|
"@typescript-eslint/unified-signatures"?: Linter.RuleEntry<TypescriptEslintUnifiedSignatures>;
|
|
14947
14967
|
/**
|
|
14948
|
-
* Enforce typing arguments in
|
|
14968
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
14949
14969
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
14950
14970
|
*/
|
|
14951
14971
|
"@typescript-eslint/use-unknown-in-catch-callback-variable"?: Linter.RuleEntry<
|
|
@@ -14953,228 +14973,233 @@ interface TypescriptRuleOptions {
|
|
|
14953
14973
|
>;
|
|
14954
14974
|
/**
|
|
14955
14975
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
14956
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
14976
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/consistent-type-specifier-style.md
|
|
14957
14977
|
*/
|
|
14958
14978
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
14959
14979
|
/**
|
|
14960
14980
|
* Ensure a default export is present, given a default import.
|
|
14961
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
14981
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/default.md
|
|
14962
14982
|
*/
|
|
14963
14983
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
14964
14984
|
/**
|
|
14965
14985
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
14966
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
14986
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/dynamic-import-chunkname.md
|
|
14967
14987
|
*/
|
|
14968
14988
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
14969
14989
|
/**
|
|
14970
14990
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
14971
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
14991
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/export.md
|
|
14972
14992
|
*/
|
|
14973
14993
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
14974
14994
|
/**
|
|
14975
14995
|
* Ensure all exports appear after other statements.
|
|
14976
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
14996
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/exports-last.md
|
|
14977
14997
|
*/
|
|
14978
14998
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
14979
14999
|
/**
|
|
14980
15000
|
* Ensure consistent use of file extension within the import path.
|
|
14981
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15001
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/extensions.md
|
|
14982
15002
|
*/
|
|
14983
15003
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
14984
15004
|
/**
|
|
14985
15005
|
* Ensure all imports appear before other statements.
|
|
14986
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15006
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/first.md
|
|
14987
15007
|
*/
|
|
14988
15008
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
14989
15009
|
/**
|
|
14990
15010
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
14991
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15011
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/group-exports.md
|
|
14992
15012
|
*/
|
|
14993
15013
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
14994
15014
|
/**
|
|
14995
15015
|
* Replaced by `import-x/first`.
|
|
14996
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15016
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/imports-first.md
|
|
14997
15017
|
* @deprecated
|
|
14998
15018
|
*/
|
|
14999
15019
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15000
15020
|
/**
|
|
15001
15021
|
* Enforce the maximum number of dependencies a module can have.
|
|
15002
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15022
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/max-dependencies.md
|
|
15003
15023
|
*/
|
|
15004
15024
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15005
15025
|
/**
|
|
15006
15026
|
* Ensure named imports correspond to a named export in the remote file.
|
|
15007
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15027
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/named.md
|
|
15008
15028
|
*/
|
|
15009
15029
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15010
15030
|
/**
|
|
15011
15031
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15012
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15032
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/namespace.md
|
|
15013
15033
|
*/
|
|
15014
15034
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15015
15035
|
/**
|
|
15016
15036
|
* Enforce a newline after import statements.
|
|
15017
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15037
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/newline-after-import.md
|
|
15018
15038
|
*/
|
|
15019
15039
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15020
15040
|
/**
|
|
15021
15041
|
* Forbid import of modules using absolute paths.
|
|
15022
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15042
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-absolute-path.md
|
|
15023
15043
|
*/
|
|
15024
15044
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15025
15045
|
/**
|
|
15026
15046
|
* Forbid AMD `require` and `define` calls.
|
|
15027
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15047
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-amd.md
|
|
15028
15048
|
*/
|
|
15029
15049
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15030
15050
|
/**
|
|
15031
15051
|
* Forbid anonymous values as default exports.
|
|
15032
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15052
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-anonymous-default-export.md
|
|
15033
15053
|
*/
|
|
15034
15054
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15035
15055
|
/**
|
|
15036
15056
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15037
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15057
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-commonjs.md
|
|
15038
15058
|
*/
|
|
15039
15059
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15040
15060
|
/**
|
|
15041
15061
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
15042
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15062
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-cycle.md
|
|
15043
15063
|
*/
|
|
15044
15064
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15045
15065
|
/**
|
|
15046
15066
|
* Forbid default exports.
|
|
15047
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15067
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-default-export.md
|
|
15048
15068
|
*/
|
|
15049
15069
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15050
15070
|
/**
|
|
15051
15071
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15052
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15072
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-deprecated.md
|
|
15053
15073
|
*/
|
|
15054
15074
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15055
15075
|
/**
|
|
15056
15076
|
* Forbid repeated import of the same module in multiple places.
|
|
15057
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15077
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-duplicates.md
|
|
15058
15078
|
*/
|
|
15059
15079
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15060
15080
|
/**
|
|
15061
15081
|
* Forbid `require()` calls with expressions.
|
|
15062
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15082
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-dynamic-require.md
|
|
15063
15083
|
*/
|
|
15064
15084
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15065
15085
|
/**
|
|
15066
15086
|
* Forbid empty named import blocks.
|
|
15067
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15087
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-empty-named-blocks.md
|
|
15068
15088
|
*/
|
|
15069
15089
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15070
15090
|
/**
|
|
15071
15091
|
* Forbid the use of extraneous packages.
|
|
15072
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15092
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-extraneous-dependencies.md
|
|
15073
15093
|
*/
|
|
15074
15094
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15075
15095
|
/**
|
|
15076
15096
|
* Forbid import statements with CommonJS module.exports.
|
|
15077
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15097
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-import-module-exports.md
|
|
15078
15098
|
*/
|
|
15079
15099
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15080
15100
|
/**
|
|
15081
15101
|
* Forbid importing the submodules of other modules.
|
|
15082
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15102
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-internal-modules.md
|
|
15083
15103
|
*/
|
|
15084
15104
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15085
15105
|
/**
|
|
15086
15106
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15087
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15107
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-mutable-exports.md
|
|
15088
15108
|
*/
|
|
15089
15109
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15090
15110
|
/**
|
|
15091
15111
|
* Forbid use of exported name as identifier of default export.
|
|
15092
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15112
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default.md
|
|
15093
15113
|
*/
|
|
15094
15114
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15095
15115
|
/**
|
|
15096
15116
|
* Forbid use of exported name as property of default export.
|
|
15097
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15117
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default-member.md
|
|
15098
15118
|
*/
|
|
15099
15119
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15100
15120
|
/**
|
|
15101
15121
|
* Forbid named default exports.
|
|
15102
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15122
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-default.md
|
|
15103
15123
|
*/
|
|
15104
15124
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15105
15125
|
/**
|
|
15106
15126
|
* Forbid named exports.
|
|
15107
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15127
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-export.md
|
|
15108
15128
|
*/
|
|
15109
15129
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15110
15130
|
/**
|
|
15111
15131
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15112
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15132
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-namespace.md
|
|
15113
15133
|
*/
|
|
15114
15134
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15115
15135
|
/**
|
|
15116
15136
|
* Forbid Node.js builtin modules.
|
|
15117
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15137
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-nodejs-modules.md
|
|
15118
15138
|
*/
|
|
15119
15139
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15120
15140
|
/**
|
|
15121
15141
|
* Forbid importing packages through relative paths.
|
|
15122
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15142
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-packages.md
|
|
15123
15143
|
*/
|
|
15124
15144
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15125
15145
|
/**
|
|
15126
15146
|
* Forbid importing modules from parent directories.
|
|
15127
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15147
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-parent-imports.md
|
|
15128
15148
|
*/
|
|
15129
15149
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15150
|
+
/**
|
|
15151
|
+
* Forbid importing a default export by a different name.
|
|
15152
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-rename-default.md
|
|
15153
|
+
*/
|
|
15154
|
+
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15130
15155
|
/**
|
|
15131
15156
|
* Enforce which files can be imported in a given folder.
|
|
15132
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15157
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-restricted-paths.md
|
|
15133
15158
|
*/
|
|
15134
15159
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15135
15160
|
/**
|
|
15136
15161
|
* Forbid a module from importing itself.
|
|
15137
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15162
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-self-import.md
|
|
15138
15163
|
*/
|
|
15139
15164
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15140
15165
|
/**
|
|
15141
15166
|
* Forbid unassigned imports.
|
|
15142
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15167
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unassigned-import.md
|
|
15143
15168
|
*/
|
|
15144
15169
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15145
15170
|
/**
|
|
15146
15171
|
* Ensure imports point to a file/module that can be resolved.
|
|
15147
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15172
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unresolved.md
|
|
15148
15173
|
*/
|
|
15149
15174
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15150
15175
|
/**
|
|
15151
15176
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
15152
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15177
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unused-modules.md
|
|
15153
15178
|
*/
|
|
15154
15179
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15155
15180
|
/**
|
|
15156
15181
|
* Forbid unnecessary path segments in import and require statements.
|
|
15157
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15182
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-useless-path-segments.md
|
|
15158
15183
|
*/
|
|
15159
15184
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15160
15185
|
/**
|
|
15161
15186
|
* Forbid webpack loader syntax in imports.
|
|
15162
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15187
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-webpack-loader-syntax.md
|
|
15163
15188
|
*/
|
|
15164
15189
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15165
15190
|
/**
|
|
15166
15191
|
* Enforce a convention in module import order.
|
|
15167
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15192
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/order.md
|
|
15168
15193
|
*/
|
|
15169
15194
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15170
15195
|
/**
|
|
15171
15196
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15172
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15197
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/prefer-default-export.md
|
|
15173
15198
|
*/
|
|
15174
15199
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15175
15200
|
/**
|
|
15176
15201
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15177
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15202
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/unambiguous.md
|
|
15178
15203
|
*/
|
|
15179
15204
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15180
15205
|
}
|
|
@@ -18931,6 +18956,15 @@ type ImportNoRelativeParentImports =
|
|
|
18931
18956
|
ignore?: [string, ...string[]];
|
|
18932
18957
|
},
|
|
18933
18958
|
];
|
|
18959
|
+
// ----- import/no-rename-default -----
|
|
18960
|
+
type ImportNoRenameDefault =
|
|
18961
|
+
| []
|
|
18962
|
+
| [
|
|
18963
|
+
{
|
|
18964
|
+
commonjs?: boolean;
|
|
18965
|
+
preventRenamingBindings?: boolean;
|
|
18966
|
+
},
|
|
18967
|
+
];
|
|
18934
18968
|
// ----- import/no-restricted-paths -----
|
|
18935
18969
|
type ImportNoRestrictedPaths =
|
|
18936
18970
|
| []
|