@jsse/eslint-config 0.2.8 → 0.2.10

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
@@ -1417,7 +1417,7 @@ interface BuiltinsRuleOptions {
1417
1417
  * Enforce the use of `u` or `v` flag on RegExp
1418
1418
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
1419
1419
  */
1420
- "require-unicode-regexp"?: Linter.RuleEntry<[]>;
1420
+ "require-unicode-regexp"?: Linter.RuleEntry<RequireUnicodeRegexp>;
1421
1421
  /**
1422
1422
  * Require generator functions to contain `yield`
1423
1423
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -3906,6 +3906,14 @@ type RequireAtomicUpdates =
3906
3906
  allowProperties?: boolean;
3907
3907
  },
3908
3908
  ];
3909
+ // ----- require-unicode-regexp -----
3910
+ type RequireUnicodeRegexp =
3911
+ | []
3912
+ | [
3913
+ {
3914
+ requireFlag?: "u" | "v";
3915
+ },
3916
+ ];
3909
3917
  // ----- rest-spread-spacing -----
3910
3918
  type RestSpreadSpacing = [] | ["always" | "never"];
3911
3919
  // ----- semi -----
@@ -4120,6 +4128,11 @@ type Yoda =
4120
4128
 
4121
4129
 
4122
4130
  interface AntfuRuleOptions {
4131
+ /**
4132
+ * Having line breaks styles to object, array and named imports
4133
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
4134
+ */
4135
+ "antfu/consistent-chaining"?: Linter.RuleEntry<AntfuConsistentChaining>;
4123
4136
  /**
4124
4137
  * Having line breaks styles to object, array and named imports
4125
4138
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
@@ -4127,7 +4140,7 @@ interface AntfuRuleOptions {
4127
4140
  "antfu/consistent-list-newline"?: Linter.RuleEntry<AntfuConsistentListNewline>;
4128
4141
  /**
4129
4142
  * Enforce Anthony's style of curly bracket
4130
- * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.test.ts
4143
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
4131
4144
  */
4132
4145
  "antfu/curly"?: Linter.RuleEntry<[]>;
4133
4146
  /**
@@ -4142,7 +4155,7 @@ interface AntfuRuleOptions {
4142
4155
  "antfu/import-dedupe"?: Linter.RuleEntry<[]>;
4143
4156
  /**
4144
4157
  * Enforce consistent indentation in `unindent` template tag
4145
- * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.test.ts
4158
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
4146
4159
  */
4147
4160
  "antfu/indent-unindent"?: Linter.RuleEntry<AntfuIndentUnindent>;
4148
4161
  /**
@@ -4168,6 +4181,14 @@ interface AntfuRuleOptions {
4168
4181
  }
4169
4182
 
4170
4183
  /* ======= Declarations ======= */
4184
+ // ----- antfu/consistent-chaining -----
4185
+ type AntfuConsistentChaining =
4186
+ | []
4187
+ | [
4188
+ {
4189
+ allowLeadingPropertyAccess?: boolean;
4190
+ },
4191
+ ];
4171
4192
  // ----- antfu/consistent-list-newline -----
4172
4193
  type AntfuConsistentListNewline =
4173
4194
  | []
@@ -4318,233 +4339,233 @@ interface IgnoresRuleOptions {}
4318
4339
  interface ImportsRuleOptions {
4319
4340
  /**
4320
4341
  * 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/v4.1.0/docs/rules/consistent-type-specifier-style.md
4342
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
4322
4343
  */
4323
4344
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
4324
4345
  /**
4325
4346
  * Ensure a default export is present, given a default import.
4326
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/default.md
4347
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
4327
4348
  */
4328
4349
  "import/default"?: Linter.RuleEntry<[]>;
4329
4350
  /**
4330
4351
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
4331
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/dynamic-import-chunkname.md
4352
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
4332
4353
  */
4333
4354
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
4334
4355
  /**
4335
4356
  * Forbid any invalid exports, i.e. re-export of the same name.
4336
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/export.md
4357
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
4337
4358
  */
4338
4359
  "import/export"?: Linter.RuleEntry<[]>;
4339
4360
  /**
4340
4361
  * Ensure all exports appear after other statements.
4341
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/exports-last.md
4362
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
4342
4363
  */
4343
4364
  "import/exports-last"?: Linter.RuleEntry<[]>;
4344
4365
  /**
4345
4366
  * Ensure consistent use of file extension within the import path.
4346
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/extensions.md
4367
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
4347
4368
  */
4348
4369
  "import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
4349
4370
  /**
4350
4371
  * Ensure all imports appear before other statements.
4351
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/first.md
4372
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
4352
4373
  */
4353
4374
  "import/first"?: Linter.RuleEntry<ImportFirst$1>;
4354
4375
  /**
4355
4376
  * Prefer named exports to be grouped together in a single export declaration.
4356
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/group-exports.md
4377
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
4357
4378
  */
4358
4379
  "import/group-exports"?: Linter.RuleEntry<[]>;
4359
4380
  /**
4360
4381
  * Replaced by `import-x/first`.
4361
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/imports-first.md
4382
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
4362
4383
  * @deprecated
4363
4384
  */
4364
4385
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
4365
4386
  /**
4366
4387
  * Enforce the maximum number of dependencies a module can have.
4367
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/max-dependencies.md
4388
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
4368
4389
  */
4369
4390
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
4370
4391
  /**
4371
4392
  * Ensure named imports correspond to a named export in the remote file.
4372
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/named.md
4393
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
4373
4394
  */
4374
4395
  "import/named"?: Linter.RuleEntry<ImportNamed$1>;
4375
4396
  /**
4376
4397
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
4377
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/namespace.md
4398
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
4378
4399
  */
4379
4400
  "import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
4380
4401
  /**
4381
4402
  * Enforce a newline after import statements.
4382
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/newline-after-import.md
4403
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
4383
4404
  */
4384
4405
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
4385
4406
  /**
4386
4407
  * Forbid import of modules using absolute paths.
4387
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-absolute-path.md
4408
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
4388
4409
  */
4389
4410
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
4390
4411
  /**
4391
4412
  * Forbid AMD `require` and `define` calls.
4392
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-amd.md
4413
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
4393
4414
  */
4394
4415
  "import/no-amd"?: Linter.RuleEntry<[]>;
4395
4416
  /**
4396
4417
  * Forbid anonymous values as default exports.
4397
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-anonymous-default-export.md
4418
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
4398
4419
  */
4399
4420
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
4400
4421
  /**
4401
4422
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
4402
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-commonjs.md
4423
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
4403
4424
  */
4404
4425
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
4405
4426
  /**
4406
4427
  * 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/v4.1.0/docs/rules/no-cycle.md
4428
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
4408
4429
  */
4409
4430
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
4410
4431
  /**
4411
4432
  * Forbid default exports.
4412
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-default-export.md
4433
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
4413
4434
  */
4414
4435
  "import/no-default-export"?: Linter.RuleEntry<[]>;
4415
4436
  /**
4416
4437
  * Forbid imported names marked with `@deprecated` documentation tag.
4417
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-deprecated.md
4438
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
4418
4439
  */
4419
4440
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
4420
4441
  /**
4421
4442
  * Forbid repeated import of the same module in multiple places.
4422
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-duplicates.md
4443
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
4423
4444
  */
4424
4445
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
4425
4446
  /**
4426
4447
  * Forbid `require()` calls with expressions.
4427
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-dynamic-require.md
4448
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
4428
4449
  */
4429
4450
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
4430
4451
  /**
4431
4452
  * Forbid empty named import blocks.
4432
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-empty-named-blocks.md
4453
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
4433
4454
  */
4434
4455
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
4435
4456
  /**
4436
4457
  * Forbid the use of extraneous packages.
4437
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-extraneous-dependencies.md
4458
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
4438
4459
  */
4439
4460
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
4440
4461
  /**
4441
4462
  * Forbid import statements with CommonJS module.exports.
4442
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-import-module-exports.md
4463
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
4443
4464
  */
4444
4465
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
4445
4466
  /**
4446
4467
  * Forbid importing the submodules of other modules.
4447
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-internal-modules.md
4468
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
4448
4469
  */
4449
4470
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
4450
4471
  /**
4451
4472
  * Forbid the use of mutable exports with `var` or `let`.
4452
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-mutable-exports.md
4473
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
4453
4474
  */
4454
4475
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
4455
4476
  /**
4456
4477
  * Forbid use of exported name as identifier of default export.
4457
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default.md
4478
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
4458
4479
  */
4459
4480
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
4460
4481
  /**
4461
4482
  * Forbid use of exported name as property of default export.
4462
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default-member.md
4483
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
4463
4484
  */
4464
4485
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
4465
4486
  /**
4466
4487
  * Forbid named default exports.
4467
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-default.md
4488
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
4468
4489
  */
4469
4490
  "import/no-named-default"?: Linter.RuleEntry<[]>;
4470
4491
  /**
4471
4492
  * Forbid named exports.
4472
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-export.md
4493
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
4473
4494
  */
4474
4495
  "import/no-named-export"?: Linter.RuleEntry<[]>;
4475
4496
  /**
4476
4497
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
4477
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-namespace.md
4498
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
4478
4499
  */
4479
4500
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
4480
4501
  /**
4481
4502
  * Forbid Node.js builtin modules.
4482
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-nodejs-modules.md
4503
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
4483
4504
  */
4484
4505
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
4485
4506
  /**
4486
4507
  * Forbid importing packages through relative paths.
4487
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-packages.md
4508
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
4488
4509
  */
4489
4510
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
4490
4511
  /**
4491
4512
  * Forbid importing modules from parent directories.
4492
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-parent-imports.md
4513
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
4493
4514
  */
4494
4515
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
4495
4516
  /**
4496
4517
  * 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
4518
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
4498
4519
  */
4499
4520
  "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
4500
4521
  /**
4501
4522
  * Enforce which files can be imported in a given folder.
4502
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-restricted-paths.md
4523
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
4503
4524
  */
4504
4525
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
4505
4526
  /**
4506
4527
  * Forbid a module from importing itself.
4507
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-self-import.md
4528
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
4508
4529
  */
4509
4530
  "import/no-self-import"?: Linter.RuleEntry<[]>;
4510
4531
  /**
4511
4532
  * Forbid unassigned imports.
4512
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unassigned-import.md
4533
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
4513
4534
  */
4514
4535
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
4515
4536
  /**
4516
4537
  * Ensure imports point to a file/module that can be resolved.
4517
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unresolved.md
4538
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
4518
4539
  */
4519
4540
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
4520
4541
  /**
4521
4542
  * Forbid modules without exports, or exports without matching import in another module.
4522
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unused-modules.md
4543
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
4523
4544
  */
4524
4545
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
4525
4546
  /**
4526
4547
  * Forbid unnecessary path segments in import and require statements.
4527
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-useless-path-segments.md
4548
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
4528
4549
  */
4529
4550
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
4530
4551
  /**
4531
4552
  * Forbid webpack loader syntax in imports.
4532
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-webpack-loader-syntax.md
4553
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
4533
4554
  */
4534
4555
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
4535
4556
  /**
4536
4557
  * Enforce a convention in module import order.
4537
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/order.md
4558
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
4538
4559
  */
4539
4560
  "import/order"?: Linter.RuleEntry<ImportOrder$1>;
4540
4561
  /**
4541
4562
  * Prefer a default export if module exports a single name or multiple names.
4542
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/prefer-default-export.md
4563
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
4543
4564
  */
4544
4565
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
4545
4566
  /**
4546
4567
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
4547
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/unambiguous.md
4568
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
4548
4569
  */
4549
4570
  "import/unambiguous"?: Linter.RuleEntry<[]>;
4550
4571
  }
@@ -4736,6 +4757,7 @@ type ImportNoExtraneousDependencies$1 =
4736
4757
  packageDir?: string | unknown[];
4737
4758
  includeInternal?: boolean;
4738
4759
  includeTypes?: boolean;
4760
+ whitelist?: unknown[];
4739
4761
  },
