@lichthagel/eslint-config 1.0.27 → 1.0.29

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.
Files changed (3) hide show
  1. package/dist/index.d.cts +211 -158
  2. package/dist/index.d.ts +211 -158
  3. package/package.json +2 -2
package/dist/index.d.cts CHANGED
@@ -1849,7 +1849,7 @@ interface RuleOptions {
1849
1849
  */
1850
1850
  'no-console'?: Linter.RuleEntry<NoConsole>
1851
1851
  /**
1852
- * Disallow reassigning `const` variables
1852
+ * Disallow reassigning `const`, `using`, and `await using` variables
1853
1853
  * @see https://eslint.org/docs/latest/rules/no-const-assign
1854
1854
  */
1855
1855
  'no-const-assign'?: Linter.RuleEntry<[]>
@@ -3336,6 +3336,11 @@ interface RuleOptions {
3336
3336
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-style-directive/
3337
3337
  */
3338
3338
  'svelte/prefer-style-directive'?: Linter.RuleEntry<[]>
3339
+ /**
3340
+ * disallow using mutable instances of built-in classes where a reactive alternative is provided by svelte/reactivity
3341
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-svelte-reactivity/
3342
+ */
3343
+ 'svelte/prefer-svelte-reactivity'?: Linter.RuleEntry<[]>
3339
3344
  /**
3340
3345
  * Prefer using writable $derived instead of $state and $effect
3341
3346
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-writable-derived/
@@ -3491,670 +3496,690 @@ interface RuleOptions {
3491
3496
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
3492
3497
  /**
3493
3498
  * Improve regexes by making them shorter, consistent, and safer.
3494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
3499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
3495
3500
  */
3496
3501
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
3497
3502
  /**
3498
3503
  * Enforce a specific parameter name in catch clauses.
3499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
3504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
3500
3505
  */
3501
3506
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
3502
3507
  /**
3503
3508
  * Enforce consistent assertion style with `node:assert`.
3504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
3509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
3505
3510
  */
3506
3511
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
3507
3512
  /**
3508
3513
  * Prefer passing `Date` directly to the constructor when cloning.
3509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
3514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
3510
3515
  */
3511
3516
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
3512
3517
  /**
3513
3518
  * Use destructured variables over properties.
3514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
3519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
3515
3520
  */
3516
3521
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
3517
3522
  /**
3518
3523
  * Prefer consistent types when spreading a ternary in an array literal.
3519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
3524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
3520
3525
  */
3521
3526
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
3522
3527
  /**
3523
3528
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
3524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
3529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
3525
3530
  */
3526
3531
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
3527
3532
  /**
3528
3533
  * Move function definitions to the highest possible scope.
3529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
3534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
3530
3535
  */
3531
3536
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
3532
3537
  /**
3533
3538
  * Enforce correct `Error` subclassing.
3534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
3539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
3535
3540
  */
3536
3541
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
3537
3542
  /**
3538
3543
  * Enforce no spaces between braces.
3539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
3544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
3540
3545
  */
3541
3546
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
3542
3547
  /**
3543
3548
  * Enforce passing a `message` value when creating a built-in error.
3544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
3549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
3545
3550
  */
3546
3551
  'unicorn/error-message'?: Linter.RuleEntry<[]>
3547
3552
  /**
3548
3553
  * Require escape sequences to use uppercase or lowercase values.
3549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
3554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
3550
3555
  */
3551
3556
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
3552
3557
  /**
3553
3558
  * Add expiration conditions to TODO comments.
3554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
3559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
3555
3560
  */
3556
3561
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
3557
3562
  /**
3558
3563
  * Enforce explicitly comparing the `length` or `size` property of a value.
3559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
3564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
3560
3565
  */
3561
3566
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
3562
3567
  /**
3563
3568
  * Enforce a case style for filenames.
3564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
3569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
3565
3570
  */
3566
3571
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
3567
3572
  /**
3568
3573
  * Enforce specific import styles per module.
3569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
3574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
3570
3575
  */
3571
3576
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
3572
3577
  /**
3573
3578
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
3574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
3579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
3575
3580
  */
3576
3581
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
3577
3582
  /**
3578
3583
  * Enforce specifying rules to disable in `eslint-disable` comments.
3579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
3584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
3580
3585
  */
3581
3586
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
3582
3587
  /**
3583
3588
  * Disallow recursive access to `this` within getters and setters.
3584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
3589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
3585
3590
  */
3586
3591
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
3587
3592
  /**
3588
3593
  * Disallow anonymous functions and classes as the default export.
3589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
3594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
3590
3595
  */
3591
3596
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
3592
3597
  /**
3593
3598
  * Prevent passing a function reference directly to iterator methods.
3594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
3599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
3595
3600
  */
3596
3601
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
3597
3602
  /**
3598
3603
  * Prefer `for…of` over the `forEach` method.
3599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
3604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
3600
3605
  */
3601
3606
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
3602
3607
  /**
3603
3608
  * Disallow using the `this` argument in array methods.
3604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
3609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
3605
3610
  */
3606
3611
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
3607
3612
  /**
3608
3613
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
3609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
3614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
3610
3615
  * @deprecated
3611
3616
  */
3612
3617
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
3613
3618
  /**
3614
3619
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
3615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
3620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
3616
3621
  */
3617
3622
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
3623
+ /**
3624
+ * Prefer `Array#toReversed()` over `Array#reverse()`.
3625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
3626
+ */
3627
+ 'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
3618
3628
  /**
3619
3629
  * Disallow member access from await expression.
3620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
3630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
3621
3631
  */
3622
3632
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
3623
3633
  /**
3624
3634
  * Disallow using `await` in `Promise` method parameters.
3625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
3635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
3626
3636
  */
3627
3637
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
3628
3638
  /**
3629
3639
  * Do not use leading/trailing space between `console.log` parameters.
3630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
3640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
3631
3641
  */
3632
3642
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
3633
3643
  /**
3634
3644
  * Do not use `document.cookie` directly.
3635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
3645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
3636
3646
  */
3637
3647
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
3638
3648
  /**
3639
3649
  * Disallow empty files.
3640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
3650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
3641
3651
  */
3642
3652
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
3643
3653
  /**
3644
3654
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
3645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
3655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
3646
3656
  */
3647
3657
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
3648
3658
  /**
3649
3659
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
3650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
3660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
3651
3661
  */
3652
3662
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
3653
3663
  /**
3654
3664
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
3655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
3665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
3656
3666
  * @deprecated
3657
3667
  */
3658
3668
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
3659
3669
  /**
3660
3670
  * Disallow `instanceof` with built-in objects
3661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
3671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
3662
3672
  */
3663
3673
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
3664
3674
  /**
3665
3675
  * Disallow invalid options in `fetch()` and `new Request()`.
3666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
3676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
3667
3677
  */
3668
3678
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
3669
3679
  /**
3670
3680
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
3671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
3681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
3672
3682
  */
3673
3683
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
3674
3684
  /**
3675
3685
  * Disallow identifiers starting with `new` or `class`.
3676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
3686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
3677
3687
  */
3678
3688
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
3679
3689
  /**
3680
3690
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
3681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
3691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
3682
3692
  * @deprecated
3683
3693
  */
3684
3694
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
3685
3695
  /**
3686
3696
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
3687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
3697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
3688
3698
  */
3689
3699
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
3690
3700
  /**
3691
3701
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
3692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
3702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
3693
3703
  */
3694
3704
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
3695
3705
  /**
3696
3706
  * Disallow named usage of default import and export.
3697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
3707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
3698
3708
  */
3699
3709
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
3700
3710
  /**
3701
3711
  * Disallow negated conditions.
3702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
3712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
3703
3713
  */
3704
3714
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
3705
3715
  /**
3706
3716
  * Disallow negated expression in equality check.
3707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
3717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
3708
3718
  */
3709
3719
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
3710
3720
  /**
3711
3721
  * Disallow nested ternary expressions.
3712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
3722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
3713
3723
  */
3714
3724
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
3715
3725
  /**
3716
3726
  * Disallow `new Array()`.
3717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
3727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
3718
3728
  */
3719
3729
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
3720
3730
  /**
3721
3731
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
3722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
3732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
3723
3733
  */
3724
3734
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
3725
3735
  /**
3726
3736
  * Disallow the use of the `null` literal.
3727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
3737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
3728
3738
  */
3729
3739
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
3730
3740
  /**
3731
3741
  * Disallow the use of objects as default parameters.
3732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
3742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
3733
3743
  */
3734
3744
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
3735
3745
  /**
3736
3746
  * Disallow `process.exit()`.
3737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
3747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
3738
3748
  */
3739
3749
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
3740
3750
  /**
3741
3751
  * Disallow passing single-element arrays to `Promise` methods.
3742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
3752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
3743
3753
  */
3744
3754
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
3745
3755
  /**
3746
3756
  * Disallow classes that only have static members.
3747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
3757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
3748
3758
  */
3749
3759
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
3750
3760
  /**
3751
3761
  * Disallow `then` property.
3752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
3762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
3753
3763
  */
3754
3764
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
3755
3765
  /**
3756
3766
  * Disallow assigning `this` to a variable.
3757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
3767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
3758
3768
  */
3759
3769
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
3760
3770
  /**
3761
3771
  * Disallow comparing `undefined` using `typeof`.
3762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
3772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
3763
3773
  */
3764
3774
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
3765
3775
  /**
3766
3776
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
3767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
3777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
3768
3778
  */
3769
3779
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
3770
3780
  /**
3771
3781
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
3772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
3782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
3773
3783
  */
3774
3784
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
3775
3785
  /**
3776
3786
  * Disallow awaiting non-promise values.
3777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
3787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
3778
3788
  */
3779
3789
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
3780
3790
  /**
3781
3791
  * Enforce the use of built-in methods instead of unnecessary polyfills.
3782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
3792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
3783
3793
  */
3784
3794
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
3785
3795
  /**
3786
3796
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
3787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
3797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
3788
3798
  */
3789
3799
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
3790
3800
  /**
3791
3801
  * Disallow unreadable array destructuring.
3792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
3802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
3793
3803
  */
3794
3804
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
3795
3805
  /**
3796
3806
  * Disallow unreadable IIFEs.
3797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
3807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
3798
3808
  */
3799
3809
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
3800
3810
  /**
3801
3811
  * Disallow unused object properties.
3802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
3812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
3803
3813
  */
3804
3814
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
3815
+ /**
3816
+ * Disallow unnecessary `Error.captureStackTrace(…)`.
3817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
3818
+ */
3819
+ 'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
3805
3820
  /**
3806
3821
  * Disallow useless fallback when spreading in object literals.
3807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
3822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
3808
3823
  */
3809
3824
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
3810
3825
  /**
3811
3826
  * Disallow useless array length check.
3812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
3827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
3813
3828
  */
3814
3829
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
3815
3830
  /**
3816
3831
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
3817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
3832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
3818
3833
  */
3819
3834
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
3820
3835
  /**
3821
3836
  * Disallow unnecessary spread.
3822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
3837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
3823
3838
  */
3824
3839
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
3825
3840
  /**
3826
3841
  * Disallow useless case in switch statements.
3827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
3842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
3828
3843
  */
3829
3844
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
3830
3845
  /**
3831
3846
  * Disallow useless `undefined`.
3832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
3847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
3833
3848
  */
3834
3849
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
3835
3850
  /**
3836
3851
  * Disallow number literals with zero fractions or dangling dots.
3837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
3852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
3838
3853
  */
3839
3854
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
3840
3855
  /**
3841
3856
  * Enforce proper case for numeric literals.
3842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
3857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
3843
3858
  */
3844
3859
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
3845
3860
  /**
3846
3861
  * Enforce the style of numeric separators by correctly grouping digits.
3847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
3862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
3848
3863
  */
3849
3864
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
3850
3865
  /**
3851
3866
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
3852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
3867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
3853
3868
  */
3854
3869
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
3855
3870
  /**
3856
3871
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
3857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
3872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
3858
3873
  */
3859
3874
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
3860
3875
  /**
3861
3876
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
3862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
3877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
3863
3878
  */
3864
3879
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
3865
3880
  /**
3866
3881
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
3867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
3882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
3868
3883
  */
3869
3884
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
3870
3885
  /**
3871
3886
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
3872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
3887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
3873
3888
  */
3874
3889
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
3875
3890
  /**
3876
3891
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
3877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
3892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
3878
3893
  */
3879
3894
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
3880
3895
  /**
3881
3896
  * Prefer `.at()` method for index access and `String#charAt()`.
3882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
3897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
3883
3898
  */
3884
3899
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
3885
3900
  /**
3886
3901
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
3887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
3902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
3888
3903
  */
3889
3904
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
3905
+ /**
3906
+ * Prefer class field declarations over `this` assignments in constructors.
3907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
3908
+ */
3909
+ 'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
3890
3910
  /**
3891
3911
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
3892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
3912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
3893
3913
  */
3894
3914
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
3895
3915
  /**
3896
3916
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
3897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
3917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
3898
3918
  */
3899
3919
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
3900
3920
  /**
3901
3921
  * Prefer default parameters over reassignment.
3902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
3922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
3903
3923
  */
3904
3924
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
3905
3925
  /**
3906
3926
  * Prefer `Node#append()` over `Node#appendChild()`.
3907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
3927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
3908
3928
  */
3909
3929
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
3910
3930
  /**
3911
3931
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
3912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
3932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
3913
3933
  */
3914
3934
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
3915
3935
  /**
3916
3936
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
3917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
3937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
3918
3938
  */
3919
3939
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
3920
3940
  /**
3921
3941
  * Prefer `.textContent` over `.innerText`.
3922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
3942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
3923
3943
  */
3924
3944
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
3925
3945
  /**
3926
3946
  * Prefer `EventTarget` over `EventEmitter`.
3927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
3947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
3928
3948
  */
3929
3949
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
3930
3950
  /**
3931
3951
  * Prefer `export…from` when re-exporting.
3932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
3952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
3933
3953
  */
3934
3954
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
3935
3955
  /**
3936
3956
  * Prefer `globalThis` over `window`, `self`, and `global`.
3937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
3957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
3938
3958
  */
3939
3959
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
3940
3960
  /**
3941
3961
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
3942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
3962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
3943
3963
  */
3944
3964
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
3945
3965
  /**
3946
3966
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
3947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
3967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
3948
3968
  */
3949
3969
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
3950
3970
  /**
3951
3971
  * Prefer reading a JSON file as a buffer.
3952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
3972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
3953
3973
  */
3954
3974
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
3955
3975
  /**
3956
3976
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
3957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
3977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
3958
3978
  */
3959
3979
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
3960
3980
  /**
3961
3981
  * Prefer using a logical operator over a ternary.
3962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
3982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
3963
3983
  */
3964
3984
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
3965
3985
  /**
3966
3986
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
3967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
3987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
3968
3988
  */
3969
3989
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
3970
3990
  /**
3971
3991
  * Enforce the use of `Math.trunc` instead of bitwise operators.
3972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
3992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
3973
3993
  */
3974
3994
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
3975
3995
  /**
3976
3996
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
3977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
3997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
3978
3998
  */
3979
3999
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
3980
4000
  /**
3981
4001
  * Prefer modern `Math` APIs over legacy patterns.
3982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
4002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
3983
4003
  */
3984
4004
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
3985
4005
  /**
3986
4006
  * Prefer JavaScript modules (ESM) over CommonJS.
3987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
4007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
3988
4008
  */
3989
4009
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
3990
4010
  /**
3991
4011
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
3992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
4012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
3993
4013
  */
3994
4014
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
3995
4015
  /**
3996
4016
  * Prefer negative index over `.length - index` when possible.
3997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
4017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
3998
4018
  */
3999
4019
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
4000
4020
  /**
4001
4021
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
4022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
4003
4023
  */
4004
4024
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
4005
4025
  /**
4006
4026
  * Prefer `Number` static properties over global ones.
4007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
4027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
4008
4028
  */
4009
4029
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
4010
4030
  /**
4011
4031
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
4032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
4013
4033
  */
4014
4034
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
4015
4035
  /**
4016
4036
  * Prefer omitting the `catch` binding parameter.
4017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
4037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
4018
4038
  */
4019
4039
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
4020
4040
  /**
4021
4041
  * Prefer borrowing methods from the prototype instead of the instance.
4022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
4042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
4023
4043
  */
4024
4044
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
4025
4045
  /**
4026
4046
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
4047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
4028
4048
  */
4029
4049
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
4030
4050
  /**
4031
4051
  * Prefer `Reflect.apply()` over `Function#apply()`.
4032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
4052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
4033
4053
  */
4034
4054
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
4035
4055
  /**
4036
4056
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
4057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
4038
4058
  */
4039
4059
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
4040
4060
  /**
4041
4061
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
4062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
4043
4063
  */
4044
4064
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
4045
4065
  /**
4046
4066
  * Prefer using `Set#size` instead of `Array#length`.
4047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
4067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
4048
4068
  */
4049
4069
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
4050
4070
  /**
4051
4071
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
4072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
4053
4073
  */
4054
4074
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
4055
4075
  /**
4056
4076
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
4077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
4058
4078
  */
4059
4079
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
4060
4080
  /**
4061
4081
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
4082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
4063
4083
  */
4064
4084
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
4065
4085
  /**
4066
4086
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
4087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
4068
4088
  */
4069
4089
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
4070
4090
  /**
4071
4091
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
4092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
4073
4093
  */
4074
4094
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
4075
4095
  /**
4076
4096
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
4097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
4078
4098
  */
4079
4099
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
4080
4100
  /**
4081
4101
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
4102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
4083
4103
  */
4084
4104
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
4085
4105
  /**
4086
4106
  * Prefer using `structuredClone` to create a deep clone.
4087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
4107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
4088
4108
  */
4089
4109
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
4090
4110
  /**
4091
4111
  * Prefer `switch` over multiple `else-if`.
4092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
4112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
4093
4113
  */
4094
4114
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
4095
4115
  /**
4096
4116
  * Prefer ternary expressions over simple `if-else` statements.
4097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
4117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
4098
4118
  */
4099
4119
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
4100
4120
  /**
4101
4121
  * Prefer top-level await over top-level promises and async function calls.
4102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
4122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
4103
4123
  */
4104
4124
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
4105
4125
  /**
4106
4126
  * Enforce throwing `TypeError` in type checking conditions.
4107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
4127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
4108
4128
  */
4109
4129
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
4110
4130
  /**
4111
4131
  * Prevent abbreviations.
4112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
4132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
4113
4133
  */
4114
4134
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
4115
4135
  /**
4116
4136
  * Enforce consistent relative URL style.
4117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
4137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
4118
4138
  */
4119
4139
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
4120
4140
  /**
4121
4141
  * Enforce using the separator argument with `Array#join()`.
4122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
4142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
4123
4143
  */
4124
4144
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
4145
+ /**
4146
+ * Require non-empty specifier list in import and export statements.
4147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
4148
+ */
4149
+ 'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
4125
4150
  /**
4126
4151
  * Enforce using the digits argument with `Number#toFixed()`.
4127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
4152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4128
4153
  */
4129
4154
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
4130
4155
  /**
4131
4156
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
4157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
4133
4158
  */
4134
4159
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
4135
4160
  /**
4136
4161
  * Enforce better string content.
4137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
4162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
4138
4163
  */
4139
4164
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
4140
4165
  /**
4141
4166
  * Enforce consistent brace style for `case` clauses.
4142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
4167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
4143
4168
  */
4144
4169
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
4145
4170
  /**
4146
4171
  * Fix whitespace-insensitive template indentation.
4147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
4172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
4148
4173
  */
4149
4174
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
4150
4175
  /**
4151
4176
  * Enforce consistent case for text encoding identifiers.
4152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
4177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
4153
4178
  */
4154
4179
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
4155
4180
  /**
4156
4181
  * Require `new` when creating an error.
4157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
4182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
4158
4183
  */
4159
4184
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
4160
4185
  /**
@@ -4426,10 +4451,12 @@ type StylisticIndent = []|[("tab" | number)]|[("tab" | number), {
4426
4451
  FunctionDeclaration?: {
4427
4452
  parameters?: (number | ("first" | "off"))
4428
4453
  body?: number
4454
+ returnType?: number
4429
4455
  }
4430
4456
  FunctionExpression?: {
4431
4457
  parameters?: (number | ("first" | "off"))
4432
4458
  body?: number
4459
+ returnType?: number
4433
4460
  }
4434
4461
  StaticBlock?: {
4435
4462
  body?: number
@@ -4470,31 +4497,52 @@ type StylisticJsxCurlyNewline = []|[(("consistent" | "never") | {
4470
4497
  multiline?: ("consistent" | "require" | "forbid")
4471
4498
  })]
4472
4499
  // ----- @stylistic/jsx-curly-spacing -----
4473
- type StylisticJsxCurlySpacing = []|[((_StylisticJsxCurlySpacing_BasicConfig & {
4474
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
4475
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
4476
- [k: string]: unknown | undefined
4477
- }) | ("always" | "never"))]|[((_StylisticJsxCurlySpacing_BasicConfig & {
4478
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
4479
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
4480
- [k: string]: unknown | undefined
4481
- }) | ("always" | "never")), {
4500
+ type StylisticJsxCurlySpacing = []|[({
4501
+ when?: ("always" | "never")
4482
4502
  allowMultiline?: boolean
4483
4503
  spacing?: {
4484
4504
  objectLiterals?: ("always" | "never")
4485
- [k: string]: unknown | undefined
4486
4505
  }
4487
- }]
4488
- type _StylisticJsxCurlySpacingBasicConfigOrBoolean = (_StylisticJsxCurlySpacing_BasicConfig | boolean)
4489
- interface _StylisticJsxCurlySpacing_BasicConfig {
4506
+ attributes?: ({
4507
+ when?: ("always" | "never")
4508
+ allowMultiline?: boolean
4509
+ spacing?: {
4510
+ objectLiterals?: ("always" | "never")
4511
+ }
4512
+ } | boolean)
4513
+ children?: ({
4514
+ when?: ("always" | "never")
4515
+ allowMultiline?: boolean
4516
+ spacing?: {
4517
+ objectLiterals?: ("always" | "never")
4518
+ }
4519
+ } | boolean)
4520
+ } | ("always" | "never"))]|[({
4490
4521
  when?: ("always" | "never")
4491
4522
  allowMultiline?: boolean
4492
4523
  spacing?: {
4493
4524
  objectLiterals?: ("always" | "never")
4494
- [k: string]: unknown | undefined
4495
4525
  }
4496
- [k: string]: unknown | undefined
4497
- }
4526
+ attributes?: ({
4527
+ when?: ("always" | "never")
4528
+ allowMultiline?: boolean
4529
+ spacing?: {
4530
+ objectLiterals?: ("always" | "never")
4531
+ }
4532
+ } | boolean)
4533
+ children?: ({
4534
+ when?: ("always" | "never")
4535
+ allowMultiline?: boolean
4536
+ spacing?: {
4537
+ objectLiterals?: ("always" | "never")
4538
+ }
4539
+ } | boolean)
4540
+ } | ("always" | "never")), {
4541
+ allowMultiline?: boolean
4542
+ spacing?: {
4543
+ objectLiterals?: ("always" | "never")
4544
+ }
4545
+ }]
4498
4546
  // ----- @stylistic/jsx-equals-spacing -----
4499
4547
  type StylisticJsxEqualsSpacing = []|[("always" | "never")]
4500
4548
  // ----- @stylistic/jsx-first-prop-new-line -----
@@ -4510,14 +4558,12 @@ type StylisticJsxIndent = []|[("tab" | number)]|[("tab" | number), {
4510
4558
  type StylisticJsxIndentProps = []|[(("tab" | "first") | number | {
4511
4559
  indentMode?: (("tab" | "first") | number)
4512
4560
  ignoreTernaryOperator?: boolean
4513
- [k: string]: unknown | undefined
4514
4561
  })]
4515
4562
  // ----- @stylistic/jsx-max-props-per-line -----
4516
4563
  type StylisticJsxMaxPropsPerLine = []|[({
4517
4564
  maximum?: {
4518
4565
  single?: number
4519
4566
  multi?: number
4520
- [k: string]: unknown | undefined
4521
4567
  }
4522
4568
  } | {
4523
4569
  maximum?: number
@@ -4864,6 +4910,10 @@ type StylisticKeywordSpacing = []|[{
4864
4910
  before?: boolean
4865
4911
  after?: boolean
4866
4912
  }
4913
+ accessor?: {
4914
+ before?: boolean
4915
+ after?: boolean
4916
+ }
4867
4917
  as?: {
4868
4918
  before?: boolean
4869
4919
  after?: boolean
@@ -5078,11 +5128,11 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
5078
5128
  // ----- @stylistic/multiline-comment-style -----
5079
5129
  type StylisticMultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separate-lines"]|["separate-lines", {
5080
5130
  checkJSDoc?: boolean
5131
+ checkExclamation?: boolean
5081
5132
  }])
5082
5133
  // ----- @stylistic/multiline-ternary -----
5083
5134
  type StylisticMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
5084
5135
  ignoreJSX?: boolean
5085
- [k: string]: unknown | undefined
5086
5136
  }]
5087
5137
  // ----- @stylistic/new-parens -----
5088
5138
  type StylisticNewParens = []|[("always" | "never")]
@@ -5227,11 +5277,12 @@ type StylisticPaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
5227
5277
  }]
5228
5278
  // ----- @stylistic/padding-line-between-statements -----
5229
5279
  type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
5230
- type _StylisticPaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]])
5280
+ type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ...(_StylisticPaddingLineBetweenStatementsStatementType)[]])
5281
+ type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using")
5231
5282
  type StylisticPaddingLineBetweenStatements = {
5232
5283
  blankLine: _StylisticPaddingLineBetweenStatementsPaddingType
5233
- prev: _StylisticPaddingLineBetweenStatementsStatementType
5234
- next: _StylisticPaddingLineBetweenStatementsStatementType
5284
+ prev: _StylisticPaddingLineBetweenStatementsStatementOption
5285
+ next: _StylisticPaddingLineBetweenStatementsStatementOption
5235
5286
  }[]
5236
5287
  // ----- @stylistic/quote-props -----
5237
5288
  type StylisticQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
@@ -6273,7 +6324,6 @@ type TypescriptEslintPreferDestructuring = []|[({
6273
6324
  enforceForDeclarationWithTypeAnnotation?: boolean
6274
6325
 
6275
6326
  enforceForRenamedProperties?: boolean
6276
- [k: string]: unknown | undefined
6277
6327
  }]
6278
6328
  // ----- @typescript-eslint/prefer-literal-enum-member -----
6279
6329
  type TypescriptEslintPreferLiteralEnumMember = []|[{
@@ -6302,7 +6352,6 @@ type TypescriptEslintPreferNullishCoalescing = []|[{
6302
6352
  number?: boolean
6303
6353
 
6304
6354
  string?: boolean
6305
- [k: string]: unknown | undefined
6306
6355
  } | true)
6307
6356
 
6308
6357
  ignoreTernaryTests?: boolean
@@ -11521,6 +11570,10 @@ interface _UnicornImportStyle_BooleanObject {
11521
11570
  type UnicornNoArrayReduce = []|[{
11522
11571
  allowSimpleOperations?: boolean
11523
11572
  }]
11573
+ // ----- unicorn/no-array-reverse -----
11574
+ type UnicornNoArrayReverse = []|[{
11575
+ allowExpressionStatement?: boolean
11576
+ }]
11524
11577
  // ----- unicorn/no-instanceof-builtins -----
11525
11578
  type UnicornNoInstanceofBuiltins = []|[{
11526
11579
  useErrorIsError?: boolean