@2digits/eslint-config 4.3.1 → 4.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2897,12 +2897,17 @@ Backward pagination arguments
2897
2897
  'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2898
2898
  /**
2899
2899
  * Disallow duplicate props in JSX elements.
2900
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
2900
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
2901
2901
  */
2902
2902
  'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2903
2903
  /**
2904
- * Marks variables used in JSX as used.
2905
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2904
+ * Disallow undefined variables in JSX.
2905
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-undef
2906
+ */
2907
+ 'react-extra/jsx-no-undef'?: Linter.RuleEntry<[]>
2908
+ /**
2909
+ * Marks variables used in JSX elements as used.
2910
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
2906
2911
  */
2907
2912
  'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>
2908
2913
  /**
@@ -3007,7 +3012,7 @@ Backward pagination arguments
3007
3012
  'react-extra/no-direct-mutation-state'?: Linter.RuleEntry<[]>
3008
3013
  /**
3009
3014
  * Disallow duplicate props in JSX elements.
3010
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
3015
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
3011
3016
  */
3012
3017
  'react-extra/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
3013
3018
  /**
@@ -3161,8 +3166,8 @@ Backward pagination arguments
3161
3166
  */
3162
3167
  'react-extra/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3163
3168
  /**
3164
- * Marks variables used in JSX as used.
3165
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3169
+ * Marks variables used in JSX elements as used.
3170
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3166
3171
  */
3167
3172
  'react-extra/use-jsx-vars'?: Linter.RuleEntry<[]>
3168
3173
  /**
@@ -5167,6 +5172,11 @@ Backward pagination arguments
5167
5172
  * @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/meta-inline-properties.md
5168
5173
  */
5169
5174
  'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>
5175
+ /**
5176
+ * Meta should use `satisfies Meta`
5177
+ * @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/meta-satisfies-type.md
5178
+ */
5179
+ 'storybook/meta-satisfies-type'?: Linter.RuleEntry<[]>
5170
5180
  /**
5171
5181
  * A story should not have a redundant name property
5172
5182
  * @see https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-redundant-story-name.md
@@ -6449,642 +6459,643 @@ Backward pagination arguments
6449
6459
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
6450
6460
  /**
6451
6461
  * Improve regexes by making them shorter, consistent, and safer.
6452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
6462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
6453
6463
  */
6454
6464
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
6455
6465
  /**
6456
6466
  * Enforce a specific parameter name in catch clauses.
6457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
6467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
6458
6468
  */
6459
6469
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
6460
6470
  /**
6461
6471
  * Enforce consistent assertion style with `node:assert`.
6462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
6472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
6463
6473
  */
6464
6474
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
6465
6475
  /**
6466
6476
  * Prefer passing `Date` directly to the constructor when cloning.
6467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
6477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
6468
6478
  */
6469
6479
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
6470
6480
  /**
6471
6481
  * Use destructured variables over properties.
6472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
6482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
6473
6483
  */
6474
6484
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
6475
6485
  /**
6476
6486
  * Prefer consistent types when spreading a ternary in an array literal.
6477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
6487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
6478
6488
  */
6479
6489
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
6480
6490
  /**
6481
6491
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
6492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
6483
6493
  */
6484
6494
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
6485
6495
  /**
6486
6496
  * Move function definitions to the highest possible scope.
6487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
6497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
6488
6498
  */
6489
6499
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
6490
6500
  /**
6491
6501
  * Enforce correct `Error` subclassing.
6492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
6502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
6493
6503
  */
6494
6504
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
6495
6505
  /**
6496
6506
  * Enforce no spaces between braces.
6497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
6507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
6498
6508
  */
6499
6509
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
6500
6510
  /**
6501
6511
  * Enforce passing a `message` value when creating a built-in error.
6502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
6512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
6503
6513
  */
6504
6514
  'unicorn/error-message'?: Linter.RuleEntry<[]>
6505
6515
  /**
6506
- * Require escape sequences to use uppercase values.
6507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
6516
+ * Require escape sequences to use uppercase or lowercase values.
6517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
6508
6518
  */