4740
4762
  ];
4741
4763
  // ----- import/no-import-module-exports -----
@@ -4950,14 +4972,23 @@ type UnusedImportsNoUnusedImports =
4950
4972
  | ("all" | "local")
4951
4973
  | {
4952
4974
  vars?: "all" | "local";
4975
+
4953
4976
  varsIgnorePattern?: string;
4977
+
4954
4978
  args?: "all" | "after-used" | "none";
4955
- ignoreRestSiblings?: boolean;
4979
+
4956
4980
  argsIgnorePattern?: string;
4981
+
4957
4982
  caughtErrors?: "all" | "none";
4983
+
4958
4984
  caughtErrorsIgnorePattern?: string;
4985
+
4959
4986
  destructuredArrayIgnorePattern?: string;
4987
+
4960
4988
  ignoreClassWithStaticInitBlock?: boolean;
4989
+
4990
+ ignoreRestSiblings?: boolean;
4991
+
4961
4992
  reportUsedIgnorePattern?: boolean;
4962
4993
  },
4963
4994
  ];
@@ -4968,14 +4999,23 @@ type UnusedImportsNoUnusedVars =
4968
4999
  | ("all" | "local")
4969
5000
  | {
4970
5001
  vars?: "all" | "local";
5002
+
4971
5003
  varsIgnorePattern?: string;
5004
+
4972
5005
  args?: "all" | "after-used" | "none";
4973
- ignoreRestSiblings?: boolean;
5006
+
4974
5007
  argsIgnorePattern?: string;
5008
+
4975
5009
  caughtErrors?: "all" | "none";
5010
+
4976
5011
  caughtErrorsIgnorePattern?: string;
5012
+
4977
5013
  destructuredArrayIgnorePattern?: string;
5014
+
4978
5015
  ignoreClassWithStaticInitBlock?: boolean;
5016
+
5017
+ ignoreRestSiblings?: boolean;
5018
+
4979
5019
  reportUsedIgnorePattern?: boolean;
4980
5020
  },
