@jsse/eslint-config 0.1.18 → 0.1.19
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.cjs +67 -4
- package/dist/index.d.cts +145 -88
- package/dist/index.d.ts +145 -88
- package/dist/index.js +67 -4
- package/package.json +11 -11
package/dist/index.d.cts
CHANGED
|
@@ -4329,42 +4329,42 @@ interface IgnoresRuleOptions {}
|
|
|
4329
4329
|
interface ImportsRuleOptions {
|
|
4330
4330
|
/**
|
|
4331
4331
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4332
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4332
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/consistent-type-specifier-style.md
|
|
4333
4333
|
*/
|
|
4334
4334
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4335
4335
|
/**
|
|
4336
4336
|
* Ensure a default export is present, given a default import.
|
|
4337
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4337
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/default.md
|
|
4338
4338
|
*/
|
|
4339
4339
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4340
4340
|
/**
|
|
4341
4341
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4342
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4342
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/dynamic-import-chunkname.md
|
|
4343
4343
|
*/
|
|
4344
4344
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4345
4345
|
/**
|
|
4346
4346
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4347
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4347
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/export.md
|
|
4348
4348
|
*/
|
|
4349
4349
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4350
4350
|
/**
|
|
4351
4351
|
* Ensure all exports appear after other statements.
|
|
4352
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4352
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/exports-last.md
|
|
4353
4353
|
*/
|
|
4354
4354
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4355
4355
|
/**
|
|
4356
4356
|
* Ensure consistent use of file extension within the import path.
|
|
4357
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4357
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/extensions.md
|
|
4358
4358
|
*/
|
|
4359
4359
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4360
4360
|
/**
|
|
4361
4361
|
* Ensure all imports appear before other statements.
|
|
4362
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4362
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/first.md
|
|
4363
4363
|
*/
|
|
4364
4364
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4365
4365
|
/**
|
|
4366
4366
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4367
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4367
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/group-exports.md
|
|
4368
4368
|
*/
|
|
4369
4369
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4370
4370
|
/**
|
|
@@ -4375,182 +4375,182 @@ interface ImportsRuleOptions {
|
|
|
4375
4375
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4376
4376
|
/**
|
|
4377
4377
|
* Enforce the maximum number of dependencies a module can have.
|
|
4378
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/max-dependencies.md
|
|
4379
4379
|
*/
|
|
4380
4380
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4381
4381
|
/**
|
|
4382
4382
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4383
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/named.md
|
|
4384
4384
|
*/
|
|
4385
4385
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4386
4386
|
/**
|
|
4387
4387
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4388
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/namespace.md
|
|
4389
4389
|
*/
|
|
4390
4390
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4391
4391
|
/**
|
|
4392
4392
|
* Enforce a newline after import statements.
|
|
4393
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4393
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/newline-after-import.md
|
|
4394
4394
|
*/
|
|
4395
4395
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4396
4396
|
/**
|
|
4397
4397
|
* Forbid import of modules using absolute paths.
|
|
4398
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4398
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-absolute-path.md
|
|
4399
4399
|
*/
|
|
4400
4400
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4401
4401
|
/**
|
|
4402
4402
|
* Forbid AMD `require` and `define` calls.
|
|
4403
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4403
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-amd.md
|
|
4404
4404
|
*/
|
|
4405
4405
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4406
4406
|
/**
|
|
4407
4407
|
* Forbid anonymous values as default exports.
|
|
4408
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4408
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-anonymous-default-export.md
|
|
4409
4409
|
*/
|
|
4410
4410
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4411
4411
|
/**
|
|
4412
4412
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4413
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4413
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-commonjs.md
|
|
4414
4414
|
*/
|
|
4415
4415
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4416
4416
|
/**
|
|
4417
4417
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4418
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4418
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-cycle.md
|
|
4419
4419
|
*/
|
|
4420
4420
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4421
4421
|
/**
|
|
4422
4422
|
* Forbid default exports.
|
|
4423
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4423
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-default-export.md
|
|
4424
4424
|
*/
|
|
4425
4425
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4426
4426
|
/**
|
|
4427
4427
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4428
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4428
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-deprecated.md
|
|
4429
4429
|
*/
|
|
4430
4430
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4431
4431
|
/**
|
|
4432
4432
|
* Forbid repeated import of the same module in multiple places.
|
|
4433
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-duplicates.md
|
|
4434
4434
|
*/
|
|
4435
4435
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4436
4436
|
/**
|
|
4437
4437
|
* Forbid `require()` calls with expressions.
|
|
4438
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-dynamic-require.md
|
|
4439
4439
|
*/
|
|
4440
4440
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4441
4441
|
/**
|
|
4442
4442
|
* Forbid empty named import blocks.
|
|
4443
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-empty-named-blocks.md
|
|
4444
4444
|
*/
|
|
4445
4445
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4446
4446
|
/**
|
|
4447
4447
|
* Forbid the use of extraneous packages.
|
|
4448
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-extraneous-dependencies.md
|
|
4449
4449
|
*/
|
|
4450
4450
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4451
4451
|
/**
|
|
4452
4452
|
* Forbid import statements with CommonJS module.exports.
|
|
4453
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-import-module-exports.md
|
|
4454
4454
|
*/
|
|
4455
4455
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4456
4456
|
/**
|
|
4457
4457
|
* Forbid importing the submodules of other modules.
|
|
4458
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-internal-modules.md
|
|
4459
4459
|
*/
|
|
4460
4460
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4461
4461
|
/**
|
|
4462
4462
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4463
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-mutable-exports.md
|
|
4464
4464
|
*/
|
|
4465
4465
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4466
4466
|
/**
|
|
4467
4467
|
* Forbid use of exported name as identifier of default export.
|
|
4468
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default.md
|
|
4469
4469
|
*/
|
|
4470
4470
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4471
4471
|
/**
|
|
4472
4472
|
* Forbid use of exported name as property of default export.
|
|
4473
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default-member.md
|
|
4474
4474
|
*/
|
|
4475
4475
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4476
4476
|
/**
|
|
4477
4477
|
* Forbid named default exports.
|
|
4478
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-default.md
|
|
4479
4479
|
*/
|
|
4480
4480
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4481
4481
|
/**
|
|
4482
4482
|
* Forbid named exports.
|
|
4483
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-export.md
|
|
4484
4484
|
*/
|
|
4485
4485
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4486
4486
|
/**
|
|
4487
4487
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4488
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-namespace.md
|
|
4489
4489
|
*/
|
|
4490
4490
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4491
4491
|
/**
|
|
4492
4492
|
* Forbid Node.js builtin modules.
|
|
4493
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-nodejs-modules.md
|
|
4494
4494
|
*/
|
|
4495
4495
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4496
4496
|
/**
|
|
4497
4497
|
* Forbid importing packages through relative paths.
|
|
4498
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-packages.md
|
|
4499
4499
|
*/
|
|
4500
4500
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4501
4501
|
/**
|
|
4502
4502
|
* Forbid importing modules from parent directories.
|
|
4503
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-parent-imports.md
|
|
4504
4504
|
*/
|
|
4505
4505
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4506
4506
|
/**
|
|
4507
4507
|
* Enforce which files can be imported in a given folder.
|
|
4508
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-restricted-paths.md
|
|
4509
4509
|
*/
|
|
4510
4510
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4511
4511
|
/**
|
|
4512
4512
|
* Forbid a module from importing itself.
|
|
4513
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-self-import.md
|
|
4514
4514
|
*/
|
|
4515
4515
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4516
4516
|
/**
|
|
4517
4517
|
* Forbid unassigned imports.
|
|
4518
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unassigned-import.md
|
|
4519
4519
|
*/
|
|
4520
4520
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4521
4521
|
/**
|
|
4522
4522
|
* Ensure imports point to a file/module that can be resolved.
|
|
4523
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unresolved.md
|
|
4524
4524
|
*/
|
|
4525
4525
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4526
4526
|
/**
|
|
4527
4527
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4528
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unused-modules.md
|
|
4529
4529
|
*/
|
|
4530
4530
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4531
4531
|
/**
|
|
4532
4532
|
* Forbid unnecessary path segments in import and require statements.
|
|
4533
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-useless-path-segments.md
|
|
4534
4534
|
*/
|
|
4535
4535
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4536
4536
|
/**
|
|
4537
4537
|
* Forbid webpack loader syntax in imports.
|
|
4538
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-webpack-loader-syntax.md
|
|
4539
4539
|
*/
|
|
4540
4540
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4541
4541
|
/**
|
|
4542
4542
|
* Enforce a convention in module import order.
|
|
4543
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/order.md
|
|
4544
4544
|
*/
|
|
4545
4545
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4546
4546
|
/**
|
|
4547
4547
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4548
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4548
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/prefer-default-export.md
|
|
4549
4549
|
*/
|
|
4550
4550
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4551
4551
|
/**
|
|
4552
4552
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4553
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4553
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/unambiguous.md
|
|
4554
4554
|
*/
|
|
4555
4555
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4556
4556
|
}
|
|
@@ -4932,11 +4932,21 @@ interface JavascriptRuleOptions {
|
|
|
4932
4932
|
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
4933
4933
|
*/
|
|
4934
4934
|
"unused-imports/no-unused-imports"?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
|
|
4935
|
+
/**
|
|
4936
|
+
* Disallow unused variables
|
|
4937
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
4938
|
+
*/
|
|
4939
|
+
"unused-imports/no-unused-imports-ts"?: Linter.RuleEntry<UnusedImportsNoUnusedImportsTs>;
|
|
4935
4940
|
/**
|
|
4936
4941
|
* Disallow unused variables
|
|
4937
4942
|
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
4938
4943
|
*/
|
|
4939
4944
|
"unused-imports/no-unused-vars"?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
|
|
4945
|
+
/**
|
|
4946
|
+
* Disallow unused variables
|
|
4947
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
4948
|
+
*/
|
|
4949
|
+
"unused-imports/no-unused-vars-ts"?: Linter.RuleEntry<UnusedImportsNoUnusedVarsTs>;
|
|
4940
4950
|
}
|
|
4941
4951
|
|
|
4942
4952
|
/* ======= Declarations ======= */
|
|
@@ -4956,6 +4966,22 @@ type UnusedImportsNoUnusedImports =
|
|
|
4956
4966
|
destructuredArrayIgnorePattern?: string;
|
|
4957
4967
|
},
|
|
4958
4968
|
];
|
|
4969
|
+
// ----- unused-imports/no-unused-imports-ts -----
|
|
4970
|
+
type UnusedImportsNoUnusedImportsTs =
|
|
4971
|
+
| []
|
|
4972
|
+
| [
|
|
4973
|
+
| ("all" | "local")
|
|
4974
|
+
| {
|
|
4975
|
+
vars?: "all" | "local";
|
|
4976
|
+
varsIgnorePattern?: string;
|
|
4977
|
+
args?: "all" | "after-used" | "none";
|
|
4978
|
+
ignoreRestSiblings?: boolean;
|
|
4979
|
+
argsIgnorePattern?: string;
|
|
4980
|
+
caughtErrors?: "all" | "none";
|
|
4981
|
+
caughtErrorsIgnorePattern?: string;
|
|
4982
|
+
destructuredArrayIgnorePattern?: string;
|
|
4983
|
+
},
|
|
4984
|
+
];
|
|
4959
4985
|
// ----- unused-imports/no-unused-vars -----
|
|
4960
4986
|
type UnusedImportsNoUnusedVars =
|
|
4961
4987
|
| []
|
|
@@ -4972,6 +4998,22 @@ type UnusedImportsNoUnusedVars =
|
|
|
4972
4998
|
destructuredArrayIgnorePattern?: string;
|
|
4973
4999
|
},
|
|
4974
5000
|
];
|
|
5001
|
+
// ----- unused-imports/no-unused-vars-ts -----
|
|
5002
|
+
type UnusedImportsNoUnusedVarsTs =
|
|
5003
|
+
| []
|
|
5004
|
+
| [
|
|
5005
|
+
| ("all" | "local")
|
|
5006
|
+
| {
|
|
5007
|
+
vars?: "all" | "local";
|
|
5008
|
+
varsIgnorePattern?: string;
|
|
5009
|
+
args?: "all" | "after-used" | "none";
|
|
5010
|
+
ignoreRestSiblings?: boolean;
|
|
5011
|
+
argsIgnorePattern?: string;
|
|
5012
|
+
caughtErrors?: "all" | "none";
|
|
5013
|
+
caughtErrorsIgnorePattern?: string;
|
|
5014
|
+
destructuredArrayIgnorePattern?: string;
|
|
5015
|
+
},
|
|
5016
|
+
];
|
|
4975
5017
|
|
|
4976
5018
|
/* eslint-disable */
|
|
4977
5019
|
/* prettier-ignore */
|
|
@@ -14303,6 +14345,11 @@ interface TypescriptRuleOptions {
|
|
|
14303
14345
|
* @see https://typescript-eslint.io/rules/no-empty-interface
|
|
14304
14346
|
*/
|
|
14305
14347
|
"@typescript-eslint/no-empty-interface"?: Linter.RuleEntry<TypescriptEslintNoEmptyInterface>;
|
|
14348
|
+
/**
|
|
14349
|
+
* Disallow accidentally using the "empty object" type
|
|
14350
|
+
* @see https://typescript-eslint.io/rules/no-empty-object-type
|
|
14351
|
+
*/
|
|
14352
|
+
"@typescript-eslint/no-empty-object-type"?: Linter.RuleEntry<TypescriptEslintNoEmptyObjectType>;
|
|
14306
14353
|
/**
|
|
14307
14354
|
* Disallow the `any` type
|
|
14308
14355
|
* @see https://typescript-eslint.io/rules/no-explicit-any
|
|
@@ -14813,42 +14860,42 @@ interface TypescriptRuleOptions {
|
|
|
14813
14860
|
>;
|
|
14814
14861
|
/**
|
|
14815
14862
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
14816
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14863
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/consistent-type-specifier-style.md
|
|
14817
14864
|
*/
|
|
14818
14865
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
14819
14866
|
/**
|
|
14820
14867
|
* Ensure a default export is present, given a default import.
|
|
14821
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14868
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/default.md
|
|
14822
14869
|
*/
|
|
14823
14870
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
14824
14871
|
/**
|
|
14825
14872
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
14826
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14873
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/dynamic-import-chunkname.md
|
|
14827
14874
|
*/
|
|
14828
14875
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
14829
14876
|
/**
|
|
14830
14877
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
14831
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14878
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/export.md
|
|
14832
14879
|
*/
|
|
14833
14880
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
14834
14881
|
/**
|
|
14835
14882
|
* Ensure all exports appear after other statements.
|
|
14836
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14883
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/exports-last.md
|
|
14837
14884
|
*/
|
|
14838
14885
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
14839
14886
|
/**
|
|
14840
14887
|
* Ensure consistent use of file extension within the import path.
|
|
14841
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14888
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/extensions.md
|
|
14842
14889
|
*/
|
|
14843
14890
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
14844
14891
|
/**
|
|
14845
14892
|
* Ensure all imports appear before other statements.
|
|
14846
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14893
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/first.md
|
|
14847
14894
|
*/
|
|
14848
14895
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
14849
14896
|
/**
|
|
14850
14897
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
14851
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14898
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/group-exports.md
|
|
14852
14899
|
*/
|
|
14853
14900
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
14854
14901
|
/**
|
|
@@ -14859,182 +14906,182 @@ interface TypescriptRuleOptions {
|
|
|
14859
14906
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
14860
14907
|
/**
|
|
14861
14908
|
* Enforce the maximum number of dependencies a module can have.
|
|
14862
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/max-dependencies.md
|
|
14863
14910
|
*/
|
|
14864
14911
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
14865
14912
|
/**
|
|
14866
14913
|
* Ensure named imports correspond to a named export in the remote file.
|
|
14867
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/named.md
|
|
14868
14915
|
*/
|
|
14869
14916
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
14870
14917
|
/**
|
|
14871
14918
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
14872
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/namespace.md
|
|
14873
14920
|
*/
|
|
14874
14921
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
14875
14922
|
/**
|
|
14876
14923
|
* Enforce a newline after import statements.
|
|
14877
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/newline-after-import.md
|
|
14878
14925
|
*/
|
|
14879
14926
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
14880
14927
|
/**
|
|
14881
14928
|
* Forbid import of modules using absolute paths.
|
|
14882
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14929
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-absolute-path.md
|
|
14883
14930
|
*/
|
|
14884
14931
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
14885
14932
|
/**
|
|
14886
14933
|
* Forbid AMD `require` and `define` calls.
|
|
14887
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14934
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-amd.md
|
|
14888
14935
|
*/
|
|
14889
14936
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
14890
14937
|
/**
|
|
14891
14938
|
* Forbid anonymous values as default exports.
|
|
14892
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14939
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-anonymous-default-export.md
|
|
14893
14940
|
*/
|
|
14894
14941
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
14895
14942
|
/**
|
|
14896
14943
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
14897
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14944
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-commonjs.md
|
|
14898
14945
|
*/
|
|
14899
14946
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
14900
14947
|
/**
|
|
14901
14948
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
14902
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14949
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-cycle.md
|
|
14903
14950
|
*/
|
|
14904
14951
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
14905
14952
|
/**
|
|
14906
14953
|
* Forbid default exports.
|
|
14907
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14954
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-default-export.md
|
|
14908
14955
|
*/
|
|
14909
14956
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
14910
14957
|
/**
|
|
14911
14958
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
14912
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14959
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-deprecated.md
|
|
14913
14960
|
*/
|
|
14914
14961
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
14915
14962
|
/**
|
|
14916
14963
|
* Forbid repeated import of the same module in multiple places.
|
|
14917
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14964
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-duplicates.md
|
|
14918
14965
|
*/
|
|
14919
14966
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
14920
14967
|
/**
|
|
14921
14968
|
* Forbid `require()` calls with expressions.
|
|
14922
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14969
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-dynamic-require.md
|
|
14923
14970
|
*/
|
|
14924
14971
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
14925
14972
|
/**
|
|
14926
14973
|
* Forbid empty named import blocks.
|
|
14927
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14974
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-empty-named-blocks.md
|
|
14928
14975
|
*/
|
|
14929
14976
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
14930
14977
|
/**
|
|
14931
14978
|
* Forbid the use of extraneous packages.
|
|
14932
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14979
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-extraneous-dependencies.md
|
|
14933
14980
|
*/
|
|
14934
14981
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
14935
14982
|
/**
|
|
14936
14983
|
* Forbid import statements with CommonJS module.exports.
|
|
14937
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14984
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-import-module-exports.md
|
|
14938
14985
|
*/
|
|
14939
14986
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
14940
14987
|
/**
|
|
14941
14988
|
* Forbid importing the submodules of other modules.
|
|
14942
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14989
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-internal-modules.md
|
|
14943
14990
|
*/
|
|
14944
14991
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
14945
14992
|
/**
|
|
14946
14993
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
14947
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14994
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-mutable-exports.md
|
|
14948
14995
|
*/
|
|
14949
14996
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
14950
14997
|
/**
|
|
14951
14998
|
* Forbid use of exported name as identifier of default export.
|
|
14952
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14999
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default.md
|
|
14953
15000
|
*/
|
|
14954
15001
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
14955
15002
|
/**
|
|
14956
15003
|
* Forbid use of exported name as property of default export.
|
|
14957
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15004
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default-member.md
|
|
14958
15005
|
*/
|
|
14959
15006
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
14960
15007
|
/**
|
|
14961
15008
|
* Forbid named default exports.
|
|
14962
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15009
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-default.md
|
|
14963
15010
|
*/
|
|
14964
15011
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
14965
15012
|
/**
|
|
14966
15013
|
* Forbid named exports.
|
|
14967
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15014
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-export.md
|
|
14968
15015
|
*/
|
|
14969
15016
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
14970
15017
|
/**
|
|
14971
15018
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
14972
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15019
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-namespace.md
|
|
14973
15020
|
*/
|
|
14974
15021
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
14975
15022
|
/**
|
|
14976
15023
|
* Forbid Node.js builtin modules.
|
|
14977
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15024
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-nodejs-modules.md
|
|
14978
15025
|
*/
|
|
14979
15026
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
14980
15027
|
/**
|
|
14981
15028
|
* Forbid importing packages through relative paths.
|
|
14982
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15029
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-packages.md
|
|
14983
15030
|
*/
|
|
14984
15031
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
14985
15032
|
/**
|
|
14986
15033
|
* Forbid importing modules from parent directories.
|
|
14987
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15034
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-parent-imports.md
|
|
14988
15035
|
*/
|
|
14989
15036
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
14990
15037
|
/**
|
|
14991
15038
|
* Enforce which files can be imported in a given folder.
|
|
14992
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15039
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-restricted-paths.md
|
|
14993
15040
|
*/
|
|
14994
15041
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
14995
15042
|
/**
|
|
14996
15043
|
* Forbid a module from importing itself.
|
|
14997
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15044
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-self-import.md
|
|
14998
15045
|
*/
|
|
14999
15046
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15000
15047
|
/**
|
|
15001
15048
|
* Forbid unassigned imports.
|
|
15002
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15049
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unassigned-import.md
|
|
15003
15050
|
*/
|
|
15004
15051
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15005
15052
|
/**
|
|
15006
15053
|
* Ensure imports point to a file/module that can be resolved.
|
|
15007
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15054
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unresolved.md
|
|
15008
15055
|
*/
|
|
15009
15056
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15010
15057
|
/**
|
|
15011
15058
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
15012
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15059
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unused-modules.md
|
|
15013
15060
|
*/
|
|
15014
15061
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15015
15062
|
/**
|
|
15016
15063
|
* Forbid unnecessary path segments in import and require statements.
|
|
15017
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15064
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-useless-path-segments.md
|
|
15018
15065
|
*/
|
|
15019
15066
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15020
15067
|
/**
|
|
15021
15068
|
* Forbid webpack loader syntax in imports.
|
|
15022
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15069
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-webpack-loader-syntax.md
|
|
15023
15070
|
*/
|
|
15024
15071
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15025
15072
|
/**
|
|
15026
15073
|
* Enforce a convention in module import order.
|
|
15027
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15074
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/order.md
|
|
15028
15075
|
*/
|
|
15029
15076
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15030
15077
|
/**
|
|
15031
15078
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15032
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15079
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/prefer-default-export.md
|
|
15033
15080
|
*/
|
|
15034
15081
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15035
15082
|
/**
|
|
15036
15083
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15037
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15084
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/unambiguous.md
|
|
15038
15085
|
*/
|
|
15039
15086
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15040
15087
|
}
|
|
@@ -18394,6 +18441,16 @@ type TypescriptEslintNoEmptyInterface =
|
|
|
18394
18441
|
allowSingleExtends?: boolean;
|
|
18395
18442
|
},
|
|
18396
18443
|
];
|
|
18444
|
+
// ----- @typescript-eslint/no-empty-object-type -----
|
|
18445
|
+
type TypescriptEslintNoEmptyObjectType =
|
|
18446
|
+
| []
|
|
18447
|
+
| [
|
|
18448
|
+
{
|
|
18449
|
+
allowInterfaces?: "always" | "never" | "with-single-extends";
|
|
18450
|
+
allowObjectTypes?: "always" | "in-type-alias-with-name" | "never";
|
|
18451
|
+
allowWithName?: string;
|
|
18452
|
+
},
|
|
18453
|
+
];
|
|
18397
18454
|
// ----- @typescript-eslint/no-explicit-any -----
|
|
18398
18455
|
type TypescriptEslintNoExplicitAny =
|
|
18399
18456
|
| []
|