@jsse/eslint-config 0.3.2 → 0.3.3

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
@@ -4351,233 +4351,233 @@ interface IgnoresRuleOptions {}
4351
4351
  interface ImportsRuleOptions {
4352
4352
  /**
4353
4353
  * Enforce or ban the use of inline type-only markers for named imports.
4354
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
4354
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/consistent-type-specifier-style.md
4355
4355
  */
4356
4356
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
4357
4357
  /**
4358
4358
  * Ensure a default export is present, given a default import.
4359
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
4359
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/default.md
4360
4360
  */
4361
4361
  "import/default"?: Linter.RuleEntry<[]>;
4362
4362
  /**
4363
4363
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
4364
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
4364
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/dynamic-import-chunkname.md
4365
4365
  */
4366
4366
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
4367
4367
  /**
4368
4368
  * Forbid any invalid exports, i.e. re-export of the same name.
4369
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
4369
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/export.md
4370
4370
  */
4371
4371
  "import/export"?: Linter.RuleEntry<[]>;
4372
4372
  /**
4373
4373
  * Ensure all exports appear after other statements.
4374
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
4374
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/exports-last.md
4375
4375
  */
4376
4376
  "import/exports-last"?: Linter.RuleEntry<[]>;
4377
4377
  /**
4378
4378
  * Ensure consistent use of file extension within the import path.
4379
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
4379
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/extensions.md
4380
4380
  */
4381
4381
  "import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
4382
4382
  /**
4383
4383
  * Ensure all imports appear before other statements.
4384
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
4384
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/first.md
4385
4385
  */
4386
4386
  "import/first"?: Linter.RuleEntry<ImportFirst$1>;
4387
4387
  /**
4388
4388
  * Prefer named exports to be grouped together in a single export declaration.
4389
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
4389
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/group-exports.md
4390
4390
  */
4391
4391
  "import/group-exports"?: Linter.RuleEntry<[]>;
4392
4392
  /**
4393
4393
  * Replaced by `import-x/first`.
4394
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
4394
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/imports-first.md
4395
4395
  * @deprecated
4396
4396
  */
4397
4397
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
4398
4398
  /**
4399
4399
  * Enforce the maximum number of dependencies a module can have.
4400
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
4400
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/max-dependencies.md
4401
4401
  */
4402
4402
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
4403
4403
  /**
4404
4404
  * Ensure named imports correspond to a named export in the remote file.
4405
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
4405
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/named.md
4406
4406
  */
4407
4407
  "import/named"?: Linter.RuleEntry<ImportNamed$1>;
4408
4408
  /**
4409
4409
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
4410
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
4410
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/namespace.md
4411
4411
  */
4412
4412
  "import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
4413
4413
  /**
4414
4414
  * Enforce a newline after import statements.
4415
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
4415
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/newline-after-import.md
4416
4416
  */
4417
4417
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
4418
4418
  /**
4419
4419
  * Forbid import of modules using absolute paths.
4420
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
4420
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-absolute-path.md
4421
4421
  */
4422
4422
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
4423
4423
  /**
4424
4424
  * Forbid AMD `require` and `define` calls.
4425
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
4425
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-amd.md
4426
4426
  */
4427
4427
  "import/no-amd"?: Linter.RuleEntry<[]>;
4428
4428
  /**
4429
4429
  * Forbid anonymous values as default exports.
4430
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
4430
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-anonymous-default-export.md
4431
4431
  */
4432
4432
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
4433
4433
  /**
4434
4434
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
4435
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
4435
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-commonjs.md
4436
4436
  */
4437
4437
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
4438
4438
  /**
4439
4439
  * Forbid a module from importing a module with a dependency path back to itself.
4440
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
4440
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-cycle.md
4441
4441
  */
4442
4442
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
4443
4443
  /**
4444
4444
  * Forbid default exports.
4445
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
4445
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-default-export.md
4446
4446
  */
4447
4447
  "import/no-default-export"?: Linter.RuleEntry<[]>;
4448
4448
  /**
4449
4449
  * Forbid imported names marked with `@deprecated` documentation tag.
4450
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
4450
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-deprecated.md
4451
4451
  */
4452
4452
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
4453
4453
  /**
4454
4454
  * Forbid repeated import of the same module in multiple places.
4455
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
4455
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-duplicates.md
4456
4456
  */
4457
4457
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
4458
4458
  /**
4459
4459
  * Forbid `require()` calls with expressions.
4460
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
4460
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-dynamic-require.md
4461
4461
  */
4462
4462
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
4463
4463
  /**
4464
4464
  * Forbid empty named import blocks.
4465
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
4465
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-empty-named-blocks.md
4466
4466
  */
4467
4467
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
4468
4468
  /**
4469
4469
  * Forbid the use of extraneous packages.
4470
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
4470
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-extraneous-dependencies.md
4471
4471
  */
4472
4472
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
4473
4473
  /**
4474
4474
  * Forbid import statements with CommonJS module.exports.
4475
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
4475
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-import-module-exports.md
4476
4476
  */
4477
4477
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
4478
4478
  /**
4479
4479
  * Forbid importing the submodules of other modules.
4480
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
4480
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-internal-modules.md
4481
4481
  */
4482
4482
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
4483
4483
  /**
4484
4484
  * Forbid the use of mutable exports with `var` or `let`.
4485
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
4485
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-mutable-exports.md
4486
4486
  */
4487
4487
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
4488
4488
  /**
4489
4489
  * Forbid use of exported name as identifier of default export.
4490
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
4490
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-as-default.md
4491
4491
  */
4492
4492
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
4493
4493
  /**
4494
4494
  * Forbid use of exported name as property of default export.
4495
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
4495
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-as-default-member.md
4496
4496
  */
4497
4497
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
4498
4498
  /**
4499
4499
  * Forbid named default exports.
4500
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
4500
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-default.md
4501
4501
  */
4502
4502
  "import/no-named-default"?: Linter.RuleEntry<[]>;
4503
4503
  /**
4504
4504
  * Forbid named exports.
4505
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
4505
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-export.md
4506
4506
  */
4507
4507
  "import/no-named-export"?: Linter.RuleEntry<[]>;
4508
4508
  /**
4509
4509
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
4510
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
4510
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-namespace.md
4511
4511
  */
4512
4512
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
4513
4513
  /**
4514
4514
  * Forbid Node.js builtin modules.
4515
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
4515
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-nodejs-modules.md
4516
4516
  */
4517
4517
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
4518
4518
  /**
4519
4519
  * Forbid importing packages through relative paths.
4520
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
4520
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-relative-packages.md
4521
4521
  */
4522
4522
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
4523
4523
  /**
4524
4524
  * Forbid importing modules from parent directories.
4525
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
4525
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-relative-parent-imports.md
4526
4526
  */
4527
4527
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
4528
4528
  /**
4529
4529
  * Forbid importing a default export by a different name.
4530
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
4530
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-rename-default.md
4531
4531
  */
4532
4532
  "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
4533
4533
  /**
4534
4534
  * Enforce which files can be imported in a given folder.
4535
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
4535
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-restricted-paths.md
4536
4536
  */
4537
4537
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
4538
4538
  /**
4539
4539
  * Forbid a module from importing itself.
4540
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
4540
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-self-import.md
4541
4541
  */
4542
4542
  "import/no-self-import"?: Linter.RuleEntry<[]>;
4543
4543
  /**
4544
4544
  * Forbid unassigned imports.
4545
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
4545
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unassigned-import.md
4546
4546
  */
4547
4547
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
4548
4548
  /**
4549
4549
  * Ensure imports point to a file/module that can be resolved.
4550
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
4550
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unresolved.md
4551
4551
  */
4552
4552
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
4553
4553
  /**
4554
4554
  * Forbid modules without exports, or exports without matching import in another module.
4555
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
4555
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unused-modules.md
4556
4556
  */
4557
4557
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
4558
4558
  /**
4559
4559
  * Forbid unnecessary path segments in import and require statements.
4560
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
4560
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-useless-path-segments.md
4561
4561
  */
4562
4562
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
4563
4563
  /**
4564
4564
  * Forbid webpack loader syntax in imports.
4565
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
4565
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-webpack-loader-syntax.md
4566
4566
  */
4567
4567
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
4568
4568
  /**
4569
4569
  * Enforce a convention in module import order.
4570
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
4570
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/order.md
4571
4571
  */
4572
4572
  "import/order"?: Linter.RuleEntry<ImportOrder$1>;
4573
4573
  /**
4574
4574
  * Prefer a default export if module exports a single name or multiple names.
4575
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
4575
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/prefer-default-export.md
4576
4576
  */
4577
4577
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
4578
4578
  /**
4579
4579
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
4580
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
4580
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/unambiguous.md
4581
4581
  */
4582
4582
  "import/unambiguous"?: Linter.RuleEntry<[]>;
4583
4583
  }