4981
5021
  ];
@@ -9699,6 +9739,11 @@ interface PerfectionistRuleOptions {
9699
9739
  * @see https://perfectionist.dev/rules/sort-objects
9700
9740
  */
9701
9741
  "perfectionist/sort-objects"?: Linter.RuleEntry<PerfectionistSortObjects>;
9742
+ /**
9743
+ * Enforce sorted sets.
9744
+ * @see https://perfectionist.dev/rules/sort-sets
9745
+ */
9746
+ "perfectionist/sort-sets"?: Linter.RuleEntry<PerfectionistSortSets>;
9702
9747
  /**
9703
9748
  * Enforce sorted Svelte attributes.
9704
9749
  * @see https://perfectionist.dev/rules/sort-svelte-attributes
@@ -9774,9 +9819,91 @@ type PerfectionistSortClasses =
9774
9819
 
9775
9820
  groups?: (string | string[])[];
9776
9821
 
9777
- customGroups?: {
9778
- [k: string]: (string | string[]) | undefined;
9779
- };
9822
+ customGroups?:
9823
+ | {
9824
+ [k: string]: (string | string[]) | undefined;
9825
+ }
9826
+ | (
9827
+ | {
9828
+ groupName?: string;
9829
+
9830
+ type?:
9831
+ | "alphabetical"
9832
+ | "line-length"
9833
+ | "natural"
9834
+ | "unsorted";
9835
+
9836
+ order?: "desc" | "asc";
9837
+ anyOf?: {
9838
+ selector?:
9839
+ | "accessor-property"
9840
+ | "index-signature"
9841
+ | "constructor"
9842
+ | "static-block"
9843
+ | "get-method"
9844
+ | "set-method"
9845
+ | "function-property"
9846
+ | "property"
9847
+ | "method";
9848
+
9849
+ modifiers?: (
9850
+ | "protected"
9851
+ | "private"
9852
+ | "public"
9853
+ | "static"
9854
+ | "abstract"
9855
+ | "override"
9856
+ | "readonly"
9857
+ | "decorated"
9858
+ | "declare"
9859
+ | "optional"
9860
+ )[];
9861
+
9862
+ elementNamePattern?: string;
9863
+
9864
+ decoratorNamePattern?: string;
9865
+ }[];
9866
+ }
9867
+ | {
9868
+ groupName?: string;
9869
+
9870
+ type?:
9871
+ | "alphabetical"
9872
+ | "line-length"
9873
+ | "natural"
9874
+ | "unsorted";
9875
+
9876
+ order?: "desc" | "asc";
9877
+
9878
+ selector?:
9879
+ | "accessor-property"
9880
+ | "index-signature"
9881
+ | "constructor"
9882
+ | "static-block"
9883
+ | "get-method"
9884
+ | "set-method"
9885
+ | "function-property"
9886
+ | "property"
9887
+ | "method";
9888
+
9889
+ modifiers?: (
9890
+ | "protected"
9891
+ | "private"
9892
+ | "public"
9893
+ | "static"
9894
+ | "abstract"
9895
+ | "override"
9896
+ | "readonly"
9897
+ | "decorated"
9898
+ | "declare"
9899
+ | "optional"
9900
+ )[];
9901
+
9902
+ elementNamePattern?: string;
9903
+
9904
+ decoratorNamePattern?: string;
9905
+ }
9906
+ )[];
9780
9907
  },
9781
9908
  ];
9782
9909
  // ----- perfectionist/sort-enums -----
@@ -9821,6 +9948,8 @@ type _PerfectionistSortImportsSortImports =
9821
9948
 
9822
9949
  internalPattern?: string[];
9823
9950
 
9951
+ sortSideEffects?: boolean;
9952
+
9824
9953
  newlinesBetween?: "ignore" | "always" | "never";
9825
9954
 
9826
9955
  maxLineLength?: number;
@@ -9997,6 +10126,20 @@ type PerfectionistSortObjects =
9997
10126
  };
9998
10127
  },
9999
10128
  ];
10129
+ // ----- perfectionist/sort-sets -----
10130
+ type PerfectionistSortSets =
10131
+ | []
10132
+ | [
10133
+ {
10134
+ type?: "alphabetical" | "natural" | "line-length";
10135
+
10136
+ order?: "asc" | "desc";
10137
+
10138
+ ignoreCase?: boolean;
10139
+
10140
+ groupKind?: "mixed" | "literals-first" | "spreads-first";
10141
+ },
10142
+ ];
10000
10143
  // ----- perfectionist/sort-svelte-attributes -----
10001
10144
  type PerfectionistSortSvelteAttributes =
10002
10145
  | []
@@ -10149,6 +10292,11 @@ interface ReactRuleOptions {
10149
10292
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-prop-types.md
10150
10293
  */
10151
10294
  "react/forbid-prop-types"?: Linter.RuleEntry<ReactForbidPropTypes>;
10295
+ /**
10296
+ * Require all forwardRef components include a ref parameter
10297
+ * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forward-ref-uses-ref.md
10298
+ */
10299
+ "react/forward-ref-uses-ref"?: Linter.RuleEntry<[]>;
10152
10300
  /**
10153
10301
  * Enforce a specific function type for function components
10154
10302
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/function-component-definition.md
@@ -11066,6 +11214,16 @@ type ReactJsxNoLiterals =
11066
11214
  | []
11067
11215
  | [
11068
11216
  {
11217
+ elementOverrides?: {
11218
+ [k: string]: {
11219
+ applyToNestedElements?: boolean;
11220
+ noStrings?: boolean;
11221
+ allowedStrings?: string[];
11222
+ ignoreProps?: boolean;
11223
+ noAttributeStrings?: boolean;
11224
+ [k: string]: unknown | undefined;
11225
+ };
11226
+ };
11069
11227
  noStrings?: boolean;
11070
11228
  allowedStrings?: string[];
11071
11229
  ignoreProps?: boolean;
@@ -11154,6 +11312,7 @@ type ReactJsxPropsNoSpreading =
11154
11312
  {
11155
11313
  html?: "enforce" | "ignore";
11156
11314
  custom?: "enforce" | "ignore";
11315
+ explicitSpread?: "enforce" | "ignore";
11157
11316
  exceptions?: string[];
11158
11317
  [k: string]: unknown | undefined;
11159
11318
  } & {
@@ -12206,6 +12365,7 @@ type StylisticIndent =
12206
12365
  offsetTernaryExpressions?: boolean;
12207
12366
  ignoredNodes?: string[];
12208
12367
  ignoreComments?: boolean;
12368
+ tabLength?: number;
12209
12369
  },
12210
12370
  ];
12211
12371
  // ----- @stylistic/indent-binary-ops -----
@@ -12699,6 +12859,10 @@ type StylisticKeywordSpacing =
12699
12859
  before?: boolean;
12700
12860
  after?: boolean;
12701
12861
  };
12862
+ satisfies?: {
12863
+ before?: boolean;
12864
+ after?: boolean;
12865
+ };
12702
12866
  set?: {
12703
12867
  before?: boolean;
12704
12868
  after?: boolean;
@@ -14973,233 +15137,233 @@ interface TypescriptRuleOptions {
14973
15137
  >;
14974
15138
  /**
14975
15139
  * Enforce or ban the use of inline type-only markers for named imports.
14976
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/consistent-type-specifier-style.md
15140
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
14977
15141
  */
14978
15142
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
14979
15143
  /**
14980
15144
  * Ensure a default export is present, given a default import.
14981
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/default.md
15145
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
14982
15146
  */
14983
15147
  "import/default"?: Linter.RuleEntry<[]>;
14984
15148
  /**
14985
15149
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
14986
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/dynamic-import-chunkname.md
15150
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
14987
15151
  */
14988
15152
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
14989
15153
  /**
14990
15154
  * Forbid any invalid exports, i.e. re-export of the same name.
14991
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/export.md
15155
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
14992
15156
  */
14993
15157
  "import/export"?: Linter.RuleEntry<[]>;
14994
15158
  /**
14995
15159
  * Ensure all exports appear after other statements.
14996
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/exports-last.md
15160
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
14997
15161
  */
14998
15162
  "import/exports-last"?: Linter.RuleEntry<[]>;
14999
15163
  /**
15000
15164
  * Ensure consistent use of file extension within the import path.
15001
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/extensions.md
15165
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
15002
15166
  */
15003
15167
  "import/extensions"?: Linter.RuleEntry<ImportExtensions>;
15004
15168
  /**
15005
15169
  * Ensure all imports appear before other statements.
15006
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/first.md
15170
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
15007
15171
  */
15008
15172
  "import/first"?: Linter.RuleEntry<ImportFirst>;
15009
15173
  /**
15010
15174
  * Prefer named exports to be grouped together in a single export declaration.
15011
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/group-exports.md
15175
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
15012
15176
  */
15013
15177
  "import/group-exports"?: Linter.RuleEntry<[]>;
15014
15178
  /**
15015
15179
  * Replaced by `import-x/first`.
15016
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/imports-first.md
15180
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
15017
15181
  * @deprecated
15018
15182
  */
15019
15183
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
15020
15184
  /**
15021
15185
  * Enforce the maximum number of dependencies a module can have.
15022
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/max-dependencies.md
15186
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
15023
15187
  */
15024
15188
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
15025
15189
  /**
15026
15190
  * Ensure named imports correspond to a named export in the remote file.
15027
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/named.md
15191
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
15028
15192
  */
15029
15193
  "import/named"?: Linter.RuleEntry<ImportNamed>;
15030
15194
  /**
15031
15195
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
15032
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/namespace.md
15196
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
15033
15197
  */
15034
15198
  "import/namespace"?: Linter.RuleEntry<ImportNamespace>;
15035
15199
  /**
15036
15200
  * Enforce a newline after import statements.
15037
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/newline-after-import.md
15201
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
15038
15202
  */
15039
15203
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
15040
15204
  /**
15041
15205
  * Forbid import of modules using absolute paths.
15042
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-absolute-path.md
15206
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
15043
15207
  */
15044
15208
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
15045
15209
  /**
15046
15210
  * Forbid AMD `require` and `define` calls.
15047
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-amd.md
15211
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
15048
15212
  */
15049
15213
  "import/no-amd"?: Linter.RuleEntry<[]>;
15050
15214
  /**
15051
15215
  * Forbid anonymous values as default exports.
15052
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-anonymous-default-export.md
15216
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
15053
15217
  */
15054
15218
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
15055
15219
  /**
15056
15220
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
15057
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-commonjs.md
15221
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
15058
15222
  */
15059
15223
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
15060
15224
  /**
15061
15225
  * Forbid a module from importing a module with a dependency path back to itself.
15062
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-cycle.md
15226
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
15063
15227
  */
15064
15228
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
15065
15229
  /**
15066
15230
  * Forbid default exports.
15067
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-default-export.md
15231
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
15068
15232
  */
15069
15233
  "import/no-default-export"?: Linter.RuleEntry<[]>;
15070
15234
  /**
15071
15235
  * Forbid imported names marked with `@deprecated` documentation tag.
15072
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-deprecated.md
15236
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
15073
15237
  */
15074
15238
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
15075
15239
  /**
15076
15240
  * Forbid repeated import of the same module in multiple places.
15077
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-duplicates.md
15241
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
15078
15242
  */
15079
15243
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
15080
15244
  /**
15081
15245
  * Forbid `require()` calls with expressions.
15082
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-dynamic-require.md
15246
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
15083
15247
  */
15084
15248
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
15085
15249
  /**
15086
15250
  * Forbid empty named import blocks.
15087
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-empty-named-blocks.md
15251
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
15088
15252
  */
15089
15253
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
15090
15254
  /**
15091
15255
  * Forbid the use of extraneous packages.
15092
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-extraneous-dependencies.md
15256
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
15093
15257
  */
15094
15258
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
15095
15259
  /**
15096
15260
  * Forbid import statements with CommonJS module.exports.
15097
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-import-module-exports.md
15261
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
15098
15262
  */
15099
15263
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
15100
15264
  /**
15101
15265
  * Forbid importing the submodules of other modules.
15102
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-internal-modules.md
15266
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
15103
15267
  */
15104
15268
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
15105
15269
  /**
15106
15270
  * Forbid the use of mutable exports with `var` or `let`.
15107
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-mutable-exports.md
15271
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
15108
15272
  */
15109
15273
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
15110
15274
  /**
15111
15275
  * Forbid use of exported name as identifier of default export.
15112
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default.md
15276
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
15113
15277
  */
15114
15278
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
15115
15279
  /**
15116
15280
  * Forbid use of exported name as property of default export.
15117
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default-member.md
15281
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
15118
15282
  */
15119
15283
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
15120
15284
  /**
15121
15285
  * Forbid named default exports.
15122
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-default.md
15286
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
15123
15287
  */
15124
15288
  "import/no-named-default"?: Linter.RuleEntry<[]>;
15125
15289
  /**
15126
15290
  * Forbid named exports.
15127
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-export.md
15291
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
15128
15292
  */
15129
15293
  "import/no-named-export"?: Linter.RuleEntry<[]>;
15130
15294
  /**
15131
15295
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
15132
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-namespace.md
15296
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
15133
15297
  */
15134
15298
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
15135
15299
  /**
15136
15300
  * Forbid Node.js builtin modules.
15137
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-nodejs-modules.md
15301
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
15138
15302
  */
15139
15303
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
15140
15304
  /**
15141
15305
  * Forbid importing packages through relative paths.
15142
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-packages.md
15306
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
15143
15307
  */
15144
15308
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
15145
15309
  /**
15146
15310
  * Forbid importing modules from parent directories.
15147
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-parent-imports.md
15311
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
15148
15312
  */
15149
15313
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
15150
15314
  /**
15151
15315
  * 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
15316
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
15153
15317
  */
15154
15318
  "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
15155
15319
  /**
15156
15320
  * Enforce which files can be imported in a given folder.
15157
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-restricted-paths.md
15321
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
15158
15322
  */
15159
15323
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
15160
15324
  /**
15161
15325
  * Forbid a module from importing itself.
15162
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-self-import.md
15326
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
15163
15327
  */
15164
15328
  "import/no-self-import"?: Linter.RuleEntry<[]>;
15165
15329
  /**
15166
15330
  * Forbid unassigned imports.
15167
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unassigned-import.md
15331
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
15168
15332
  */
15169
15333
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
15170
15334
  /**
15171
15335
  * Ensure imports point to a file/module that can be resolved.
15172
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unresolved.md
15336
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
15173
15337
  */
15174
15338
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
15175
15339
  /**
15176
15340
  * Forbid modules without exports, or exports without matching import in another module.
15177
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unused-modules.md
15341
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
15178
15342
  */
15179
15343
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
15180
15344
  /**
15181
15345
  * Forbid unnecessary path segments in import and require statements.
15182
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-useless-path-segments.md
15346
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
15183
15347
  */
15184
15348
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
15185
15349
  /**
15186
15350
  * Forbid webpack loader syntax in imports.
15187
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-webpack-loader-syntax.md
15351
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
15188
15352
  */
15189
15353
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
15190
15354
  /**
15191
15355
  * Enforce a convention in module import order.
15192
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/order.md
15356
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
15193
15357
  */
15194
15358
  "import/order"?: Linter.RuleEntry<ImportOrder>;
15195
15359
  /**
15196
15360
  * Prefer a default export if module exports a single name or multiple names.
15197
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/prefer-default-export.md
15361
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
15198
15362
  */
15199
15363
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
15200
15364
  /**
15201
15365
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
15202
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/unambiguous.md
15366
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
15203
15367
  */
15204
15368
  "import/unambiguous"?: Linter.RuleEntry<[]>;
15205
15369
  }
