@jsse/eslint-config 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts 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/v3.1.0/docs/rules/consistent-type-specifier-style.md
4321
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/default.md
4326
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/dynamic-import-chunkname.md
4331
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/export.md
4336
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/exports-last.md
4341
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/extensions.md
4346
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/first.md
4351
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/group-exports.md
4356
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md
4361
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/max-dependencies.md
4367
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/named.md
4372
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/namespace.md
4377
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/newline-after-import.md
4382
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-absolute-path.md
4387
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-amd.md
4392
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-anonymous-default-export.md
4397
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-commonjs.md
4402
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-cycle.md
4407
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-default-export.md
4412
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-deprecated.md
4417
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-duplicates.md
4422
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-dynamic-require.md
4427
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-empty-named-blocks.md
4432
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-extraneous-dependencies.md
4437
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-import-module-exports.md
4442
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-internal-modules.md
4447
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-mutable-exports.md
4452
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-named-as-default.md
4457
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-named-as-default-member.md
4462
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-named-default.md
4467
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-named-export.md
4472
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-namespace.md
4477
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-nodejs-modules.md
4482
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-relative-packages.md
4487
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-relative-parent-imports.md
4492
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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.0/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/v3.1.0/docs/rules/no-restricted-paths.md
4502
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-self-import.md
4507
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-unassigned-import.md
4512
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-unresolved.md
4517
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-unused-modules.md
4522
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-useless-path-segments.md
4527
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/no-webpack-loader-syntax.md
4532
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/order.md
4537
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/prefer-default-export.md
4542
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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/v3.1.0/docs/rules/unambiguous.md
4547
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/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
  | []
