@biscuittin/eslint-config 0.4.4 → 0.4.5

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
@@ -672,6 +677,11 @@ export interface RuleOptions {
672
677
  * @see https://eslint.style/rules/eol-last
673
678
  */
674
679
  '@stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>
680
+ /**
681
+ * Enforce consistent spacing and line break styles inside brackets.
682
+ * @see https://eslint.style/rules/list-style
683
+ */
684
+ '@stylistic/exp-list-style'?: Linter.RuleEntry<StylisticExpListStyle>
675
685
  /**
676
686
  * Enforce line breaks between arguments of a function call
677
687
  * @see https://eslint.style/rules/function-call-argument-newline
@@ -4904,7 +4914,7 @@ export interface RuleOptions {
4904
4914
  */
4905
4915
  'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>
4906
4916
  /**
4907
- * Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
4917
+ * 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
4918
  */
4909
4919
  'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>
4910
4920
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
@@ -5448,710 +5458,725 @@ export interface RuleOptions {
5448
5458
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5449
5459
  /**
5450
5460
  * 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
5461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
5452
5462
  */
5453
5463
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5454
5464
  /**
5455
5465
  * 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
5466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
5457
5467
  */
5458
5468
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5459
5469
  /**
5460
5470
  * 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
5471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
5462
5472
  */
5463
5473
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5464
5474
  /**
5465
5475
  * 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
5476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
5467
5477
  */
5468
5478
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5469
5479
  /**
5470
5480
  * Use destructured variables over properties.
5471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
5481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
5472
5482
  */
5473
5483
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5474
5484
  /**
5475
5485
  * 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
5486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
5477
5487
  */
5478
5488
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5479
5489
  /**
5480
5490
  * 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
5491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
5482
5492
  */
5483
5493
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5484
5494
  /**
5485
5495
  * 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
5496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
5487
5497
  */
5488
5498
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5489
5499
  /**
5490
5500
  * Enforce correct `Error` subclassing.
5491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
5501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
5492
5502
  */
5493
5503
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5494
5504
  /**
5495
5505
  * Enforce no spaces between braces.
5496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
5506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
5497
5507
  */
5498
5508
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5499
5509
  /**
5500
5510
  * 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
5511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
5502
5512
  */
5503
5513
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5504
5514
  /**
5505
5515
  * 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
5516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
5507
5517
  */
5508
5518
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5509
5519
  /**
5510
5520
  * 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
5521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
5512
5522
  */
5513
5523
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5514
5524
  /**
5515
5525
  * 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
5526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
5517
5527
  */
5518
5528
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5519
5529
  /**
5520
5530
  * Enforce a case style for filenames.
5521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
5531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
5522
5532
  */
5523
5533
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5524
5534
  /**
5525
5535
  * Enforce specific import styles per module.
5526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
5536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
5527
5537
  */
5528
5538
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5529
5539
  /**
5530
5540
  * 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
5541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
5532
5542
  */
5533
5543
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5534
5544
  /**
5535
5545
  * 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
5546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
5537
5547
  */
5538
5548
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5539
5549
  /**
5540
5550
  * 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
5551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
5542
5552
  */
5543
5553
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5544
5554
  /**
5545
5555
  * 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
5556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
5547
5557
  */
5548
5558
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5549
5559
  /**
5550
5560
  * 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
5561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
5552
5562
  */
5553
5563
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5554
5564
  /**
5555
5565
  * 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
5566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
5557
5567
  */
5558
5568
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5559
5569
  /**
5560
5570
  * 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
5571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
5562
5572
  */
5563
5573
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5564
5574
  /**
5565
5575
  * 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
5576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
5567
5577
  * @deprecated
5568
5578
  */
5569
5579
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
5570
5580
  /**
5571
5581
  * 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
5582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
5573
5583
  */
5574
5584
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5575
5585
  /**
5576
5586
  * 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
5587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
5578
5588
  */
5579
5589
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
5580
5590
  /**
5581
5591
  * 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
5592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
5583
5593
  */
5584
5594
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
5585
5595
  /**
5586
5596
  * 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
5597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
5588
5598
  */
5589
5599
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5590
5600
  /**
5591
5601
  * 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
5602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
5593
5603
  */
5594
5604
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5595
5605
  /**
5596
5606
  * 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
5607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
5598
5608
  */
5599
5609
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5600
5610
  /**
5601
5611
  * 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
5612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
5603
5613
  */
5604
5614
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5605
5615
  /**
5606
5616
  * Disallow empty files.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
5617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
5608
5618
  */
5609
5619
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5610
5620
  /**
5611
5621
  * 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
5622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
5613
5623
  */
5614
5624
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5615
5625
  /**
5616
5626
  * 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
5627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
5618
5628
  */
5619
5629
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5630
+ /**
5631
+ * Disallow immediate mutation after variable assignment.
5632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
5633
+ */
5634
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
5620
5635
  /**
5621
5636
  * 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
5637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
5623
5638
  * @deprecated
5624
5639
  */
5625
5640
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5626
5641
  /**
5627
5642
  * 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
5643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
5629
5644
  */
5630
5645
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5631
5646
  /**
5632
5647
  * 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
5648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
5634
5649
  */
5635
5650
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5636
5651
  /**
5637
5652
  * 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
5653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
5639
5654
  */
5640
5655
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5641
5656
  /**
5642
5657
  * 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
5658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
5644
5659
  */
5645
5660
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5646
5661
  /**
5647
5662
  * 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
5663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5649
5664
  * @deprecated
5650
5665
  */
5651
5666
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5652
5667
  /**
5653
5668
  * 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
5669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
5655
5670
  */
5656
5671
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5657
5672
  /**
5658
5673
  * 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
5674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
5660
5675
  */
5661
5676
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5662
5677
  /**
5663
5678
  * 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
5679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
5665
5680
  */
5666
5681
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5667
5682
  /**
5668
5683
  * Disallow negated conditions.
5669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
5684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
5670
5685
  */
5671
5686
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5672
5687
  /**
5673
5688
  * 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
5689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
5675
5690
  */
5676
5691
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5677
5692
  /**
5678
5693
  * Disallow nested ternary expressions.
5679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
5694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
5680
5695
  */
5681
5696
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5682
5697
  /**
5683
5698
  * Disallow `new Array()`.
5684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
5699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
5685
5700
  */
5686
5701
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5687
5702
  /**
5688
5703
  * 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
5704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
5690
5705
  */
5691
5706
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5692
5707
  /**
5693
5708
  * 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
5709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
5695
5710
  */
5696
5711
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5697
5712
  /**
5698
5713
  * 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
5714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
5700
5715
  */
5701
5716
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5702
5717
  /**
5703
5718
  * Disallow `process.exit()`.
5704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
5719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
5705
5720
  */
5706
5721
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5707
5722
  /**
5708
5723
  * 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
5724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
5710
5725
  */
5711
5726
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5712
5727
  /**
5713
5728
  * 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
5729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
5715
5730
  */
5716
5731
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5717
5732
  /**
5718
5733
  * Disallow `then` property.
5719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
5734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
5720
5735
  */
5721
5736
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5722
5737
  /**
5723
5738
  * 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
5739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
5725
5740
  */
5726
5741
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5727
5742
  /**
5728
5743
  * Disallow comparing `undefined` using `typeof`.
5729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
5744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
5730
5745
  */
5731
5746
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5732
5747
  /**
5733
5748
  * 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
5749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5735
5750
  */
5736
5751
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
5737
5752
  /**
5738
5753
  * 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
5754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
5740
5755
  */
5741
5756
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
5742
5757
  /**
5743
5758
  * Disallow awaiting non-promise values.
5744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
5759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
5745
5760
  */
5746
5761
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5747
5762
  /**
5748
5763
  * 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
5764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
5750
5765
  */
5751
5766
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5752
5767
  /**
5753
5768
  * 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
5769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
5755
5770
  */
5756
5771
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
5757
5772
  /**
5758
5773
  * Disallow unreadable array destructuring.
5759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
5774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
5760
5775
  */
5761
5776
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5762
5777
  /**
5763
5778
  * Disallow unreadable IIFEs.
5764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
5779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
5765
5780
  */
5766
5781
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5767
5782
  /**
5768
5783
  * Disallow unused object properties.
5769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
5784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
5770
5785
  */
5771
5786
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5787
+ /**
5788
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
5790
+ */
5791
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
5772
5792
  /**
5773
5793
  * 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
5794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5775
5795
  */
5776
5796
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
5777
5797
  /**
5778
5798
  * 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
5799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5780
5800
  */
5781
5801
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5782
5802
  /**
5783
5803
  * 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
5804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5785
5805
  */
5786
5806
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5787
5807
  /**
5788
5808
  * 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
5809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5790
5810
  */
5791
5811
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5792
5812
  /**
5793
5813
  * Disallow unnecessary spread.
5794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
5814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5795
5815
  */
5796
5816
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5797
5817
  /**
5798
5818
  * 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
5819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5800
5820
  */
5801
5821
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5802
5822
  /**
5803
5823
  * Disallow useless `undefined`.
5804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
5824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5805
5825
  */
5806
5826
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5807
5827
  /**
5808
5828
  * 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
5829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5810
5830
  */
5811
5831
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5812
5832
  /**
5813
5833
  * 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
5834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5815
5835
  */
5816
5836
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
5817
5837
  /**
5818
5838
  * 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
5839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5820
5840
  */
5821
5841
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5822
5842
  /**
5823
5843
  * 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
5844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5825
5845
  */
5826
5846
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5827
5847
  /**
5828
5848
  * 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
5849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5830
5850
  */
5831
5851
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5832
5852
  /**
5833
5853
  * 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
5854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5835
5855
  */
5836
5856
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5837
5857
  /**
5838
5858
  * 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
5859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5840
5860
  */
5841
5861
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5842
5862
  /**
5843
5863
  * 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
5864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5845
5865
  */
5846
5866
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5847
5867
  /**
5848
5868
  * 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
5869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5850
5870
  */
5851
5871
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5852
5872
  /**
5853
5873
  * 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
5874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
5855
5875
  */
5856
5876
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5857
5877
  /**
5858
5878
  * 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
5879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
5860
5880
  */
5861
5881
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
5862
5882
  /**
5863
5883
  * 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
5884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
5865
5885
  */
5866
5886
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5867
5887
  /**
5868
5888
  * 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
5889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
5870
5890
  */
5871
5891
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
5872
5892
  /**
5873
5893
  * 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
5894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
5875
5895
  */
5876
5896
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
5877
5897
  /**
5878
5898
  * 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
5899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
5880
5900
  */
5881
5901
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5882
5902
  /**
5883
5903
  * 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
5904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
5885
5905
  */
5886
5906
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5887
5907
  /**
5888
5908
  * Prefer default parameters over reassignment.
5889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
5909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
5890
5910
  */
5891
5911
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5892
5912
  /**
5893
5913
  * 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
5914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
5895
5915
  */
5896
5916
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5897
5917
  /**
5898
5918
  * 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
5919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
5900
5920
  */
5901
5921
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5902
5922
  /**
5903
5923
  * 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
5924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
5905
5925
  */
5906
5926
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5907
5927
  /**
5908
5928
  * 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
5929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
5910
5930
  */
5911
5931
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5912
5932
  /**
5913
5933
  * Prefer `EventTarget` over `EventEmitter`.
5914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
5934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
5915
5935
  */
5916
5936
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5917
5937
  /**
5918
5938
  * 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
5939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
5920
5940
  */
5921
5941
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5922
5942
  /**
5923
5943
  * 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
5944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
5925
5945
  */
5926
5946
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5927
5947
  /**
5928
5948
  * 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
5949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
5930
5950
  */
5931
5951
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
5932
5952
  /**
5933
5953
  * 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
5954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
5935
5955
  */
5936
5956
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5937
5957
  /**
5938
5958
  * 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
5959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
5940
5960
  */
5941
5961
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5942
5962
  /**
5943
5963
  * 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
5964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
5945
5965
  */
5946
5966
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5947
5967
  /**
5948
5968
  * 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
5969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5950
5970
  */
5951
5971
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5952
5972
  /**
5953
5973
  * 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
5974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
5955
5975
  */
5956
5976
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5957
5977
  /**
5958
5978
  * 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
5979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
5960
5980
  */
5961
5981
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5962
5982
  /**
5963
5983
  * 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
5984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
5965
5985
  */
5966
5986
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5967
5987
  /**
5968
5988
  * 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
5989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
5970
5990
  */
5971
5991
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5972
5992
  /**
5973
5993
  * Prefer JavaScript modules (ESM) over CommonJS.
5974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
5994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
5975
5995
  */
5976
5996
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5977
5997
  /**
5978
5998
  * 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
5999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
5980
6000
  */
5981
6001
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5982
6002
  /**
5983
6003
  * 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
6004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
5985
6005
  */
5986
6006
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5987
6007
  /**
5988
6008
  * 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
6009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
5990
6010
  */
5991
6011
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5992
6012
  /**
5993
6013
  * 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
6014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
5995
6015
  */
5996
6016
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5997
6017
  /**
5998
6018
  * 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
6019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
6000
6020
  */
6001
6021
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6002
6022
  /**
6003
6023
  * 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
6024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6005
6025
  */
6006
6026
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6007
6027
  /**
6008
6028
  * 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
6029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6010
6030
  */
6011
6031
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6012
6032
  /**
6013
6033
  * 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
6034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6015
6035
  */
6016
6036
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6017
6037
  /**
6018
6038
  * 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
6039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6020
6040
  */
6021
6041
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6022
6042
  /**
6023
6043
  * 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
6044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6025
6045
  */
6026
6046
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6047
+ /**
6048
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6050
+ */
6051
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
6027
6052
  /**
6028
6053
  * 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
6054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6030
6055
  */
6031
6056
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6032
6057
  /**
6033
6058
  * 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
6059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6035
6060
  */
6036
6061
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6037
6062
  /**
6038
6063
  * 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
6064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6040
6065
  */
6041
6066
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6042
6067
  /**
6043
6068
  * 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
6069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6045
6070
  */
6046
6071
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6047
6072
  /**
6048
6073
  * 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
6074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6050
6075
  */
6051
6076
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6052
6077
  /**
6053
6078
  * 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
6079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6055
6080
  */
6056
6081
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6057
6082
  /**
6058
6083
  * 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
6084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6060
6085
  */
6061
6086
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6062
6087
  /**
6063
6088
  * 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
6089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6065
6090
  */
6066
6091
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6067
6092
  /**
6068
6093
  * 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
6094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6070
6095
  */
6071
6096
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6072
6097
  /**
6073
6098
  * 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
6099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6075
6100
  */
6076
6101
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6077
6102
  /**
6078
6103
  * Prefer `switch` over multiple `else-if`.
6079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
6104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6080
6105
  */
6081
6106
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6082
6107
  /**
6083
6108
  * 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
6109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6085
6110
  */
6086
6111
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6087
6112
  /**
6088
6113
  * 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
6114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6090
6115
  */
6091
6116
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6092
6117
  /**
6093
6118
  * 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
6119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6095
6120
  */
6096
6121
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6097
6122
  /**
6098
6123
  * Prevent abbreviations.
6099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
6124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6100
6125
  */
6101
6126
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6102
6127
  /**
6103
6128
  * Enforce consistent relative URL style.
6104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
6129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6105
6130
  */
6106
6131
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6107
6132
  /**
6108
6133
  * 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
6134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6110
6135
  */
6111
6136
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6112
6137
  /**
6113
6138
  * 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
6139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6115
6140
  */
6116
6141
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
6117
6142
  /**
6118
6143
  * 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
6144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6120
6145
  */
6121
6146
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
6122
6147
  /**
6123
6148
  * 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
6149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6125
6150
  */
6126
6151
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6127
6152
  /**
6128
6153
  * 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
6154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6130
6155
  */
6131
6156
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6132
6157
  /**
6133
6158
  * Enforce better string content.
6134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
6159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6135
6160
  */
6136
6161
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6137
6162
  /**
6138
6163
  * 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
6164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6140
6165
  */
6141
6166
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6142
6167
  /**
6143
6168
  * Fix whitespace-insensitive template indentation.
6144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
6169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6145
6170
  */
6146
6171
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6147
6172
  /**
6148
6173
  * 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
6174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6150
6175
  */
6151
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6176
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
6152
6177
  /**
6153
6178
  * 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
6179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6155
6180
  */
6156
6181
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6157
6182
  /**
@@ -6444,6 +6469,50 @@ type StylisticCurlyNewline = []|[(("always" | "never") | {
6444
6469
  type StylisticDotLocation = []|[("object" | "property")]
6445
6470
  // ----- @stylistic/eol-last -----
6446
6471
  type StylisticEolLast = []|[("always" | "never" | "unix" | "windows")]
6472
+ // ----- @stylistic/exp-list-style -----
6473
+ type StylisticExpListStyle = []|[{
6474
+ singleLine?: _StylisticExpListStyle_SingleLineConfig
6475
+ multiLine?: _StylisticExpListStyle_MultiLineConfig
6476
+ overrides?: {
6477
+ "[]"?: _StylisticExpListStyle_BaseConfig
6478
+ "{}"?: _StylisticExpListStyle_BaseConfig
6479
+ "<>"?: _StylisticExpListStyle_BaseConfig
6480
+ "()"?: _StylisticExpListStyle_BaseConfig
6481
+ ArrayExpression?: _StylisticExpListStyle_BaseConfig
6482
+ ArrayPattern?: _StylisticExpListStyle_BaseConfig
6483
+ ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig
6484
+ CallExpression?: _StylisticExpListStyle_BaseConfig
6485
+ ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig
6486
+ FunctionDeclaration?: _StylisticExpListStyle_BaseConfig
6487
+ FunctionExpression?: _StylisticExpListStyle_BaseConfig
6488
+ ImportDeclaration?: _StylisticExpListStyle_BaseConfig
6489
+ ImportAttributes?: _StylisticExpListStyle_BaseConfig
6490
+ NewExpression?: _StylisticExpListStyle_BaseConfig
6491
+ ObjectExpression?: _StylisticExpListStyle_BaseConfig
6492
+ ObjectPattern?: _StylisticExpListStyle_BaseConfig
6493
+ TSDeclareFunction?: _StylisticExpListStyle_BaseConfig
6494
+ TSFunctionType?: _StylisticExpListStyle_BaseConfig
6495
+ TSInterfaceBody?: _StylisticExpListStyle_BaseConfig
6496
+ TSEnumBody?: _StylisticExpListStyle_BaseConfig
6497
+ TSTupleType?: _StylisticExpListStyle_BaseConfig
6498
+ TSTypeLiteral?: _StylisticExpListStyle_BaseConfig
6499
+ TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig
6500
+ TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig
6501
+ JSONArrayExpression?: _StylisticExpListStyle_BaseConfig
6502
+ JSONObjectExpression?: _StylisticExpListStyle_BaseConfig
6503
+ }
6504
+ }]
6505
+ interface _StylisticExpListStyle_SingleLineConfig {
6506
+ spacing?: ("always" | "never")
6507
+ maxItems?: number
6508
+ }
6509
+ interface _StylisticExpListStyle_MultiLineConfig {
6510
+ minItems?: number
6511
+ }
6512
+ interface _StylisticExpListStyle_BaseConfig {
6513
+ singleLine?: _StylisticExpListStyle_SingleLineConfig
6514
+ multiline?: _StylisticExpListStyle_MultiLineConfig
6515
+ }
6447
6516
  // ----- @stylistic/function-call-argument-newline -----
6448
6517
  type StylisticFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
6449
6518
  // ----- @stylistic/function-call-spacing -----
@@ -6513,7 +6582,11 @@ type StylisticIndent = []|[("tab" | number)]|[("tab" | number), {
6513
6582
  ObjectExpression?: (number | ("first" | "off"))
6514
6583
  ImportDeclaration?: (number | ("first" | "off"))
6515
6584
  flatTernaryExpressions?: boolean
6516
- offsetTernaryExpressions?: boolean
6585
+ offsetTernaryExpressions?: (boolean | {
6586
+ CallExpression?: boolean
6587
+ AwaitExpression?: boolean
6588
+ NewExpression?: boolean
6589
+ })
6517
6590
  offsetTernaryExpressionsOffsetCallExpressions?: boolean
6518
6591
  ignoredNodes?: string[]
6519
6592
  ignoreComments?: boolean
@@ -7316,6 +7389,7 @@ type StylisticObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never
7316
7389
  TSInterfaceBody?: ("always" | "never")
7317
7390
  TSEnumBody?: ("always" | "never")
7318
7391
  }
7392
+ emptyObjects?: ("ignore" | "always" | "never")
7319
7393
  }]
7320
7394
  // ----- @stylistic/object-property-newline -----
7321
7395
  type StylisticObjectPropertyNewline = []|[{
@@ -16226,6 +16300,10 @@ type UnicornTemplateIndent = []|[{
16226
16300
  selectors?: string[]
16227
16301
  comments?: string[]
16228
16302
  }]
16303
+ // ----- unicorn/text-encoding-identifier-case -----
16304
+ type UnicornTextEncodingIdentifierCase = []|[{
16305
+ withDash?: boolean
16306
+ }]
16229
16307
  // ----- unused-imports/no-unused-imports -----
16230
16308
  type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
16231
16309