@@ -15244,6 +15408,7 @@ type TypescriptEslintBanTsComment =
15244
15408
  | {
15245
15409
  descriptionFormat?: string;
15246
15410
  };
15411
+
15247
15412
  minimumDescriptionLength?: number;
15248
15413
  },
15249
15414
  ];
@@ -15288,6 +15453,7 @@ type TypescriptEslintConsistentTypeAssertions =
15288
15453
  }
15289
15454
  | {
15290
15455
  assertionStyle: "as" | "angle-bracket";
15456
+
15291
15457
  objectLiteralTypeAssertions?:
15292
15458
  | "allow"
15293
15459
  | "allow-as-parameter"
@@ -15310,7 +15476,9 @@ type TypescriptEslintConsistentTypeImports =
15310
15476
  | [
15311
15477
  {
15312
15478
  disallowTypeAnnotations?: boolean;
15479
+
15313
15480
  fixStyle?: "separate-type-imports" | "inline-type-imports";
15481
+
15314
15482
  prefer?: "type-imports" | "no-type-imports";
15315
15483
  },
15316
15484
  ];
@@ -15320,9 +15488,13 @@ type TypescriptEslintDotNotation =
15320
15488
  | [
15321
15489
  {
15322
15490
  allowKeywords?: boolean;
15491
+
15323
15492
  allowPattern?: string;
15493
+
15324
15494
  allowPrivateClassPropertyAccess?: boolean;
15495
+
15325
15496
  allowProtectedClassPropertyAccess?: boolean;
15497
+
15326
15498
  allowIndexSignaturePropertyAccess?: boolean;
15327
15499
  },
15328
15500
  ];
@@ -15361,6 +15533,7 @@ type TypescriptEslintExplicitMemberAccessibility =
15361
15533
  properties?: "explicit" | "no-public" | "off";
15362
15534
  parameterProperties?: "explicit" | "no-public" | "off";
15363
15535
  };
