@jsse/eslint-config 0.2.7 → 0.2.9
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 +232 -95
- package/dist/index.d.ts +232 -95
- package/package.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -4318,228 +4318,233 @@ interface IgnoresRuleOptions {}
|
|
|
4318
4318
|
interface ImportsRuleOptions {
|
|
4319
4319
|
/**
|
|
4320
4320
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4321
|
-
* @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.1/docs/rules/consistent-type-specifier-style.md
|
|
4322
4322
|
*/
|
|
4323
4323
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4324
4324
|
/**
|
|
4325
4325
|
* Ensure a default export is present, given a default import.
|
|
4326
|
-
* @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.1/docs/rules/default.md
|
|
4327
4327
|
*/
|
|
4328
4328
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4329
4329
|
/**
|
|
4330
4330
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4331
|
-
* @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.1/docs/rules/dynamic-import-chunkname.md
|
|
4332
4332
|
*/
|
|
4333
4333
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4334
4334
|
/**
|
|
4335
4335
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4336
|
-
* @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.1/docs/rules/export.md
|
|
4337
4337
|
*/
|
|
4338
4338
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4339
4339
|
/**
|
|
4340
4340
|
* Ensure all exports appear after other statements.
|
|
4341
|
-
* @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.1/docs/rules/exports-last.md
|
|
4342
4342
|
*/
|
|
4343
4343
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4344
4344
|
/**
|
|
4345
4345
|
* Ensure consistent use of file extension within the import path.
|
|
4346
|
-
* @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.1/docs/rules/extensions.md
|
|
4347
4347
|
*/
|
|
4348
4348
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4349
4349
|
/**
|
|
4350
4350
|
* Ensure all imports appear before other statements.
|
|
4351
|
-
* @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.1/docs/rules/first.md
|
|
4352
4352
|
*/
|
|
4353
4353
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4354
4354
|
/**
|
|
4355
4355
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4356
|
-
* @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.1/docs/rules/group-exports.md
|
|
4357
4357
|
*/
|
|
4358
4358
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4359
4359
|
/**
|
|
4360
4360
|
* Replaced by `import-x/first`.
|
|
4361
|
-
* @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.1/docs/rules/imports-first.md
|
|
4362
4362
|
* @deprecated
|
|
4363
4363
|
*/
|
|
4364
4364
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4365
4365
|
/**
|
|
4366
4366
|
* Enforce the maximum number of dependencies a module can have.
|
|
4367
|
-
* @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.1/docs/rules/max-dependencies.md
|
|
4368
4368
|
*/
|
|
4369
4369
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4370
4370
|
/**
|
|
4371
4371
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4372
|
-
* @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.1/docs/rules/named.md
|
|
4373
4373
|
*/
|
|
4374
4374
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4375
4375
|
/**
|
|
4376
4376
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4377
|
-
* @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.1/docs/rules/namespace.md
|
|
4378
4378
|
*/
|
|
4379
4379
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4380
4380
|
/**
|
|
4381
4381
|
* Enforce a newline after import statements.
|
|
4382
|
-
* @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.1/docs/rules/newline-after-import.md
|
|
4383
4383
|
*/
|
|
4384
4384
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4385
4385
|
/**
|
|
4386
4386
|
* Forbid import of modules using absolute paths.
|
|
4387
|
-
* @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.1/docs/rules/no-absolute-path.md
|
|
4388
4388
|
*/
|
|
4389
4389
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4390
4390
|
/**
|
|
4391
4391
|
* Forbid AMD `require` and `define` calls.
|
|
4392
|
-
* @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.1/docs/rules/no-amd.md
|
|
4393
4393
|
*/
|
|
4394
4394
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4395
4395
|
/**
|
|
4396
4396
|
* Forbid anonymous values as default exports.
|
|
4397
|
-
* @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.1/docs/rules/no-anonymous-default-export.md
|
|
4398
4398
|
*/
|
|
4399
4399
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4400
4400
|
/**
|
|
4401
4401
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4402
|
-
* @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.1/docs/rules/no-commonjs.md
|
|
4403
4403
|
*/
|
|
4404
4404
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4405
4405
|
/**
|
|
4406
4406
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4407
|
-
* @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.1/docs/rules/no-cycle.md
|
|
4408
4408
|
*/
|
|
4409
4409
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4410
4410
|
/**
|
|
4411
4411
|
* Forbid default exports.
|
|
4412
|
-
* @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.1/docs/rules/no-default-export.md
|
|
4413
4413
|
*/
|
|
4414
4414
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4415
4415
|
/**
|
|
4416
4416
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4417
|
-
* @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.1/docs/rules/no-deprecated.md
|
|
4418
4418
|
*/
|
|
4419
4419
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4420
4420
|
/**
|
|
4421
4421
|
* Forbid repeated import of the same module in multiple places.
|
|
4422
|
-
* @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.1/docs/rules/no-duplicates.md
|
|
4423
4423
|
*/
|
|
4424
4424
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4425
4425
|
/**
|
|
4426
4426
|
* Forbid `require()` calls with expressions.
|
|
4427
|
-
* @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.1/docs/rules/no-dynamic-require.md
|
|
4428
4428
|
*/
|
|
4429
4429
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4430
4430
|
/**
|
|
4431
4431
|
* Forbid empty named import blocks.
|
|
4432
|
-
* @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.1/docs/rules/no-empty-named-blocks.md
|
|
4433
4433
|
*/
|
|
4434
4434
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4435
4435
|
/**
|
|
4436
4436
|
* Forbid the use of extraneous packages.
|
|
4437
|
-
* @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.1/docs/rules/no-extraneous-dependencies.md
|
|
4438
4438
|
*/
|
|
4439
4439
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4440
4440
|
/**
|
|
4441
4441
|
* Forbid import statements with CommonJS module.exports.
|
|
4442
|
-
* @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.1/docs/rules/no-import-module-exports.md
|
|
4443
4443
|
*/
|
|
4444
4444
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Forbid importing the submodules of other modules.
|
|
4447
|
-
* @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.1/docs/rules/no-internal-modules.md
|
|
4448
4448
|
*/
|
|
4449
4449
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4450
4450
|
/**
|
|
4451
4451
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4452
|
-
* @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.1/docs/rules/no-mutable-exports.md
|
|
4453
4453
|
*/
|
|
4454
4454
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4455
4455
|
/**
|
|
4456
4456
|
* Forbid use of exported name as identifier of default export.
|
|
4457
|
-
* @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.1/docs/rules/no-named-as-default.md
|
|
4458
4458
|
*/
|
|
4459
4459
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4460
4460
|
/**
|
|
4461
4461
|
* Forbid use of exported name as property of default export.
|
|
4462
|
-
* @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.1/docs/rules/no-named-as-default-member.md
|
|
4463
4463
|
*/
|
|
4464
4464
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4465
4465
|
/**
|
|
4466
4466
|
* Forbid named default exports.
|
|
4467
|
-
* @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.1/docs/rules/no-named-default.md
|
|
4468
4468
|
*/
|
|
4469
4469
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4470
4470
|
/**
|
|
4471
4471
|
* Forbid named exports.
|
|
4472
|
-
* @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.1/docs/rules/no-named-export.md
|
|
4473
4473
|
*/
|
|
4474
4474
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4477
|
-
* @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.1/docs/rules/no-namespace.md
|
|
4478
4478
|
*/
|
|
4479
4479
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4480
4480
|
/**
|
|
4481
4481
|
* Forbid Node.js builtin modules.
|
|
4482
|
-
* @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.1/docs/rules/no-nodejs-modules.md
|
|
4483
4483
|
*/
|
|
4484
4484
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4485
4485
|
/**
|
|
4486
4486
|
* Forbid importing packages through relative paths.
|
|
4487
|
-
* @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.1/docs/rules/no-relative-packages.md
|
|
4488
4488
|
*/
|
|
4489
4489
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4490
4490
|
/**
|
|
4491
4491
|
* Forbid importing modules from parent directories.
|
|
4492
|
-
* @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.1/docs/rules/no-relative-parent-imports.md
|
|
4493
4493
|
*/
|
|
4494
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.1/docs/rules/no-rename-default.md
|
|
4498
|
+
*/
|
|
4499
|
+
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4495
4500
|
/**
|
|
4496
4501
|
* Enforce which files can be imported in a given folder.
|
|
4497
|
-
* @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.1/docs/rules/no-restricted-paths.md
|
|
4498
4503
|
*/
|
|
4499
4504
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4500
4505
|
/**
|
|
4501
4506
|
* Forbid a module from importing itself.
|
|
4502
|
-
* @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.1/docs/rules/no-self-import.md
|
|
4503
4508
|
*/
|
|
4504
4509
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4505
4510
|
/**
|
|
4506
4511
|
* Forbid unassigned imports.
|
|
4507
|
-
* @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.1/docs/rules/no-unassigned-import.md
|
|
4508
4513
|
*/
|
|
4509
4514
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4510
4515
|
/**
|
|
4511
4516
|
* Ensure imports point to a file/module that can be resolved.
|
|
4512
|
-
* @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.1/docs/rules/no-unresolved.md
|
|
4513
4518
|
*/
|
|
4514
4519
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4515
4520
|
/**
|
|
4516
4521
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4517
|
-
* @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.1/docs/rules/no-unused-modules.md
|
|
4518
4523
|
*/
|
|
4519
4524
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4520
4525
|
/**
|
|
4521
4526
|
* Forbid unnecessary path segments in import and require statements.
|
|
4522
|
-
* @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.1/docs/rules/no-useless-path-segments.md
|
|
4523
4528
|
*/
|
|
4524
4529
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4525
4530
|
/**
|
|
4526
4531
|
* Forbid webpack loader syntax in imports.
|
|
4527
|
-
* @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.1/docs/rules/no-webpack-loader-syntax.md
|
|
4528
4533
|
*/
|
|
4529
4534
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4530
4535
|
/**
|
|
4531
4536
|
* Enforce a convention in module import order.
|
|
4532
|
-
* @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.1/docs/rules/order.md
|
|
4533
4538
|
*/
|
|
4534
4539
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4535
4540
|
/**
|
|
4536
4541
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4537
|
-
* @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.1/docs/rules/prefer-default-export.md
|
|
4538
4543
|
*/
|
|
4539
4544
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4540
4545
|
/**
|
|
4541
4546
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4542
|
-
* @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.1/docs/rules/unambiguous.md
|
|
4543
4548
|
*/
|
|
4544
4549
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4545
4550
|
}
|
|
@@ -4793,6 +4798,15 @@ type ImportNoRelativeParentImports$1 =
|
|
|
4793
4798
|
ignore?: [string, ...string[]];
|
|
4794
4799
|
},
|
|
4795
4800
|
];
|
|
4801
|
+
// ----- import/no-rename-default -----
|
|
4802
|
+
type ImportNoRenameDefault$1 =
|
|
4803
|
+
| []
|
|
4804
|
+
| [
|
|
4805
|
+
{
|
|
4806
|
+
commonjs?: boolean;
|
|
4807
|
+
preventRenamingBindings?: boolean;
|
|
4808
|
+
},
|
|
4809
|
+
];
|
|
4796
4810
|
// ----- import/no-restricted-paths -----
|
|
4797
4811
|
type ImportNoRestrictedPaths$1 =
|
|
4798
4812
|
| []
|
|
@@ -4936,14 +4950,23 @@ type UnusedImportsNoUnusedImports =
|
|
|
4936
4950
|
| ("all" | "local")
|
|
4937
4951
|
| {
|
|
4938
4952
|
vars?: "all" | "local";
|
|
4953
|
+
|
|
4939
4954
|
varsIgnorePattern?: string;
|
|
4955
|
+
|
|
4940
4956
|
args?: "all" | "after-used" | "none";
|
|
4941
|
-
|
|
4957
|
+
|
|
4942
4958
|
argsIgnorePattern?: string;
|
|
4959
|
+
|
|
4943
4960
|
caughtErrors?: "all" | "none";
|
|
4961
|
+
|
|
4944
4962
|
caughtErrorsIgnorePattern?: string;
|
|
4963
|
+
|
|
4945
4964
|
destructuredArrayIgnorePattern?: string;
|
|
4965
|
+
|
|
4946
4966
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
4967
|
+
|
|
4968
|
+
ignoreRestSiblings?: boolean;
|
|
4969
|
+
|
|
4947
4970
|
reportUsedIgnorePattern?: boolean;
|
|
4948
4971
|
},
|
|
4949
4972
|
];
|
|
@@ -4954,14 +4977,23 @@ type UnusedImportsNoUnusedVars =
|
|
|
4954
4977
|
| ("all" | "local")
|
|
4955
4978
|
| {
|
|
4956
4979
|
vars?: "all" | "local";
|
|
4980
|
+
|
|
4957
4981
|
varsIgnorePattern?: string;
|
|
4982
|
+
|
|
4958
4983
|
args?: "all" | "after-used" | "none";
|
|
4959
|
-
|
|
4984
|
+
|
|
4960
4985
|
argsIgnorePattern?: string;
|
|
4986
|
+
|
|
4961
4987
|
caughtErrors?: "all" | "none";
|
|
4988
|
+
|
|
4962
4989
|
caughtErrorsIgnorePattern?: string;
|
|
4990
|
+
|
|
4963
4991
|
destructuredArrayIgnorePattern?: string;
|
|
4992
|
+
|
|
4964
4993
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
4994
|
+
|
|
4995
|
+
ignoreRestSiblings?: boolean;
|
|
4996
|
+
|
|
4965
4997
|
reportUsedIgnorePattern?: boolean;
|
|
4966
4998
|
},
|
|
4967
4999
|
];
|
|
@@ -13633,6 +13665,7 @@ type StylisticTypeAnnotationSpacing =
|
|
|
13633
13665
|
parameter?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13634
13666
|
property?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13635
13667
|
returnType?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13668
|
+
operator?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13636
13669
|
};
|
|
13637
13670
|
},
|
|
13638
13671
|
];
|
|
@@ -14451,6 +14484,11 @@ interface TypescriptRuleOptions {
|
|
|
14451
14484
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
14452
14485
|
*/
|
|
14453
14486
|
"@typescript-eslint/no-confusing-void-expression"?: Linter.RuleEntry<TypescriptEslintNoConfusingVoidExpression>;
|
|
14487
|
+
/**
|
|
14488
|
+
* Disallow using code marked as `@deprecated`
|
|
14489
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
14490
|
+
*/
|
|
14491
|
+
"@typescript-eslint/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
14454
14492
|
/**
|
|
14455
14493
|
* Disallow duplicate class members
|
|
14456
14494
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -14954,228 +14992,233 @@ interface TypescriptRuleOptions {
|
|
|
14954
14992
|
>;
|
|
14955
14993
|
/**
|
|
14956
14994
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
14957
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
14995
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/consistent-type-specifier-style.md
|
|
14958
14996
|
*/
|
|
14959
14997
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
14960
14998
|
/**
|
|
14961
14999
|
* Ensure a default export is present, given a default import.
|
|
14962
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15000
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/default.md
|
|
14963
15001
|
*/
|
|
14964
15002
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
14965
15003
|
/**
|
|
14966
15004
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
14967
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15005
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/dynamic-import-chunkname.md
|
|
14968
15006
|
*/
|
|
14969
15007
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
14970
15008
|
/**
|
|
14971
15009
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
14972
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15010
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/export.md
|
|
14973
15011
|
*/
|
|
14974
15012
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
14975
15013
|
/**
|
|
14976
15014
|
* Ensure all exports appear after other statements.
|
|
14977
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15015
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/exports-last.md
|
|
14978
15016
|
*/
|
|
14979
15017
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
14980
15018
|
/**
|
|
14981
15019
|
* Ensure consistent use of file extension within the import path.
|
|
14982
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15020
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/extensions.md
|
|
14983
15021
|
*/
|
|
14984
15022
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
14985
15023
|
/**
|
|
14986
15024
|
* Ensure all imports appear before other statements.
|
|
14987
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15025
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/first.md
|
|
14988
15026
|
*/
|
|
14989
15027
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
14990
15028
|
/**
|
|
14991
15029
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
14992
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15030
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/group-exports.md
|
|
14993
15031
|
*/
|
|
14994
15032
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
14995
15033
|
/**
|
|
14996
15034
|
* Replaced by `import-x/first`.
|
|
14997
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15035
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/imports-first.md
|
|
14998
15036
|
* @deprecated
|
|
14999
15037
|
*/
|
|
15000
15038
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15001
15039
|
/**
|
|
15002
15040
|
* Enforce the maximum number of dependencies a module can have.
|
|
15003
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15041
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/max-dependencies.md
|
|
15004
15042
|
*/
|
|
15005
15043
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15006
15044
|
/**
|
|
15007
15045
|
* Ensure named imports correspond to a named export in the remote file.
|
|
15008
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15046
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/named.md
|
|
15009
15047
|
*/
|
|
15010
15048
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15011
15049
|
/**
|
|
15012
15050
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15013
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15051
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/namespace.md
|
|
15014
15052
|
*/
|
|
15015
15053
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15016
15054
|
/**
|
|
15017
15055
|
* Enforce a newline after import statements.
|
|
15018
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15056
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/newline-after-import.md
|
|
15019
15057
|
*/
|
|
15020
15058
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15021
15059
|
/**
|
|
15022
15060
|
* Forbid import of modules using absolute paths.
|
|
15023
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15061
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-absolute-path.md
|
|
15024
15062
|
*/
|
|
15025
15063
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15026
15064
|
/**
|
|
15027
15065
|
* Forbid AMD `require` and `define` calls.
|
|
15028
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15066
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-amd.md
|
|
15029
15067
|
*/
|
|
15030
15068
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15031
15069
|
/**
|
|
15032
15070
|
* Forbid anonymous values as default exports.
|
|
15033
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15071
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-anonymous-default-export.md
|
|
15034
15072
|
*/
|
|
15035
15073
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15036
15074
|
/**
|
|
15037
15075
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15038
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15076
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-commonjs.md
|
|
15039
15077
|
*/
|
|
15040
15078
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15041
15079
|
/**
|
|
15042
15080
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
15043
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15081
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-cycle.md
|
|
15044
15082
|
*/
|
|
15045
15083
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15046
15084
|
/**
|
|
15047
15085
|
* Forbid default exports.
|
|
15048
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15086
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-default-export.md
|
|
15049
15087
|
*/
|
|
15050
15088
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15051
15089
|
/**
|
|
15052
15090
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15053
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15091
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-deprecated.md
|
|
15054
15092
|
*/
|
|
15055
15093
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15056
15094
|
/**
|
|
15057
15095
|
* Forbid repeated import of the same module in multiple places.
|
|
15058
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15096
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-duplicates.md
|
|
15059
15097
|
*/
|
|
15060
15098
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15061
15099
|
/**
|
|
15062
15100
|
* Forbid `require()` calls with expressions.
|
|
15063
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15101
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-dynamic-require.md
|
|
15064
15102
|
*/
|
|
15065
15103
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15066
15104
|
/**
|
|
15067
15105
|
* Forbid empty named import blocks.
|
|
15068
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15106
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-empty-named-blocks.md
|
|
15069
15107
|
*/
|
|
15070
15108
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15071
15109
|
/**
|
|
15072
15110
|
* Forbid the use of extraneous packages.
|
|
15073
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15111
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-extraneous-dependencies.md
|
|
15074
15112
|
*/
|
|
15075
15113
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15076
15114
|
/**
|
|
15077
15115
|
* Forbid import statements with CommonJS module.exports.
|
|
15078
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15116
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-import-module-exports.md
|
|
15079
15117
|
*/
|
|
15080
15118
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15081
15119
|
/**
|
|
15082
15120
|
* Forbid importing the submodules of other modules.
|
|
15083
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15121
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-internal-modules.md
|
|
15084
15122
|
*/
|
|
15085
15123
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15086
15124
|
/**
|
|
15087
15125
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15088
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15126
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-mutable-exports.md
|
|
15089
15127
|
*/
|
|
15090
15128
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15091
15129
|
/**
|
|
15092
15130
|
* Forbid use of exported name as identifier of default export.
|
|
15093
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15131
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default.md
|
|
15094
15132
|
*/
|
|
15095
15133
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15096
15134
|
/**
|
|
15097
15135
|
* Forbid use of exported name as property of default export.
|
|
15098
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15136
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default-member.md
|
|
15099
15137
|
*/
|
|
15100
15138
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15101
15139
|
/**
|
|
15102
15140
|
* Forbid named default exports.
|
|
15103
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15141
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-default.md
|
|
15104
15142
|
*/
|
|
15105
15143
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15106
15144
|
/**
|
|
15107
15145
|
* Forbid named exports.
|
|
15108
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15146
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-export.md
|
|
15109
15147
|
*/
|
|
15110
15148
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15111
15149
|
/**
|
|
15112
15150
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15113
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15151
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-namespace.md
|
|
15114
15152
|
*/
|
|
15115
15153
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15116
15154
|
/**
|
|
15117
15155
|
* Forbid Node.js builtin modules.
|
|
15118
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15156
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-nodejs-modules.md
|
|
15119
15157
|
*/
|
|
15120
15158
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15121
15159
|
/**
|
|
15122
15160
|
* Forbid importing packages through relative paths.
|
|
15123
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15161
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-packages.md
|
|
15124
15162
|
*/
|
|
15125
15163
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15126
15164
|
/**
|
|
15127
15165
|
* Forbid importing modules from parent directories.
|
|
15128
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15166
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-parent-imports.md
|
|
15129
15167
|
*/
|
|
15130
15168
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15169
|
+
/**
|
|
15170
|
+
* Forbid importing a default export by a different name.
|
|
15171
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-rename-default.md
|
|
15172
|
+
*/
|
|
15173
|
+
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15131
15174
|
/**
|
|
15132
15175
|
* Enforce which files can be imported in a given folder.
|
|
15133
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15176
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-restricted-paths.md
|
|
15134
15177
|
*/
|
|
15135
15178
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15136
15179
|
/**
|
|
15137
15180
|
* Forbid a module from importing itself.
|
|
15138
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15181
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-self-import.md
|
|
15139
15182
|
*/
|
|
15140
15183
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15141
15184
|
/**
|
|
15142
15185
|
* Forbid unassigned imports.
|
|
15143
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15186
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unassigned-import.md
|
|
15144
15187
|
*/
|
|
15145
15188
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15146
15189
|
/**
|
|
15147
15190
|
* Ensure imports point to a file/module that can be resolved.
|
|
15148
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15191
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unresolved.md
|
|
15149
15192
|
*/
|
|
15150
15193
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15151
15194
|
/**
|
|
15152
15195
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
15153
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15196
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unused-modules.md
|
|
15154
15197
|
*/
|
|
15155
15198
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15156
15199
|
/**
|
|
15157
15200
|
* Forbid unnecessary path segments in import and require statements.
|
|
15158
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15201
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-useless-path-segments.md
|
|
15159
15202
|
*/
|
|
15160
15203
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15161
15204
|
/**
|
|
15162
15205
|
* Forbid webpack loader syntax in imports.
|
|
15163
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15206
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-webpack-loader-syntax.md
|
|
15164
15207
|
*/
|
|
15165
15208
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15166
15209
|
/**
|
|
15167
15210
|
* Enforce a convention in module import order.
|
|
15168
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15211
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/order.md
|
|
15169
15212
|
*/
|
|
15170
15213
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15171
15214
|
/**
|
|
15172
15215
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15173
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15216
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/prefer-default-export.md
|
|
15174
15217
|
*/
|
|
15175
15218
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15176
15219
|
/**
|
|
15177
15220
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15178
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
15221
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/unambiguous.md
|
|
15179
15222
|
*/
|
|
15180
15223
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15181
15224
|
}
|
|
@@ -15220,6 +15263,7 @@ type TypescriptEslintBanTsComment =
|
|
|
15220
15263
|
| {
|
|
15221
15264
|
descriptionFormat?: string;
|
|
15222
15265
|
};
|
|
15266
|
+
|
|
15223
15267
|
minimumDescriptionLength?: number;
|
|
15224
15268
|
},
|
|
15225
15269
|
];
|
|
@@ -15264,6 +15308,7 @@ type TypescriptEslintConsistentTypeAssertions =
|
|
|
15264
15308
|
}
|
|
15265
15309
|
| {
|
|
15266
15310
|
assertionStyle: "as" | "angle-bracket";
|
|
15311
|
+
|
|
15267
15312
|
objectLiteralTypeAssertions?:
|
|
15268
15313
|
| "allow"
|
|
15269
15314
|
| "allow-as-parameter"
|
|
@@ -15286,7 +15331,9 @@ type TypescriptEslintConsistentTypeImports =
|
|
|
15286
15331
|
| [
|
|
15287
15332
|
{
|
|
15288
15333
|
disallowTypeAnnotations?: boolean;
|
|
15334
|
+
|
|
15289
15335
|
fixStyle?: "separate-type-imports" | "inline-type-imports";
|
|
15336
|
+
|
|
15290
15337
|
prefer?: "type-imports" | "no-type-imports";
|
|
15291
15338
|
},
|
|
15292
15339
|
];
|
|
@@ -15296,9 +15343,13 @@ type TypescriptEslintDotNotation =
|
|
|
15296
15343
|
| [
|
|
15297
15344
|
{
|
|
15298
15345
|
allowKeywords?: boolean;
|
|
15346
|
+
|
|
15299
15347
|
allowPattern?: string;
|
|
15348
|
+
|
|
15300
15349
|
allowPrivateClassPropertyAccess?: boolean;
|
|
15350
|
+
|
|
15301
15351
|
allowProtectedClassPropertyAccess?: boolean;
|
|
15352
|
+
|
|
15302
15353
|
allowIndexSignaturePropertyAccess?: boolean;
|
|
15303
15354
|
},
|
|
15304
15355
|
];
|
|
@@ -15337,6 +15388,7 @@ type TypescriptEslintExplicitMemberAccessibility =
|
|
|
15337
15388
|
properties?: "explicit" | "no-public" | "off";
|
|
15338
15389
|
parameterProperties?: "explicit" | "no-public" | "off";
|
|
15339
15390
|
};
|
|
15391
|
+
|
|
15340
15392
|
ignoredMethodNames?: string[];
|
|
15341
15393
|
},
|
|
15342
15394
|
];
|
|
@@ -15373,8 +15425,10 @@ type TypescriptEslintMaxParams =
|
|
|
15373
15425
|
| []
|
|
15374
15426
|
| [
|
|
15375
15427
|
{
|
|
15376
|
-
maximum?: number;
|
|
15377
15428
|
max?: number;
|
|
15429
|
+
|
|
15430
|
+
maximum?: number;
|
|
15431
|
+
|
|
15378
15432
|
countVoidThis?: boolean;
|
|
15379
15433
|
},
|
|
15380
15434
|
];
|
|
@@ -17922,6 +17976,7 @@ type TypescriptEslintNoConfusingVoidExpression =
|
|
|
17922
17976
|
| [
|
|
17923
17977
|
{
|
|
17924
17978
|
ignoreArrowShorthand?: boolean;
|
|
17979
|
+
|
|
17925
17980
|
ignoreVoidOperator?: boolean;
|
|
17926
17981
|
},
|
|
17927
17982
|
];
|
|
@@ -17931,6 +17986,7 @@ type TypescriptEslintNoDuplicateTypeConstituents =
|
|
|
17931
17986
|
| [
|
|
17932
17987
|
{
|
|
17933
17988
|
ignoreIntersections?: boolean;
|
|
17989
|
+
|
|
17934
17990
|
ignoreUnions?: boolean;
|
|
17935
17991
|
},
|
|
17936
17992
|
];
|
|
@@ -17971,7 +18027,9 @@ type TypescriptEslintNoEmptyObjectType =
|
|
|
17971
18027
|
| [
|
|
17972
18028
|
{
|
|
17973
18029
|
allowInterfaces?: "always" | "never" | "with-single-extends";
|
|
18030
|
+
|
|
17974
18031
|
allowObjectTypes?: "always" | "never";
|
|
18032
|
+
|
|
17975
18033
|
allowWithName?: string;
|
|
17976
18034
|
},
|
|
17977
18035
|
];
|
|
@@ -18021,6 +18079,7 @@ type TypescriptEslintNoFloatingPromises =
|
|
|
18021
18079
|
package: string;
|
|
18022
18080
|
}
|
|
18023
18081
|
)[];
|
|
18082
|
+
|
|
18024
18083
|
allowForKnownSafeCalls?: (
|
|
18025
18084
|
| string
|
|
18026
18085
|
| {
|
|
@@ -18052,6 +18111,7 @@ type TypescriptEslintNoInferrableTypes =
|
|
|
18052
18111
|
| [
|
|
18053
18112
|
{
|
|
18054
18113
|
ignoreParameters?: boolean;
|
|
18114
|
+
|
|
18055
18115
|
ignoreProperties?: boolean;
|
|
18056
18116
|
},
|
|
18057
18117
|
];
|
|
@@ -18069,6 +18129,7 @@ type TypescriptEslintNoInvalidVoidType =
|
|
|
18069
18129
|
| [
|
|
18070
18130
|
{
|
|
18071
18131
|
allowInGenericTypeArguments?: boolean | [string, ...string[]];
|
|
18132
|
+
|
|
18072
18133
|
allowAsThisParameter?: boolean;
|
|
18073
18134
|
},
|
|
18074
18135
|
];
|
|
@@ -18083,9 +18144,13 @@ type TypescriptEslintNoMagicNumbers =
|
|
|
18083
18144
|
ignoreArrayIndexes?: boolean;
|
|
18084
18145
|
ignoreDefaultValues?: boolean;
|
|
18085
18146
|
ignoreClassFieldInitialValues?: boolean;
|
|
18147
|
+
|
|
18086
18148
|
ignoreNumericLiteralTypes?: boolean;
|
|
18149
|
+
|
|
18087
18150
|
ignoreEnums?: boolean;
|
|
18151
|
+
|
|
18088
18152
|
ignoreReadonlyClassProperties?: boolean;
|
|
18153
|
+
|
|
18089
18154
|
ignoreTypeIndexes?: boolean;
|
|
18090
18155
|
},
|
|
18091
18156
|
];
|
|
@@ -18107,12 +18172,18 @@ type TypescriptEslintNoMisusedPromises =
|
|
|
18107
18172
|
| boolean
|
|
18108
18173
|
| {
|
|
18109
18174
|
arguments?: boolean;
|
|
18175
|
+
|
|
18110
18176
|
attributes?: boolean;
|
|
18177
|
+
|
|
18111
18178
|
inheritedMethods?: boolean;
|
|
18179
|
+
|
|
18112
18180
|
properties?: boolean;
|
|
18181
|
+
|
|
18113
18182
|
returns?: boolean;
|
|
18183
|
+
|
|
18114
18184
|
variables?: boolean;
|
|
18115
18185
|
};
|
|
18186
|
+
|
|
18116
18187
|
checksSpreads?: boolean;
|
|
18117
18188
|
},
|
|
18118
18189
|
];
|
|
@@ -18132,6 +18203,7 @@ type TypescriptEslintNoRedeclare =
|
|
|
18132
18203
|
| [
|
|
18133
18204
|
{
|
|
18134
18205
|
builtinGlobals?: boolean;
|
|
18206
|
+
|
|
18135
18207
|
ignoreDeclarationMerge?: boolean;
|
|
18136
18208
|
},
|
|
18137
18209
|
];
|
|
@@ -18218,10 +18290,15 @@ type TypescriptEslintNoShadow =
|
|
|
18218
18290
|
| [
|
|
18219
18291
|
{
|
|
18220
18292
|
builtinGlobals?: boolean;
|
|
18293
|
+
|
|
18221
18294
|
hoist?: "all" | "functions" | "never";
|
|
18295
|
+
|
|
18222
18296
|
allow?: string[];
|
|
18297
|
+
|
|
18223
18298
|
ignoreOnInitialization?: boolean;
|
|
18299
|
+
|
|
18224
18300
|
ignoreTypeValueShadow?: boolean;
|
|
18301
|
+
|
|
18225
18302
|
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
18226
18303
|
},
|
|
18227
18304
|
];
|
|
@@ -18323,14 +18400,23 @@ type TypescriptEslintNoUnusedVars =
|
|
|
18323
18400
|
| ("all" | "local")
|
|
18324
18401
|
| {
|
|
18325
18402
|
vars?: "all" | "local";
|
|
18403
|
+
|
|
18326
18404
|
varsIgnorePattern?: string;
|
|
18405
|
+
|
|
18327
18406
|
args?: "all" | "after-used" | "none";
|
|
18328
|
-
|
|
18407
|
+
|
|
18329
18408
|
argsIgnorePattern?: string;
|
|
18409
|
+
|
|
18330
18410
|
caughtErrors?: "all" | "none";
|
|
18411
|
+
|
|
18331
18412
|
caughtErrorsIgnorePattern?: string;
|
|
18413
|
+
|
|
18332
18414
|
destructuredArrayIgnorePattern?: string;
|
|
18415
|
+
|
|
18333
18416
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
18417
|
+
|
|
18418
|
+
ignoreRestSiblings?: boolean;
|
|
18419
|
+
|
|
18334
18420
|
reportUsedIgnorePattern?: boolean;
|
|
18335
18421
|
},
|
|
18336
18422
|
];
|
|
@@ -18341,10 +18427,15 @@ type TypescriptEslintNoUseBeforeDefine =
|
|
|
18341
18427
|
| "nofunc"
|
|
18342
18428
|
| {
|
|
18343
18429
|
functions?: boolean;
|
|
18430
|
+
|
|
18344
18431
|
classes?: boolean;
|
|
18432
|
+
|
|
18345
18433
|
enums?: boolean;
|
|
18434
|
+
|
|
18346
18435
|
variables?: boolean;
|
|
18436
|
+
|
|
18347
18437
|
typedefs?: boolean;
|
|
18438
|
+
|
|
18348
18439
|
ignoreTypeReferences?: boolean;
|
|
18349
18440
|
allowNamedExports?: boolean;
|
|
18350
18441
|
},
|
|
@@ -18363,6 +18454,7 @@ type TypescriptEslintOnlyThrowError =
|
|
|
18363
18454
|
| [
|
|
18364
18455
|
{
|
|
18365
18456
|
allowThrowingAny?: boolean;
|
|
18457
|
+
|
|
18366
18458
|
allowThrowingUnknown?: boolean;
|
|
18367
18459
|
},
|
|
18368
18460
|
];
|
|
@@ -18380,6 +18472,7 @@ type TypescriptEslintParameterProperties =
|
|
|
18380
18472
|
| "protected readonly"
|
|
18381
18473
|
| "public readonly"
|
|
18382
18474
|
)[];
|
|
18475
|
+
|
|
18383
18476
|
prefer?: "class-property" | "parameter-property";
|
|
18384
18477
|
},
|
|
18385
18478
|
];
|
|
@@ -18439,8 +18532,11 @@ type TypescriptEslintPreferNullishCoalescing =
|
|
|
18439
18532
|
| [
|
|
18440
18533
|
{
|
|
18441
18534
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
18535
|
+
|
|
18442
18536
|
ignoreConditionalTests?: boolean;
|
|
18537
|
+
|
|
18443
18538
|
ignoreMixedLogicalExpressions?: boolean;
|
|
18539
|
+
|
|
18444
18540
|
ignorePrimitives?:
|
|
18445
18541
|
| {
|
|
18446
18542
|
bigint?: boolean;
|
|
@@ -18450,6 +18546,7 @@ type TypescriptEslintPreferNullishCoalescing =
|
|
|
18450
18546
|
[k: string]: unknown | undefined;
|
|
18451
18547
|
}
|
|
18452
18548
|
| true;
|
|
18549
|
+
|
|
18453
18550
|
ignoreTernaryTests?: boolean;
|
|
18454
18551
|
},
|
|
18455
18552
|
];
|
|
@@ -18513,8 +18610,11 @@ type TypescriptEslintPreferReadonlyParameterTypes =
|
|
|
18513
18610
|
package: string;
|
|
18514
18611
|
}
|
|
18515
18612
|
)[];
|
|
18613
|
+
|
|
18516
18614
|
checkParameterProperties?: boolean;
|
|
18615
|
+
|
|
18517
18616
|
ignoreInferredTypes?: boolean;
|
|
18617
|
+
|
|
18518
18618
|
treatMethodsAsReadonly?: boolean;
|
|
18519
18619
|
},
|
|
18520
18620
|
];
|
|
@@ -18534,9 +18634,13 @@ type TypescriptEslintPromiseFunctionAsync =
|
|
|
18534
18634
|
allowAny?: boolean;
|
|
18535
18635
|
|
|
18536
18636
|
allowedPromiseNames?: string[];
|
|
18637
|
+
|
|
18537
18638
|
checkArrowFunctions?: boolean;
|
|
18639
|
+
|
|
18538
18640
|
checkFunctionDeclarations?: boolean;
|
|
18641
|
+
|
|
18539
18642
|
checkFunctionExpressions?: boolean;
|
|
18643
|
+
|
|
18540
18644
|
checkMethodDeclarations?: boolean;
|
|
18541
18645
|
},
|
|
18542
18646
|
];
|
|
@@ -18589,7 +18693,15 @@ type TypescriptEslintRestrictTemplateExpressions =
|
|
|
18589
18693
|
// ----- @typescript-eslint/return-await -----
|
|
18590
18694
|
type TypescriptEslintReturnAwait =
|
|
18591
18695
|
| []
|
|
18592
|
-
| [
|
|
18696
|
+
| [
|
|
18697
|
+
(
|
|
18698
|
+
| "always"
|
|
18699
|
+
| "error-handling-correctness-only"
|
|
18700
|
+
| "in-try-catch"
|
|
18701
|
+
| "never"
|
|
18702
|
+
) &
|
|
18703
|
+
string,
|
|
18704
|
+
];
|
|
18593
18705
|
// ----- @typescript-eslint/sort-type-constituents -----
|
|
18594
18706
|
type TypescriptEslintSortTypeConstituents =
|
|
18595
18707
|
| []
|
|
@@ -18623,12 +18735,19 @@ type TypescriptEslintStrictBooleanExpressions =
|
|
|
18623
18735
|
| [
|
|
18624
18736
|
{
|
|
18625
18737
|
allowString?: boolean;
|
|
18738
|
+
|
|
18626
18739
|
allowNumber?: boolean;
|
|
18740
|
+
|
|
18627
18741
|
allowNullableObject?: boolean;
|
|
18742
|
+
|
|
18628
18743
|
allowNullableBoolean?: boolean;
|
|
18744
|
+
|
|
18629
18745
|
allowNullableString?: boolean;
|
|
18746
|
+
|
|
18630
18747
|
allowNullableNumber?: boolean;
|
|
18748
|
+
|
|
18631
18749
|
allowNullableEnum?: boolean;
|
|
18750
|
+
|
|
18632
18751
|
allowAny?: boolean;
|
|
18633
18752
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
18634
18753
|
},
|
|
@@ -18649,7 +18768,9 @@ type TypescriptEslintTripleSlashReference =
|
|
|
18649
18768
|
| [
|
|
18650
18769
|
{
|
|
18651
18770
|
lib?: "always" | "never";
|
|
18771
|
+
|
|
18652
18772
|
path?: "always" | "never";
|
|
18773
|
+
|
|
18653
18774
|
types?: "always" | "never" | "prefer-import";
|
|
18654
18775
|
},
|
|
18655
18776
|
];
|
|
@@ -18659,12 +18780,19 @@ type TypescriptEslintTypedef =
|
|
|
18659
18780
|
| [
|
|
18660
18781
|
{
|
|
18661
18782
|
arrayDestructuring?: boolean;
|
|
18783
|
+
|
|
18662
18784
|
arrowParameter?: boolean;
|
|
18785
|
+
|
|
18663
18786
|
memberVariableDeclaration?: boolean;
|
|
18787
|
+
|
|
18664
18788
|
objectDestructuring?: boolean;
|
|
18789
|
+
|
|
18665
18790
|
parameter?: boolean;
|
|
18791
|
+
|
|
18666
18792
|
propertyDeclaration?: boolean;
|
|
18793
|
+
|
|
18667
18794
|
variableDeclaration?: boolean;
|
|
18795
|
+
|
|
18668
18796
|
variableDeclarationIgnoreFunction?: boolean;
|
|
18669
18797
|
},
|
|
18670
18798
|
];
|
|
@@ -18932,6 +19060,15 @@ type ImportNoRelativeParentImports =
|
|
|
18932
19060
|
ignore?: [string, ...string[]];
|
|
18933
19061
|
},
|
|
18934
19062
|
];
|
|
19063
|
+
// ----- import/no-rename-default -----
|
|
19064
|
+
type ImportNoRenameDefault =
|
|
19065
|
+
| []
|
|
19066
|
+
| [
|
|
19067
|
+
{
|
|
19068
|
+
commonjs?: boolean;
|
|
19069
|
+
preventRenamingBindings?: boolean;
|
|
19070
|
+
},
|
|
19071
|
+
];
|
|
18935
19072
|
// ----- import/no-restricted-paths -----
|
|
18936
19073
|
type ImportNoRestrictedPaths =
|
|
18937
19074
|
| []
|