@@ -14451,6 +14465,11 @@ interface TypescriptRuleOptions {
14451
14465
  * @see https://typescript-eslint.io/rules/no-confusing-void-expression
14452
14466
  */
14453
14467
  "@typescript-eslint/no-confusing-void-expression"?: Linter.RuleEntry<TypescriptEslintNoConfusingVoidExpression>;
14468
+ /**
14469
+ * Disallow using code marked as `@deprecated`
14470
+ * @see https://typescript-eslint.io/rules/no-deprecated
14471
+ */
14472
+ "@typescript-eslint/no-deprecated"?: Linter.RuleEntry<[]>;
14454
14473
  /**
14455
14474
  * Disallow duplicate class members
14456
14475
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -14954,228 +14973,233 @@ interface TypescriptRuleOptions {
14954
14973
  >;
14955
14974
  /**
14956
14975
  * 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/v3.1.0/docs/rules/consistent-type-specifier-style.md
14976
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/consistent-type-specifier-style.md
14958
14977
  */
14959
14978
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
14960
14979
  /**
14961
14980
  * Ensure a default export is present, given a default import.
14962
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/default.md
14981
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/default.md
14963
14982
  */
14964
14983
  "import/default"?: Linter.RuleEntry<[]>;
14965
14984
  /**
14966
14985
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
14967
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/dynamic-import-chunkname.md
14986
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/dynamic-import-chunkname.md
14968
14987
  */
14969
14988
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
14970
14989
  /**
14971
14990
  * Forbid any invalid exports, i.e. re-export of the same name.
14972
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/export.md
14991
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/export.md
14973
14992
  */
14974
14993
  "import/export"?: Linter.RuleEntry<[]>;
14975
14994
  /**
14976
14995
  * Ensure all exports appear after other statements.
14977
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/exports-last.md
14996
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/exports-last.md
14978
14997
  */
14979
14998
  "import/exports-last"?: Linter.RuleEntry<[]>;
14980
14999
  /**
14981
15000
  * Ensure consistent use of file extension within the import path.
14982
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/extensions.md
15001
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/extensions.md
14983
15002
  */
14984
15003
  "import/extensions"?: Linter.RuleEntry<ImportExtensions>;
14985
15004
  /**
14986
15005
  * Ensure all imports appear before other statements.
14987
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/first.md
15006
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/first.md
14988
15007
  */
14989
15008
  "import/first"?: Linter.RuleEntry<ImportFirst>;
14990
15009
  /**
14991
15010
  * Prefer named exports to be grouped together in a single export declaration.
14992
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/group-exports.md
15011
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/group-exports.md
14993
15012
  */
14994
15013
  "import/group-exports"?: Linter.RuleEntry<[]>;
14995
15014
  /**
14996
15015
  * Replaced by `import-x/first`.
14997
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md
15016
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/imports-first.md
14998
15017
  * @deprecated
14999
15018
  */
15000
15019
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
15001
15020
  /**
15002
15021
  * Enforce the maximum number of dependencies a module can have.
15003
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/max-dependencies.md
15022
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/max-dependencies.md
15004
15023
  */
15005
15024
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
15006
15025
  /**
15007
15026
  * Ensure named imports correspond to a named export in the remote file.
15008
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/named.md
15027
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/named.md
15009
15028
  */
15010
15029
  "import/named"?: Linter.RuleEntry<ImportNamed>;
15011
15030
  /**
15012
15031
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
15013
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/namespace.md
15032
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/namespace.md
15014
15033
  */
15015
15034
  "import/namespace"?: Linter.RuleEntry<ImportNamespace>;
15016
15035
  /**
15017
15036
  * Enforce a newline after import statements.
15018
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/newline-after-import.md
15037
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/newline-after-import.md
15019
15038
  */
15020
15039
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
15021
15040
  /**
15022
15041
  * Forbid import of modules using absolute paths.
15023
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-absolute-path.md
15042
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-absolute-path.md
15024
15043
  */
15025
15044
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
15026
15045
  /**
15027
15046
  * Forbid AMD `require` and `define` calls.
15028
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-amd.md
15047
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-amd.md
15029
15048
  */
15030
15049
  "import/no-amd"?: Linter.RuleEntry<[]>;
15031
15050
  /**
15032
15051
  * Forbid anonymous values as default exports.
15033
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-anonymous-default-export.md
15052
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-anonymous-default-export.md
15034
15053
  */
15035
15054
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
15036
15055
  /**
15037
15056
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
15038
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-commonjs.md
15057
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-commonjs.md
15039
15058
  */
15040
15059
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
15041
15060
  /**
15042
15061
  * 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/v3.1.0/docs/rules/no-cycle.md
15062
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-cycle.md
15044
15063
  */
15045
15064
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
15046
15065
  /**
15047
15066
  * Forbid default exports.
15048
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-default-export.md
15067
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-default-export.md
15049
15068
  */
15050
15069
  "import/no-default-export"?: Linter.RuleEntry<[]>;
15051
15070
  /**
15052
15071
  * Forbid imported names marked with `@deprecated` documentation tag.
15053
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-deprecated.md
15072
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-deprecated.md
15054
15073
  */
15055
15074
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
15056
15075
  /**
15057
15076
  * Forbid repeated import of the same module in multiple places.
15058
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-duplicates.md
15077
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-duplicates.md
15059
15078
  */
15060
15079
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
15061
15080
  /**
15062
15081
  * Forbid `require()` calls with expressions.
15063
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-dynamic-require.md
15082
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-dynamic-require.md
15064
15083
  */
15065
15084
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
15066
15085
  /**
15067
15086
  * Forbid empty named import blocks.
15068
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-empty-named-blocks.md
15087
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-empty-named-blocks.md
15069
15088
  */
15070
15089
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
15071
15090
  /**
15072
15091
  * Forbid the use of extraneous packages.
15073
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-extraneous-dependencies.md
15092
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-extraneous-dependencies.md
15074
15093
  */
15075
15094
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
15076
15095
  /**
15077
15096
  * Forbid import statements with CommonJS module.exports.
15078
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-import-module-exports.md
15097
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-import-module-exports.md
15079
15098
  */
15080
15099
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
15081
15100
  /**
15082
15101
  * Forbid importing the submodules of other modules.
15083
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-internal-modules.md
15102
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-internal-modules.md
15084
15103
  */
15085
15104
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
15086
15105
  /**
15087
15106
  * Forbid the use of mutable exports with `var` or `let`.
15088
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-mutable-exports.md
15107
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-mutable-exports.md
15089
15108
  */
15090
15109
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
15091
15110
  /**
15092
15111
  * Forbid use of exported name as identifier of default export.
15093
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default.md
15112
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default.md
15094
15113
  */
15095
15114
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
15096
15115
  /**
15097
15116
  * Forbid use of exported name as property of default export.
15098
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default-member.md
15117
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default-member.md
15099
15118
  */
15100
15119
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
15101
15120
  /**
15102
15121
  * Forbid named default exports.
15103
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-default.md
15122
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-default.md
15104
15123
  */
15105
15124
  "import/no-named-default"?: Linter.RuleEntry<[]>;
15106
15125
  /**
15107
15126
  * Forbid named exports.
15108
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-export.md
15127
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-export.md
15109
15128
  */
15110
15129
  "import/no-named-export"?: Linter.RuleEntry<[]>;
15111
15130
  /**
15112
15131
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
15113
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-namespace.md
15132
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-namespace.md
15114
15133
  */
15115
15134
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
15116
15135
  /**
15117
15136
  * Forbid Node.js builtin modules.
15118
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-nodejs-modules.md
15137
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-nodejs-modules.md
15119
15138
  */
15120
15139
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
15121
15140
  /**
15122
15141
  * Forbid importing packages through relative paths.
15123
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-packages.md
15142
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-packages.md
15124
15143
  */
15125
15144
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
15126
15145
  /**
15127
15146
  * Forbid importing modules from parent directories.
15128
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-parent-imports.md
15147
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-parent-imports.md
15129
15148
  */
15130
15149
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
15150
+ /**
15151
+ * Forbid importing a default export by a different name.
15152
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-rename-default.md
15153
+ */
15154
+ "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
15131
15155
  /**
15132
15156
  * Enforce which files can be imported in a given folder.
15133
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-restricted-paths.md
15157
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-restricted-paths.md
15134
15158
  */
15135
15159
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
15136
15160
  /**
15137
15161
  * Forbid a module from importing itself.
15138
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-self-import.md
15162
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-self-import.md
15139
15163
  */
15140
15164
  "import/no-self-import"?: Linter.RuleEntry<[]>;
15141
15165
  /**
15142
15166
  * Forbid unassigned imports.
15143
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unassigned-import.md
15167
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unassigned-import.md
15144
15168
  */
15145
15169
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
15146
15170
  /**
15147
15171
  * Ensure imports point to a file/module that can be resolved.
15148
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unresolved.md
15172
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unresolved.md
15149
15173
  */
15150
15174
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
15151
15175
  /**
15152
15176
  * Forbid modules without exports, or exports without matching import in another module.
15153
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unused-modules.md
15177
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unused-modules.md
15154
15178
  */
15155
15179
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
15156
15180
  /**
15157
15181
  * Forbid unnecessary path segments in import and require statements.
15158
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-useless-path-segments.md
15182
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-useless-path-segments.md
15159
15183
  */
15160
15184
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
15161
15185
  /**
15162
15186
  * Forbid webpack loader syntax in imports.
15163
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-webpack-loader-syntax.md
15187
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-webpack-loader-syntax.md
15164
15188
  */
15165
15189
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
15166
15190
  /**
15167
15191
  * Enforce a convention in module import order.
15168
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/order.md
15192
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/order.md
15169
15193
  */
15170
15194
  "import/order"?: Linter.RuleEntry<ImportOrder>;
15171
15195
  /**
15172
15196
  * 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/v3.1.0/docs/rules/prefer-default-export.md
15197
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/prefer-default-export.md
15174
15198
  */
15175
15199
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
15176
15200
  /**
15177
15201
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
15178
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/unambiguous.md
15202
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/unambiguous.md
15179
15203
  */
15180
15204
  "import/unambiguous"?: Linter.RuleEntry<[]>;
15181
15205
  }
@@ -18932,6 +18956,15 @@ type ImportNoRelativeParentImports =
18932
18956
  ignore?: [string, ...string[]];
18933
18957
  },
18934
18958
  ];
18959
+ // ----- import/no-rename-default -----
18960
+ type ImportNoRenameDefault =
18961
+ | []
18962
+ | [
18963
+ {
18964
+ commonjs?: boolean;
18965
+ preventRenamingBindings?: boolean;
18966
+ },
18967
+ ];
18935
18968
  // ----- import/no-restricted-paths -----
18936
18969
  type ImportNoRestrictedPaths =
18937
18970
  | []