@lichthagel/eslint-config 1.0.18 → 1.0.20

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.cts CHANGED
@@ -403,7 +403,7 @@ interface RuleOptions {
403
403
  '@stylistic/semi'?: Linter.RuleEntry<StylisticSemi>
404
404
  /**
405
405
  * Enforce consistent spacing before and after semicolons
406
- * @see https://eslint.style/rules/js/semi-spacing
406
+ * @see https://eslint.style/rules/ts/semi-spacing
407
407
  */
408
408
  '@stylistic/semi-spacing'?: Linter.RuleEntry<StylisticSemiSpacing>
409
409
  /**
@@ -698,7 +698,7 @@ interface RuleOptions {
698
698
  */
699
699
  '@typescript-eslint/no-for-in-array'?: Linter.RuleEntry<[]>
700
700
  /**
701
- * Disallow the use of `eval()`-like methods
701
+ * Disallow the use of `eval()`-like functions
702
702
  * @see https://typescript-eslint.io/rules/no-implied-eval
703
703
  */
704
704
  '@typescript-eslint/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -3418,702 +3418,642 @@ interface RuleOptions {
3418
3418
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
3419
3419
  /**
3420
3420
  * Improve regexes by making them shorter, consistent, and safer.
3421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
3421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
3422
3422
  */
3423
3423
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
3424
3424
  /**
3425
3425
  * Enforce a specific parameter name in catch clauses.
3426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
3426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
3427
3427
  */
3428
3428
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
3429
+ /**
3430
+ * Enforce consistent assertion style with `node:assert`.
3431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
3432
+ */
3433
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
3434
+ /**
3435
+ * Prefer passing `Date` directly to the constructor when cloning.
3436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
3437
+ */
3438
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
3429
3439
  /**
3430
3440
  * Use destructured variables over properties.
3431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
3441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
3432
3442
  */
3433
3443
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
3434
3444
  /**
3435
3445
  * Prefer consistent types when spreading a ternary in an array literal.
3436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
3446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
3437
3447
  */
3438
3448
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
3439
3449
  /**
3440
3450
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
3441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
3451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
3442
3452
  */
3443
3453
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
3444
3454
  /**
3445
3455
  * Move function definitions to the highest possible scope.
3446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
3456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
3447
3457
  */
3448
3458
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
3449
3459
  /**
3450
3460
  * Enforce correct `Error` subclassing.
3451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
3461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
3452
3462
  */
3453
3463
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
3454
3464
  /**
3455
3465
  * Enforce no spaces between braces.
3456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
3466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
3457
3467
  */
3458
3468
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
3459
3469
  /**
3460
3470
  * Enforce passing a `message` value when creating a built-in error.
3461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
3471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
3462
3472
  */
3463
3473
  'unicorn/error-message'?: Linter.RuleEntry<[]>
3464
3474
  /**
3465
3475
  * Require escape sequences to use uppercase values.
3466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
3476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
3467
3477
  */
3468
3478
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
3469
3479
  /**
3470
3480
  * Add expiration conditions to TODO comments.
3471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
3481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
3472
3482
  */
3473
3483
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
3474
3484
  /**
3475
3485
  * Enforce explicitly comparing the `length` or `size` property of a value.
3476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
3486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
3477
3487
  */
3478
3488
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
3479
3489
  /**
3480
3490
  * Enforce a case style for filenames.
3481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
3491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
3482
3492
  */
3483
3493
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
3484
- /**
3485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
3486
- * @deprecated
3487
- */
3488
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
3489
3494
  /**
3490
3495
  * Enforce specific import styles per module.
3491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
3496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
3492
3497
  */
3493
3498
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
3494
3499
  /**
3495
3500
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
3496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
3501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
3497
3502
  */
3498
3503
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
3499
3504
  /**
3500
3505
  * Enforce specifying rules to disable in `eslint-disable` comments.
3501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
3506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
3502
3507
  */
3503
3508
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
3509
+ /**
3510
+ * Disallow recursive access to `this` within getters and setters.
3511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
3512
+ */
3513
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
3504
3514
  /**
3505
3515
  * Disallow anonymous functions and classes as the default export.
3506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
3516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
3507
3517
  */
3508
3518
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
3509
3519
  /**
3510
3520
  * Prevent passing a function reference directly to iterator methods.
3511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
3521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
3512
3522
  */
3513
3523
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
3514
3524
  /**
3515
3525
  * Prefer `for…of` over the `forEach` method.
3516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
3526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
3517
3527
  */
3518
3528
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
3519
- /**
3520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
3521
- * @deprecated
3522
- */
3523
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
3524
3529
  /**
3525
3530
  * Disallow using the `this` argument in array methods.
3526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
3531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
3527
3532
  */
3528
3533
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
3529
3534
  /**
3530
3535
  * Enforce combining multiple `Array#push()` into one call.
3531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
3536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
3532
3537
  */
3533
3538
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
3534
3539
  /**
3535
3540
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
3536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
3541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
3537
3542
  */
3538
3543
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
3539
3544
  /**
3540
3545
  * Disallow member access from await expression.
3541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
3546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
3542
3547
  */
3543
3548
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
3544
3549
  /**
3545
3550
  * Disallow using `await` in `Promise` method parameters.
3546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
3551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
3547
3552
  */
3548
3553
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
3549
3554
  /**
3550
3555
  * Do not use leading/trailing space between `console.log` parameters.
3551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
3556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
3552
3557
  */
3553
3558
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
3554
3559
  /**
3555
3560
  * Do not use `document.cookie` directly.
3556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
3561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
3557
3562
  */
3558
3563
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
3559
3564
  /**
3560
3565
  * Disallow empty files.
3561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
3566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
3562
3567
  */
3563
3568
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
3564
- /**
3565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
3566
- * @deprecated
3567
- */
3568
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
3569
3569
  /**
3570
3570
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
3571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
3571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
3572
3572
  */
3573
3573
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
3574
3574
  /**
3575
3575
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
3576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
3576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
3577
3577
  */
3578
3578
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
3579
3579
  /**
3580
- * Require `Array.isArray()` instead of `instanceof Array`.
3581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
3580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
3581
+ * @deprecated
3582
3582
  */
3583
3583
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
3584
+ /**
3585
+ * Disallow `instanceof` with built-in objects
3586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
3587
+ */
3588
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
3584
3589
  /**
3585
3590
  * Disallow invalid options in `fetch()` and `new Request()`.
3586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
3591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
3587
3592
  */
3588
3593
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
3589
3594
  /**
3590
3595
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
3591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
3596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
3592
3597
  */
3593
3598
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
3594
3599
  /**
3595
3600
  * Disallow identifiers starting with `new` or `class`.
3596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
3601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
3597
3602
  */
3598
3603
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
3599
3604
  /**
3600
3605
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
3601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
3606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
3602
3607
  */
3603
3608
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
3604
3609
  /**
3605
3610
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
3606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
3611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
3607
3612
  */
3608
3613
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
3609
3614
  /**
3610
3615
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
3611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
3616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
3612
3617
  */
3613
3618
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
3619
+ /**
3620
+ * Disallow named usage of default import and export.
3621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
3622
+ */
3623
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
3614
3624
  /**
3615
3625
  * Disallow negated conditions.
3616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
3626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
3617
3627
  */
3618
3628
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
3619
3629
  /**
3620
3630
  * Disallow negated expression in equality check.
3621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
3631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
3622
3632
  */
3623
3633
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
3624
3634
  /**
3625
3635
  * Disallow nested ternary expressions.
3626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
3636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
3627
3637
  */
3628
3638
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
3629
3639
  /**
3630
3640
  * Disallow `new Array()`.
3631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
3641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
3632
3642
  */
3633
3643
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
3634
3644
  /**
3635
3645
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
3636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
3646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
3637
3647
  */
3638
3648
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
3639
3649
  /**
3640
3650
  * Disallow the use of the `null` literal.
3641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
3651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
3642
3652
  */
3643
3653
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
3644
3654
  /**
3645
3655
  * Disallow the use of objects as default parameters.
3646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
3656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
3647
3657
  */
3648
3658
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
3649
3659
  /**
3650
3660
  * Disallow `process.exit()`.
3651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
3661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
3652
3662
  */
3653
3663
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
3654
- /**
3655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
3656
- * @deprecated
3657
- */
3658
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
3659
3664
  /**
3660
3665
  * Disallow passing single-element arrays to `Promise` methods.
3661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
3666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
3662
3667
  */
3663
3668
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
3664
3669
  /**
3665
3670
  * Disallow classes that only have static members.
3666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
3671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
3667
3672
  */
3668
3673
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
3669
3674
  /**
3670
3675
  * Disallow `then` property.
3671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
3676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
3672
3677
  */
3673
3678
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
3674
3679
  /**
3675
3680
  * Disallow assigning `this` to a variable.
3676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
3681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
3677
3682
  */
3678
3683
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
3679
3684
  /**
3680
3685
  * Disallow comparing `undefined` using `typeof`.
3681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
3686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
3682
3687
  */
3683
3688
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
3684
3689
  /**
3685
3690
  * Disallow awaiting non-promise values.
3686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
3691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
3687
3692
  */
3688
3693
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
3689
3694
  /**
3690
3695
  * Enforce the use of built-in methods instead of unnecessary polyfills.
3691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
3696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
3692
3697
  */
3693
3698
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
3694
3699
  /**
3695
3700
  * Disallow unreadable array destructuring.
3696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
3701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
3697
3702
  */
3698
3703
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
3699
3704
  /**
3700
3705
  * Disallow unreadable IIFEs.
3701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
3706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
3702
3707
  */
3703
3708
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
3704
- /**
3705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
3706
- * @deprecated
3707
- */
3708
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
3709
3709
  /**
3710
3710
  * Disallow unused object properties.
3711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
3711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
3712
3712
  */
3713
3713
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
3714
3714
  /**
3715
3715
  * Disallow useless fallback when spreading in object literals.
3716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
3716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
3717
3717
  */
3718
3718
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
3719
3719
  /**
3720
3720
  * Disallow useless array length check.
3721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
3721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
3722
3722
  */
3723
3723
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
3724
3724
  /**
3725
3725
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
3726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
3726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
3727
3727
  */
3728
3728
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
3729
3729
  /**
3730
3730
  * Disallow unnecessary spread.
3731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
3731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
3732
3732
  */
3733
3733
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
3734
3734
  /**
3735
3735
  * Disallow useless case in switch statements.
3736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
3736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
3737
3737
  */
3738
3738
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
3739
3739
  /**
3740
3740
  * Disallow useless `undefined`.
3741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
3741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
3742
3742
  */
3743
3743
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
3744
3744
  /**
3745
3745
  * Disallow number literals with zero fractions or dangling dots.
3746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
3746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
3747
3747
  */
3748
3748
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
3749
3749
  /**
3750
3750
  * Enforce proper case for numeric literals.
3751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
3751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
3752
3752
  */
3753
3753
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
3754
3754
  /**
3755
3755
  * Enforce the style of numeric separators by correctly grouping digits.
3756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
3756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
3757
3757
  */
3758
3758
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
3759
3759
  /**
3760
3760
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
3761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
3761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
3762
3762
  */
3763
3763
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
3764
3764
  /**
3765
3765
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
3766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
3766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
3767
3767
  */
3768
3768
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
3769
3769
  /**
3770
3770
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
3771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
3771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
3772
3772
  */
3773
3773
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
3774
3774
  /**
3775
3775
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
3776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
3776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
3777
3777
  */
3778
3778
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
3779
3779
  /**
3780
3780
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
3781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
3781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
3782
3782
  */
3783
3783
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
3784
3784
  /**
3785
3785
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
3786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
3786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
3787
3787
  */
3788
3788
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
3789
3789
  /**
3790
3790
  * Prefer `.at()` method for index access and `String#charAt()`.
3791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
3791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
3792
3792
  */
3793
3793
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
3794
3794
  /**
3795
3795
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
3796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
3796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
3797
3797
  */
3798
3798
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
3799
3799
  /**
3800
3800
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
3801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
3801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
3802
3802
  */
3803
3803
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
3804
- /**
3805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
3806
- * @deprecated
3807
- */
3808
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
3809
3804
  /**
3810
3805
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
3811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
3806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
3812
3807
  */
3813
3808
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
3814
3809
  /**
3815
3810
  * Prefer default parameters over reassignment.
3816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
3811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
3817
3812
  */
3818
3813
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
3819
3814
  /**
3820
3815
  * Prefer `Node#append()` over `Node#appendChild()`.
3821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
3816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
3822
3817
  */
3823
3818
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
3824
3819
  /**
3825
3820
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
3826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
3821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
3827
3822
  */
3828
3823
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
3829
3824
  /**
3830
3825
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
3831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
3826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
3832
3827
  */
3833
3828
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
3834
3829
  /**
3835
3830
  * Prefer `.textContent` over `.innerText`.
3836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
3831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
3837
3832
  */
3838
3833
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
3839
- /**
3840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
3841
- * @deprecated
3842
- */
3843
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
3844
3834
  /**
3845
3835
  * Prefer `EventTarget` over `EventEmitter`.
3846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
3836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
3847
3837
  */
3848
3838
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
3849
- /**
3850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
3851
- * @deprecated
3852
- */
3853
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
3854
3839
  /**
3855
3840
  * Prefer `export…from` when re-exporting.
3856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
3841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
3857
3842
  */
3858
3843
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
3859
- /**
3860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
3861
- * @deprecated
3862
- */
3863
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
3864
3844
  /**
3865
3845
  * Prefer `globalThis` over `window`, `self`, and `global`.
3866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
3846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
3867
3847
  */
3868
3848
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
3869
3849
  /**
3870
3850
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
3871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
3851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
3872
3852
  */
3873
3853
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
3874
3854
  /**
3875
3855
  * Prefer reading a JSON file as a buffer.
3876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
3856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
3877
3857
  */
3878
3858
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
3879
3859
  /**
3880
3860
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
3881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
3861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
3882
3862
  */
3883
3863
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
3884
3864
  /**
3885
3865
  * Prefer using a logical operator over a ternary.
3886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
3866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
3887
3867
  */
3888
3868
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
3889
3869
  /**
3890
3870
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
3891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
3871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
3892
3872
  */
3893
3873
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
3894
3874
  /**
3895
3875
  * Enforce the use of `Math.trunc` instead of bitwise operators.
3896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
3876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
3897
3877
  */
3898
3878
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
3899
3879
  /**
3900
3880
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
3901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
3881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
3902
3882
  */
3903
3883
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
3904
3884
  /**
3905
3885
  * Prefer modern `Math` APIs over legacy patterns.
3906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
3886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
3907
3887
  */
3908
3888
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
3909
3889
  /**
3910
3890
  * Prefer JavaScript modules (ESM) over CommonJS.
3911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
3891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
3912
3892
  */
3913
3893
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
3914
3894
  /**
3915
3895
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
3916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
3896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
3917
3897
  */
3918
3898
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
3919
3899
  /**
3920
3900
  * Prefer negative index over `.length - index` when possible.
3921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
3901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
3922
3902
  */
3923
3903
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
3924
- /**
3925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
3926
- * @deprecated
3927
- */
3928
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
3929
3904
  /**
3930
3905
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
3931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
3906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
3932
3907
  */
3933
3908
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
3934
- /**
3935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
3936
- * @deprecated
3937
- */
3938
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
3939
3909
  /**
3940
3910
  * Prefer `Number` static properties over global ones.
3941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
3911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
3942
3912
  */
3943
3913
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
3944
3914
  /**
3945
3915
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
3946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
3916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
3947
3917
  */
3948
3918
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
3949
- /**
3950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
3951
- * @deprecated
3952
- */
3953
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
3954
3919
  /**
3955
3920
  * Prefer omitting the `catch` binding parameter.
3956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
3921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
3957
3922
  */
3958
3923
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
3959
3924
  /**
3960
3925
  * Prefer borrowing methods from the prototype instead of the instance.
3961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
3926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
3962
3927
  */
3963
3928
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
3964
3929
  /**
3965
3930
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
3966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
3931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
3967
3932
  */
3968
3933
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
3969
3934
  /**
3970
3935
  * Prefer `Reflect.apply()` over `Function#apply()`.
3971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
3936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
3972
3937
  */
3973
3938
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
3974
3939
  /**
3975
3940
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
3976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
3941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
3977
3942
  */
3978
3943
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
3979
- /**
3980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
3981
- * @deprecated
3982
- */
3983
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
3984
3944
  /**
3985
3945
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
3986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
3946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
3987
3947
  */
3988
3948
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
3989
3949
  /**
3990
3950
  * Prefer using `Set#size` instead of `Array#length`.
3991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
3951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
3992
3952
  */
3993
3953
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
3994
3954
  /**
3995
3955
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
3996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
3956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
3997
3957
  */
3998
3958
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
3999
- /**
4000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
4001
- * @deprecated
4002
- */
4003
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
4004
3959
  /**
4005
3960
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
3961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
4007
3962
  */
4008
3963
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
4009
3964
  /**
4010
3965
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
3966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
4012
3967
  */
4013
3968
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
4014
3969
  /**
4015
3970
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
3971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
4017
3972
  */
4018
3973
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
4019
3974
  /**
4020
3975
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
3976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
4022
3977
  */
4023
3978
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
4024
3979
  /**
4025
3980
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
3981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
4027
3982
  */
4028
3983
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
4029
3984
  /**
4030
3985
  * Prefer using `structuredClone` to create a deep clone.
4031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
3986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
4032
3987
  */
4033
3988
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
4034
3989
  /**
4035
3990
  * Prefer `switch` over multiple `else-if`.
4036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
3991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
4037
3992
  */
4038
3993
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
4039
3994
  /**
4040
3995
  * Prefer ternary expressions over simple `if-else` statements.
4041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
3996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
4042
3997
  */
4043
3998
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
4044
- /**
4045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
4046
- * @deprecated
4047
- */
4048
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
4049
3999
  /**
4050
4000
  * Prefer top-level await over top-level promises and async function calls.
4051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
4001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
4052
4002
  */
4053
4003
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
4054
- /**
4055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
4056
- * @deprecated
4057
- */
4058
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
4059
4004
  /**
4060
4005
  * Enforce throwing `TypeError` in type checking conditions.
4061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
4006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
4062
4007
  */
4063
4008
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
4064
4009
  /**
4065
4010
  * Prevent abbreviations.
4066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
4011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
4067
4012
  */
4068
4013
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
4069
- /**
4070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
4071
- * @deprecated
4072
- */
4073
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
4074
4014
  /**
4075
4015
  * Enforce consistent relative URL style.
4076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
4016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
4077
4017
  */
4078
4018
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
4079
4019
  /**
4080
4020
  * Enforce using the separator argument with `Array#join()`.
4081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
4021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
4082
4022
  */
4083
4023
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
4084
4024
  /**
4085
4025
  * Enforce using the digits argument with `Number#toFixed()`.
4086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
4026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4087
4027
  */
4088
4028
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
4089
4029
  /**
4090
4030
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
4031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
4092
4032
  */
4093
4033
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
4094
4034
  /**
4095
4035
  * Enforce better string content.
4096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
4036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
4097
4037
  */
4098
4038
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
4099
4039
  /**
4100
4040
  * Enforce consistent brace style for `case` clauses.
4101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
4041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
4102
4042
  */
4103
4043
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
4104
4044
  /**
4105
4045
  * Fix whitespace-insensitive template indentation.
4106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
4046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
4107
4047
  */
4108
4048
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
4109
4049
  /**
4110
4050
  * Enforce consistent case for text encoding identifiers.
4111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
4051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
4112
4052
  */
4113
4053
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
4114
4054
  /**
4115
4055
  * Require `new` when creating an error.
4116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
4056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
4117
4057
  */
4118
4058
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
4119
4059
  /**
@@ -5242,6 +5182,7 @@ type StylisticSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
5242
5182
  // ----- @stylistic/space-infix-ops -----
5243
5183
  type StylisticSpaceInfixOps = []|[{
5244
5184
  int32Hint?: boolean
5185
+ ignoreTypes?: boolean
5245
5186
  }]
5246
5187
  // ----- @stylistic/space-unary-ops -----
5247
5188
  type StylisticSpaceUnaryOps = []|[{
@@ -10221,6 +10162,13 @@ type UnicornNoArrayPushPush = []|[{
10221
10162
  type UnicornNoArrayReduce = []|[{
10222
10163
  allowSimpleOperations?: boolean
10223
10164
  }]
10165
+ // ----- unicorn/no-instanceof-builtins -----
10166
+ type UnicornNoInstanceofBuiltins = []|[{
10167
+ useErrorIsError?: boolean
10168
+ strategy?: ("loose" | "strict")
10169
+ include?: string[]
10170
+ exclude?: string[]
10171
+ }]
10224
10172
  // ----- unicorn/no-keyword-prefix -----
10225
10173
  type UnicornNoKeywordPrefix = []|[{
10226
10174