15536
+
15364
15537
  ignoredMethodNames?: string[];
15365
15538
  },
15366
15539
  ];
@@ -15397,8 +15570,10 @@ type TypescriptEslintMaxParams =
15397
15570
  | []
15398
15571
  | [
15399
15572
  {
15400
- maximum?: number;
15401
15573
  max?: number;
15574
+
15575
+ maximum?: number;
15576
+
15402
15577
  countVoidThis?: boolean;
15403
15578
  },
15404
15579
  ];
@@ -17946,6 +18121,7 @@ type TypescriptEslintNoConfusingVoidExpression =
17946
18121
  | [
17947
18122
  {
17948
18123
  ignoreArrowShorthand?: boolean;
18124
+
17949
18125
  ignoreVoidOperator?: boolean;
17950
18126
  },
17951
18127
  ];
@@ -17955,6 +18131,7 @@ type TypescriptEslintNoDuplicateTypeConstituents =
17955
18131
  | [
17956
18132
  {
17957
18133
  ignoreIntersections?: boolean;
18134
+
17958
18135
  ignoreUnions?: boolean;
17959
18136
  },
17960
18137
  ];
@@ -17995,7 +18172,9 @@ type TypescriptEslintNoEmptyObjectType =
17995
18172
  | [
17996
18173
  {
17997
18174
  allowInterfaces?: "always" | "never" | "with-single-extends";
18175
+
17998
18176
  allowObjectTypes?: "always" | "never";
18177
+
17999
18178
  allowWithName?: string;
18000
18179
  },
18001
18180
  ];
