@ncontiero/eslint-config 6.3.1 → 6.4.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +248 -143
  2. package/dist/index.js +1 -1
  3. package/package.json +34 -32
package/dist/index.d.ts CHANGED
@@ -4220,7 +4220,7 @@ interface RuleOptions {
4220
4220
  */
4221
4221
  'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>
4222
4222
  /**
4223
- * Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
4223
+ * 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.
4224
4224
  */
4225
4225
  'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>
4226
4226
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
@@ -5262,6 +5262,11 @@ interface RuleOptions {
5262
5262
  * @see https://eslint.org/docs/latest/rules/symbol-description
5263
5263
  */
5264
5264
  'symbol-description'?: Linter.RuleEntry<[]>
5265
+ /**
5266
+ * Enforce canonical class names.
5267
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md
5268
+ */
5269
+ 'tailwindcss/enforce-canonical-classes'?: Linter.RuleEntry<TailwindcssEnforceCanonicalClasses>
5265
5270
  /**
5266
5271
  * Enforce a consistent order for tailwind classes.
5267
5272
  * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md
@@ -5447,710 +5452,725 @@ interface RuleOptions {
5447
5452
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5448
5453
  /**
5449
5454
  * Improve regexes by making them shorter, consistent, and safer.
5450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
5455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
5451
5456
  */
5452
5457
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5453
5458
  /**
5454
5459
  * Enforce a specific parameter name in catch clauses.
5455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
5460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
5456
5461
  */
5457
5462
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5458
5463
  /**
5459
5464
  * Enforce consistent assertion style with `node:assert`.
5460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
5465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
5461
5466
  */
5462
5467
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5463
5468
  /**
5464
5469
  * Prefer passing `Date` directly to the constructor when cloning.
5465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
5470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
5466
5471
  */
5467
5472
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5468
5473
  /**
5469
5474
  * Use destructured variables over properties.
5470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
5475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
5471
5476
  */
5472
5477
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5473
5478
  /**
5474
5479
  * Prefer consistent types when spreading a ternary in an array literal.
5475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
5480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
5476
5481
  */
5477
5482
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5478
5483
  /**
5479
5484
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
5485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
5481
5486
  */
5482
5487
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5483
5488
  /**
5484
5489
  * Move function definitions to the highest possible scope.
5485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
5490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
5486
5491
  */
5487
5492
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5488
5493
  /**
5489
5494
  * Enforce correct `Error` subclassing.
5490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
5495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
5491
5496
  */
5492
5497
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5493
5498
  /**
5494
5499
  * Enforce no spaces between braces.
5495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
5500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
5496
5501
  */
5497
5502
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5498
5503
  /**
5499
5504
  * Enforce passing a `message` value when creating a built-in error.
5500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
5505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
5501
5506
  */
5502
5507
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5503
5508
  /**
5504
5509
  * Require escape sequences to use uppercase or lowercase values.
5505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
5510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
5506
5511
  */
5507
5512
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5508
5513
  /**
5509
5514
  * Add expiration conditions to TODO comments.
5510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
5515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
5511
5516
  */
5512
5517
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5513
5518
  /**
5514
5519
  * Enforce explicitly comparing the `length` or `size` property of a value.
5515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
5520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
5516
5521
  */
5517
5522
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5518
5523
  /**
5519
5524
  * Enforce a case style for filenames.
5520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
5525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
5521
5526
  */
5522
5527
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5523
5528
  /**
5524
5529
  * Enforce specific import styles per module.
5525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
5530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
5526
5531
  */
5527
5532
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5528
5533
  /**
5529
5534
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
5535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
5531
5536
  */
5532
5537
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5533
5538
  /**
5534
5539
  * Enforce specifying rules to disable in `eslint-disable` comments.
5535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
5540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
5536
5541
  */
5537
5542
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5538
5543
  /**
5539
5544
  * Disallow recursive access to `this` within getters and setters.
5540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
5545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
5541
5546
  */
5542
5547
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5543
5548
  /**
5544
5549
  * Disallow anonymous functions and classes as the default export.
5545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
5550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
5546
5551
  */
5547
5552
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5548
5553
  /**
5549
5554
  * Prevent passing a function reference directly to iterator methods.
5550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
5555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
5551
5556
  */
5552
5557
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5553
5558
  /**
5554
5559
  * Prefer `for…of` over the `forEach` method.
5555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
5560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
5556
5561
  */
5557
5562
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5558
5563
  /**
5559
5564
  * Disallow using the `this` argument in array methods.
5560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
5565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
5561
5566
  */
5562
5567
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5563
5568
  /**
5564
5569
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
5570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
5566
5571
  * @deprecated
5567
5572
  */
5568
5573
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
5569
5574
  /**
5570
5575
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
5576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
5572
5577
  */
5573
5578
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5574
5579
  /**
5575
5580
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
5581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
5577
5582
  */
5578
5583
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
5579
5584
  /**
5580
5585
  * Prefer `Array#toSorted()` over `Array#sort()`.
5581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
5586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
5582
5587
  */
5583
5588
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
5584
5589
  /**
5585
5590
  * Disallow member access from await expression.
5586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
5591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
5587
5592
  */
5588
5593
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5589
5594
  /**
5590
5595
  * Disallow using `await` in `Promise` method parameters.
5591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
5596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
5592
5597
  */
5593
5598
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5594
5599
  /**
5595
5600
  * Do not use leading/trailing space between `console.log` parameters.
5596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
5601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
5597
5602
  */
5598
5603
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5599
5604
  /**
5600
5605
  * Do not use `document.cookie` directly.
5601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
5606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
5602
5607
  */
5603
5608
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5604
5609
  /**
5605
5610
  * Disallow empty files.
5606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
5611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
5607
5612
  */
5608
5613
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5609
5614
  /**
5610
5615
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
5616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
5612
5617
  */
5613
5618
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5614
5619
  /**
5615
5620
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
5621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
5617
5622
  */
5618
5623
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5624
+ /**
5625
+ * Disallow immediate mutation after variable assignment.
5626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
5627
+ */
5628
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
5619
5629
  /**
5620
5630
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
5631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
5622
5632
  * @deprecated
5623
5633
  */
5624
5634
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5625
5635
  /**
5626
5636
  * Disallow `instanceof` with built-in objects
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
5637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
5628
5638
  */
5629
5639
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5630
5640
  /**
5631
5641
  * Disallow invalid options in `fetch()` and `new Request()`.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
5642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
5633
5643
  */
5634
5644
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5635
5645
  /**
5636
5646
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
5647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
5638
5648
  */
5639
5649
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5640
5650
  /**
5641
5651
  * Disallow identifiers starting with `new` or `class`.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
5652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
5643
5653
  */
5644
5654
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5645
5655
  /**
5646
5656
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
5657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5648
5658
  * @deprecated
5649
5659
  */
5650
5660
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5651
5661
  /**
5652
5662
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
5663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
5654
5664
  */
5655
5665
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5656
5666
  /**
5657
5667
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
5668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
5659
5669
  */
5660
5670
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5661
5671
  /**
5662
5672
  * Disallow named usage of default import and export.
5663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
5673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
5664
5674
  */
5665
5675
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5666
5676
  /**
5667
5677
  * Disallow negated conditions.
5668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
5678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
5669
5679
  */
5670
5680
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5671
5681
  /**
5672
5682
  * Disallow negated expression in equality check.
5673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
5683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
5674
5684
  */
5675
5685
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5676
5686
  /**
5677
5687
  * Disallow nested ternary expressions.
5678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
5688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
5679
5689
  */
5680
5690
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5681
5691
  /**
5682
5692
  * Disallow `new Array()`.
5683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
5693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
5684
5694
  */
5685
5695
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5686
5696
  /**
5687
5697
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
5698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
5689
5699
  */
5690
5700
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5691
5701
  /**
5692
5702
  * Disallow the use of the `null` literal.
5693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
5703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
5694
5704
  */
5695
5705
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5696
5706
  /**
5697
5707
  * Disallow the use of objects as default parameters.
5698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
5708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
5699
5709
  */
5700
5710
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5701
5711
  /**
5702
5712
  * Disallow `process.exit()`.
5703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
5713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
5704
5714
  */
5705
5715
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5706
5716
  /**
5707
5717
  * Disallow passing single-element arrays to `Promise` methods.
5708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
5718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
5709
5719
  */
5710
5720
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5711
5721
  /**
5712
5722
  * Disallow classes that only have static members.
5713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
5723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
5714
5724
  */
5715
5725
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5716
5726
  /**
5717
5727
  * Disallow `then` property.
5718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
5728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
5719
5729
  */
5720
5730
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5721
5731
  /**
5722
5732
  * Disallow assigning `this` to a variable.
5723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
5733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
5724
5734
  */
5725
5735
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5726
5736
  /**
5727
5737
  * Disallow comparing `undefined` using `typeof`.
5728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
5738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
5729
5739
  */
5730
5740
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5731
5741
  /**
5732
5742
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
5743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5734
5744
  */
5735
5745
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
5736
5746
  /**
5737
5747
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
5748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
5739
5749
  */
5740
5750
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
5741
5751
  /**
5742
5752
  * Disallow awaiting non-promise values.
5743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
5753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
5744
5754
  */
5745
5755
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5746
5756
  /**
5747
5757
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
5758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
5749
5759
  */
5750
5760
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5751
5761
  /**
5752
5762
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
5763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
5754
5764
  */
5755
5765
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
5756
5766
  /**
5757
5767
  * Disallow unreadable array destructuring.
5758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
5768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
5759
5769
  */
5760
5770
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5761
5771
  /**
5762
5772
  * Disallow unreadable IIFEs.
5763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
5773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
5764
5774
  */
5765
5775
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5766
5776
  /**
5767
5777
  * Disallow unused object properties.
5768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
5778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
5769
5779
  */
5770
5780
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5781
+ /**
5782
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
5784
+ */
5785
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
5771
5786
  /**
5772
5787
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
5788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5774
5789
  */
5775
5790
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
5776
5791
  /**
5777
5792
  * Disallow useless fallback when spreading in object literals.
5778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
5793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5779
5794
  */
5780
5795
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5781
5796
  /**
5782
5797
  * Disallow useless array length check.
5783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
5798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5784
5799
  */
5785
5800
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5786
5801
  /**
5787
5802
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
5803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5789
5804
  */
5790
5805
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5791
5806
  /**
5792
5807
  * Disallow unnecessary spread.
5793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
5808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5794
5809
  */
5795
5810
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5796
5811
  /**
5797
5812
  * Disallow useless case in switch statements.
5798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
5813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5799
5814
  */
5800
5815
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5801
5816
  /**
5802
5817
  * Disallow useless `undefined`.
5803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
5818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5804
5819
  */
5805
5820
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5806
5821
  /**
5807
5822
  * Disallow number literals with zero fractions or dangling dots.
5808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
5823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5809
5824
  */
5810
5825
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5811
5826
  /**
5812
5827
  * Enforce proper case for numeric literals.
5813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
5828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5814
5829
  */
5815
5830
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
5816
5831
  /**
5817
5832
  * Enforce the style of numeric separators by correctly grouping digits.
5818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
5833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5819
5834
  */
5820
5835
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5821
5836
  /**
5822
5837
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
5838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5824
5839
  */
5825
5840
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5826
5841
  /**
5827
5842
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
5843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5829
5844
  */
5830
5845
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5831
5846
  /**
5832
5847
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
5848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5834
5849
  */
5835
5850
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5836
5851
  /**
5837
5852
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
5853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5839
5854
  */
5840
5855
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5841
5856
  /**
5842
5857
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
5858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5844
5859
  */
5845
5860
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5846
5861
  /**
5847
5862
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
5863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5849
5864
  */
5850
5865
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5851
5866
  /**
5852
5867
  * Prefer `.at()` method for index access and `String#charAt()`.
5853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
5868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
5854
5869
  */
5855
5870
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5856
5871
  /**
5857
5872
  * Prefer `BigInt` literals over the constructor.
5858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
5873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
5859
5874
  */
5860
5875
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
5861
5876
  /**
5862
5877
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
5878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
5864
5879
  */
5865
5880
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5866
5881
  /**
5867
5882
  * Prefer class field declarations over `this` assignments in constructors.
5868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
5883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
5869
5884
  */
5870
5885
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
5871
5886
  /**
5872
5887
  * Prefer using `Element#classList.toggle()` to toggle class names.
5873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
5888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
5874
5889
  */
5875
5890
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
5876
5891
  /**
5877
5892
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
5893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
5879
5894
  */
5880
5895
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5881
5896
  /**
5882
5897
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
5898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
5884
5899
  */
5885
5900
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5886
5901
  /**
5887
5902
  * Prefer default parameters over reassignment.
5888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
5903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
5889
5904
  */
5890
5905
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5891
5906
  /**
5892
5907
  * Prefer `Node#append()` over `Node#appendChild()`.
5893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
5908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
5894
5909
  */
5895
5910
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5896
5911
  /**
5897
5912
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
5913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
5899
5914
  */
5900
5915
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5901
5916
  /**
5902
5917
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
5918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
5904
5919
  */
5905
5920
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5906
5921
  /**
5907
5922
  * Prefer `.textContent` over `.innerText`.
5908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
5923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
5909
5924
  */
5910
5925
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5911
5926
  /**
5912
5927
  * Prefer `EventTarget` over `EventEmitter`.
5913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
5928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
5914
5929
  */
5915
5930
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5916
5931
  /**
5917
5932
  * Prefer `export…from` when re-exporting.
5918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
5933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
5919
5934
  */
5920
5935
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5921
5936
  /**
5922
5937
  * Prefer `globalThis` over `window`, `self`, and `global`.
5923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
5938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
5924
5939
  */
5925
5940
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5926
5941
  /**
5927
5942
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
5943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
5929
5944
  */
5930
5945
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
5931
5946
  /**
5932
5947
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
5948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
5934
5949
  */
5935
5950
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5936
5951
  /**
5937
5952
  * Prefer reading a JSON file as a buffer.
5938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
5953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
5939
5954
  */
5940
5955
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5941
5956
  /**
5942
5957
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
5958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
5944
5959
  */
5945
5960
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5946
5961
  /**
5947
5962
  * Prefer using a logical operator over a ternary.
5948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
5963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5949
5964
  */
5950
5965
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5951
5966
  /**
5952
5967
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
5968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
5954
5969
  */
5955
5970
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5956
5971
  /**
5957
5972
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
5973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
5959
5974
  */
5960
5975
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5961
5976
  /**
5962
5977
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
5978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
5964
5979
  */
5965
5980
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5966
5981
  /**
5967
5982
  * Prefer modern `Math` APIs over legacy patterns.
5968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
5983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
5969
5984
  */
5970
5985
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5971
5986
  /**
5972
5987
  * Prefer JavaScript modules (ESM) over CommonJS.
5973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
5988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
5974
5989
  */
5975
5990
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5976
5991
  /**
5977
5992
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
5993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
5979
5994
  */
5980
5995
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5981
5996
  /**
5982
5997
  * Prefer negative index over `.length - index` when possible.
5983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
5998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
5984
5999
  */
5985
6000
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5986
6001
  /**
5987
6002
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
6003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
5989
6004
  */
5990
6005
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5991
6006
  /**
5992
6007
  * Prefer `Number` static properties over global ones.
5993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
6008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
5994
6009
  */
5995
6010
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5996
6011
  /**
5997
6012
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
6013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
5999
6014
  */
6000
6015
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6001
6016
  /**
6002
6017
  * Prefer omitting the `catch` binding parameter.
6003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
6018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6004
6019
  */
6005
6020
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6006
6021
  /**
6007
6022
  * Prefer borrowing methods from the prototype instead of the instance.
6008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
6023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6009
6024
  */
6010
6025
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6011
6026
  /**
6012
6027
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
6028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6014
6029
  */
6015
6030
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6016
6031
  /**
6017
6032
  * Prefer `Reflect.apply()` over `Function#apply()`.
6018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
6033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6019
6034
  */
6020
6035
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6021
6036
  /**
6022
6037
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
6038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6024
6039
  */
6025
6040
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6041
+ /**
6042
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6044
+ */
6045
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
6026
6046
  /**
6027
6047
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
6048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6029
6049
  */
6030
6050
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6031
6051
  /**
6032
6052
  * Prefer using `Set#size` instead of `Array#length`.
6033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
6053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6034
6054
  */
6035
6055
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6036
6056
  /**
6037
6057
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
6058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6039
6059
  */
6040
6060
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6041
6061
  /**
6042
6062
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
6063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6044
6064
  */
6045
6065
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6046
6066
  /**
6047
6067
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
6068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6049
6069
  */
6050
6070
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6051
6071
  /**
6052
6072
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
6073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6054
6074
  */
6055
6075
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6056
6076
  /**
6057
6077
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
6078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6059
6079
  */
6060
6080
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6061
6081
  /**
6062
6082
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
6083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6064
6084
  */
6065
6085
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6066
6086
  /**
6067
6087
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
6088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6069
6089
  */
6070
6090
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6071
6091
  /**
6072
6092
  * Prefer using `structuredClone` to create a deep clone.
6073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
6093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6074
6094
  */
6075
6095
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6076
6096
  /**
6077
6097
  * Prefer `switch` over multiple `else-if`.
6078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
6098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6079
6099
  */
6080
6100
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6081
6101
  /**
6082
6102
  * Prefer ternary expressions over simple `if-else` statements.
6083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
6103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6084
6104
  */
6085
6105
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6086
6106
  /**
6087
6107
  * Prefer top-level await over top-level promises and async function calls.
6088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
6108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6089
6109
  */
6090
6110
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6091
6111
  /**
6092
6112
  * Enforce throwing `TypeError` in type checking conditions.
6093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
6113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6094
6114
  */
6095
6115
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6096
6116
  /**
6097
6117
  * Prevent abbreviations.
6098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
6118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6099
6119
  */
6100
6120
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6101
6121
  /**
6102
6122
  * Enforce consistent relative URL style.
6103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
6123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6104
6124
  */
6105
6125
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6106
6126
  /**
6107
6127
  * Enforce using the separator argument with `Array#join()`.
6108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
6128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6109
6129
  */
6110
6130
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6111
6131
  /**
6112
6132
  * Require non-empty module attributes for imports and exports
6113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
6133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6114
6134
  */
6115
6135
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
6116
6136
  /**
6117
6137
  * Require non-empty specifier list in import and export statements.
6118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
6138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6119
6139
  */
6120
6140
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
6121
6141
  /**
6122
6142
  * Enforce using the digits argument with `Number#toFixed()`.
6123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
6143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6124
6144
  */
6125
6145
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6126
6146
  /**
6127
6147
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
6148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6129
6149
  */
6130
6150
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6131
6151
  /**
6132
6152
  * Enforce better string content.
6133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
6153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6134
6154
  */
6135
6155
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6136
6156
  /**
6137
6157
  * Enforce consistent brace style for `case` clauses.
6138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
6158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6139
6159
  */
6140
6160
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6141
6161
  /**
6142
6162
  * Fix whitespace-insensitive template indentation.
6143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
6163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6144
6164
  */
6145
6165
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6146
6166
  /**
6147
6167
  * Enforce consistent case for text encoding identifiers.
6148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
6168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6149
6169
  */
6150
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6170
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
6151
6171
  /**
6152
6172
  * Require `new` when creating an error.
6153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
6173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6154
6174
  */
6155
6175
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6156
6176
  /**
@@ -14638,6 +14658,87 @@ type SwitchColonSpacing = []|[{
14638
14658
  before?: boolean
14639
14659
  after?: boolean
14640
14660
  }]
14661
+ // ----- tailwindcss/enforce-canonical-classes -----
14662
+ type TailwindcssEnforceCanonicalClasses = []|[{
14663
+
14664
+ callees?: ([string, ({
14665
+
14666
+ match: "strings"
14667
+ [k: string]: unknown | undefined
14668
+ } | {
14669
+
14670
+ match: "objectKeys"
14671
+
14672
+ pathPattern?: string
14673
+ [k: string]: unknown | undefined
14674
+ } | {
14675
+
14676
+ match: "objectValues"
14677
+
14678
+ pathPattern?: string
14679
+ [k: string]: unknown | undefined
14680
+ })[]] | string)[]
14681
+
14682
+ attributes?: (string | [string, ({
14683
+
14684
+ match: "strings"
14685
+ [k: string]: unknown | undefined
14686
+ } | {
14687
+
14688
+ match: "objectKeys"
14689
+
14690
+ pathPattern?: string
14691
+ [k: string]: unknown | undefined
14692
+ } | {
14693
+
14694
+ match: "objectValues"
14695
+
14696
+ pathPattern?: string
14697
+ [k: string]: unknown | undefined
14698
+ })[]])[]
14699
+
14700
+ variables?: ([string, ({
14701
+
14702
+ match: "strings"
14703
+ [k: string]: unknown | undefined
14704
+ } | {
14705
+
14706
+ match: "objectKeys"
14707
+
14708
+ pathPattern?: string
14709
+ [k: string]: unknown | undefined
14710
+ } | {
14711
+
14712
+ match: "objectValues"
14713
+
14714
+ pathPattern?: string
14715
+ [k: string]: unknown | undefined
14716
+ })[]] | string)[]
14717
+
14718
+ tags?: ([string, ({
14719
+
14720
+ match: "strings"
14721
+ [k: string]: unknown | undefined
14722
+ } | {
14723
+
14724
+ match: "objectKeys"
14725
+
14726
+ pathPattern?: string
14727
+ [k: string]: unknown | undefined
14728
+ } | {
14729
+
14730
+ match: "objectValues"
14731
+
14732
+ pathPattern?: string
14733
+ [k: string]: unknown | undefined
14734
+ })[]] | string)[]
14735
+
14736
+ entryPoint?: string
14737
+
14738
+ tailwindConfig?: string
14739
+
14740
+ tsconfig?: string
14741
+ }]
14641
14742
  // ----- tailwindcss/enforce-consistent-class-order -----
14642
14743
  type TailwindcssEnforceConsistentClassOrder = []|[{
14643
14744
 
@@ -15911,6 +16012,10 @@ type UnicornTemplateIndent = []|[{
15911
16012
  selectors?: string[]
15912
16013
  comments?: string[]
15913
16014
  }]
16015
+ // ----- unicorn/text-encoding-identifier-case -----
16016
+ type UnicornTextEncodingIdentifierCase = []|[{
16017
+ withDash?: boolean
16018
+ }]
15914
16019
  // ----- unused-imports/no-unused-imports -----
15915
16020
  type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
15916
16021