@jimmy.codes/eslint-config 5.1.0 → 5.3.0

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
@@ -3500,233 +3500,233 @@ interface RuleOptions {
3500
3500
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
3501
3501
  /**
3502
3502
  * Enforce or ban the use of inline type-only markers for named imports.
3503
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/consistent-type-specifier-style.md
3503
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/consistent-type-specifier-style.md
3504
3504
  */
3505
3505
  'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
3506
3506
  /**
3507
3507
  * Ensure a default export is present, given a default import.
3508
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/default.md
3508
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/default.md
3509
3509
  */
3510
3510
  'import-x/default'?: Linter.RuleEntry<[]>
3511
3511
  /**
3512
3512
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
3513
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/dynamic-import-chunkname.md
3513
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/dynamic-import-chunkname.md
3514
3514
  */
3515
3515
  'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
3516
3516
  /**
3517
3517
  * Forbid any invalid exports, i.e. re-export of the same name.
3518
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/export.md
3518
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/export.md
3519
3519
  */
3520
3520
  'import-x/export'?: Linter.RuleEntry<[]>
3521
3521
  /**
3522
3522
  * Ensure all exports appear after other statements.
3523
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/exports-last.md
3523
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/exports-last.md
3524
3524
  */
3525
3525
  'import-x/exports-last'?: Linter.RuleEntry<[]>
3526
3526
  /**
3527
3527
  * Ensure consistent use of file extension within the import path.
3528
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/extensions.md
3528
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/extensions.md
3529
3529
  */
3530
3530
  'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
3531
3531
  /**
3532
3532
  * Ensure all imports appear before other statements.
3533
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/first.md
3533
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/first.md
3534
3534
  */
3535
3535
  'import-x/first'?: Linter.RuleEntry<ImportXFirst>
3536
3536
  /**
3537
3537
  * Prefer named exports to be grouped together in a single export declaration.
3538
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/group-exports.md
3538
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/group-exports.md
3539
3539
  */
3540
3540
  'import-x/group-exports'?: Linter.RuleEntry<[]>
3541
3541
  /**
3542
3542
  * Replaced by `import-x/first`.
3543
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/imports-first.md
3543
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/imports-first.md
3544
3544
  * @deprecated
3545
3545
  */
3546
3546
  'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
3547
3547
  /**
3548
3548
  * Enforce the maximum number of dependencies a module can have.
3549
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/max-dependencies.md
3549
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/max-dependencies.md
3550
3550
  */
3551
3551
  'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
3552
3552
  /**
3553
3553
  * Ensure named imports correspond to a named export in the remote file.
3554
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/named.md
3554
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/named.md
3555
3555
  */
3556
3556
  'import-x/named'?: Linter.RuleEntry<ImportXNamed>
3557
3557
  /**
3558
3558
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
3559
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/namespace.md
3559
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/namespace.md
3560
3560
  */
3561
3561
  'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
3562
3562
  /**
3563
3563
  * Enforce a newline after import statements.
3564
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/newline-after-import.md
3564
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/newline-after-import.md
3565
3565
  */
3566
3566
  'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
3567
3567
  /**
3568
3568
  * Forbid import of modules using absolute paths.
3569
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-absolute-path.md
3569
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-absolute-path.md
3570
3570
  */
3571
3571
  'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
3572
3572
  /**
3573
3573
  * Forbid AMD `require` and `define` calls.
3574
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-amd.md
3574
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-amd.md
3575
3575
  */
3576
3576
  'import-x/no-amd'?: Linter.RuleEntry<[]>
3577
3577
  /**
3578
3578
  * Forbid anonymous values as default exports.
3579
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-anonymous-default-export.md
3579
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-anonymous-default-export.md
3580
3580
  */
3581
3581
  'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
3582
3582
  /**
3583
3583
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
3584
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-commonjs.md
3584
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-commonjs.md
3585
3585
  */
3586
3586
  'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
3587
3587
  /**
3588
3588
  * Forbid a module from importing a module with a dependency path back to itself.
3589
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-cycle.md
3589
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-cycle.md
3590
3590
  */
3591
3591
  'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
3592
3592
  /**
3593
3593
  * Forbid default exports.
3594
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-default-export.md
3594
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-default-export.md
3595
3595
  */
3596
3596
  'import-x/no-default-export'?: Linter.RuleEntry<[]>
3597
3597
  /**
3598
3598
  * Forbid imported names marked with `@deprecated` documentation tag.
3599
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-deprecated.md
3599
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-deprecated.md
3600
3600
  */
3601
3601
  'import-x/no-deprecated'?: Linter.RuleEntry<[]>
3602
3602
  /**
3603
3603
  * Forbid repeated import of the same module in multiple places.
3604
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-duplicates.md
3604
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-duplicates.md
3605
3605
  */
3606
3606
  'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
3607
3607
  /**
3608
3608
  * Forbid `require()` calls with expressions.
3609
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-dynamic-require.md
3609
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-dynamic-require.md
3610
3610
  */
3611
3611
  'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
3612
3612
  /**
3613
3613
  * Forbid empty named import blocks.
3614
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-empty-named-blocks.md
3614
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-empty-named-blocks.md
3615
3615
  */
3616
3616
  'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
3617
3617
  /**
3618
3618
  * Forbid the use of extraneous packages.
3619
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-extraneous-dependencies.md
3619
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-extraneous-dependencies.md
3620
3620
  */
3621
3621
  'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
3622
3622
  /**
3623
3623
  * Forbid import statements with CommonJS module.exports.
3624
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-import-module-exports.md
3624
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-import-module-exports.md
3625
3625
  */
3626
3626
  'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
3627
3627
  /**
3628
3628
  * Forbid importing the submodules of other modules.
3629
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-internal-modules.md
3629
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-internal-modules.md
3630
3630
  */
3631
3631
  'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
3632
3632
  /**
3633
3633
  * Forbid the use of mutable exports with `var` or `let`.
3634
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-mutable-exports.md
3634
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-mutable-exports.md
3635
3635
  */
3636
3636
  'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
3637
3637
  /**
3638
3638
  * Forbid use of exported name as identifier of default export.
3639
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default.md
3639
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-named-as-default.md
3640
3640
  */
3641
3641
  'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
3642
3642
  /**
3643
3643
  * Forbid use of exported name as property of default export.
3644
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-as-default-member.md
3644
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-named-as-default-member.md
3645
3645
  */
3646
3646
  'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
3647
3647
  /**
3648
3648
  * Forbid named default exports.
3649
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-default.md
3649
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-named-default.md
3650
3650
  */
3651
3651
  'import-x/no-named-default'?: Linter.RuleEntry<[]>
3652
3652
  /**
3653
3653
  * Forbid named exports.
3654
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-named-export.md
3654
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-named-export.md
3655
3655
  */
3656
3656
  'import-x/no-named-export'?: Linter.RuleEntry<[]>
3657
3657
  /**
3658
3658
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
3659
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-namespace.md
3659
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-namespace.md
3660
3660
  */
3661
3661
  'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
3662
3662
  /**
3663
3663
  * Forbid Node.js builtin modules.
3664
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-nodejs-modules.md
3664
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-nodejs-modules.md
3665
3665
  */
3666
3666
  'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
3667
3667
  /**
3668
3668
  * Forbid importing packages through relative paths.
3669
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-packages.md
3669
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-relative-packages.md
3670
3670
  */
3671
3671
  'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
3672
3672
  /**
3673
3673
  * Forbid importing modules from parent directories.
3674
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-relative-parent-imports.md
3674
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-relative-parent-imports.md
3675
3675
  */
3676
3676
  'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
3677
3677
  /**
3678
3678
  * Forbid importing a default export by a different name.
3679
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-rename-default.md
3679
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-rename-default.md
3680
3680
  */
3681
3681
  'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
3682
3682
  /**
3683
3683
  * Enforce which files can be imported in a given folder.
3684
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-restricted-paths.md
3684
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-restricted-paths.md
3685
3685
  */
3686
3686
  'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
3687
3687
  /**
3688
3688
  * Forbid a module from importing itself.
3689
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-self-import.md
3689
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-self-import.md
3690
3690
  */
3691
3691
  'import-x/no-self-import'?: Linter.RuleEntry<[]>
3692
3692
  /**
3693
3693
  * Forbid unassigned imports.
3694
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unassigned-import.md
3694
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-unassigned-import.md
3695
3695
  */
3696
3696
  'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
3697
3697
  /**
3698
3698
  * Ensure imports point to a file/module that can be resolved.
3699
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unresolved.md
3699
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-unresolved.md
3700
3700
  */
3701
3701
  'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
3702
3702
  /**
3703
3703
  * Forbid modules without exports, or exports without matching import in another module.
3704
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-unused-modules.md
3704
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-unused-modules.md
3705
3705
  */
3706
3706
  'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
3707
3707
  /**
3708
3708
  * Forbid unnecessary path segments in import and require statements.
3709
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-useless-path-segments.md
3709
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-useless-path-segments.md
3710
3710
  */
3711
3711
  'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
3712
3712
  /**
3713
3713
  * Forbid webpack loader syntax in imports.
3714
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/no-webpack-loader-syntax.md
3714
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/no-webpack-loader-syntax.md
3715
3715
  */
3716
3716
  'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
3717
3717
  /**
3718
3718
  * Enforce a convention in module import order.
3719
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/order.md
3719
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/order.md
3720
3720
  */
3721
3721
  'import-x/order'?: Linter.RuleEntry<ImportXOrder>
3722
3722
  /**
3723
3723
  * Prefer a default export if module exports a single name or multiple names.
3724
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/prefer-default-export.md
3724
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/prefer-default-export.md
3725
3725
  */
3726
3726
  'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
3727
3727
  /**
3728
3728
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
3729
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.0/docs/rules/unambiguous.md
3729
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.8.1/docs/rules/unambiguous.md
3730
3730
  */
3731
3731
  'import-x/unambiguous'?: Linter.RuleEntry<[]>
3732
3732
  /**
@@ -7511,702 +7511,642 @@ interface RuleOptions {
7511
7511
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
7512
7512
  /**
7513
7513
  * Improve regexes by making them shorter, consistent, and safer.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
7514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
7515
7515
  */
7516
7516
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
7517
7517
  /**
7518
7518
  * Enforce a specific parameter name in catch clauses.
7519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
7520
7520
  */
7521
7521
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
7522
+ /**
7523
+ * Enforce consistent assertion style with `node:assert`.
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
7525
+ */
7526
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
7527
+ /**
7528
+ * Prefer passing `Date` directly to the constructor when cloning.
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
7530
+ */
7531
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
7522
7532
  /**
7523
7533
  * Use destructured variables over properties.
7524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
7525
7535
  */
7526
7536
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
7527
7537
  /**
7528
7538
  * Prefer consistent types when spreading a ternary in an array literal.
7529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
7530
7540
  */
7531
7541
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
7532
7542
  /**
7533
7543
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
7535
7545
  */
7536
7546
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
7537
7547
  /**
7538
7548
  * Move function definitions to the highest possible scope.
7539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
7540
7550
  */
7541
7551
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
7542
7552
  /**
7543
7553
  * Enforce correct `Error` subclassing.
7544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
7545
7555
  */
7546
7556
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
7547
7557
  /**
7548
7558
  * Enforce no spaces between braces.
7549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
7550
7560
  */
7551
7561
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
7552
7562
  /**
7553
7563
  * Enforce passing a `message` value when creating a built-in error.
7554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
7555
7565
  */
7556
7566
  'unicorn/error-message'?: Linter.RuleEntry<[]>
7557
7567
  /**
7558
7568
  * Require escape sequences to use uppercase values.
7559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
7560
7570
  */
7561
7571
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
7562
7572
  /**
7563
7573
  * Add expiration conditions to TODO comments.
7564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
7565
7575
  */
7566
7576
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
7567
7577
  /**
7568
7578
  * Enforce explicitly comparing the `length` or `size` property of a value.
7569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
7570
7580
  */
7571
7581
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
7572
7582
  /**
7573
7583
  * Enforce a case style for filenames.
7574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
7575
7585
  */
7576
7586
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
7577
- /**
7578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
7579
- * @deprecated
7580
- */
7581
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
7582
7587
  /**
7583
7588
  * Enforce specific import styles per module.
7584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
7589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
7585
7590
  */
7586
7591
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
7587
7592
  /**
7588
7593
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
7589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
7594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
7590
7595
  */
7591
7596
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
7592
7597
  /**
7593
7598
  * Enforce specifying rules to disable in `eslint-disable` comments.
7594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
7599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
7595
7600
  */
7596
7601
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
7602
+ /**
7603
+ * Disallow recursive access to `this` within getters and setters.
7604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
7605
+ */
7606
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
7597
7607
  /**
7598
7608
  * Disallow anonymous functions and classes as the default export.
7599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
7609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
7600
7610
  */
7601
7611
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
7602
7612
  /**
7603
7613
  * Prevent passing a function reference directly to iterator methods.
7604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
7614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
7605
7615
  */
7606
7616
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
7607
7617
  /**
7608
7618
  * Prefer `for…of` over the `forEach` method.
7609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
7619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
7610
7620
  */
7611
7621
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
7612
- /**
7613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
7614
- * @deprecated
7615
- */
7616
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
7617
7622
  /**
7618
7623
  * Disallow using the `this` argument in array methods.
7619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
7624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
7620
7625
  */
7621
7626
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
7622
7627
  /**
7623
7628
  * Enforce combining multiple `Array#push()` into one call.
7624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
7629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
7625
7630
  */
7626
7631
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
7627
7632
  /**
7628
7633
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
7634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
7630
7635
  */
7631
7636
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
7632
7637
  /**
7633
7638
  * Disallow member access from await expression.
7634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
7639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
7635
7640
  */
7636
7641
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
7637
7642
  /**
7638
7643
  * Disallow using `await` in `Promise` method parameters.
7639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
7644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
7640
7645
  */
7641
7646
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
7642
7647
  /**
7643
7648
  * Do not use leading/trailing space between `console.log` parameters.
7644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
7649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
7645
7650
  */
7646
7651
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
7647
7652
  /**
7648
7653
  * Do not use `document.cookie` directly.
7649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
7654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
7650
7655
  */
7651
7656
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
7652
7657
  /**
7653
7658
  * Disallow empty files.
7654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
7659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
7655
7660
  */
7656
7661
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
7657
- /**
7658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
7659
- * @deprecated
7660
- */
7661
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
7662
7662
  /**
7663
7663
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
7664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
7665
7665
  */
7666
7666
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
7667
7667
  /**
7668
7668
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
7669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
7670
7670
  */
7671
7671
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
7672
7672
  /**
7673
- * Require `Array.isArray()` instead of `instanceof Array`.
7674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
7674
+ * @deprecated
7675
7675
  */
7676
7676
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
7677
+ /**
7678
+ * Disallow `instanceof` with built-in objects
7679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
7680
+ */
7681
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
7677
7682
  /**
7678
7683
  * Disallow invalid options in `fetch()` and `new Request()`.
7679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
7684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
7680
7685
  */
7681
7686
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
7682
7687
  /**
7683
7688
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
7689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
7685
7690
  */
7686
7691
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
7687
7692
  /**
7688
7693
  * Disallow identifiers starting with `new` or `class`.
7689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
7694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
7690
7695
  */
7691
7696
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
7692
7697
  /**
7693
7698
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
7699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
7695
7700
  */
7696
7701
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
7697
7702
  /**
7698
7703
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
7704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
7700
7705
  */
7701
7706
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
7702
7707
  /**
7703
7708
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
7709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
7705
7710
  */
7706
7711
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
7712
+ /**
7713
+ * Disallow named usage of default import and export.
7714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
7715
+ */
7716
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
7707
7717
  /**
7708
7718
  * Disallow negated conditions.
7709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
7719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
7710
7720
  */
7711
7721
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
7712
7722
  /**
7713
7723
  * Disallow negated expression in equality check.
7714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
7724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
7715
7725
  */
7716
7726
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
7717
7727
  /**
7718
7728
  * Disallow nested ternary expressions.
7719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
7729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
7720
7730
  */
7721
7731
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
7722
7732
  /**
7723
7733
  * Disallow `new Array()`.
7724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
7734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
7725
7735
  */
7726
7736
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
7727
7737
  /**
7728
7738
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
7739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
7730
7740
  */
7731
7741
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
7732
7742
  /**
7733
7743
  * Disallow the use of the `null` literal.
7734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
7744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
7735
7745
  */
7736
7746
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
7737
7747
  /**
7738
7748
  * Disallow the use of objects as default parameters.
7739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
7749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
7740
7750
  */
7741
7751
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
7742
7752
  /**
7743
7753
  * Disallow `process.exit()`.
7744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
7754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
7745
7755
  */
7746
7756
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
7747
- /**
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
7749
- * @deprecated
7750
- */
7751
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
7752
7757
  /**
7753
7758
  * Disallow passing single-element arrays to `Promise` methods.
7754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
7759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
7755
7760
  */
7756
7761
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
7757
7762
  /**
7758
7763
  * Disallow classes that only have static members.
7759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
7764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
7760
7765
  */
7761
7766
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
7762
7767
  /**
7763
7768
  * Disallow `then` property.
7764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
7769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
7765
7770
  */
7766
7771
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
7767
7772
  /**
7768
7773
  * Disallow assigning `this` to a variable.
7769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
7774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
7770
7775
  */
7771
7776
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
7772
7777
  /**
7773
7778
  * Disallow comparing `undefined` using `typeof`.
7774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
7779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
7775
7780
  */
7776
7781
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
7777
7782
  /**
7778
7783
  * Disallow awaiting non-promise values.
7779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
7784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
7780
7785
  */
7781
7786
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
7782
7787
  /**
7783
7788
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
7789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
7785
7790
  */
7786
7791
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
7787
7792
  /**
7788
7793
  * Disallow unreadable array destructuring.
7789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
7794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
7790
7795
  */
7791
7796
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
7792
7797
  /**
7793
7798
  * Disallow unreadable IIFEs.
7794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
7799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
7795
7800
  */
7796
7801
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
7797
- /**
7798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
7799
- * @deprecated
7800
- */
7801
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
7802
7802
  /**
7803
7803
  * Disallow unused object properties.
7804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
7804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
7805
7805
  */
7806
7806
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
7807
7807
  /**
7808
7808
  * Disallow useless fallback when spreading in object literals.
7809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
7809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
7810
7810
  */
7811
7811
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
7812
7812
  /**
7813
7813
  * Disallow useless array length check.
7814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
7814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
7815
7815
  */
7816
7816
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
7817
7817
  /**
7818
7818
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
7819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
7820
7820
  */
7821
7821
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
7822
7822
  /**
7823
7823
  * Disallow unnecessary spread.
7824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
7824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
7825
7825
  */
7826
7826
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
7827
7827
  /**
7828
7828
  * Disallow useless case in switch statements.
7829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
7829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
7830
7830
  */
7831
7831
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
7832
7832
  /**
7833
7833
  * Disallow useless `undefined`.
7834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
7834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
7835
7835
  */
7836
7836
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
7837
7837
  /**
7838
7838
  * Disallow number literals with zero fractions or dangling dots.
7839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
7839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
7840
7840
  */
7841
7841
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
7842
7842
  /**
7843
7843
  * Enforce proper case for numeric literals.
7844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
7844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
7845
7845
  */
7846
7846
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
7847
7847
  /**
7848
7848
  * Enforce the style of numeric separators by correctly grouping digits.
7849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
7849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
7850
7850
  */
7851
7851
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
7852
7852
  /**
7853
7853
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
7854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
7855
7855
  */
7856
7856
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
7857
7857
  /**
7858
7858
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
7859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
7860
7860
  */
7861
7861
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
7862
7862
  /**
7863
7863
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
7864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
7865
7865
  */
7866
7866
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
7867
7867
  /**
7868
7868
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
7869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
7869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
7870
7870
  */
7871
7871
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
7872
7872
  /**
7873
7873
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
7874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
7875
7875
  */
7876
7876
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
7877
7877
  /**
7878
7878
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
7879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
7880
7880
  */
7881
7881
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
7882
7882
  /**
7883
7883
  * Prefer `.at()` method for index access and `String#charAt()`.
7884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
7884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
7885
7885
  */
7886
7886
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
7887
7887
  /**
7888
7888
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
7889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
7890
7890
  */
7891
7891
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
7892
7892
  /**
7893
7893
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
7894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
7895
7895
  */
7896
7896
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
7897
- /**
7898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
7899
- * @deprecated
7900
- */
7901
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
7902
7897
  /**
7903
7898
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
7899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
7905
7900
  */
7906
7901
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
7907
7902
  /**
7908
7903
  * Prefer default parameters over reassignment.
7909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
7904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
7910
7905
  */
7911
7906
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
7912
7907
  /**
7913
7908
  * Prefer `Node#append()` over `Node#appendChild()`.
7914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
7909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
7915
7910
  */
7916
7911
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
7917
7912
  /**
7918
7913
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
7919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
7914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
7920
7915
  */
7921
7916
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
7922
7917
  /**
7923
7918
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
7919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
7925
7920
  */
7926
7921
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
7927
7922
  /**
7928
7923
  * Prefer `.textContent` over `.innerText`.
7929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
7924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
7930
7925
  */
7931
7926
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
7932
- /**
7933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
7934
- * @deprecated
7935
- */
7936
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
7937
7927
  /**
7938
7928
  * Prefer `EventTarget` over `EventEmitter`.
7939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
7929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
7940
7930
  */
7941
7931
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
7942
- /**
7943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
7944
- * @deprecated
7945
- */
7946
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
7947
7932
  /**
7948
7933
  * Prefer `export…from` when re-exporting.
7949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
7934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
7950
7935
  */
7951
7936
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
7952
- /**
7953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
7954
- * @deprecated
7955
- */
7956
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
7957
7937
  /**
7958
7938
  * Prefer `globalThis` over `window`, `self`, and `global`.
7959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
7939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
7960
7940
  */
7961
7941
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
7962
7942
  /**
7963
7943
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
7944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
7965
7945
  */
7966
7946
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
7967
7947
  /**
7968
7948
  * Prefer reading a JSON file as a buffer.
7969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
7949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
7970
7950
  */
7971
7951
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
7972
7952
  /**
7973
7953
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
7954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
7975
7955
  */
7976
7956
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
7977
7957
  /**
7978
7958
  * Prefer using a logical operator over a ternary.
7979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
7959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7980
7960
  */
7981
7961
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
7982
7962
  /**
7983
7963
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
7964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
7985
7965
  */
7986
7966
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
7987
7967
  /**
7988
7968
  * Enforce the use of `Math.trunc` instead of bitwise operators.
7989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
7969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
7990
7970
  */
7991
7971
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
7992
7972
  /**
7993
7973
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
7974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
7995
7975
  */
7996
7976
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
7997
7977
  /**
7998
7978
  * Prefer modern `Math` APIs over legacy patterns.
7999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
7979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
8000
7980
  */
8001
7981
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
8002
7982
  /**
8003
7983
  * Prefer JavaScript modules (ESM) over CommonJS.
8004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
7984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
8005
7985
  */
8006
7986
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
8007
7987
  /**
8008
7988
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
7989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
8010
7990
  */
8011
7991
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
8012
7992
  /**
8013
7993
  * Prefer negative index over `.length - index` when possible.
8014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
7994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
8015
7995
  */
8016
7996
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
8017
- /**
8018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
8019
- * @deprecated
8020
- */
8021
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
8022
7997
  /**
8023
7998
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
7999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
8025
8000
  */
8026
8001
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
8027
- /**
8028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
8029
- * @deprecated
8030
- */
8031
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
8032
8002
  /**
8033
8003
  * Prefer `Number` static properties over global ones.
8034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
8004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
8035
8005
  */
8036
8006
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
8037
8007
  /**
8038
8008
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
8009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
8040
8010
  */
8041
8011
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
8042
- /**
8043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
8044
- * @deprecated
8045
- */
8046
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
8047
8012
  /**
8048
8013
  * Prefer omitting the `catch` binding parameter.
8049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
8014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
8050
8015
  */
8051
8016
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
8052
8017
  /**
8053
8018
  * Prefer borrowing methods from the prototype instead of the instance.
8054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
8019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
8055
8020
  */
8056
8021
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
8057
8022
  /**
8058
8023
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
8059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
8024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
8060
8025
  */
8061
8026
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
8062
8027
  /**
8063
8028
  * Prefer `Reflect.apply()` over `Function#apply()`.
8064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
8029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
8065
8030
  */
8066
8031
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
8067
8032
  /**
8068
8033
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
8069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
8034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
8070
8035
  */
8071
8036
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
8072
- /**
8073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
8074
- * @deprecated
8075
- */
8076
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
8077
8037
  /**
8078
8038
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
8039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
8080
8040
  */
8081
8041
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
8082
8042
  /**
8083
8043
  * Prefer using `Set#size` instead of `Array#length`.
8084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
8044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
8085
8045
  */
8086
8046
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
8087
8047
  /**
8088
8048
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
8089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
8049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
8090
8050
  */
8091
8051
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
8092
- /**
8093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
8094
- * @deprecated
8095
- */
8096
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
8097
8052
  /**
8098
8053
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
8054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
8100
8055
  */
8101
8056
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
8102
8057
  /**
8103
8058
  * Prefer `String#replaceAll()` over regex searches with the global flag.
8104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
8059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
8105
8060
  */
8106
8061
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
8107
8062
  /**
8108
8063
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
8064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
8110
8065
  */
8111
8066
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
8112
8067
  /**
8113
8068
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
8114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
8069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
8115
8070
  */
8116
8071
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
8117
8072
  /**
8118
8073
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
8074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
8120
8075
  */
8121
8076
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
8122
8077
  /**
8123
8078
  * Prefer using `structuredClone` to create a deep clone.
8124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
8079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
8125
8080
  */
8126
8081
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
8127
8082
  /**
8128
8083
  * Prefer `switch` over multiple `else-if`.
8129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
8084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
8130
8085
  */
8131
8086
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
8132
8087
  /**
8133
8088
  * Prefer ternary expressions over simple `if-else` statements.
8134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
8089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
8135
8090
  */
8136
8091
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
8137
- /**
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
8139
- * @deprecated
8140
- */
8141
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
8142
8092
  /**
8143
8093
  * Prefer top-level await over top-level promises and async function calls.
8144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
8094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
8145
8095
  */
8146
8096
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
8147
- /**
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
8149
- * @deprecated
8150
- */
8151
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
8152
8097
  /**
8153
8098
  * Enforce throwing `TypeError` in type checking conditions.
8154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
8099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
8155
8100
  */
8156
8101
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
8157
8102
  /**
8158
8103
  * Prevent abbreviations.
8159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
8104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
8160
8105
  */
8161
8106
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
8162
- /**
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
8164
- * @deprecated
8165
- */
8166
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
8167
8107
  /**
8168
8108
  * Enforce consistent relative URL style.
8169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
8109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
8170
8110
  */
8171
8111
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
8172
8112
  /**
8173
8113
  * Enforce using the separator argument with `Array#join()`.
8174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
8114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
8175
8115
  */
8176
8116
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
8177
8117
  /**
8178
8118
  * Enforce using the digits argument with `Number#toFixed()`.
8179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
8119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8180
8120
  */
8181
8121
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
8182
8122
  /**
8183
8123
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
8124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
8185
8125
  */
8186
8126
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
8187
8127
  /**
8188
8128
  * Enforce better string content.
8189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
8129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
8190
8130
  */
8191
8131
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
8192
8132
  /**
8193
8133
  * Enforce consistent brace style for `case` clauses.
8194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
8134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
8195
8135
  */
8196
8136
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
8197
8137
  /**
8198
8138
  * Fix whitespace-insensitive template indentation.
8199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
8139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
8200
8140
  */
8201
8141
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
8202
8142
  /**
8203
8143
  * Enforce consistent case for text encoding identifiers.
8204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
8144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
8205
8145
  */
8206
8146
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
8207
8147
  /**
8208
8148
  * Require `new` when creating an error.
8209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
8149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
8210
8150
  */
8211
8151
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
8212
8152
  /**
@@ -15162,6 +15102,13 @@ type UnicornNoArrayPushPush = []|[{
15162
15102
  type UnicornNoArrayReduce = []|[{
15163
15103
  allowSimpleOperations?: boolean
15164
15104
  }]
15105
+ // ----- unicorn/no-instanceof-builtins -----
15106
+ type UnicornNoInstanceofBuiltins = []|[{
15107
+ useErrorIsError?: boolean
15108
+ strategy?: ("loose" | "strict")
15109
+ include?: string[]
15110
+ exclude?: string[]
15111
+ }]
15165
15112
  // ----- unicorn/no-keyword-prefix -----
15166
15113
  type UnicornNoKeywordPrefix = []|[{
15167
15114
 
@@ -16065,8 +16012,15 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
16065
16012
  };
16066
16013
  };
16067
16014
  rules: {
16015
+ "n/handle-callback-err": ["error", string];
16016
+ "n/no-deprecated-api": "error";
16017
+ "n/no-exports-assign": "error";
16018
+ "n/no-new-require": "error";
16019
+ "n/no-path-concat": "error";
16068
16020
  "n/no-process-exit": "off";
16021
+ "n/prefer-global/console": ["error", "always"];
16069
16022
  "n/prefer-node-protocol": "error";
16023
+ "n/process-exit-as-throw": "error";
16070
16024
  };
16071
16025
  } | {
16072
16026
  name: string;
package/dist/index.js CHANGED
@@ -298,9 +298,16 @@ import nodePlugin2 from "eslint-plugin-n";
298
298
 
299
299
  // src/rules/node.ts
300
300
  var nodeRules = {
301
+ "n/handle-callback-err": ["error", "^(err|error)$"],
302
+ "n/no-deprecated-api": "error",
303
+ "n/no-exports-assign": "error",
304
+ "n/no-new-require": "error",
305
+ "n/no-path-concat": "error",
301
306
  "n/no-process-exit": "off",
302
307
  // TODO [2025-12-31]: enable this rule
303
- "n/prefer-node-protocol": "error"
308
+ "n/prefer-global/console": ["error", "always"],
309
+ "n/prefer-node-protocol": "error",
310
+ "n/process-exit-as-throw": "error"
304
311
  };
305
312
 
306
313
  // src/configs/node.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "A pragmatic and opinionated ESLint config for modern development.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -30,17 +30,17 @@
30
30
  "@types/eslint": "9.6.1",
31
31
  "@typescript-eslint/parser": "^8.26.1",
32
32
  "@typescript-eslint/utils": "^8.26.1",
33
- "@vitest/eslint-plugin": "^1.1.31",
33
+ "@vitest/eslint-plugin": "^1.1.38",
34
34
  "astro-eslint-parser": "^1.2.1",
35
35
  "eslint-config-prettier": "^10.1.1",
36
36
  "eslint-import-resolver-typescript": "^4.2.1",
37
37
  "eslint-plugin-astro": "^1.3.1",
38
- "eslint-plugin-import-x": "^4.8.0",
38
+ "eslint-plugin-import-x": "^4.8.1",
39
39
  "eslint-plugin-jest": "^28.11.0",
40
40
  "eslint-plugin-jest-dom": "^5.5.0",
41
- "eslint-plugin-jsdoc": "^50.6.6",
41
+ "eslint-plugin-jsdoc": "^50.6.8",
42
42
  "eslint-plugin-jsx-a11y": "^6.10.2",
43
- "eslint-plugin-n": "^17.15.1",
43
+ "eslint-plugin-n": "^17.16.2",
44
44
  "eslint-plugin-perfectionist": "^4.9.0",
45
45
  "eslint-plugin-playwright": "^2.2.0",
46
46
  "eslint-plugin-react": "^7.37.4",
@@ -50,8 +50,8 @@
50
50
  "eslint-plugin-regexp": "^2.7.0",
51
51
  "eslint-plugin-storybook": "0.11.6",
52
52
  "eslint-plugin-testing-library": "^7.1.1",
53
- "eslint-plugin-unicorn": "^56.0.1",
54
- "globals": "^15.14.0",
53
+ "eslint-plugin-unicorn": "^57.0.0",
54
+ "globals": "^16.0.0",
55
55
  "local-pkg": "^1.0.0",
56
56
  "typescript-eslint": "^8.26.1"
57
57
  },