@@ -18045,6 +18224,7 @@ type TypescriptEslintNoFloatingPromises =
18045
18224
  package: string;
18046
18225
  }
18047
18226
  )[];
18227
+
18048
18228
  allowForKnownSafeCalls?: (
18049
18229
  | string
18050
18230
  | {
@@ -18076,6 +18256,7 @@ type TypescriptEslintNoInferrableTypes =
18076
18256
  | [
18077
18257
  {
18078
18258
  ignoreParameters?: boolean;
18259
+
18079
18260
  ignoreProperties?: boolean;
18080
18261
  },
18081
18262
  ];
@@ -18093,6 +18274,7 @@ type TypescriptEslintNoInvalidVoidType =
18093
18274
  | [
18094
18275
  {
18095
18276
  allowInGenericTypeArguments?: boolean | [string, ...string[]];
18277
+
18096
18278
  allowAsThisParameter?: boolean;
18097
18279
  },
18098
18280
  ];
@@ -18107,9 +18289,13 @@ type TypescriptEslintNoMagicNumbers =
18107
18289
  ignoreArrayIndexes?: boolean;
18108
18290
  ignoreDefaultValues?: boolean;
18109
18291
  ignoreClassFieldInitialValues?: boolean;
18292
+
18110
18293
  ignoreNumericLiteralTypes?: boolean;
18294
+
18111
18295
  ignoreEnums?: boolean;
18296
+
18112
18297
  ignoreReadonlyClassProperties?: boolean;
18298
+
18113
18299
  ignoreTypeIndexes?: boolean;
18114
18300
  },
18115
18301
  ];