6509
- 'unicorn/escape-case'?: Linter.RuleEntry<[]>
6519
+ 'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
6510
6520
  /**
6511
6521
  * Add expiration conditions to TODO comments.
6512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
6522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
6513
6523
  */
6514
6524
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
6515
6525
  /**
6516
6526
  * Enforce explicitly comparing the `length` or `size` property of a value.
6517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
6527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
6518
6528
  */
6519
6529
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
6520
6530
  /**
6521
6531
  * Enforce a case style for filenames.
6522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
6532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
6523
6533
  */
6524
6534
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
6525
6535
  /**
6526
6536
  * Enforce specific import styles per module.
6527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
6537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
6528
6538
  */
6529
6539
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
6530
6540
  /**
6531
6541
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
6542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
6533
6543
  */
6534
6544
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
6535
6545
  /**
6536
6546
  * Enforce specifying rules to disable in `eslint-disable` comments.
6537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
6547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
6538
6548
  */
6539
6549
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6540
6550
  /**
6541
6551
  * Disallow recursive access to `this` within getters and setters.
6542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
6552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
6543
6553
  */
6544
6554
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6545
6555
  /**
6546
6556
  * Disallow anonymous functions and classes as the default export.
6547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
6557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
6548
6558
  */
6549
6559
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6550
6560
  /**
6551
6561
  * Prevent passing a function reference directly to iterator methods.
6552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
6562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
6553
6563
  */
6554
6564
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6555
6565
  /**
6556
6566
  * Prefer `for…of` over the `forEach` method.
6557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
6567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
6558
6568
  */
6559
6569
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6560
6570
  /**
6561
6571
  * Disallow using the `this` argument in array methods.
6562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
6572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
6563
6573
  */
6564
6574
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6565
6575
  /**
6566
6576
  * Enforce combining multiple `Array#push()` into one call.
6567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
6577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
6568
6578
  */
6569
6579
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
6570
6580
  /**
6571
6581
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
6582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
6573
6583
  */
6574
6584
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6575
6585
  /**
6576
6586
  * Disallow member access from await expression.
6577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
6587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
6578
6588
  */
6579
6589
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6580
6590
  /**
6581
6591
  * Disallow using `await` in `Promise` method parameters.
6582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
6592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
6583
6593
  */
6584
6594
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6585
6595
  /**
6586
6596
  * Do not use leading/trailing space between `console.log` parameters.
6587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
6597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
6588
6598
  */
6589
6599
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6590
6600
  /**
6591
6601
  * Do not use `document.cookie` directly.
6592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
6602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
6593
6603
  */
6594
6604
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6595
6605
  /**
6596
6606
  * Disallow empty files.
6597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
6607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
6598
6608
  */
6599
6609
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6600
6610
  /**
6601
6611
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
6612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
6603
6613
  */
6604
6614
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6605
6615
  /**
6606
6616
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
6617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
6608
6618
  */
6609
6619
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6610
6620
  /**
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
6621
+ * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
6612
6623
  * @deprecated
6613
6624
  */
6614
6625
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6615
6626
  /**
6616
6627
  * Disallow `instanceof` with built-in objects
6617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
6628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
6618
6629
  */
6619
6630
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6620
6631
  /**
6621
6632
  * Disallow invalid options in `fetch()` and `new Request()`.
6622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
6633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
6623
6634
  */
6624
6635
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6625
6636
  /**
6626
6637
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
6638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
6628
6639
  */
6629
6640
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6630
6641
  /**
6631
6642
  * Disallow identifiers starting with `new` or `class`.
6632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
6643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
6633
6644
  */
6634
6645
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6635
6646
  /**
6636
6647
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
6648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
6638
6649
  */
6639
6650
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6640
6651
  /**
6641
6652
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
6653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
6643
6654
  */
6644
6655
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6645
6656
  /**
6646
6657
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
6658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
6648
6659
  */
6649
6660
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6650
6661
  /**
6651
6662
  * Disallow named usage of default import and export.
6652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
6663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
6653
6664
  */
6654
6665
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6655
6666
  /**
6656
6667
  * Disallow negated conditions.
6657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
6668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
6658
6669
  */