@@ -4586,7 +4586,7 @@ interface ImportsRuleOptions {
4586
4586
  // ----- import/consistent-type-specifier-style -----
4587
4587
  type ImportConsistentTypeSpecifierStyle$1 =
4588
4588
  | []
4589
- | ["prefer-inline" | "prefer-top-level"];
4589
+ | ["prefer-top-level" | "prefer-inline"];
4590
4590
  // ----- import/dynamic-import-chunkname -----
4591
4591
  type ImportDynamicImportChunkname$1 =
4592
4592
  | []
@@ -4944,6 +4944,23 @@ type ImportOrder$1 =
4944
4944
  | "always"
4945
4945
  | "always-and-inside-groups"
4946
4946
  | "never";
4947
+ "newlines-between-types"?:
4948
+ | "ignore"
4949
+ | "always"
4950
+ | "always-and-inside-groups"
4951
+ | "never";
4952
+ consolidateIslands?: "inside-groups" | "never";
4953
+ sortTypesGroup?: boolean;
4954
+ named?:
4955
+ | boolean
4956
+ | {
4957
+ enabled?: boolean;
4958
+ import?: boolean;
4959
+ export?: boolean;
4960
+ require?: boolean;
4961
+ cjsExports?: boolean;
4962
+ types?: "mixed" | "types-first" | "types-last";
4963
+ };
4947
4964
  alphabetize?: {
4948
4965
  caseInsensitive?: boolean;
4949
4966
  order?: "ignore" | "asc" | "desc";
@@ -9810,6 +9827,9 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9810
9827
  | "zlib.Unzip()"
9811
9828
  | "zlib.Unzip"
9812
9829
  | "zlib"
9830
+ | "import.meta.resolve"
9831
+ | "import.meta.dirname"
9832
+ | "import.meta.filename"
9813
9833
  )[];
9814
9834
  },
9815
9835
  ];
@@ -10843,10 +10863,32 @@ type PerfectionistSortEnums =
10843
10863
  },
10844
10864
  ];
10845
10865
  // ----- perfectionist/sort-exports -----
