@biscuittin/eslint-config 0.4.4 → 0.4.6

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/typegen.d.ts CHANGED
@@ -143,6 +143,11 @@ export interface RuleOptions {
143
143
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
144
144
  */
145
145
  '@eslint-react/hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
146
+ /**
147
+ * Prevents dollar signs from being inserted as text nodes before expressions.
148
+ * @see https://eslint-react.xyz/docs/rules/jsx-dollar
149
+ */
150
+ '@eslint-react/jsx-dollar'?: Linter.RuleEntry<[]>
146
151
  /**
147
152
  * Enforces that the 'key' prop is placed before the spread prop in JSX elements.
148
153
  * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
@@ -306,6 +311,7 @@ export interface RuleOptions {
306
311
  /**
307
312
  * Disallow certain props on components.
308
313
  * @see https://eslint-react.xyz/docs/rules/no-forbidden-props
314
+ * @deprecated
309
315
  */
310
316
  '@eslint-react/no-forbidden-props'?: Linter.RuleEntry<EslintReactNoForbiddenProps>
311
317
  /**
@@ -427,7 +433,7 @@ export interface RuleOptions {
427
433
  * Prevents using referential-type values as default props in object destructuring.
428
434
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
429
435
  */
430
- '@eslint-react/no-unstable-default-props'?: Linter.RuleEntry<[]>
436
+ '@eslint-react/no-unstable-default-props'?: Linter.RuleEntry<EslintReactNoUnstableDefaultProps>
431
437
  /**
432
438
  * Warns unused class component methods and properties.
433
439
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
@@ -672,6 +678,11 @@ export interface RuleOptions {
672
678
  * @see https://eslint.style/rules/eol-last
673
679
  */
674
680
  '@stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>
681
+ /**
682
+ * Enforce consistent spacing and line break styles inside brackets.
683
+ * @see https://eslint.style/rules/list-style
684
+ */
685
+ '@stylistic/exp-list-style'?: Linter.RuleEntry<StylisticExpListStyle>
675
686
  /**
676
687
  * Enforce line breaks between arguments of a function call
677
688
  * @see https://eslint.style/rules/function-call-argument-newline
@@ -1522,6 +1533,11 @@ export interface RuleOptions {
1522
1533
  * @see https://typescript-eslint.io/rules/no-unused-expressions
1523
1534
  */
1524
1535
  '@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>
1536
+ /**
1537
+ * Disallow unused private class members
1538
+ * @see https://typescript-eslint.io/rules/no-unused-private-class-members
1539
+ */
1540
+ '@typescript-eslint/no-unused-private-class-members'?: Linter.RuleEntry<[]>
1525
1541
  /**
1526
1542
  * Disallow unused variables
1527
1543
  * @see https://typescript-eslint.io/rules/no-unused-vars
@@ -4904,7 +4920,7 @@ export interface RuleOptions {
4904
4920
  */
4905
4921
  'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>
4906
4922
  /**
4907
- * Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
4923
+ * Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
4908
4924
  */
4909
4925
  'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>
4910
4926
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
@@ -5448,710 +5464,725 @@ export interface RuleOptions {
5448
5464
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5449
5465
  /**
5450
5466
  * Improve regexes by making them shorter, consistent, and safer.
5451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
5467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
5452
5468
  */
5453
5469
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5454
5470
  /**
5455
5471
  * Enforce a specific parameter name in catch clauses.
5456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
5472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
5457
5473
  */
5458
5474
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5459
5475
  /**
5460
5476
  * Enforce consistent assertion style with `node:assert`.
5461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
5477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
5462
5478
  */
5463
5479
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5464
5480
  /**
5465
5481
  * Prefer passing `Date` directly to the constructor when cloning.
5466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
5482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
5467
5483
  */
5468
5484
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5469
5485
  /**
5470
5486
  * Use destructured variables over properties.
5471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
5487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
5472
5488
  */
5473
5489
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5474
5490
  /**
5475
5491
  * Prefer consistent types when spreading a ternary in an array literal.
5476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
5492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
5477
5493
  */
5478
5494
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5479
5495
  /**
5480
5496
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
5497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
5482
5498
  */
5483
5499
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5484
5500
  /**
5485
5501
  * Move function definitions to the highest possible scope.
5486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
5502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
5487
5503
  */
5488
5504
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5489
5505
  /**
5490
5506
  * Enforce correct `Error` subclassing.
5491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
5507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
5492
5508
  */
5493
5509
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5494
5510
  /**
5495
5511
  * Enforce no spaces between braces.
5496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
5512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
5497
5513
  */
5498
5514
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5499
5515
  /**
5500
5516
  * Enforce passing a `message` value when creating a built-in error.
5501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
5517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
5502
5518
  */
5503
5519
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5504
5520
  /**
5505
5521
  * Require escape sequences to use uppercase or lowercase values.
5506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
5522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
5507
5523
  */
5508
5524
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5509
5525
  /**
5510
5526
  * Add expiration conditions to TODO comments.
5511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
5527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
5512
5528
  */
5513
5529
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5514
5530
  /**
5515
5531
  * Enforce explicitly comparing the `length` or `size` property of a value.
5516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
5532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
5517
5533
  */
5518
5534
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5519
5535
  /**
5520
5536
  * Enforce a case style for filenames.
5521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
5537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
5522
5538
  */
5523
5539
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5524
5540
  /**
5525
5541
  * Enforce specific import styles per module.
5526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
5542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
5527
5543
  */
5528
5544
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5529
5545
  /**
5530
5546
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
5547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
5532
5548
  */
5533
5549
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5534
5550
  /**
5535
5551
  * Enforce specifying rules to disable in `eslint-disable` comments.
5536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
5552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
5537
5553
  */
5538
5554
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5539
5555
  /**
5540
5556
  * Disallow recursive access to `this` within getters and setters.
5541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
5557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
5542
5558
  */
5543
5559
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5544
5560
  /**
5545
5561
  * Disallow anonymous functions and classes as the default export.
5546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
5562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
5547
5563
  */
5548
5564
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5549
5565
  /**
5550
5566
  * Prevent passing a function reference directly to iterator methods.
5551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
5567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
5552
5568
  */
5553
5569
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5554
5570
  /**
5555
5571
  * Prefer `for…of` over the `forEach` method.
5556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
5572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
5557
5573
  */
5558
5574
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5559
5575
  /**
5560
5576
  * Disallow using the `this` argument in array methods.
5561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
5577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
5562
5578
  */
5563
5579
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5564
5580
  /**
5565
5581
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
5582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
5567
5583
  * @deprecated
5568
5584
  */
5569
5585
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
5570
5586
  /**
5571
5587
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
5588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
5573
5589
  */
5574
5590
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5575
5591
  /**
5576
5592
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
5593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
5578
5594
  */
5579
5595
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
5580
5596
  /**
5581
5597
  * Prefer `Array#toSorted()` over `Array#sort()`.
5582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
5598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
5583
5599
  */
5584
5600
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
5585
5601
  /**
5586
5602
  * Disallow member access from await expression.
5587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
5603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
5588
5604
  */
5589
5605
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5590
5606
  /**
5591
5607
  * Disallow using `await` in `Promise` method parameters.
5592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
5608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
5593
5609
  */
5594
5610
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5595
5611
  /**
5596
5612
  * Do not use leading/trailing space between `console.log` parameters.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
5613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
5598
5614
  */
5599
5615
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5600
5616
  /**
5601
5617
  * Do not use `document.cookie` directly.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
5618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
5603
5619
  */
5604
5620
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5605
5621
  /**
5606
5622
  * Disallow empty files.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
5623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
5608
5624
  */
5609
5625
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5610
5626
  /**
5611
5627
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
5628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
5613
5629
  */
5614
5630
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5615
5631
  /**
5616
5632
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
5633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
5618
5634
  */
5619
5635
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5636
+ /**
5637
+ * Disallow immediate mutation after variable assignment.
5638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
5639
+ */
5640
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
5620
5641
  /**
5621
5642
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
5643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
5623
5644
  * @deprecated
5624
5645
  */
5625
5646
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5626
5647
  /**
5627
5648
  * Disallow `instanceof` with built-in objects
5628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
5649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
5629
5650
  */
5630
5651
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5631
5652
  /**
5632
5653
  * Disallow invalid options in `fetch()` and `new Request()`.
5633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
5654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
5634
5655
  */
5635
5656
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5636
5657
  /**
5637
5658
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
5659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
5639
5660
  */
5640
5661
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5641
5662
  /**
5642
5663
  * Disallow identifiers starting with `new` or `class`.
5643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
5664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
5644
5665
  */
5645
5666
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5646
5667
  /**
5647
5668
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
5669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5649
5670
  * @deprecated
5650
5671
  */
5651
5672
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5652
5673
  /**
5653
5674
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
5675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
5655
5676
  */
5656
5677
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5657
5678
  /**
5658
5679
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
5680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
5660
5681
  */
5661
5682
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5662
5683
  /**
5663
5684
  * Disallow named usage of default import and export.
5664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
5685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
5665
5686
  */
5666
5687
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5667
5688
  /**
5668
5689
  * Disallow negated conditions.
5669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
5690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
5670
5691
  */
5671
5692
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5672
5693
  /**
5673
5694
  * Disallow negated expression in equality check.
5674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
5695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
5675
5696
  */
5676
5697
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5677
5698
  /**
5678
5699
  * Disallow nested ternary expressions.
5679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
5700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
5680
5701
  */
5681
5702
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5682
5703
  /**
5683
5704
  * Disallow `new Array()`.
5684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
5705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
5685
5706
  */
5686
5707
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5687
5708
  /**
5688
5709
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
5710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
5690
5711
  */
5691
5712
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5692
5713
  /**
5693
5714
  * Disallow the use of the `null` literal.
5694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
5715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
5695
5716
  */
5696
5717
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5697
5718
  /**
5698
5719
  * Disallow the use of objects as default parameters.
5699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
5720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
5700
5721
  */
5701
5722
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5702
5723
  /**
5703
5724
  * Disallow `process.exit()`.
5704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
5725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
5705
5726
  */
5706
5727
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5707
5728
  /**
5708
5729
  * Disallow passing single-element arrays to `Promise` methods.
5709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
5730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
5710
5731
  */
5711
5732
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5712
5733
  /**
5713
5734
  * Disallow classes that only have static members.
5714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
5735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
5715
5736
  */
5716
5737
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5717
5738
  /**
5718
5739
  * Disallow `then` property.
5719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
5740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
5720
5741
  */
5721
5742
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5722
5743
  /**
5723
5744
  * Disallow assigning `this` to a variable.
5724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
5745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
5725
5746
  */
5726
5747
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5727
5748
  /**
5728
5749
  * Disallow comparing `undefined` using `typeof`.
5729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
5750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
5730
5751
  */
5731
5752
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5732
5753
  /**
5733
5754
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
5755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5735
5756
  */
5736
5757
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
5737
5758
  /**
5738
5759
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
5760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
5740
5761
  */
5741
5762
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
5742
5763
  /**
5743
5764
  * Disallow awaiting non-promise values.
5744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
5765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
5745
5766
  */
5746
5767
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5747
5768
  /**
5748
5769
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
5770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
5750
5771
  */
5751
5772
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5752
5773
  /**
5753
5774
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
5775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
5755
5776
  */
5756
5777
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
5757
5778
  /**
5758
5779
  * Disallow unreadable array destructuring.
5759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
5780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
5760
5781
  */
5761
5782
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5762
5783
  /**
5763
5784
  * Disallow unreadable IIFEs.
5764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
5785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
5765
5786
  */
5766
5787
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5767
5788
  /**
5768
5789
  * Disallow unused object properties.
5769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
5790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
5770
5791
  */
5771
5792
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5793
+ /**
5794
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
5796
+ */
5797
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
5772
5798
  /**
5773
5799
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
5800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5775
5801
  */
5776
5802
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
5777
5803
  /**
5778
5804
  * Disallow useless fallback when spreading in object literals.
5779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
5805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5780
5806
  */
5781
5807
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5782
5808
  /**
5783
5809
  * Disallow useless array length check.
5784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
5810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5785
5811
  */
5786
5812
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5787
5813
  /**
5788
5814
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
5815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5790
5816
  */
5791
5817
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5792
5818
  /**
5793
5819
  * Disallow unnecessary spread.
5794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
5820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5795
5821
  */
5796
5822
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5797
5823
  /**
5798
5824
  * Disallow useless case in switch statements.
5799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
5825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5800
5826
  */
5801
5827
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5802
5828
  /**
5803
5829
  * Disallow useless `undefined`.
5804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
5830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5805
5831
  */
5806
5832
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5807
5833
  /**
5808
5834
  * Disallow number literals with zero fractions or dangling dots.
5809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
5835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5810
5836
  */
5811
5837
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5812
5838
  /**
5813
5839
  * Enforce proper case for numeric literals.
5814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
5840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5815
5841
  */
5816
5842
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
5817
5843
  /**
5818
5844
  * Enforce the style of numeric separators by correctly grouping digits.
5819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
5845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5820
5846
  */
5821
5847
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5822
5848
  /**
5823
5849
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
5850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5825
5851
  */
5826
5852
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5827
5853
  /**
5828
5854
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
5855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5830
5856
  */
5831
5857
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5832
5858
  /**
5833
5859
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
5860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5835
5861
  */
5836
5862
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5837
5863
  /**
5838
5864
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
5865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5840
5866
  */
5841
5867
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5842
5868
  /**
5843
5869
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
5870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5845
5871
  */
5846
5872
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5847
5873
  /**
5848
5874
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
5875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5850
5876
  */
5851
5877
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5852
5878
  /**
5853
5879
  * Prefer `.at()` method for index access and `String#charAt()`.
5854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
5880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
5855
5881
  */
5856
5882
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5857
5883
  /**
5858
5884
  * Prefer `BigInt` literals over the constructor.
5859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
5885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
5860
5886
  */
5861
5887
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
5862
5888
  /**
5863
5889
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
5890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
5865
5891
  */
5866
5892
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5867
5893
  /**
5868
5894
  * Prefer class field declarations over `this` assignments in constructors.
5869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
5895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
5870
5896
  */
5871
5897
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
5872
5898
  /**
5873
5899
  * Prefer using `Element#classList.toggle()` to toggle class names.
5874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
5900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
5875
5901
  */
5876
5902
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
5877
5903
  /**
5878
5904
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
5905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
5880
5906
  */
5881
5907
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5882
5908
  /**
5883
5909
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
5910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
5885
5911
  */
5886
5912
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5887
5913
  /**
5888
5914
  * Prefer default parameters over reassignment.
5889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
5915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
5890
5916
  */
5891
5917
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5892
5918
  /**
5893
5919
  * Prefer `Node#append()` over `Node#appendChild()`.
5894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
5920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
5895
5921
  */
5896
5922
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5897
5923
  /**
5898
5924
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
5925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
5900
5926
  */
5901
5927
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5902
5928
  /**
5903
5929
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
5930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
5905
5931
  */
5906
5932
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5907
5933
  /**
5908
5934
  * Prefer `.textContent` over `.innerText`.
5909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
5935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
5910
5936
  */
5911
5937
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5912
5938
  /**
5913
5939
  * Prefer `EventTarget` over `EventEmitter`.
5914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
5940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
5915
5941
  */
5916
5942
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5917
5943
  /**
5918
5944
  * Prefer `export…from` when re-exporting.
5919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
5945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
5920
5946
  */
5921
5947
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5922
5948
  /**
5923
5949
  * Prefer `globalThis` over `window`, `self`, and `global`.
5924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
5950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
5925
5951
  */
5926
5952
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5927
5953
  /**
5928
5954
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
5955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
5930
5956
  */
5931
5957
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
5932
5958
  /**
5933
5959
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
5960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
5935
5961
  */
5936
5962
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5937
5963
  /**
5938
5964
  * Prefer reading a JSON file as a buffer.
5939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
5965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
5940
5966
  */
5941
5967
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5942
5968
  /**
5943
5969
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
5970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
5945
5971
  */
5946
5972
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5947
5973
  /**
5948
5974
  * Prefer using a logical operator over a ternary.
5949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
5975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5950
5976
  */
5951
5977
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5952
5978
  /**
5953
5979
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
5980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
5955
5981
  */
5956
5982
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5957
5983
  /**
5958
5984
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
5985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
5960
5986
  */
5961
5987
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5962
5988
  /**
5963
5989
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
5990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
5965
5991
  */
5966
5992
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5967
5993
  /**
5968
5994
  * Prefer modern `Math` APIs over legacy patterns.
5969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
5995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
5970
5996
  */
5971
5997
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5972
5998
  /**
5973
5999
  * Prefer JavaScript modules (ESM) over CommonJS.
5974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
6000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
5975
6001
  */
5976
6002
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5977
6003
  /**
5978
6004
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
6005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
5980
6006
  */
5981
6007
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5982
6008
  /**
5983
6009
  * Prefer negative index over `.length - index` when possible.
5984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
6010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
5985
6011
  */
5986
6012
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5987
6013
  /**
5988
6014
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
6015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
5990
6016
  */
5991
6017
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5992
6018
  /**
5993
6019
  * Prefer `Number` static properties over global ones.
5994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
6020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
5995
6021
  */
5996
6022
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5997
6023
  /**
5998
6024
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
6025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
6000
6026
  */
6001
6027
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6002
6028
  /**
6003
6029
  * Prefer omitting the `catch` binding parameter.
6004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
6030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6005
6031
  */
6006
6032
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6007
6033
  /**
6008
6034
  * Prefer borrowing methods from the prototype instead of the instance.
6009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
6035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6010
6036
  */
6011
6037
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6012
6038
  /**
6013
6039
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
6040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6015
6041
  */
6016
6042
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6017
6043
  /**
6018
6044
  * Prefer `Reflect.apply()` over `Function#apply()`.
6019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
6045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6020
6046
  */
6021
6047
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6022
6048
  /**
6023
6049
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
6050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6025
6051
  */
6026
6052
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6053
+ /**
6054
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6056
+ */
6057
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
6027
6058
  /**
6028
6059
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
6060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6030
6061
  */
6031
6062
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6032
6063
  /**
6033
6064
  * Prefer using `Set#size` instead of `Array#length`.
6034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
6065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6035
6066
  */
6036
6067
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6037
6068
  /**
6038
6069
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
6070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6040
6071
  */
6041
6072
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6042
6073
  /**
6043
6074
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
6075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6045
6076
  */
6046
6077
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6047
6078
  /**
6048
6079
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
6080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6050
6081
  */
6051
6082
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6052
6083
  /**
6053
6084
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
6085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6055
6086
  */
6056
6087
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6057
6088
  /**
6058
6089
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
6090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6060
6091
  */
6061
6092
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6062
6093
  /**
6063
6094
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
6095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6065
6096
  */
6066
6097
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6067
6098
  /**
6068
6099
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
6100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6070
6101
  */
6071
6102
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6072
6103
  /**
6073
6104
  * Prefer using `structuredClone` to create a deep clone.
6074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
6105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6075
6106
  */
6076
6107
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6077
6108
  /**
6078
6109
  * Prefer `switch` over multiple `else-if`.
6079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
6110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6080
6111
  */
6081
6112
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6082
6113
  /**
6083
6114
  * Prefer ternary expressions over simple `if-else` statements.
6084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
6115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6085
6116
  */
6086
6117
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6087
6118
  /**
6088
6119
  * Prefer top-level await over top-level promises and async function calls.
6089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
6120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6090
6121
  */
6091
6122
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6092
6123
  /**
6093
6124
  * Enforce throwing `TypeError` in type checking conditions.
6094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
6125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6095
6126
  */
6096
6127
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6097
6128
  /**
6098
6129
  * Prevent abbreviations.
6099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
6130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6100
6131
  */
6101
6132
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6102
6133
  /**
6103
6134
  * Enforce consistent relative URL style.
6104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
6135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6105
6136
  */
6106
6137
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6107
6138
  /**
6108
6139
  * Enforce using the separator argument with `Array#join()`.
6109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
6140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6110
6141
  */
6111
6142
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6112
6143
  /**
6113
6144
  * Require non-empty module attributes for imports and exports
6114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
6145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6115
6146
  */
6116
6147
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
6117
6148
  /**
6118
6149
  * Require non-empty specifier list in import and export statements.
6119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
6150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6120
6151
  */
6121
6152
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
6122
6153
  /**
6123
6154
  * Enforce using the digits argument with `Number#toFixed()`.
6124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
6155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6125
6156
  */
6126
6157
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6127
6158
  /**
6128
6159
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
6160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6130
6161
  */
6131
6162
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6132
6163
  /**
6133
6164
  * Enforce better string content.
6134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
6165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6135
6166
  */
6136
6167
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6137
6168
  /**
6138
6169
  * Enforce consistent brace style for `case` clauses.
6139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
6170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6140
6171
  */
6141
6172
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6142
6173
  /**
6143
6174
  * Fix whitespace-insensitive template indentation.
6144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
6175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6145
6176
  */
6146
6177
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6147
6178
  /**
6148
6179
  * Enforce consistent case for text encoding identifiers.
6149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
6180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6150
6181
  */
6151
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6182
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
6152
6183
  /**
6153
6184
  * Require `new` when creating an error.
6154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
6185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6155
6186
  */
6156
6187
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6157
6188
  /**
@@ -6256,6 +6287,10 @@ type EslintReactNoForbiddenProps = []|[{
6256
6287
  prop: string
6257
6288
  })[]
6258
6289
  }]
6290
+ // ----- @eslint-react/no-unstable-default-props -----
6291
+ type EslintReactNoUnstableDefaultProps = []|[{
6292
+ safeDefaultProps?: string[]
6293
+ }]
6259
6294
  // ----- @eslint-react/no-useless-fragment -----
6260
6295
  type EslintReactNoUselessFragment = []|[{
6261
6296
 
@@ -6444,6 +6479,50 @@ type StylisticCurlyNewline = []|[(("always" | "never") | {
6444
6479
  type StylisticDotLocation = []|[("object" | "property")]
6445
6480
  // ----- @stylistic/eol-last -----
6446
6481
  type StylisticEolLast = []|[("always" | "never" | "unix" | "windows")]
6482
+ // ----- @stylistic/exp-list-style -----
6483
+ type StylisticExpListStyle = []|[{
6484
+ singleLine?: _StylisticExpListStyle_SingleLineConfig
6485
+ multiLine?: _StylisticExpListStyle_MultiLineConfig
6486
+ overrides?: {
6487
+ "[]"?: _StylisticExpListStyle_BaseConfig
6488
+ "{}"?: _StylisticExpListStyle_BaseConfig
6489
+ "<>"?: _StylisticExpListStyle_BaseConfig
6490
+ "()"?: _StylisticExpListStyle_BaseConfig
6491
+ ArrayExpression?: _StylisticExpListStyle_BaseConfig
6492
+ ArrayPattern?: _StylisticExpListStyle_BaseConfig
6493
+ ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig
6494
+ CallExpression?: _StylisticExpListStyle_BaseConfig
6495
+ ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig
6496
+ FunctionDeclaration?: _StylisticExpListStyle_BaseConfig
6497
+ FunctionExpression?: _StylisticExpListStyle_BaseConfig
6498
+ ImportDeclaration?: _StylisticExpListStyle_BaseConfig
6499
+ ImportAttributes?: _StylisticExpListStyle_BaseConfig
6500
+ NewExpression?: _StylisticExpListStyle_BaseConfig
6501
+ ObjectExpression?: _StylisticExpListStyle_BaseConfig
6502
+ ObjectPattern?: _StylisticExpListStyle_BaseConfig
6503
+ TSDeclareFunction?: _StylisticExpListStyle_BaseConfig
6504
+ TSFunctionType?: _StylisticExpListStyle_BaseConfig
6505
+ TSInterfaceBody?: _StylisticExpListStyle_BaseConfig
6506
+ TSEnumBody?: _StylisticExpListStyle_BaseConfig
6507
+ TSTupleType?: _StylisticExpListStyle_BaseConfig
6508
+ TSTypeLiteral?: _StylisticExpListStyle_BaseConfig
6509
+ TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig
6510
+ TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig
6511
+ JSONArrayExpression?: _StylisticExpListStyle_BaseConfig
6512
+ JSONObjectExpression?: _StylisticExpListStyle_BaseConfig
6513
+ }
6514
+ }]
6515
+ interface _StylisticExpListStyle_SingleLineConfig {
6516
+ spacing?: ("always" | "never")
6517
+ maxItems?: number
6518
+ }
6519
+ interface _StylisticExpListStyle_MultiLineConfig {
6520
+ minItems?: number
6521
+ }
6522
+ interface _StylisticExpListStyle_BaseConfig {
6523
+ singleLine?: _StylisticExpListStyle_SingleLineConfig
6524
+ multiline?: _StylisticExpListStyle_MultiLineConfig
6525
+ }
6447
6526
  // ----- @stylistic/function-call-argument-newline -----
6448
6527
  type StylisticFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
6449
6528
  // ----- @stylistic/function-call-spacing -----
@@ -6513,7 +6592,11 @@ type StylisticIndent = []|[("tab" | number)]|[("tab" | number), {
6513
6592
  ObjectExpression?: (number | ("first" | "off"))
6514
6593
  ImportDeclaration?: (number | ("first" | "off"))
6515
6594
  flatTernaryExpressions?: boolean
6516
- offsetTernaryExpressions?: boolean
6595
+ offsetTernaryExpressions?: (boolean | {
6596
+ CallExpression?: boolean
6597
+ AwaitExpression?: boolean
6598
+ NewExpression?: boolean
6599
+ })
6517
6600
  offsetTernaryExpressionsOffsetCallExpressions?: boolean
6518
6601
  ignoredNodes?: string[]
6519
6602
  ignoreComments?: boolean
@@ -7316,6 +7399,7 @@ type StylisticObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never
7316
7399
  TSInterfaceBody?: ("always" | "never")
7317
7400
  TSEnumBody?: ("always" | "never")
7318
7401
  }
7402
+ emptyObjects?: ("ignore" | "always" | "never")
7319
7403
  }]
7320
7404
  // ----- @stylistic/object-property-newline -----
7321
7405
  type StylisticObjectPropertyNewline = []|[{
@@ -16226,6 +16310,10 @@ type UnicornTemplateIndent = []|[{
16226
16310
  selectors?: string[]
16227
16311
  comments?: string[]
16228
16312
  }]
16313
+ // ----- unicorn/text-encoding-identifier-case -----
16314
+ type UnicornTextEncodingIdentifierCase = []|[{
16315
+ withDash?: boolean
16316
+ }]
16229
16317
  // ----- unused-imports/no-unused-imports -----
16230
16318
  type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
16231
16319