6659
6670
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6660
6671
  /**
6661
6672
  * Disallow negated expression in equality check.
6662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
6673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
6663
6674
  */
6664
6675
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6665
6676
  /**
6666
6677
  * Disallow nested ternary expressions.
6667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
6678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
6668
6679
  */
6669
6680
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6670
6681
  /**
6671
6682
  * Disallow `new Array()`.
6672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
6683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
6673
6684
  */
6674
6685
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6675
6686
  /**
6676
6687
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
6688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
6678
6689
  */
6679
6690
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6680
6691
  /**
6681
6692
  * Disallow the use of the `null` literal.
6682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
6693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
6683
6694
  */
6684
6695
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6685
6696
  /**
6686
6697
  * Disallow the use of objects as default parameters.
6687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
6698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
6688
6699
  */
6689
6700
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6690
6701
  /**
6691
6702
  * Disallow `process.exit()`.
6692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
6703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
6693
6704
  */
6694
6705
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6695
6706
  /**
6696
6707
  * Disallow passing single-element arrays to `Promise` methods.
6697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
6708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
6698
6709
  */
6699
6710
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6700
6711
  /**
6701
6712
  * Disallow classes that only have static members.
6702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
6713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
6703
6714
  */
6704
6715
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6705
6716
  /**
6706
6717
  * Disallow `then` property.
6707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
6718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
6708
6719
  */
6709
6720
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6710
6721
  /**
6711
6722
  * Disallow assigning `this` to a variable.
6712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
6723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
6713
6724
  */
6714
6725
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6715
6726
  /**
6716
6727
  * Disallow comparing `undefined` using `typeof`.
6717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
6728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
6718
6729
  */
6719
6730
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6720
6731
  /**
6721
6732
  * Disallow awaiting non-promise values.
6722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
6733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
6723
6734
  */
6724
6735
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6725
6736
  /**
6726
6737
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
6738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
6728
6739
  */
6729
6740
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6730
6741
  /**
6731
6742
  * Disallow unreadable array destructuring.
6732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
6743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
6733
6744
  */
6734
6745
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6735
6746
  /**
6736
6747
  * Disallow unreadable IIFEs.
6737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
6748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
6738
6749
  */
6739
6750
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6740
6751
  /**
6741
6752
  * Disallow unused object properties.
6742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
6753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
6743
6754
  */
6744
6755
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6745
6756
  /**
6746
6757
  * Disallow useless fallback when spreading in object literals.
6747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
6758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
6748
6759
  */
6749
6760
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6750
6761
  /**
6751
6762
  * Disallow useless array length check.
6752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
6763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
6753
6764
  */
6754
6765
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6755
6766
  /**
6756
6767
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
6768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
6758
6769
  */
6759
6770
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6760
6771
  /**
6761
6772
  * Disallow unnecessary spread.
6762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
6773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
6763
6774
  */
6764
6775
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6765
6776
  /**
6766
6777
  * Disallow useless case in switch statements.
6767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
6778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
6768
6779
  */
6769
6780
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6770
6781
  /**
6771
6782
  * Disallow useless `undefined`.
6772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
6783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
6773
6784
  */
6774
6785
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6775
6786
  /**
6776
6787
  * Disallow number literals with zero fractions or dangling dots.
6777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
6788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
6778
6789
  */
6779
6790
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6780
6791
  /**
6781
6792
  * Enforce proper case for numeric literals.
6782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
6793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
6783
6794
  */
6784
- 'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6795
+ 'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6785
6796
  /**
6786
6797
  * Enforce the style of numeric separators by correctly grouping digits.
6787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
6798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
6788
6799
  */
6789
6800
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6790
6801
  /**
6791
6802
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
6803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
6793
6804
  */
6794
6805
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6795
6806
  /**
6796
6807
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
6808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
6798
6809
  */
6799
6810
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6800
6811
  /**
6801
6812
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
6813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
6803
6814
  */
6804
6815
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6805
6816
  /**
6806
6817
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
6818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
6808
6819
  */
6809
6820
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6810
6821
  /**
6811
6822
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
6823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
6813
6824
  */
6814
6825
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6815
6826
  /**
6816
6827
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
6828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
6818
6829
  */