10846
- type PerfectionistSortExports =
10847
- | []
10848
- | [
10849
- {
10866
+ type PerfectionistSortExports = {
10867
+ fallbackSort?: {
10868
+ order?: "asc" | "desc";
10869
+
10870
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10871
+ [k: string]: unknown | undefined;
10872
+ };
10873
+
10874
+ specialCharacters?: "remove" | "trim" | "keep";
10875
+
10876
+ ignoreCase?: boolean;
10877
+
10878
+ alphabet?: string;
10879
+
10880
+ locales?: string | string[];
10881
+
10882
+ order?: "asc" | "desc";
10883
+
10884
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10885
+
10886
+ groupKind?: "mixed" | "values-first" | "types-first";
10887
+
10888
+ customGroups?: (
10889
+ | {
10890
+ newlinesInside?: "always" | "never";
10891
+
10850
10892
  fallbackSort?: {
10851
10893
  order?: "asc" | "desc";
10852
10894
 
@@ -10859,13 +10901,54 @@ type PerfectionistSortExports =
10859
10901
  [k: string]: unknown | undefined;
10860
10902
  };
10861
10903
 
10862
- specialCharacters?: "remove" | "trim" | "keep";
10904
+ groupName?: string;
10863
10905
 
10864
- ignoreCase?: boolean;
10906
+ order?: "asc" | "desc";
10865
10907
 
10866
- alphabet?: string;
10908
+ type?:
10909
+ | "alphabetical"
10910
+ | "natural"
10911
+ | "line-length"
10912
+ | "custom"
10913
+ | "unsorted";
10914
+ anyOf?: {
10915
+ modifiers?: ("value" | "type")[];
10867
10916
 
10868
- locales?: string | string[];
10917
+ selector?: "export";
10918
+
10919
+ elementNamePattern?:
10920
+ | (
10921
+ | {
10922
+ pattern?: string;
10923
+ flags?: string;
10924
+ }
10925
+ | string
10926
+ )[]
10927
+ | (
10928
+ | {
10929
+ pattern?: string;
10930
+ flags?: string;
10931
+ }
10932
+ | string
10933
+ );
10934
+ }[];
10935
+ }
10936
+ | {
10937
+ newlinesInside?: "always" | "never";
10938
+
10939
+ fallbackSort?: {
10940
+ order?: "asc" | "desc";
10941
+
10942
+ type?:
10943
+ | "alphabetical"
10944
+ | "natural"
10945
+ | "line-length"
10946
+ | "custom"
10947
+ | "unsorted";
10948
+ [k: string]: unknown | undefined;
10949
+ };
10950
+
10951
+ groupName?: string;
10869
10952
 
10870
10953
  order?: "asc" | "desc";
10871
10954
 
@@ -10876,9 +10959,48 @@ type PerfectionistSortExports =
10876
10959
  | "custom"
10877
10960
  | "unsorted";
10878
10961
 
10879
- groupKind?: "mixed" | "values-first" | "types-first";
10962
+ modifiers?: ("value" | "type")[];
10880
10963
 
10881
- partitionByComment?:
10964
+ selector?: "export";
10965
+
10966
+ elementNamePattern?:
10967
+ | (
10968
+ | {
10969
+ pattern?: string;
10970
+ flags?: string;
10971
+ }
10972
+ | string
10973
+ )[]
10974
+ | (
10975
+ | {
10976
+ pattern?: string;
10977
+ flags?: string;
10978
+ }
10979
+ | string
10980
+ );
10981
+ }
10982
+ )[];
10983
+
10984
+ partitionByComment?:
10985
+ | boolean
10986
+ | (
10987
+ | (
10988
+ | {
10989
+ pattern?: string;
10990
+ flags?: string;
10991
+ }
10992
+ | string
10993
+ )[]
10994
+ | (
10995
+ | {
10996
+ pattern?: string;
10997
+ flags?: string;
10998
+ }
10999
+ | string
11000
+ )
11001
+ )
11002
+ | {
11003
+ block?:
10882
11004
  | boolean
10883
11005
  | (
10884
11006
  | (
@@ -10895,49 +11017,39 @@ type PerfectionistSortExports =
10895
11017
  }
10896
11018
  | string
10897
11019
  )
10898
- )
10899
- | {
10900
- block?:
10901
- | boolean
10902
- | (
10903
- | (
10904
- | {
10905
- pattern?: string;
10906
- flags?: string;
10907
- }
10908
- | string
10909
- )[]
10910
- | (
10911
- | {
10912
- pattern?: string;
10913
- flags?: string;
10914
- }
10915
- | string
10916
- )
10917
- );
10918
- line?:
10919
- | boolean
10920
- | (
10921
- | (
10922
- | {
10923
- pattern?: string;
10924
- flags?: string;
10925
- }
10926
- | string
10927
- )[]
10928
- | (
10929
- | {
10930
- pattern?: string;
10931
- flags?: string;
10932
- }
10933
- | string
10934
- )
10935
- );
10936
- };
11020
+ );
11021
+ line?:
11022
+ | boolean
11023
+ | (
11024
+ | (
11025
+ | {
11026
+ pattern?: string;
11027
+ flags?: string;
11028
+ }
11029
+ | string
11030
+ )[]
11031
+ | (
11032
+ | {
11033
+ pattern?: string;
11034
+ flags?: string;
11035
+ }
11036
+ | string
11037
+ )
11038
+ );
11039
+ };
10937
11040
 
10938
- partitionByNewLine?: boolean;
10939
- },
10940
- ];
11041
+ partitionByNewLine?: boolean;
11042
+
11043
+ newlinesBetween?: "ignore" | "always" | "never";
11044
+
11045
+ groups?: (
11046
+ | string
11047
+ | string[]
11048
+ | {
11049
+ newlinesBetween?: "ignore" | "always" | "never";
11050
+ }
11051
+ )[];
11052
+ }[];
10941
11053
  // ----- perfectionist/sort-heritage-clauses -----
10942
11054
  type PerfectionistSortHeritageClauses =
10943
11055
  | []
@@ -11285,6 +11397,8 @@ type PerfectionistSortInterfaces = {
11285
11397
  sortBy?: "name" | "value";
11286
11398
  }
11287
11399
  )[];