@@ -18131,12 +18317,18 @@ type TypescriptEslintNoMisusedPromises =
18131
18317
  | boolean
18132
18318
  | {
18133
18319
  arguments?: boolean;
18320
+
18134
18321
  attributes?: boolean;
18322
+
18135
18323
  inheritedMethods?: boolean;
18324
+
18136
18325
  properties?: boolean;
18326
+
18137
18327
  returns?: boolean;
18328
+
18138
18329
  variables?: boolean;
18139
18330
  };
18331
+
18140
18332
  checksSpreads?: boolean;
18141
18333
  },
18142
18334
  ];
@@ -18156,6 +18348,7 @@ type TypescriptEslintNoRedeclare =
18156
18348
  | [
18157
18349
  {
18158
18350
  builtinGlobals?: boolean;
18351
+
18159
18352
  ignoreDeclarationMerge?: boolean;
18160
18353
  },
18161
18354
  ];
@@ -18242,10 +18435,15 @@ type TypescriptEslintNoShadow =
18242
18435
  | [
18243
18436
  {
18244
18437
  builtinGlobals?: boolean;
18438
+
18245
18439
  hoist?: "all" | "functions" | "never";
18440
+
18246
18441
  allow?: string[];
18442
+
18247
18443
  ignoreOnInitialization?: boolean;
18444
+
18248
18445
  ignoreTypeValueShadow?: boolean;
18446
+
18249
18447
  ignoreFunctionTypeParameterNameValueShadow?: boolean;
18250
18448
  },
18251
18449
  ];
@@ -18347,14 +18545,23 @@ type TypescriptEslintNoUnusedVars =
18347
18545
  | ("all" | "local")
18348
18546
  | {
18349
18547
  vars?: "all" | "local";
18548
+
18350
18549
  varsIgnorePattern?: string;
18550
+
18351
18551
  args?: "all" | "after-used" | "none";
18352
- ignoreRestSiblings?: boolean;
18552
+
18353
18553
  argsIgnorePattern?: string;
18554
+
18354
18555
  caughtErrors?: "all" | "none";
18556
+
18355
18557
  caughtErrorsIgnorePattern?: string;
18558
+
18356
18559
  destructuredArrayIgnorePattern?: string;
18560
+
18357
18561
  ignoreClassWithStaticInitBlock?: boolean;
18562
+
18563
+ ignoreRestSiblings?: boolean;
18564
+
18358
18565
  reportUsedIgnorePattern?: boolean;
18359
18566
  },
18360
18567
  ];
@@ -18365,10 +18572,15 @@ type TypescriptEslintNoUseBeforeDefine =
18365
18572
  | "nofunc"
18366
18573
  | {
18367
18574
  functions?: boolean;
18575
+
18368
18576
  classes?: boolean;
18577
+
18369
18578
  enums?: boolean;
18579
+
18370
18580
  variables?: boolean;
18581
+
18371
18582
  typedefs?: boolean;
18583
+
18372
18584
  ignoreTypeReferences?: boolean;
18373
18585
  allowNamedExports?: boolean;
18374
18586
  },
@@ -18387,6 +18599,7 @@ type TypescriptEslintOnlyThrowError =
18387
18599
  | [
18388
18600
  {
18389
18601
  allowThrowingAny?: boolean;
18602
+
18390
18603
  allowThrowingUnknown?: boolean;
18391
18604
  },
18392
18605
  ];
@@ -18404,6 +18617,7 @@ type TypescriptEslintParameterProperties =
18404
18617
  | "protected readonly"