6819
6830
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6820
6831
  /**
6821
6832
  * Prefer `.at()` method for index access and `String#charAt()`.
6822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
6833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
6823
6834
  */
6824
6835
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6825
6836
  /**
6826
6837
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
6838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
6828
6839
  */
6829
6840
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6830
6841
  /**
6831
6842
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
6843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
6833
6844
  */
6834
6845
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6835
6846
  /**
6836
6847
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
6848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
6838
6849
  */
6839
6850
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6840
6851
  /**
6841
6852
  * Prefer default parameters over reassignment.
6842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
6853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
6843
6854
  */
6844
6855
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6845
6856
  /**
6846
6857
  * Prefer `Node#append()` over `Node#appendChild()`.
6847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
6858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
6848
6859
  */
6849
6860
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6850
6861
  /**
6851
6862
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
6863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
6853
6864
  */
6854
6865
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6855
6866
  /**
6856
6867
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
6868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
6858
6869
  */
6859
6870
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6860
6871
  /**
6861
6872
  * Prefer `.textContent` over `.innerText`.
6862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
6873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
6863
6874
  */
6864
6875
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6865
6876
  /**
6866
6877
  * Prefer `EventTarget` over `EventEmitter`.
6867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
6868
6879
  */
6869
6880
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6870
6881
  /**
6871
6882
  * Prefer `export…from` when re-exporting.
6872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
6883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
6873
6884
  */
6874
6885
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6875
6886
  /**
6876
6887
  * Prefer `globalThis` over `window`, `self`, and `global`.
6877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
6888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
6878
6889
  */
6879
6890
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6880
6891
  /**
6881
6892
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
6893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
6883
6894
  */
6884
6895
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6885
6896
  /**
6886
6897
  * Prefer reading a JSON file as a buffer.
6887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
6898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
6888
6899
  */
6889
6900
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6890
6901
  /**
6891
6902
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
6903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
6893
6904
  */
6894
6905
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6895
6906
  /**
6896
6907
  * Prefer using a logical operator over a ternary.
6897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6898
6909
  */
6899
6910
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6900
6911
  /**
6901
6912
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
6913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
6903
6914
  */
6904
6915
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6905
6916
  /**
6906
6917
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
6918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
6908
6919
  */
6909
6920
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6910
6921
  /**
6911
6922
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
6923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
6913
6924
  */
6914
6925
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6915
6926
  /**
6916
6927
  * Prefer modern `Math` APIs over legacy patterns.
6917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
6928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
6918
6929
  */
6919
6930
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6920
6931
  /**
6921
6932
  * Prefer JavaScript modules (ESM) over CommonJS.
6922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
6923
6934
  */
6924
6935
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6925
6936
  /**
6926
6937
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
6938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
6928
6939
  */
6929
6940
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6930
6941
  /**
6931
6942
  * Prefer negative index over `.length - index` when possible.
6932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
6943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
6933
6944
  */
6934
6945
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6935
6946
  /**
6936
6947
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
6948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
6938
6949
  */
6939
6950
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6940
6951
  /**
6941
6952
  * Prefer `Number` static properties over global ones.
6942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
6953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
6943
6954
  */
6944
6955
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6945
6956
  /**
6946
6957
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
6958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
6948
6959
  */
6949
6960
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6950
6961
  /**
6951
6962
  * Prefer omitting the `catch` binding parameter.
6952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
6963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
6953
6964
  */
6954
6965
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6955
6966
  /**
6956
6967
  * Prefer borrowing methods from the prototype instead of the instance.
6957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
6968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
6958
6969
  */
6959
6970
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6960
6971
  /**
6961
6972
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
6973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
6963
6974
  */
6964
6975
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6965
6976
  /**
6966
6977
  * Prefer `Reflect.apply()` over `Function#apply()`.
6967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
6978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
6968
6979
  */
6969
6980
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6970
6981
  /**
6971
6982
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
6983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
6973
6984
  */
6974
6985
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6975
6986
  /**
6976
6987
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
6988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
6978
6989
  */