11400
+
11401
+ groupKind?: "mixed" | "required-first" | "optional-first";
11288
11402
  useConfigurationIf?: {
11289
11403
  allNamesMatchPattern?:
11290
11404
  | (
@@ -11319,8 +11433,6 @@ type PerfectionistSortInterfaces = {
11319
11433
  );
11320
11434
  };
11321
11435
 
11322
- groupKind?: "mixed" | "required-first" | "optional-first";
11323
-
11324
11436
  partitionByComment?:
11325
11437
  | boolean
11326
11438
  | (
@@ -11531,6 +11643,137 @@ type PerfectionistSortJsxProps = {
11531
11643
  order?: "asc" | "desc";
11532
11644
 
11533
11645
  type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11646
+ customGroups?:
11647
+ | {
11648
+ [k: string]: (string | string[]) | undefined;
11649
+ }
11650
+ | (
11651
+ | {
11652
+ newlinesInside?: "always" | "never";
11653
+
11654
+ fallbackSort?: {
11655
+ order?: "asc" | "desc";
11656
+
11657
+ type?:
11658
+ | "alphabetical"
11659
+ | "natural"
11660
+ | "line-length"
11661
+ | "custom"
11662
+ | "unsorted";
11663
+ [k: string]: unknown | undefined;
11664
+ };
11665
+
11666
+ groupName?: string;
11667
+
11668
+ order?: "asc" | "desc";
11669
+
11670
+ type?:
11671
+ | "alphabetical"
11672
+ | "natural"
11673
+ | "line-length"
11674
+ | "custom"
11675
+ | "unsorted";
11676
+ anyOf?: {
11677
+ modifiers?: ("shorthand" | "multiline")[];
11678
+
11679
+ selector?: "multiline" | "prop" | "shorthand";
11680
+
11681
+ elementValuePattern?:
11682
+ | (
11683
+ | {
11684
+ pattern?: string;
11685
+ flags?: string;
11686
+ }
11687
+ | string
11688
+ )[]
11689
+ | (
11690
+ | {
11691
+ pattern?: string;
11692
+ flags?: string;
11693
+ }
11694
+ | string
11695
+ );
11696
+
11697
+ elementNamePattern?:
11698
+ | (
11699
+ | {
11700
+ pattern?: string;
11701
+ flags?: string;
11702
+ }
11703
+ | string
11704
+ )[]
11705
+ | (
11706
+ | {
11707
+ pattern?: string;
11708
+ flags?: string;
11709
+ }
11710
+ | string
11711
+ );
11712
+ }[];
11713
+ }
11714
+ | {
11715
+ newlinesInside?: "always" | "never";
11716
+
11717
+ fallbackSort?: {
11718
+ order?: "asc" | "desc";
11719
+
11720
+ type?:
11721
+ | "alphabetical"
11722
+ | "natural"
11723
+ | "line-length"
11724
+ | "custom"
11725
+ | "unsorted";
11726
+ [k: string]: unknown | undefined;
11727
+ };
11728
+
11729
+ groupName?: string;
11730
+
11731
+ order?: "asc" | "desc";
11732
+
11733
+ type?:
11734
+ | "alphabetical"
11735
+ | "natural"
11736
+ | "line-length"
11737
+ | "custom"
11738
+ | "unsorted";
11739
+
11740
+ modifiers?: ("shorthand" | "multiline")[];
11741
+
11742
+ selector?: "multiline" | "prop" | "shorthand";
11743
+
11744
+ elementValuePattern?:
11745
+ | (
11746
+ | {
11747
+ pattern?: string;
11748
+ flags?: string;
11749
+ }
11750
+ | string
11751
+ )[]
11752
+ | (
11753
+ | {
11754
+ pattern?: string;
11755
+ flags?: string;
11756
+ }
11757
+ | string
11758
+ );
11759
+
11760
+ elementNamePattern?:
11761
+ | (
11762
+ | {
11763
+ pattern?: string;
11764
+ flags?: string;
11765
+ }
11766
+ | string
11767
+ )[]
11768
+ | (
11769
+ | {
11770
+ pattern?: string;
11771
+ flags?: string;
11772
+ }
11773
+ | string
11774
+ );
11775
+ }
11776
+ )[];
11534
11777
  useConfigurationIf?: {
11535
11778
  allNamesMatchPattern?:
11536
11779
  | (
@@ -11569,10 +11812,6 @@ type PerfectionistSortJsxProps = {
11569
11812
 
11570
11813
  newlinesBetween?: "ignore" | "always" | "never";
11571
11814
 
11572
- customGroups?: {
11573
- [k: string]: (string | string[]) | undefined;
11574
- };
11575
-
11576
11815
  ignorePattern?:
11577
11816
  | (
11578
11817
  | {
@@ -12397,6 +12636,8 @@ type PerfectionistSortObjectTypes = {
12397
12636
  sortBy?: "name" | "value";
12398
12637
  }
12399
12638
  )[];
12639
+
12640
+ groupKind?: "mixed" | "required-first" | "optional-first";
12400
12641
  useConfigurationIf?: {
12401
12642
  allNamesMatchPattern?:
12402
12643
  | (
@@ -12431,8 +12672,6 @@ type PerfectionistSortObjectTypes = {
12431
12672
  );
12432
12673
  };
12433
12674
 
12434
- groupKind?: "mixed" | "required-first" | "optional-first";
12435
-
12436
12675
  partitionByComment?:
12437
12676
  | boolean
12438
12677
  | (
@@ -17284,6 +17523,11 @@ interface VitestRuleOptions {
17284
17523
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
17285
17524
  */
17286
17525
  "vitest/prefer-comparison-matcher"?: Linter.RuleEntry<[]>;
17526
+ /**
17527
+ * enforce using a function as a describe title over an equivalent string
17528
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-describe-function-title.md
17529
+ */
17530
+ "vitest/prefer-describe-function-title"?: Linter.RuleEntry<[]>;
17287
17531
  /**
17288
17532
  * enforce using `each` rather than manual loops
17289
17533
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
@@ -18484,233 +18728,233 @@ interface TypescriptRuleOptions {
18484
18728
  >;
18485
18729
  /**
18486
18730
  * Enforce or ban the use of inline type-only markers for named imports.
18487
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
18731
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/consistent-type-specifier-style.md
18488
18732
  */
18489
18733
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
18490
18734
  /**
18491
18735
  * Ensure a default export is present, given a default import.
18492
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
18736
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/default.md
18493
18737
  */
18494
18738
  "import/default"?: Linter.RuleEntry<[]>;
18495
18739
  /**
18496
18740
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
18497
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
18741
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/dynamic-import-chunkname.md
18498
18742
  */
18499
18743
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
18500
18744
  /**
18501
18745
  * Forbid any invalid exports, i.e. re-export of the same name.
18502
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
18746
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/export.md
18503
18747
  */
18504
18748
  "import/export"?: Linter.RuleEntry<[]>;
18505
18749
  /**
18506
18750
  * Ensure all exports appear after other statements.
18507
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
18751
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/exports-last.md
18508
18752
  */
18509
18753
  "import/exports-last"?: Linter.RuleEntry<[]>;
18510
18754
  /**
18511
18755
  * Ensure consistent use of file extension within the import path.
18512
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
18756
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/extensions.md
18513
18757
  */
18514
18758
  "import/extensions"?: Linter.RuleEntry<ImportExtensions>;
18515
18759
  /**
18516
18760
  * Ensure all imports appear before other statements.
18517
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
18761
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/first.md
18518
18762
  */
18519
18763
  "import/first"?: Linter.RuleEntry<ImportFirst>;
18520
18764
  /**
18521
18765
  * Prefer named exports to be grouped together in a single export declaration.
18522
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
18766
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/group-exports.md
18523
18767
  */
18524
18768
  "import/group-exports"?: Linter.RuleEntry<[]>;
18525
18769
  /**
18526
18770
  * Replaced by `import-x/first`.
18527
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
18771
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/imports-first.md
18528
18772
  * @deprecated
18529
18773
  */
18530
18774
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
18531
18775
  /**
18532
18776
  * Enforce the maximum number of dependencies a module can have.
18533
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
18777
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/max-dependencies.md
18534
18778
  */
18535
18779
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
18536
18780
  /**
18537
18781
  * Ensure named imports correspond to a named export in the remote file.
18538
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
18782
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/named.md
18539
18783
  */
18540
18784
  "import/named"?: Linter.RuleEntry<ImportNamed>;
18541
18785
  /**
18542
18786
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
18543
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
18787
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/namespace.md
18544
18788
  */
18545
18789
  "import/namespace"?: Linter.RuleEntry<ImportNamespace>;
18546
18790
  /**
18547
18791
  * Enforce a newline after import statements.
18548
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
18792
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/newline-after-import.md
18549
18793
  */
18550
18794
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
18551
18795
  /**
18552
18796
  * Forbid import of modules using absolute paths.
18553
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
18797
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-absolute-path.md
18554
18798
  */
18555
18799
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
18556
18800
  /**
18557
18801
  * Forbid AMD `require` and `define` calls.
18558
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
18802
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-amd.md
18559
18803
  */
18560
18804
  "import/no-amd"?: Linter.RuleEntry<[]>;
18561
18805
  /**
18562
18806
  * Forbid anonymous values as default exports.
18563
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
18807
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-anonymous-default-export.md
18564
18808
  */
18565
18809
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
18566
18810
  /**
18567
18811
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
18568
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
18812
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-commonjs.md
18569
18813
  */
18570
18814
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
18571
18815
  /**
18572
18816
  * Forbid a module from importing a module with a dependency path back to itself.
18573
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
18817
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-cycle.md
18574
18818
  */
18575
18819
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
18576
18820
  /**
18577
18821
  * Forbid default exports.
18578
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
18822
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-default-export.md
18579
18823
  */
18580
18824
  "import/no-default-export"?: Linter.RuleEntry<[]>;
18581
18825
  /**
18582
18826
  * Forbid imported names marked with `@deprecated` documentation tag.
18583
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
18827
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-deprecated.md
18584
18828
  */
18585
18829
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
18586
18830
  /**
18587
18831
  * Forbid repeated import of the same module in multiple places.
18588
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
18832
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-duplicates.md
18589
18833
  */
18590
18834
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
18591
18835
  /**
18592
18836
  * Forbid `require()` calls with expressions.
18593
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
18837
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-dynamic-require.md
18594
18838
  */
18595
18839
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
18596
18840
  /**
18597
18841
  * Forbid empty named import blocks.
18598
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
18842
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-empty-named-blocks.md
18599
18843
  */
18600
18844
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
18601
18845
  /**
18602
18846
  * Forbid the use of extraneous packages.
18603
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
18847
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-extraneous-dependencies.md
18604
18848
  */
18605
18849
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
18606
18850
  /**
18607
18851
  * Forbid import statements with CommonJS module.exports.
18608
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
18852
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-import-module-exports.md
18609
18853
  */
18610
18854
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
18611
18855
  /**
18612
18856
  * Forbid importing the submodules of other modules.
18613
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
18857
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-internal-modules.md
18614
18858
  */
18615
18859
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
18616
18860
  /**
18617
18861
  * Forbid the use of mutable exports with `var` or `let`.
18618
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
18862
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-mutable-exports.md
18619
18863
  */
18620
18864
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
18621
18865
  /**
18622
18866
  * Forbid use of exported name as identifier of default export.
18623
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
18867
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-as-default.md
18624
18868
  */
18625
18869
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
18626
18870
  /**
18627
18871
  * Forbid use of exported name as property of default export.
18628
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
18872
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-as-default-member.md
18629
18873
  */
18630
18874
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
18631
18875
  /**
18632
18876
  * Forbid named default exports.
18633
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
18877
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-default.md
18634
18878
  */
18635
18879
  "import/no-named-default"?: Linter.RuleEntry<[]>;
18636
18880
  /**
18637
18881
  * Forbid named exports.
18638
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
18882
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-export.md
18639
18883
  */
18640
18884
  "import/no-named-export"?: Linter.RuleEntry<[]>;
18641
18885
  /**
18642
18886
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
18643
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
18887
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-namespace.md
18644
18888
  */
18645
18889
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
18646
18890
  /**
18647
18891
  * Forbid Node.js builtin modules.
18648
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
18892
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-nodejs-modules.md
18649
18893
  */
18650
18894
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
18651
18895
  /**
18652
18896
  * Forbid importing packages through relative paths.
18653
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
18897
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-relative-packages.md
18654
18898
  */
18655
18899
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
18656
18900
  /**
18657
18901
  * Forbid importing modules from parent directories.
18658
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
18902
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-relative-parent-imports.md
18659
18903
  */
18660
18904
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
18661
18905
  /**
18662
18906
  * Forbid importing a default export by a different name.
18663
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
18907
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-rename-default.md
18664
18908
  */
18665
18909
  "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
18666
18910
  /**
18667
18911
  * Enforce which files can be imported in a given folder.
18668
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
18912
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-restricted-paths.md
18669
18913
  */
18670
18914
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
18671
18915
  /**
18672
18916
  * Forbid a module from importing itself.
18673
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
18917
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-self-import.md
18674
18918
  */
18675
18919
  "import/no-self-import"?: Linter.RuleEntry<[]>;
18676
18920
  /**
18677
18921
  * Forbid unassigned imports.
18678
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
18922
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unassigned-import.md
18679
18923
  */
18680
18924
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
18681
18925
  /**
18682
18926
  * Ensure imports point to a file/module that can be resolved.
18683
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
18927
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unresolved.md
18684
18928
  */
18685
18929
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
18686
18930
  /**
18687
18931
  * Forbid modules without exports, or exports without matching import in another module.
18688
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
18932
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unused-modules.md
18689
18933
  */
18690
18934
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
18691
18935
  /**
18692
18936
  * Forbid unnecessary path segments in import and require statements.
18693
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
18937
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-useless-path-segments.md
18694
18938
  */
18695
18939
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
18696
18940
  /**
18697
18941
  * Forbid webpack loader syntax in imports.
18698
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
18942
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-webpack-loader-syntax.md
18699
18943
  */
18700
18944
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
18701
18945
  /**
18702
18946
  * Enforce a convention in module import order.
18703
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
18947
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/order.md
18704
18948
  */
18705
18949
  "import/order"?: Linter.RuleEntry<ImportOrder>;
18706
18950
  /**
18707
18951
  * Prefer a default export if module exports a single name or multiple names.
18708
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
18952
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/prefer-default-export.md
18709
18953
  */
18710
18954
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
18711
18955
  /**
18712
18956
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
18713
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
18957
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/unambiguous.md
18714
18958
  */
18715
18959
  "import/unambiguous"?: Linter.RuleEntry<[]>;
18716
18960
  }
@@ -22110,6 +22354,8 @@ type TypescriptEslintPreferNullishCoalescing =
22110
22354
 
22111
22355
  ignoreConditionalTests?: boolean;
22112
22356
 
22357
+ ignoreIfStatements?: boolean;
22358
+
22113
22359
  ignoreMixedLogicalExpressions?: boolean;
22114
22360
 
22115
22361
  ignorePrimitives?:
@@ -22422,7 +22668,7 @@ type TypescriptEslintUnifiedSignatures =
22422
22668
  // ----- import/consistent-type-specifier-style -----
22423
22669
  type ImportConsistentTypeSpecifierStyle =
22424
22670
  | []
22425
- | ["prefer-inline" | "prefer-top-level"];
22671
+ | ["prefer-top-level" | "prefer-inline"];
22426
22672
  // ----- import/dynamic-import-chunkname -----
22427
22673
  type ImportDynamicImportChunkname =
22428
22674
  | []
@@ -22780,6 +23026,23 @@ type ImportOrder =
22780
23026
  | "always"
22781
23027
  | "always-and-inside-groups"
22782
23028
  | "never";
23029
+ "newlines-between-types"?:
23030
+ | "ignore"
23031
+ | "always"
23032
+ | "always-and-inside-groups"
23033
+ | "never";
23034
+ consolidateIslands?: "inside-groups" | "never";
23035
+ sortTypesGroup?: boolean;
23036
+ named?:
23037
+ | boolean
23038
+ | {
23039
+ enabled?: boolean;
23040
+ import?: boolean;
23041
+ export?: boolean;
23042
+ require?: boolean;
23043
+ cjsExports?: boolean;
23044
+ types?: "mixed" | "types-first" | "types-last";
23045
+ };
22783
23046
  alphabetize?: {
22784
23047
  caseInsensitive?: boolean;
22785
23048
  order?: "ignore" | "asc" | "desc";
@@ -22804,642 +23067,643 @@ type ImportPreferDefaultExport =
22804
23067
  interface UnicornRuleOptions {
22805
23068
  /**
22806
23069
  * Improve regexes by making them shorter, consistent, and safer.
22807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
23070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
22808
23071
  */
22809
23072
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
22810
23073
  /**
22811
23074
  * Enforce a specific parameter name in catch clauses.
22812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
23075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
22813
23076
  */
22814
23077
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
22815
23078
  /**
22816
23079
  * Enforce consistent assertion style with `node:assert`.
22817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
23080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
22818
23081
  */
22819
23082
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
22820
23083
  /**
22821
23084
  * Prefer passing `Date` directly to the constructor when cloning.
22822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
23085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
22823
23086
  */
22824
23087
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
22825
23088
  /**
22826
23089
  * Use destructured variables over properties.
22827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
23090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
22828
23091
  */
22829
23092
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
22830
23093
  /**
22831
23094
  * Prefer consistent types when spreading a ternary in an array literal.
22832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
23095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
22833
23096
  */
22834
23097
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
22835
23098
  /**
22836
23099
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
22837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
23100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
22838
23101
  */
22839
23102
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
22840
23103
  /**
22841
23104
  * Move function definitions to the highest possible scope.
22842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
23105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
22843
23106
  */
22844
23107
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
22845
23108
  /**
22846
23109
  * Enforce correct `Error` subclassing.
22847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
23110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
22848
23111
  */
22849
23112
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
22850
23113
  /**
22851
23114
  * Enforce no spaces between braces.
22852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
23115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
22853
23116
  */
22854
23117
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
22855
23118
  /**
22856
23119
  * Enforce passing a `message` value when creating a built-in error.
22857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
23120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
22858
23121
  */
22859
23122
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
22860
23123
  /**
22861
- * Require escape sequences to use uppercase values.
22862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
23124
+ * Require escape sequences to use uppercase or lowercase values.
23125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
22863
23126
  */
22864
- "unicorn/escape-case"?: Linter.RuleEntry<[]>;
23127
+ "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
22865
23128
  /**
22866
23129
  * Add expiration conditions to TODO comments.
22867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
23130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
22868
23131
  */
22869
23132
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
22870
23133
  /**
22871
23134
  * Enforce explicitly comparing the `length` or `size` property of a value.
22872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
23135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
22873
23136
  */
22874
23137
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
22875
23138
  /**
22876
23139
  * Enforce a case style for filenames.
22877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
23140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
22878
23141
  */
22879
23142
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
22880
23143
  /**
22881
23144
  * Enforce specific import styles per module.
22882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
23145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
22883
23146
  */
22884
23147
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
22885
23148
  /**
22886
23149
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
22887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
23150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
22888
23151
  */
22889
23152
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
22890
23153
  /**
22891
23154
  * Enforce specifying rules to disable in `eslint-disable` comments.
22892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
23155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
22893
23156
  */
22894
23157
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
22895
23158
  /**
22896
23159
  * Disallow recursive access to `this` within getters and setters.
22897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
23160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
22898
23161
  */
22899
23162
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
22900
23163
  /**
22901
23164
  * Disallow anonymous functions and classes as the default export.
22902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
23165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
22903
23166
  */
22904
23167
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
22905
23168
  /**
22906
23169
  * Prevent passing a function reference directly to iterator methods.
22907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
23170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
22908
23171
  */
22909
23172
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
22910
23173
  /**
22911
23174
  * Prefer `for…of` over the `forEach` method.
22912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
23175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
22913
23176
  */
22914
23177
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
22915
23178
  /**
22916
23179
  * Disallow using the `this` argument in array methods.
22917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
23180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
22918
23181
  */
22919
23182
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
22920
23183
  /**
22921
23184
  * Enforce combining multiple `Array#push()` into one call.
22922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
23185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
22923
23186
  */
22924
23187
  "unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
22925
23188
  /**
22926
23189
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
22927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
23190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
22928
23191
  */
22929
23192
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
22930
23193
  /**
22931
23194
  * Disallow member access from await expression.
22932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
23195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
22933
23196
  */
22934
23197
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
22935
23198
  /**
22936
23199
  * Disallow using `await` in `Promise` method parameters.
22937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
23200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
22938
23201
  */
22939
23202
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
22940
23203
  /**
22941
23204
  * Do not use leading/trailing space between `console.log` parameters.
22942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
23205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
22943
23206
  */
22944
23207
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
22945
23208
  /**
22946
23209
  * Do not use `document.cookie` directly.
22947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
23210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
22948
23211
  */
22949
23212
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
22950
23213
  /**
22951
23214
  * Disallow empty files.
22952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
23215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
22953
23216
  */
22954
23217
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
22955
23218
  /**
22956
23219
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
22957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
23220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
22958
23221
  */
22959
23222
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
22960
23223
  /**
22961
23224
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
22962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
23225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
22963
23226
  */
22964
23227
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
22965
23228
  /**
22966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
23229
+ * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
23230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
22967
23231
  * @deprecated
22968
23232
  */
22969
23233
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
22970
23234
  /**
22971
23235
  * Disallow `instanceof` with built-in objects
22972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
23236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
22973
23237
  */
22974
23238
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
22975
23239
  /**
22976
23240
  * Disallow invalid options in `fetch()` and `new Request()`.
22977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
23241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
22978
23242
  */
22979
23243
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
22980
23244
  /**
22981
23245
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
22982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
23246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
22983
23247
  */
22984
23248
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
22985
23249
  /**
22986
23250
  * Disallow identifiers starting with `new` or `class`.
22987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
23251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
22988
23252
  */
22989
23253
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
22990
23254
  /**
22991
23255
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
22992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
23256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
22993
23257
  */
22994
23258
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
22995
23259
  /**
22996
23260
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
22997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
23261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
22998
23262
  */
22999
23263
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
23000
23264
  /**
23001
23265
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
23002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
23266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
23003
23267
  */
23004
23268
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
23005
23269
  /**
23006
23270
  * Disallow named usage of default import and export.
23007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
23271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
23008
23272
  */
23009
23273
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
23010
23274
  /**
23011
23275
  * Disallow negated conditions.
23012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
23276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
23013
23277
  */
23014
23278
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
23015
23279
  /**
23016
23280
  * Disallow negated expression in equality check.
23017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
23281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
23018
23282
  */
23019
23283
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
23020
23284
  /**
23021
23285
  * Disallow nested ternary expressions.
23022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
23286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
23023
23287
  */
23024
23288
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
23025
23289
  /**
23026
23290
  * Disallow `new Array()`.
23027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
23291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
23028
23292
  */
23029
23293
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
23030
23294
  /**
23031
23295
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
23032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
23296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
23033
23297
  */
23034
23298
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
23035
23299
  /**
23036
23300
  * Disallow the use of the `null` literal.
23037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
23301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
23038
23302
  */
23039
23303
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
23040
23304
  /**
23041
23305
  * Disallow the use of objects as default parameters.
23042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
23306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
23043
23307
  */
23044
23308
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
23045
23309
  /**
23046
23310
  * Disallow `process.exit()`.
23047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
23311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
23048
23312
  */
23049
23313
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
23050
23314
  /**
23051
23315
  * Disallow passing single-element arrays to `Promise` methods.
23052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
23316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
23053
23317
  */
23054
23318
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
23055
23319
  /**
23056
23320
  * Disallow classes that only have static members.
23057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
23321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
23058
23322
  */
23059
23323
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
23060
23324
  /**
23061
23325
  * Disallow `then` property.
23062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
23326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
23063
23327
  */
23064
23328
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
23065
23329
  /**
23066
23330
  * Disallow assigning `this` to a variable.
23067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
23331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
23068
23332
  */
23069
23333
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
23070
23334
  /**
23071
23335
  * Disallow comparing `undefined` using `typeof`.
23072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
23336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
23073
23337
  */
23074
23338
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
23075
23339
  /**
23076
23340
  * Disallow awaiting non-promise values.
23077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
23341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
23078
23342
  */
23079
23343
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
23080
23344
  /**
23081
23345
  * Enforce the use of built-in methods instead of unnecessary polyfills.
23082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
23346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
23083
23347
  */
23084
23348
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
23085
23349
  /**
23086
23350
  * Disallow unreadable array destructuring.
23087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
23351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
23088
23352
  */
23089
23353
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
23090
23354
  /**
23091
23355
  * Disallow unreadable IIFEs.
23092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
23356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
23093
23357
  */
23094
23358
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
23095
23359
  /**
23096
23360
  * Disallow unused object properties.
23097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
23361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
23098
23362
  */
23099
23363
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
23100
23364
  /**
23101
23365
  * Disallow useless fallback when spreading in object literals.
23102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
23366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
23103
23367
  */
23104
23368
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
23105
23369
  /**
23106
23370
  * Disallow useless array length check.
23107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
23371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
23108
23372
  */
23109
23373
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
23110
23374
  /**
23111
23375
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
23112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
23376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
23113
23377
  */
23114
23378
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
23115
23379
  /**
23116
23380
  * Disallow unnecessary spread.
23117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
23381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
23118
23382
  */
23119
23383
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
23120
23384
  /**
23121
23385
  * Disallow useless case in switch statements.
23122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
23386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
23123
23387
  */
23124
23388
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
23125
23389
  /**
23126
23390
  * Disallow useless `undefined`.
23127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
23391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
23128
23392
  */
23129
23393
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
23130
23394
  /**
23131
23395
  * Disallow number literals with zero fractions or dangling dots.
23132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
23396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
23133
23397
  */
23134
23398
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
23135
23399
  /**
23136
23400
  * Enforce proper case for numeric literals.
23137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
23401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
23138
23402
  */
23139
- "unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
23403
+ "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
23140
23404
  /**
23141
23405
  * Enforce the style of numeric separators by correctly grouping digits.
23142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
23406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
23143
23407
  */
23144
23408
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
23145
23409
  /**
23146
23410
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
23147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
23411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
23148
23412
  */
23149
23413
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
23150
23414
  /**
23151
23415
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
23152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
23416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
23153
23417
  */
23154
23418
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
23155
23419
  /**
23156
23420
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
23157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
23421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
23158
23422
  */
23159
23423
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
23160
23424
  /**
23161
23425
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
23162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
23426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
23163
23427
  */
23164
23428
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
23165
23429
  /**
23166
23430
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
23167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
23431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
23168
23432
  */
23169
23433
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
23170
23434
  /**
23171
23435
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
23172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
23436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
23173
23437
  */
23174
23438
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
23175
23439
  /**
23176
23440
  * Prefer `.at()` method for index access and `String#charAt()`.
23177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
23441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
23178
23442
  */
23179
23443
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
23180
23444
  /**
23181
23445
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
23182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
23446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
23183
23447
  */
23184
23448
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
23185
23449
  /**
23186
23450
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
23187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
23451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
23188
23452
  */
23189
23453
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
23190
23454
  /**
23191
23455
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
23192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
23456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
23193
23457
  */
23194
23458
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
23195
23459
  /**
23196
23460
  * Prefer default parameters over reassignment.
23197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
23461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
23198
23462
  */
23199
23463
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
23200
23464
  /**
23201
23465
  * Prefer `Node#append()` over `Node#appendChild()`.
23202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
23466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
23203
23467
  */
23204
23468
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
23205
23469
  /**
23206
23470
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
23207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
23471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
23208
23472
  */
23209
23473
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
23210
23474
  /**
23211
23475
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
23212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
23476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
23213
23477
  */
23214
23478
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
23215
23479
  /**
23216
23480
  * Prefer `.textContent` over `.innerText`.
23217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
23481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
23218
23482
  */
23219
23483
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
23220
23484
  /**
23221
23485
  * Prefer `EventTarget` over `EventEmitter`.
23222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
23486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
23223
23487
  */
23224
23488
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
23225
23489
  /**
23226
23490
  * Prefer `export…from` when re-exporting.
23227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
23491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
23228
23492
  */
23229
23493
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
23230
23494
  /**
23231
23495
  * Prefer `globalThis` over `window`, `self`, and `global`.
23232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
23496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
23233
23497
  */
23234
23498
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
23235
23499
  /**
23236
23500
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
23237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
23501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
23238
23502
  */
23239
23503
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
23240
23504
  /**
23241
23505
  * Prefer reading a JSON file as a buffer.
23242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
23506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
23243
23507
  */
23244
23508
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
23245
23509
  /**
23246
23510
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
23247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
23511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
23248
23512
  */
23249
23513
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
23250
23514
  /**
23251
23515
  * Prefer using a logical operator over a ternary.
23252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
23516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
23253
23517
  */
23254
23518
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
23255
23519
  /**
23256
23520
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
23257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
23521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
23258
23522
  */
23259
23523
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
23260
23524
  /**
23261
23525
  * Enforce the use of `Math.trunc` instead of bitwise operators.
23262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
23526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
23263
23527
  */
23264
23528
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
23265
23529
  /**
23266
23530
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
23267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
23531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
23268
23532
  */
23269
23533
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
23270
23534
  /**
23271
23535
  * Prefer modern `Math` APIs over legacy patterns.
23272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
23536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
23273
23537
  */
23274
23538
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
23275
23539
  /**
23276
23540
  * Prefer JavaScript modules (ESM) over CommonJS.
23277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
23541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
23278
23542
  */
23279
23543
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
23280
23544
  /**
23281
23545
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
23282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
23546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
23283
23547
  */
23284
23548
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
23285
23549
  /**
23286
23550
  * Prefer negative index over `.length - index` when possible.
23287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
23551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
23288
23552
  */
23289
23553
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
23290
23554
  /**
23291
23555
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
23292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
23556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
23293
23557
  */
23294
23558
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
23295
23559
  /**
23296
23560
  * Prefer `Number` static properties over global ones.
23297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
23561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
23298
23562
  */
23299
23563
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
23300
23564
  /**
23301
23565
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
23302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
23566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
23303
23567
  */
23304
23568
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
23305
23569
  /**
23306
23570
  * Prefer omitting the `catch` binding parameter.
23307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
23571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
23308
23572
  */
23309
23573
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
23310
23574
  /**
23311
23575
  * Prefer borrowing methods from the prototype instead of the instance.
23312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
23576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
23313
23577
  */
23314
23578
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
23315
23579
  /**
23316
23580
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
23317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
23581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
23318
23582
  */
23319
23583
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
23320
23584
  /**
23321
23585
  * Prefer `Reflect.apply()` over `Function#apply()`.
23322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
23586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
23323
23587
  */
23324
23588
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
23325
23589
  /**
23326
23590
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
23327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
23591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
23328
23592
  */
23329
23593
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
23330
23594
  /**
23331
23595
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
23332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
23596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
23333
23597
  */
23334
23598
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
23335
23599
  /**
23336
23600
  * Prefer using `Set#size` instead of `Array#length`.
23337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
23601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
23338
23602
  */
23339
23603
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
23340
23604
  /**
23341
23605
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
23342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
23606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
23343
23607
  */
23344
23608
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
23345
23609
  /**
23346
23610
  * Prefer using the `String.raw` tag to avoid escaping `\`.
23347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
23611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
23348
23612
  */
23349
23613
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
23350
23614
  /**
23351
23615
  * Prefer `String#replaceAll()` over regex searches with the global flag.
23352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
23616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
23353
23617
  */
23354
23618
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
23355
23619
  /**
23356
23620
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
23357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
23621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
23358
23622
  */
23359
23623
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
23360
23624
  /**
23361
23625
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
23362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
23626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
23363
23627
  */
23364
23628
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
23365
23629
  /**
23366
23630
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
23367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
23631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
23368
23632
  */
23369
23633
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
23370
23634
  /**
23371
23635
  * Prefer using `structuredClone` to create a deep clone.
23372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
23636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
23373
23637
  */
23374
23638
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
23375
23639
  /**
23376
23640
  * Prefer `switch` over multiple `else-if`.
23377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
23641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
23378
23642
  */
23379
23643
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
23380
23644
  /**
23381
23645
  * Prefer ternary expressions over simple `if-else` statements.
23382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
23646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
23383
23647
  */
23384
23648
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
23385
23649
  /**
23386
23650
  * Prefer top-level await over top-level promises and async function calls.
23387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
23651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
23388
23652
  */
23389
23653
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
23390
23654
  /**
23391
23655
  * Enforce throwing `TypeError` in type checking conditions.
23392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
23656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
23393
23657
  */
23394
23658
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
23395
23659
  /**
23396
23660
  * Prevent abbreviations.
23397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
23661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
23398
23662
  */
23399
23663
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
23400
23664
  /**
23401
23665
  * Enforce consistent relative URL style.
23402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
23666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
23403
23667
  */
23404
23668
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
23405
23669
  /**
23406
23670
  * Enforce using the separator argument with `Array#join()`.
23407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
23671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
23408
23672
  */
23409
23673
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
23410
23674
  /**
23411
23675
  * Enforce using the digits argument with `Number#toFixed()`.
23412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
23676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
23413
23677
  */
23414
23678
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
23415
23679
  /**
23416
23680
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
23417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
23681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
23418
23682
  */
23419
23683
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
23420
23684
  /**
23421
23685
  * Enforce better string content.
23422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
23686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
23423
23687
  */
23424
23688
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
23425
23689
  /**
23426
23690
  * Enforce consistent brace style for `case` clauses.
23427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
23691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
23428
23692
  */
23429
23693
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
23430
23694
  /**
23431
23695
  * Fix whitespace-insensitive template indentation.
23432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
23696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
23433
23697
  */
23434
23698
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
23435
23699
  /**
23436
23700
  * Enforce consistent case for text encoding identifiers.
23437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
23701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
23438
23702
  */
23439
23703
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
23440
23704
  /**
23441
23705
  * Require `new` when creating an error.
23442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
23706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
23443
23707
  */
23444
23708
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
23445
23709
  }
@@ -23470,6 +23734,8 @@ type UnicornConsistentFunctionScoping =
23470
23734
  checkArrowFunctions?: boolean;
23471
23735
  },
23472
23736
  ];
23737
+ // ----- unicorn/escape-case -----
23738
+ type UnicornEscapeCase = [] | ["uppercase" | "lowercase"];
23473
23739
  // ----- unicorn/expiring-todo-comments -----
23474
23740
  type UnicornExpiringTodoComments =
23475
23741
  | []
@@ -23607,6 +23873,14 @@ type UnicornNoUselessUndefined =
23607
23873
  checkArrowFunctionBody?: boolean;
23608
23874
  },
23609
23875
  ];
23876
+ // ----- unicorn/number-literal-case -----
23877
+ type UnicornNumberLiteralCase =
23878
+ | []
23879
+ | [
23880
+ {
23881
+ hexadecimalValue?: "uppercase" | "lowercase";
23882
+ },
23883
+ ];
23610
23884
  // ----- unicorn/numeric-separators-style -----
23611
23885
  type UnicornNumericSeparatorsStyle =
23612
23886
  | []
@@ -24554,7 +24828,7 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
24554
24828
  declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
24555
24829
  type DefineConfig = typeof defineConfig;
24556
24830
 
24557
- declare const VERSION = "0.3.2";
24831
+ declare const VERSION = "0.3.3";
24558
24832
 
24559
24833
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
24560
24834
  declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";
@@ -25569,12 +25843,12 @@ declare function importPluginJsonc(): Promise<{
25569
25843
  plugins?: undefined;
25570
25844
  } | {
25571
25845
  rules: {
25572
- [x: string]: eslint.Linter.RuleEntry<any[]>;
25846
+ [rule: string]: eslint.Linter.RuleEntry<any[]>;
25573
25847
  };
25574
25848
  })[];
25575
25849
  };
25576
25850
  rules: {
25577
- [key: string]: eslint_plugin_jsonc_types.RuleModule;
25851
+ [key: string]: eslint_plugin_jsonc_types.RuleModule<unknown[]>;
25578
25852
  };
25579
25853
  parseForESLint: typeof jsonc_eslint_parser.parseForESLint;
25580
25854
  parseJSON: typeof jsonc_eslint_parser.parseJSON;
@@ -25934,12 +26208,12 @@ declare function importJsoncLibs(): Promise<{
25934
26208
  plugins?: undefined;
25935
26209
  } | {
25936
26210
  rules: {
25937
- [x: string]: eslint.Linter.RuleEntry<any[]>;
26211
+ [rule: string]: eslint.Linter.RuleEntry<any[]>;
25938
26212
  };
25939
26213
  })[];
25940
26214
  };
25941
26215
  rules: {
25942
- [key: string]: eslint_plugin_jsonc_types.RuleModule;
26216
+ [key: string]: eslint_plugin_jsonc_types.RuleModule<unknown[]>;
25943
26217
  };
25944
26218
  parseForESLint: typeof jsonc_eslint_parser.parseForESLint;
25945
26219
  parseJSON: typeof jsonc_eslint_parser.parseJSON;