@jsse/eslint-config 0.2.17 → 0.2.18
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 +9 -29
- package/dist/index.d.cts +196 -104
- package/dist/index.d.ts +196 -104
- package/dist/index.js +9 -29
- package/package.json +12 -12
package/dist/index.d.cts
CHANGED
|
@@ -4344,233 +4344,233 @@ interface IgnoresRuleOptions {}
|
|
|
4344
4344
|
interface ImportsRuleOptions {
|
|
4345
4345
|
/**
|
|
4346
4346
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4347
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4347
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
|
|
4348
4348
|
*/
|
|
4349
4349
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4350
4350
|
/**
|
|
4351
4351
|
* Ensure a default export is present, given a default import.
|
|
4352
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4352
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
|
|
4353
4353
|
*/
|
|
4354
4354
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4355
4355
|
/**
|
|
4356
4356
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4357
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4357
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
|
|
4358
4358
|
*/
|
|
4359
4359
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4360
4360
|
/**
|
|
4361
4361
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4362
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4362
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
|
|
4363
4363
|
*/
|
|
4364
4364
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4365
4365
|
/**
|
|
4366
4366
|
* Ensure all exports appear after other statements.
|
|
4367
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4367
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
|
|
4368
4368
|
*/
|
|
4369
4369
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4370
4370
|
/**
|
|
4371
4371
|
* Ensure consistent use of file extension within the import path.
|
|
4372
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4372
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
|
|
4373
4373
|
*/
|
|
4374
4374
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4375
4375
|
/**
|
|
4376
4376
|
* Ensure all imports appear before other statements.
|
|
4377
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4377
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
|
|
4378
4378
|
*/
|
|
4379
4379
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4380
4380
|
/**
|
|
4381
4381
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4382
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4382
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
|
|
4383
4383
|
*/
|
|
4384
4384
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4385
4385
|
/**
|
|
4386
4386
|
* Replaced by `import-x/first`.
|
|
4387
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4387
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
|
|
4388
4388
|
* @deprecated
|
|
4389
4389
|
*/
|
|
4390
4390
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4391
4391
|
/**
|
|
4392
4392
|
* Enforce the maximum number of dependencies a module can have.
|
|
4393
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4393
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
|
|
4394
4394
|
*/
|
|
4395
4395
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4396
4396
|
/**
|
|
4397
4397
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4398
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4398
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
|
|
4399
4399
|
*/
|
|
4400
4400
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4401
4401
|
/**
|
|
4402
4402
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4403
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4403
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
|
|
4404
4404
|
*/
|
|
4405
4405
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4406
4406
|
/**
|
|
4407
4407
|
* Enforce a newline after import statements.
|
|
4408
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4408
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
|
|
4409
4409
|
*/
|
|
4410
4410
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4411
4411
|
/**
|
|
4412
4412
|
* Forbid import of modules using absolute paths.
|
|
4413
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4413
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
|
|
4414
4414
|
*/
|
|
4415
4415
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4416
4416
|
/**
|
|
4417
4417
|
* Forbid AMD `require` and `define` calls.
|
|
4418
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4418
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
|
|
4419
4419
|
*/
|
|
4420
4420
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4421
4421
|
/**
|
|
4422
4422
|
* Forbid anonymous values as default exports.
|
|
4423
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4423
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
|
|
4424
4424
|
*/
|
|
4425
4425
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4426
4426
|
/**
|
|
4427
4427
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4428
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4428
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
|
|
4429
4429
|
*/
|
|
4430
4430
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4431
4431
|
/**
|
|
4432
4432
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4433
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
|
|
4434
4434
|
*/
|
|
4435
4435
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4436
4436
|
/**
|
|
4437
4437
|
* Forbid default exports.
|
|
4438
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
|
|
4439
4439
|
*/
|
|
4440
4440
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4441
4441
|
/**
|
|
4442
4442
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4443
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
|
|
4444
4444
|
*/
|
|
4445
4445
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4446
4446
|
/**
|
|
4447
4447
|
* Forbid repeated import of the same module in multiple places.
|
|
4448
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
|
|
4449
4449
|
*/
|
|
4450
4450
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4451
4451
|
/**
|
|
4452
4452
|
* Forbid `require()` calls with expressions.
|
|
4453
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
|
|
4454
4454
|
*/
|
|
4455
4455
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4456
4456
|
/**
|
|
4457
4457
|
* Forbid empty named import blocks.
|
|
4458
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
|
|
4459
4459
|
*/
|
|
4460
4460
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4461
4461
|
/**
|
|
4462
4462
|
* Forbid the use of extraneous packages.
|
|
4463
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
|
|
4464
4464
|
*/
|
|
4465
4465
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4466
4466
|
/**
|
|
4467
4467
|
* Forbid import statements with CommonJS module.exports.
|
|
4468
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
|
|
4469
4469
|
*/
|
|
4470
4470
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4471
4471
|
/**
|
|
4472
4472
|
* Forbid importing the submodules of other modules.
|
|
4473
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
|
|
4474
4474
|
*/
|
|
4475
4475
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4476
4476
|
/**
|
|
4477
4477
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4478
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
|
|
4479
4479
|
*/
|
|
4480
4480
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4481
4481
|
/**
|
|
4482
4482
|
* Forbid use of exported name as identifier of default export.
|
|
4483
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
|
|
4484
4484
|
*/
|
|
4485
4485
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4486
4486
|
/**
|
|
4487
4487
|
* Forbid use of exported name as property of default export.
|
|
4488
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
|
|
4489
4489
|
*/
|
|
4490
4490
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4491
4491
|
/**
|
|
4492
4492
|
* Forbid named default exports.
|
|
4493
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
|
|
4494
4494
|
*/
|
|
4495
4495
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4496
4496
|
/**
|
|
4497
4497
|
* Forbid named exports.
|
|
4498
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
|
|
4499
4499
|
*/
|
|
4500
4500
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4501
4501
|
/**
|
|
4502
4502
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4503
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
|
|
4504
4504
|
*/
|
|
4505
4505
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4506
4506
|
/**
|
|
4507
4507
|
* Forbid Node.js builtin modules.
|
|
4508
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
|
|
4509
4509
|
*/
|
|
4510
4510
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4511
4511
|
/**
|
|
4512
4512
|
* Forbid importing packages through relative paths.
|
|
4513
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
|
|
4514
4514
|
*/
|
|
4515
4515
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4516
4516
|
/**
|
|
4517
4517
|
* Forbid importing modules from parent directories.
|
|
4518
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
|
|
4519
4519
|
*/
|
|
4520
4520
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4521
4521
|
/**
|
|
4522
4522
|
* Forbid importing a default export by a different name.
|
|
4523
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
|
|
4524
4524
|
*/
|
|
4525
4525
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4526
4526
|
/**
|
|
4527
4527
|
* Enforce which files can be imported in a given folder.
|
|
4528
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
|
|
4529
4529
|
*/
|
|
4530
4530
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4531
4531
|
/**
|
|
4532
4532
|
* Forbid a module from importing itself.
|
|
4533
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
|
|
4534
4534
|
*/
|
|
4535
4535
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4536
4536
|
/**
|
|
4537
4537
|
* Forbid unassigned imports.
|
|
4538
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
|
|
4539
4539
|
*/
|
|
4540
4540
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4541
4541
|
/**
|
|
4542
4542
|
* Ensure imports point to a file/module that can be resolved.
|
|
4543
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
|
|
4544
4544
|
*/
|
|
4545
4545
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4546
4546
|
/**
|
|
4547
4547
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4548
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4548
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
|
|
4549
4549
|
*/
|
|
4550
4550
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4551
4551
|
/**
|
|
4552
4552
|
* Forbid unnecessary path segments in import and require statements.
|
|
4553
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4553
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
|
|
4554
4554
|
*/
|
|
4555
4555
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4556
4556
|
/**
|
|
4557
4557
|
* Forbid webpack loader syntax in imports.
|
|
4558
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4558
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
|
|
4559
4559
|
*/
|
|
4560
4560
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4561
4561
|
/**
|
|
4562
4562
|
* Enforce a convention in module import order.
|
|
4563
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4563
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
|
|
4564
4564
|
*/
|
|
4565
4565
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4566
4566
|
/**
|
|
4567
4567
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4568
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4568
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
|
|
4569
4569
|
*/
|
|
4570
4570
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4571
4571
|
/**
|
|
4572
4572
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4573
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4573
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
|
|
4574
4574
|
*/
|
|
4575
4575
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4576
4576
|
}
|
|
@@ -5820,6 +5820,7 @@ type JsdocRequireParam =
|
|
|
5820
5820
|
enableRestElementFixer?: boolean;
|
|
5821
5821
|
enableRootFixer?: boolean;
|
|
5822
5822
|
exemptedBy?: string[];
|
|
5823
|
+
ignoreWhenAllParamsMissing?: boolean;
|
|
5823
5824
|
unnamedRootBase?: string[];
|
|
5824
5825
|
useDefaultObjectProperties?: boolean;
|
|
5825
5826
|
},
|
|
@@ -9786,9 +9787,15 @@ type PerfectionistSortArrayIncludes =
|
|
|
9786
9787
|
|
|
9787
9788
|
order?: "asc" | "desc";
|
|
9788
9789
|
|
|
9790
|
+
matcher?: "minimatch" | "regex";
|
|
9791
|
+
|
|
9789
9792
|
ignoreCase?: boolean;
|
|
9790
9793
|
|
|
9791
9794
|
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
9795
|
+
|
|
9796
|
+
partitionByComment?: string[] | boolean | string;
|
|
9797
|
+
|
|
9798
|
+
partitionByNewLine?: boolean;
|
|
9792
9799
|
},
|
|
9793
9800
|
];
|
|
9794
9801
|
// ----- perfectionist/sort-astro-attributes -----
|
|
@@ -9800,6 +9807,8 @@ type PerfectionistSortAstroAttributes =
|
|
|
9800
9807
|
|
|
9801
9808
|
order?: "asc" | "desc";
|
|
9802
9809
|
|
|
9810
|
+
matcher?: "minimatch" | "regex";
|
|
9811
|
+
|
|
9803
9812
|
ignoreCase?: boolean;
|
|
9804
9813
|
|
|
9805
9814
|
groups?: (string | string[])[];
|
|
@@ -9818,6 +9827,8 @@ type PerfectionistSortClasses =
|
|
|
9818
9827
|
|
|
9819
9828
|
order?: "asc" | "desc";
|
|
9820
9829
|
|
|
9830
|
+
matcher?: "minimatch" | "regex";
|
|
9831
|
+
|
|
9821
9832
|
ignoreCase?: boolean;
|
|
9822
9833
|
|
|
9823
9834
|
partitionByComment?: string[] | boolean | string;
|
|
@@ -9920,6 +9931,8 @@ type PerfectionistSortEnums =
|
|
|
9920
9931
|
|
|
9921
9932
|
order?: "asc" | "desc";
|
|
9922
9933
|
|
|
9934
|
+
matcher?: "minimatch" | "regex";
|
|
9935
|
+
|
|
9923
9936
|
ignoreCase?: boolean;
|
|
9924
9937
|
|
|
9925
9938
|
sortByValue?: boolean;
|
|
@@ -9927,6 +9940,8 @@ type PerfectionistSortEnums =
|
|
|
9927
9940
|
forceNumericSort?: boolean;
|
|
9928
9941
|
|
|
9929
9942
|
partitionByComment?: string[] | boolean | string;
|
|
9943
|
+
|
|
9944
|
+
partitionByNewLine?: boolean;
|
|
9930
9945
|
},
|
|
9931
9946
|
];
|
|
9932
9947
|
// ----- perfectionist/sort-exports -----
|
|
@@ -9938,7 +9953,15 @@ type PerfectionistSortExports =
|
|
|
9938
9953
|
|
|
9939
9954
|
order?: "asc" | "desc";
|
|
9940
9955
|
|
|
9956
|
+
matcher?: "minimatch" | "regex";
|
|
9957
|
+
|
|
9941
9958
|
ignoreCase?: boolean;
|
|
9959
|
+
|
|
9960
|
+
partitionByComment?: string[] | boolean | string;
|
|
9961
|
+
|
|
9962
|
+
partitionByNewLine?: boolean;
|
|
9963
|
+
|
|
9964
|
+
groupKind?: "mixed" | "values-first" | "types-first";
|
|
9942
9965
|
},
|
|
9943
9966
|
];
|
|
9944
9967
|
// ----- perfectionist/sort-imports -----
|
|
@@ -9949,6 +9972,8 @@ type _PerfectionistSortImportsSortImports =
|
|
|
9949
9972
|
|
|
9950
9973
|
order?: "asc" | "desc";
|
|
9951
9974
|
|
|
9975
|
+
matcher?: "minimatch" | "regex";
|
|
9976
|
+
|
|
9952
9977
|
ignoreCase?: boolean;
|
|
9953
9978
|
|
|
9954
9979
|
internalPattern?: string[];
|
|
@@ -9990,10 +10015,14 @@ type PerfectionistSortInterfaces =
|
|
|
9990
10015
|
|
|
9991
10016
|
order?: "asc" | "desc";
|
|
9992
10017
|
|
|
10018
|
+
matcher?: "minimatch" | "regex";
|
|
10019
|
+
|
|
9993
10020
|
ignoreCase?: boolean;
|
|
9994
10021
|
|
|
9995
10022
|
ignorePattern?: string[];
|
|
9996
10023
|
|
|
10024
|
+
partitionByComment?: boolean | string | string[];
|
|
10025
|
+
|
|
9997
10026
|
partitionByNewLine?: boolean;
|
|
9998
10027
|
|
|
9999
10028
|
groupKind?: "mixed" | "optional-first" | "required-first";
|
|
@@ -10014,9 +10043,15 @@ type PerfectionistSortIntersectionTypes =
|
|
|
10014
10043
|
|
|
10015
10044
|
order?: "asc" | "desc";
|
|
10016
10045
|
|
|
10046
|
+
matcher?: "minimatch" | "regex";
|
|
10047
|
+
|
|
10017
10048
|
ignoreCase?: boolean;
|
|
10018
10049
|
|
|
10019
10050
|
groups?: (string | string[])[];
|
|
10051
|
+
|
|
10052
|
+
partitionByComment?: string[] | boolean | string;
|
|
10053
|
+
|
|
10054
|
+
partitionByNewLine?: boolean;
|
|
10020
10055
|
},
|
|
10021
10056
|
];
|
|
10022
10057
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -10028,6 +10063,8 @@ type PerfectionistSortJsxProps =
|
|
|
10028
10063
|
|
|
10029
10064
|
order?: "asc" | "desc";
|
|
10030
10065
|
|
|
10066
|
+
matcher?: "minimatch" | "regex";
|
|
10067
|
+
|
|
10031
10068
|
ignoreCase?: boolean;
|
|
10032
10069
|
|
|
10033
10070
|
ignorePattern?: string[];
|
|
@@ -10048,7 +10085,13 @@ type PerfectionistSortMaps =
|
|
|
10048
10085
|
|
|
10049
10086
|
order?: "asc" | "desc";
|
|
10050
10087
|
|
|
10088
|
+
matcher?: "minimatch" | "regex";
|
|
10089
|
+
|
|
10051
10090
|
ignoreCase?: boolean;
|
|
10091
|
+
|
|
10092
|
+
partitionByComment?: string[] | boolean | string;
|
|
10093
|
+
|
|
10094
|
+
partitionByNewLine?: boolean;
|
|
10052
10095
|
},
|
|
10053
10096
|
];
|
|
10054
10097
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -10060,9 +10103,15 @@ type PerfectionistSortNamedExports =
|
|
|
10060
10103
|
|
|
10061
10104
|
order?: "asc" | "desc";
|
|
10062
10105
|
|
|
10106
|
+
matcher?: "minimatch" | "regex";
|
|
10107
|
+
|
|
10063
10108
|
ignoreCase?: boolean;
|
|
10064
10109
|
|
|
10065
10110
|
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10111
|
+
|
|
10112
|
+
partitionByComment?: string[] | boolean | string;
|
|
10113
|
+
|
|
10114
|
+
partitionByNewLine?: boolean;
|
|
10066
10115
|
},
|
|
10067
10116
|
];
|
|
10068
10117
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -10074,11 +10123,17 @@ type PerfectionistSortNamedImports =
|
|
|
10074
10123
|
|
|
10075
10124
|
order?: "asc" | "desc";
|
|
10076
10125
|
|
|
10126
|
+
matcher?: "minimatch" | "regex";
|
|
10127
|
+
|
|
10077
10128
|
ignoreCase?: boolean;
|
|
10078
10129
|
|
|
10079
10130
|
ignoreAlias?: boolean;
|
|
10080
10131
|
|
|
10081
10132
|
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10133
|
+
|
|
10134
|
+
partitionByComment?: string[] | boolean | string;
|
|
10135
|
+
|
|
10136
|
+
partitionByNewLine?: boolean;
|
|
10082
10137
|
},
|
|
10083
10138
|
];
|
|
10084
10139
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -10090,8 +10145,12 @@ type PerfectionistSortObjectTypes =
|
|
|
10090
10145
|
|
|
10091
10146
|
order?: "asc" | "desc";
|
|
10092
10147
|
|
|
10148
|
+
matcher?: "minimatch" | "regex";
|
|
10149
|
+
|
|
10093
10150
|
ignoreCase?: boolean;
|
|
10094
10151
|
|
|
10152
|
+
partitionByComment?: string[] | boolean | string;
|
|
10153
|
+
|
|
10095
10154
|
partitionByNewLine?: boolean;
|
|
10096
10155
|
|
|
10097
10156
|
groupKind?: "mixed" | "required-first" | "optional-first";
|
|
@@ -10112,6 +10171,8 @@ type PerfectionistSortObjects =
|
|
|
10112
10171
|
|
|
10113
10172
|
order?: "asc" | "desc";
|
|
10114
10173
|
|
|
10174
|
+
matcher?: "minimatch" | "regex";
|
|
10175
|
+
|
|
10115
10176
|
ignoreCase?: boolean;
|
|
10116
10177
|
|
|
10117
10178
|
partitionByComment?: string[] | boolean | string;
|
|
@@ -10140,9 +10201,15 @@ type PerfectionistSortSets =
|
|
|
10140
10201
|
|
|
10141
10202
|
order?: "asc" | "desc";
|
|
10142
10203
|
|
|
10204
|
+
matcher?: "minimatch" | "regex";
|
|
10205
|
+
|
|
10143
10206
|
ignoreCase?: boolean;
|
|
10144
10207
|
|
|
10145
10208
|
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
10209
|
+
|
|
10210
|
+
partitionByComment?: string[] | boolean | string;
|
|
10211
|
+
|
|
10212
|
+
partitionByNewLine?: boolean;
|
|
10146
10213
|
},
|
|
10147
10214
|
];
|
|
10148
10215
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
@@ -10154,6 +10221,8 @@ type PerfectionistSortSvelteAttributes =
|
|
|
10154
10221
|
|
|
10155
10222
|
order?: "asc" | "desc";
|
|
10156
10223
|
|
|
10224
|
+
matcher?: "minimatch" | "regex";
|
|
10225
|
+
|
|
10157
10226
|
ignoreCase?: boolean;
|
|
10158
10227
|
|
|
10159
10228
|
groups?: (string | string[])[];
|
|
@@ -10184,9 +10253,15 @@ type PerfectionistSortUnionTypes =
|
|
|
10184
10253
|
|
|
10185
10254
|
order?: "asc" | "desc";
|
|
10186
10255
|
|
|
10256
|
+
matcher?: "minimatch" | "regex";
|
|
10257
|
+
|
|
10187
10258
|
ignoreCase?: boolean;
|
|
10188
10259
|
|
|
10189
10260
|
groups?: (string | string[])[];
|
|
10261
|
+
|
|
10262
|
+
partitionByComment?: string[] | boolean | string;
|
|
10263
|
+
|
|
10264
|
+
partitionByNewLine?: boolean;
|
|
10190
10265
|
},
|
|
10191
10266
|
];
|
|
10192
10267
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -10198,7 +10273,13 @@ type PerfectionistSortVariableDeclarations =
|
|
|
10198
10273
|
|
|
10199
10274
|
order?: "asc" | "desc";
|
|
10200
10275
|
|
|
10276
|
+
matcher?: "minimatch" | "regex";
|
|
10277
|
+
|
|
10201
10278
|
ignoreCase?: boolean;
|
|
10279
|
+
|
|
10280
|
+
partitionByComment?: string[] | boolean | string;
|
|
10281
|
+
|
|
10282
|
+
partitionByNewLine?: boolean;
|
|
10202
10283
|
},
|
|
10203
10284
|
];
|
|
10204
10285
|
// ----- perfectionist/sort-vue-attributes -----
|
|
@@ -10210,6 +10291,8 @@ type PerfectionistSortVueAttributes =
|
|
|
10210
10291
|
|
|
10211
10292
|
order?: "asc" | "desc";
|
|
10212
10293
|
|
|
10294
|
+
matcher?: "minimatch" | "regex";
|
|
10295
|
+
|
|
10213
10296
|
ignoreCase?: boolean;
|
|
10214
10297
|
|
|
10215
10298
|
groups?: (string | string[])[];
|
|
@@ -10849,25 +10932,31 @@ type ReactForbidComponentProps =
|
|
|
10849
10932
|
| {
|
|
10850
10933
|
propName?: string;
|
|
10851
10934
|
allowedFor?: string[];
|
|
10935
|
+
allowedForPatterns?: string[];
|
|
10852
10936
|
message?: string;
|
|
10853
10937
|
}
|
|
10854
|
-
|
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10938
|
+
| (
|
|
10939
|
+
| {
|
|
10940
|
+
[k: string]: unknown | undefined;
|
|
10941
|
+
}
|
|
10942
|
+
| {
|
|
10943
|
+
[k: string]: unknown | undefined;
|
|
10944
|
+
}
|
|
10945
|
+
)
|
|
10860
10946
|
| {
|
|
10861
10947
|
propNamePattern?: string;
|
|
10862
10948
|
allowedFor?: string[];
|
|
10949
|
+
allowedForPatterns?: string[];
|
|
10863
10950
|
message?: string;
|
|
10864
10951
|
}
|
|
10865
|
-
|
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10952
|
+
| (
|
|
10953
|
+
| {
|
|
10954
|
+
[k: string]: unknown | undefined;
|
|
10955
|
+
}
|
|
10956
|
+
| {
|
|
10957
|
+
[k: string]: unknown | undefined;
|
|
10958
|
+
}
|
|
10959
|
+
)
|
|
10871
10960
|
)[];
|
|
10872
10961
|
[k: string]: unknown | undefined;
|
|
10873
10962
|
},
|
|
@@ -11492,6 +11581,7 @@ type ReactNoUnstableNestedComponents =
|
|
|
11492
11581
|
{
|
|
11493
11582
|
customValidators?: string[];
|
|
11494
11583
|
allowAsProps?: boolean;
|
|
11584
|
+
propNamePattern?: string;
|
|
11495
11585
|
},
|
|
11496
11586
|
];
|
|
11497
11587
|
// ----- react/no-unused-prop-types -----
|
|
@@ -15183,233 +15273,233 @@ interface TypescriptRuleOptions {
|
|
|
15183
15273
|
>;
|
|
15184
15274
|
/**
|
|
15185
15275
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
15186
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15276
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
|
|
15187
15277
|
*/
|
|
15188
15278
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
15189
15279
|
/**
|
|
15190
15280
|
* Ensure a default export is present, given a default import.
|
|
15191
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15281
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
|
|
15192
15282
|
*/
|
|
15193
15283
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
15194
15284
|
/**
|
|
15195
15285
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15196
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15286
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
|
|
15197
15287
|
*/
|
|
15198
15288
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
15199
15289
|
/**
|
|
15200
15290
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
15201
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15291
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
|
|
15202
15292
|
*/
|
|
15203
15293
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
15204
15294
|
/**
|
|
15205
15295
|
* Ensure all exports appear after other statements.
|
|
15206
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15296
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
|
|
15207
15297
|
*/
|
|
15208
15298
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
15209
15299
|
/**
|
|
15210
15300
|
* Ensure consistent use of file extension within the import path.
|
|
15211
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15301
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
|
|
15212
15302
|
*/
|
|
15213
15303
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
15214
15304
|
/**
|
|
15215
15305
|
* Ensure all imports appear before other statements.
|
|
15216
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15306
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
|
|
15217
15307
|
*/
|
|
15218
15308
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
15219
15309
|
/**
|
|
15220
15310
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
15221
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15311
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
|
|
15222
15312
|
*/
|
|
15223
15313
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
15224
15314
|
/**
|
|
15225
15315
|
* Replaced by `import-x/first`.
|
|
15226
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15316
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
|
|
15227
15317
|
* @deprecated
|
|
15228
15318
|
*/
|
|
15229
15319
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15230
15320
|
/**
|
|
15231
15321
|
* Enforce the maximum number of dependencies a module can have.
|
|
15232
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15322
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
|
|
15233
15323
|
*/
|
|
15234
15324
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15235
15325
|
/**
|
|
15236
15326
|
* Ensure named imports correspond to a named export in the remote file.
|
|
15237
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15327
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
|
|
15238
15328
|
*/
|
|
15239
15329
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15240
15330
|
/**
|
|
15241
15331
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15242
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15332
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
|
|
15243
15333
|
*/
|
|
15244
15334
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15245
15335
|
/**
|
|
15246
15336
|
* Enforce a newline after import statements.
|
|
15247
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15337
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
|
|
15248
15338
|
*/
|
|
15249
15339
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15250
15340
|
/**
|
|
15251
15341
|
* Forbid import of modules using absolute paths.
|
|
15252
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15342
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
|
|
15253
15343
|
*/
|
|
15254
15344
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15255
15345
|
/**
|
|
15256
15346
|
* Forbid AMD `require` and `define` calls.
|
|
15257
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15347
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
|
|
15258
15348
|
*/
|
|
15259
15349
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15260
15350
|
/**
|
|
15261
15351
|
* Forbid anonymous values as default exports.
|
|
15262
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15352
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
|
|
15263
15353
|
*/
|
|
15264
15354
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15265
15355
|
/**
|
|
15266
15356
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15267
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15357
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
|
|
15268
15358
|
*/
|
|
15269
15359
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15270
15360
|
/**
|
|
15271
15361
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
15272
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15362
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
|
|
15273
15363
|
*/
|
|
15274
15364
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15275
15365
|
/**
|
|
15276
15366
|
* Forbid default exports.
|
|
15277
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15367
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
|
|
15278
15368
|
*/
|
|
15279
15369
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15280
15370
|
/**
|
|
15281
15371
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15282
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15372
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
|
|
15283
15373
|
*/
|
|
15284
15374
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15285
15375
|
/**
|
|
15286
15376
|
* Forbid repeated import of the same module in multiple places.
|
|
15287
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15377
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
|
|
15288
15378
|
*/
|
|
15289
15379
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15290
15380
|
/**
|
|
15291
15381
|
* Forbid `require()` calls with expressions.
|
|
15292
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15382
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
|
|
15293
15383
|
*/
|
|
15294
15384
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15295
15385
|
/**
|
|
15296
15386
|
* Forbid empty named import blocks.
|
|
15297
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15387
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
|
|
15298
15388
|
*/
|
|
15299
15389
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15300
15390
|
/**
|
|
15301
15391
|
* Forbid the use of extraneous packages.
|
|
15302
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15392
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
|
|
15303
15393
|
*/
|
|
15304
15394
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15305
15395
|
/**
|
|
15306
15396
|
* Forbid import statements with CommonJS module.exports.
|
|
15307
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15397
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
|
|
15308
15398
|
*/
|
|
15309
15399
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15310
15400
|
/**
|
|
15311
15401
|
* Forbid importing the submodules of other modules.
|
|
15312
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15402
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
|
|
15313
15403
|
*/
|
|
15314
15404
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15315
15405
|
/**
|
|
15316
15406
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15317
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15407
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
|
|
15318
15408
|
*/
|
|
15319
15409
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15320
15410
|
/**
|
|
15321
15411
|
* Forbid use of exported name as identifier of default export.
|
|
15322
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15412
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
|
|
15323
15413
|
*/
|
|
15324
15414
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15325
15415
|
/**
|
|
15326
15416
|
* Forbid use of exported name as property of default export.
|
|
15327
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15417
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
|
|
15328
15418
|
*/
|
|
15329
15419
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15330
15420
|
/**
|
|
15331
15421
|
* Forbid named default exports.
|
|
15332
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15422
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
|
|
15333
15423
|
*/
|
|
15334
15424
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15335
15425
|
/**
|
|
15336
15426
|
* Forbid named exports.
|
|
15337
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15427
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
|
|
15338
15428
|
*/
|
|
15339
15429
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15340
15430
|
/**
|
|
15341
15431
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15342
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15432
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
|
|
15343
15433
|
*/
|
|
15344
15434
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15345
15435
|
/**
|
|
15346
15436
|
* Forbid Node.js builtin modules.
|
|
15347
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15437
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
|
|
15348
15438
|
*/
|
|
15349
15439
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15350
15440
|
/**
|
|
15351
15441
|
* Forbid importing packages through relative paths.
|
|
15352
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15442
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
|
|
15353
15443
|
*/
|
|
15354
15444
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15355
15445
|
/**
|
|
15356
15446
|
* Forbid importing modules from parent directories.
|
|
15357
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15447
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
|
|
15358
15448
|
*/
|
|
15359
15449
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15360
15450
|
/**
|
|
15361
15451
|
* Forbid importing a default export by a different name.
|
|
15362
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15452
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
|
|
15363
15453
|
*/
|
|
15364
15454
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15365
15455
|
/**
|
|
15366
15456
|
* Enforce which files can be imported in a given folder.
|
|
15367
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15457
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
|
|
15368
15458
|
*/
|
|
15369
15459
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15370
15460
|
/**
|
|
15371
15461
|
* Forbid a module from importing itself.
|
|
15372
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15462
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
|
|
15373
15463
|
*/
|
|
15374
15464
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15375
15465
|
/**
|
|
15376
15466
|
* Forbid unassigned imports.
|
|
15377
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15467
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
|
|
15378
15468
|
*/
|
|
15379
15469
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15380
15470
|
/**
|
|
15381
15471
|
* Ensure imports point to a file/module that can be resolved.
|
|
15382
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15472
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
|
|
15383
15473
|
*/
|
|
15384
15474
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15385
15475
|
/**
|
|
15386
15476
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
15387
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15477
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
|
|
15388
15478
|
*/
|
|
15389
15479
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15390
15480
|
/**
|
|
15391
15481
|
* Forbid unnecessary path segments in import and require statements.
|
|
15392
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15482
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
|
|
15393
15483
|
*/
|
|
15394
15484
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15395
15485
|
/**
|
|
15396
15486
|
* Forbid webpack loader syntax in imports.
|
|
15397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15487
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
|
|
15398
15488
|
*/
|
|
15399
15489
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15400
15490
|
/**
|
|
15401
15491
|
* Enforce a convention in module import order.
|
|
15402
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15492
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
|
|
15403
15493
|
*/
|
|
15404
15494
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15405
15495
|
/**
|
|
15406
15496
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15407
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15497
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
|
|
15408
15498
|
*/
|
|
15409
15499
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15410
15500
|
/**
|
|
15411
15501
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15502
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
|
|
15413
15503
|
*/
|
|
15414
15504
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15415
15505
|
}
|
|
@@ -18563,6 +18653,8 @@ type TypescriptEslintNoUnnecessaryCondition =
|
|
|
18563
18653
|
allowConstantLoopConditions?: boolean;
|
|
18564
18654
|
|
|
18565
18655
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
18656
|
+
|
|
18657
|
+
checkTypePredicates?: boolean;
|
|
18566
18658
|
},
|
|
18567
18659
|
];
|
|
18568
18660
|
// ----- @typescript-eslint/no-unnecessary-type-assertion -----
|