6979
6990
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6980
6991
  /**
6981
6992
  * Prefer using `Set#size` instead of `Array#length`.
6982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
6993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
6983
6994
  */
6984
6995
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6985
6996
  /**
6986
6997
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
6998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
6988
6999
  */
6989
7000
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6990
7001
  /**
6991
7002
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
7003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
6993
7004
  */
6994
7005
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6995
7006
  /**
6996
7007
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
7008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
6998
7009
  */
6999
7010
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
7000
7011
  /**
7001
7012
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
7013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
7003
7014
  */
7004
7015
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
7005
7016
  /**
7006
7017
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
7018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
7008
7019
  */
7009
7020
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
7010
7021
  /**
7011
7022
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
7023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
7013
7024
  */
7014
7025
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
7015
7026
  /**
7016
7027
  * Prefer using `structuredClone` to create a deep clone.
7017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
7028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
7018
7029
  */
7019
7030
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
7020
7031
  /**
7021
7032
  * Prefer `switch` over multiple `else-if`.
7022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
7033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
7023
7034
  */
7024
7035
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
7025
7036
  /**
7026
7037
  * Prefer ternary expressions over simple `if-else` statements.
7027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
7038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
7028
7039
  */
7029
7040
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
7030
7041
  /**
7031
7042
  * Prefer top-level await over top-level promises and async function calls.
7032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
7043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
7033
7044
  */
7034
7045
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
7035
7046
  /**
7036
7047
  * Enforce throwing `TypeError` in type checking conditions.
7037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
7048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
7038
7049
  */
7039
7050
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
7040
7051
  /**
7041
7052
  * Prevent abbreviations.
7042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
7053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
7043
7054
  */
7044
7055
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7045
7056
  /**
7046
7057
  * Enforce consistent relative URL style.
7047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
7058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
7048
7059
  */
7049
7060
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7050
7061
  /**
7051
7062
  * Enforce using the separator argument with `Array#join()`.
7052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
7063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
7053
7064
  */
7054
7065
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7055
7066
  /**
7056
7067
  * Enforce using the digits argument with `Number#toFixed()`.
7057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7058
7069
  */
7059
7070
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7060
7071
  /**
7061
7072
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
7073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
7063
7074
  */
7064
7075
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7065
7076
  /**
7066
7077
  * Enforce better string content.
7067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
7078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
7068
7079
  */
7069
7080
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7070
7081
  /**
7071
7082
  * Enforce consistent brace style for `case` clauses.
7072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
7083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
7073
7084
  */
7074
7085
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7075
7086
  /**
7076
7087
  * Fix whitespace-insensitive template indentation.
7077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
7088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
7078
7089
  */
7079
7090
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7080
7091
  /**
7081
7092
  * Enforce consistent case for text encoding identifiers.
7082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
7093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
7083
7094
  */
7084
7095
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7085
7096
  /**
7086
7097
  * Require `new` when creating an error.
7087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
7098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
7088
7099
  */
7089
7100
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7090
7101
  /**
@@ -12858,6 +12869,8 @@ type UnicornCatchErrorName = []|[{
12858
12869
  type UnicornConsistentFunctionScoping = []|[{
12859
12870
  checkArrowFunctions?: boolean
12860
12871
  }]
12872
+ // ----- unicorn/escape-case -----
12873
+ type UnicornEscapeCase = []|[("uppercase" | "lowercase")]
12861
12874
  // ----- unicorn/expiring-todo-comments -----
12862
12875
  type UnicornExpiringTodoComments = []|[{
12863
12876
  terms?: string[]
@@ -12942,6 +12955,10 @@ type UnicornNoUselessUndefined = []|[{
12942
12955
  checkArguments?: boolean
12943
12956
  checkArrowFunctionBody?: boolean
12944
12957
  }]
12958
+ // ----- unicorn/number-literal-case -----
12959
+ type UnicornNumberLiteralCase = []|[{
12960
+ hexadecimalValue?: ("uppercase" | "lowercase")
12961
+ }]
12945
12962
  // ----- unicorn/numeric-separators-style -----
12946
12963
  type UnicornNumericSeparatorsStyle = []|[{
12947
12964
  binary?: {