18405
18618
  | "public readonly"
18406
18619
  )[];
18620
+
18407
18621
  prefer?: "class-property" | "parameter-property";
18408
18622
  },
18409
18623
  ];
@@ -18463,8 +18677,11 @@ type TypescriptEslintPreferNullishCoalescing =
18463
18677
  | [
18464
18678
  {
18465
18679
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
18680
+
18466
18681
  ignoreConditionalTests?: boolean;
18682
+
18467
18683
  ignoreMixedLogicalExpressions?: boolean;
18684
+
18468
18685
  ignorePrimitives?:
18469
18686
  | {
18470
18687
  bigint?: boolean;
@@ -18474,6 +18691,7 @@ type TypescriptEslintPreferNullishCoalescing =
18474
18691
  [k: string]: unknown | undefined;
18475
18692
  }
18476
18693
  | true;
18694
+
18477
18695
  ignoreTernaryTests?: boolean;
18478
18696
  },
18479
18697
  ];
@@ -18537,8 +18755,11 @@ type TypescriptEslintPreferReadonlyParameterTypes =
18537
18755
  package: string;
18538
18756
  }
18539
18757
  )[];
18758
+
18540
18759
  checkParameterProperties?: boolean;
18760
+
18541
18761
  ignoreInferredTypes?: boolean;
18762
+
18542
18763
  treatMethodsAsReadonly?: boolean;
18543
18764
  },
18544
18765
  ];
@@ -18558,9 +18779,13 @@ type TypescriptEslintPromiseFunctionAsync =
18558
18779
  allowAny?: boolean;
18559
18780
 
18560
18781
  allowedPromiseNames?: string[];
18782
+
18561
18783
  checkArrowFunctions?: boolean;
18784
+
18562
18785
  checkFunctionDeclarations?: boolean;
18786
+
18563
18787
  checkFunctionExpressions?: boolean;
18788
+
18564
18789
  checkMethodDeclarations?: boolean;
18565
18790
  },
18566
18791
  ];
@@ -18608,12 +18833,38 @@ type TypescriptEslintRestrictTemplateExpressions =
18608
18833
  allowRegExp?: boolean;
18609
18834
 
18610
18835
  allowNever?: boolean;
18836
+
18837
+ allow?: (
18838
+ | string
18839
+ | {
18840
+ from: "file";
18841
+ name: string | [string, ...string[]];
18842
+ path?: string;
18843
+ }
18844
+ | {
18845
+ from: "lib";
18846
+ name: string | [string, ...string[]];
18847
+ }
18848
+ | {
18849
+ from: "package";
18850
+ name: string | [string, ...string[]];
18851
+ package: string;
18852
+ }
18853
+ )[];
18611
18854
  },
18612
18855
  ];
18613
18856
  // ----- @typescript-eslint/return-await -----
18614
18857
  type TypescriptEslintReturnAwait =
18615
18858
  | []
18616
- | ["in-try-catch" | "always" | "never" | "error-handling-correctness-only"];
18859
+ | [
18860
+ (
18861
+ | "always"
18862
+ | "error-handling-correctness-only"
18863
+ | "in-try-catch"
18864
+ | "never"
18865
+ ) &
18866
+ string,
18867
+ ];
18617
18868
  // ----- @typescript-eslint/sort-type-constituents -----
18618
18869
  type TypescriptEslintSortTypeConstituents =
18619
18870
  | []
@@ -18647,12 +18898,19 @@ type TypescriptEslintStrictBooleanExpressions =
18647
18898
  | [
18648
18899
  {
18649
18900
  allowString?: boolean;
18901
+
18650
18902
  allowNumber?: boolean;
18903
+
18651
18904
  allowNullableObject?: boolean;
18905
+
18652
18906
  allowNullableBoolean?: boolean;
18907
+
18653
18908
  allowNullableString?: boolean;
18909
+
18654
18910
  allowNullableNumber?: boolean;
18911
+
18655
18912
  allowNullableEnum?: boolean;
18913
+
18656
18914
  allowAny?: boolean;
18657
18915
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
18658
18916
  },
@@ -18673,7 +18931,9 @@ type TypescriptEslintTripleSlashReference =
18673
18931
  | [
18674
18932
  {
18675
18933
  lib?: "always" | "never";
18934
+
18676
18935
  path?: "always" | "never";
18936
+
18677
18937
  types?: "always" | "never" | "prefer-import";
18678
18938
  },
18679
18939
  ];
@@ -18683,12 +18943,19 @@ type TypescriptEslintTypedef =
18683
18943
  | [
18684
18944
  {
18685
18945
  arrayDestructuring?: boolean;
18946
+
18686
18947
  arrowParameter?: boolean;
18948
+
18687
18949
  memberVariableDeclaration?: boolean;
18950
+
18688
18951
  objectDestructuring?: boolean;
18952
+
18689
18953
  parameter?: boolean;
18954
+
18690
18955
  propertyDeclaration?: boolean;
18956
+
18691
18957
  variableDeclaration?: boolean;
18958
+
18692
18959
  variableDeclarationIgnoreFunction?: boolean;
18693
18960
  },
18694
18961
  ];
@@ -18894,6 +19161,7 @@ type ImportNoExtraneousDependencies =
18894
19161
  packageDir?: string | unknown[];
18895
19162
  includeInternal?: boolean;
18896
19163
  includeTypes?: boolean;
19164
+ whitelist?: unknown[];
18897
19165
  },
18898
19166
  ];
18899
19167
  // ----- import/no-import-module-exports -----