@ncontiero/eslint-config 7.0.1 → 7.1.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 +1538 -162
  2. package/dist/index.js +1 -1
  3. package/package.json +23 -23
package/dist/index.d.ts CHANGED
@@ -511,7 +511,7 @@ interface RuleOptions {
511
511
  * Disallow default values that will never be used
512
512
  * @see https://typescript-eslint.io/rules/no-useless-default-assignment
513
513
  */
514
- '@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>
514
+ '@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<TypescriptEslintNoUselessDefaultAssignment>
515
515
  /**
516
516
  * Disallow empty exports that don't change anything in a module file
517
517
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -1183,6 +1183,11 @@ interface RuleOptions {
1183
1183
  * @see https://html-eslint.org/docs/rules/no-inline-styles
1184
1184
  */
1185
1185
  'html/no-inline-styles'?: Linter.RuleEntry<[]>
1186
+ /**
1187
+ * Disallow invalid attribute values according to HTML standards
1188
+ * @see https://html-eslint.org/docs/rules/no-invalid-attr-value
1189
+ */
1190
+ 'html/no-invalid-attr-value'?: Linter.RuleEntry<HtmlNoInvalidAttrValue>
1186
1191
  /**
1187
1192
  * Disallows the use of invalid HTML entities
1188
1193
  * @see https://html-eslint.org/docs/rules/no-invalid-entity
@@ -1228,6 +1233,11 @@ interface RuleOptions {
1228
1233
  * @see https://html-eslint.org/docs/rules/no-positive-tabindex
1229
1234
  */
1230
1235
  'html/no-positive-tabindex'?: Linter.RuleEntry<[]>
1236
+ /**
1237
+ * Disallow redundant role attributes that match the element's implicit role
1238
+ * @see https://html-eslint.org/docs/rules/no-redundant-role
1239
+ */
1240
+ 'html/no-redundant-role'?: Linter.RuleEntry<[]>
1231
1241
  /**
1232
1242
  * Disallow specified attributes
1233
1243
  * @see https://html-eslint.org/docs/rules/no-restricted-attr-values
@@ -3748,6 +3758,11 @@ interface RuleOptions {
3748
3758
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
3749
3759
  */
3750
3760
  'node/prefer-global/console'?: Linter.RuleEntry<NodePreferGlobalConsole>
3761
+ /**
3762
+ * enforce either `crypto` or `require("crypto").webcrypto`
3763
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
3764
+ */
3765
+ 'node/prefer-global/crypto'?: Linter.RuleEntry<NodePreferGlobalCrypto>
3751
3766
  /**
3752
3767
  * enforce either `process` or `require("process")`
3753
3768
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
@@ -3763,6 +3778,11 @@ interface RuleOptions {
3763
3778
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
3764
3779
  */
3765
3780
  'node/prefer-global/text-encoder'?: Linter.RuleEntry<NodePreferGlobalTextEncoder>
3781
+ /**
3782
+ * enforce either global timer functions or `require("timers")`
3783
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
3784
+ */
3785
+ 'node/prefer-global/timers'?: Linter.RuleEntry<NodePreferGlobalTimers>
3766
3786
  /**
3767
3787
  * enforce either `URL` or `require("url").URL`
3768
3788
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
@@ -5501,725 +5521,730 @@ interface RuleOptions {
5501
5521
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5502
5522
  /**
5503
5523
  * Improve regexes by making them shorter, consistent, and safer.
5504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
5524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
5505
5525
  */
5506
5526
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5507
5527
  /**
5508
5528
  * Enforce a specific parameter name in catch clauses.
5509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
5529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
5510
5530
  */
5511
5531
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5512
5532
  /**
5513
5533
  * Enforce consistent assertion style with `node:assert`.
5514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
5534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
5515
5535
  */
5516
5536
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5517
5537
  /**
5518
5538
  * Prefer passing `Date` directly to the constructor when cloning.
5519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
5539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
5520
5540
  */
5521
5541
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5522
5542
  /**
5523
5543
  * Use destructured variables over properties.
5524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
5544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
5525
5545
  */
5526
5546
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5527
5547
  /**
5528
5548
  * Prefer consistent types when spreading a ternary in an array literal.
5529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
5549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
5530
5550
  */
5531
5551
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5532
5552
  /**
5533
5553
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
5554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
5535
5555
  */
5536
5556
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5537
5557
  /**
5538
5558
  * Move function definitions to the highest possible scope.
5539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
5559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
5540
5560
  */
5541
5561
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5542
5562
  /**
5543
5563
  * Enforce correct `Error` subclassing.
5544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
5564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
5545
5565
  */
5546
5566
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5547
5567
  /**
5548
5568
  * Enforce no spaces between braces.
5549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
5569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
5550
5570
  */
5551
5571
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5552
5572
  /**
5553
5573
  * Enforce passing a `message` value when creating a built-in error.
5554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
5574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
5555
5575
  */
5556
5576
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5557
5577
  /**
5558
5578
  * Require escape sequences to use uppercase or lowercase values.
5559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
5579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
5560
5580
  */
5561
5581
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5562
5582
  /**
5563
5583
  * Add expiration conditions to TODO comments.
5564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
5584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
5565
5585
  */
5566
5586
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5567
5587
  /**
5568
5588
  * Enforce explicitly comparing the `length` or `size` property of a value.
5569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
5589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
5570
5590
  */
5571
5591
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5572
5592
  /**
5573
5593
  * Enforce a case style for filenames.
5574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
5594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
5575
5595
  */
5576
5596
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5577
5597
  /**
5578
5598
  * Enforce specific import styles per module.
5579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
5599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
5580
5600
  */
5581
5601
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5602
+ /**
5603
+ * Prevent usage of variables from outside the scope of isolated functions.
5604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
5605
+ */
5606
+ 'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>
5582
5607
  /**
5583
5608
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
5609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
5585
5610
  */
5586
5611
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5587
5612
  /**
5588
5613
  * Enforce specifying rules to disable in `eslint-disable` comments.
5589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
5614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
5590
5615
  */
5591
5616
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5592
5617
  /**
5593
5618
  * Disallow recursive access to `this` within getters and setters.
5594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
5619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
5595
5620
  */
5596
5621
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5597
5622
  /**
5598
5623
  * Disallow anonymous functions and classes as the default export.
5599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
5624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
5600
5625
  */
5601
5626
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5602
5627
  /**
5603
5628
  * Prevent passing a function reference directly to iterator methods.
5604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
5629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
5605
5630
  */
5606
5631
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5607
5632
  /**
5608
5633
  * Prefer `for…of` over the `forEach` method.
5609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
5634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
5610
5635
  */
5611
5636
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5612
5637
  /**
5613
5638
  * Disallow using the `this` argument in array methods.
5614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
5639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
5615
5640
  */
5616
5641
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5617
5642
  /**
5618
5643
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
5644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5620
5645
  * @deprecated
5621
5646
  */
5622
5647
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
5623
5648
  /**
5624
5649
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
5650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
5626
5651
  */
5627
5652
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5628
5653
  /**
5629
5654
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
5655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
5631
5656
  */
5632
5657
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
5633
5658
  /**
5634
5659
  * Prefer `Array#toSorted()` over `Array#sort()`.
5635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
5660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
5636
5661
  */
5637
5662
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
5638
5663
  /**
5639
5664
  * Disallow member access from await expression.
5640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
5665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
5641
5666
  */
5642
5667
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5643
5668
  /**
5644
5669
  * Disallow using `await` in `Promise` method parameters.
5645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
5670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
5646
5671
  */
5647
5672
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5648
5673
  /**
5649
5674
  * Do not use leading/trailing space between `console.log` parameters.
5650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
5675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
5651
5676
  */
5652
5677
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5653
5678
  /**
5654
5679
  * Do not use `document.cookie` directly.
5655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
5680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
5656
5681
  */
5657
5682
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5658
5683
  /**
5659
5684
  * Disallow empty files.
5660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
5685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
5661
5686
  */
5662
5687
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5663
5688
  /**
5664
5689
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
5690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
5666
5691
  */
5667
5692
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5668
5693
  /**
5669
5694
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
5695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
5671
5696
  */
5672
5697
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5673
5698
  /**
5674
5699
  * Disallow immediate mutation after variable assignment.
5675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
5700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
5676
5701
  */
5677
5702
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
5678
5703
  /**
5679
5704
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
5705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5681
5706
  * @deprecated
5682
5707
  */
5683
5708
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5684
5709
  /**
5685
5710
  * Disallow `instanceof` with built-in objects
5686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
5711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
5687
5712
  */
5688
5713
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5689
5714
  /**
5690
5715
  * Disallow invalid options in `fetch()` and `new Request()`.
5691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
5716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
5692
5717
  */
5693
5718
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5694
5719
  /**
5695
5720
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
5721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
5697
5722
  */
5698
5723
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5699
5724
  /**
5700
5725
  * Disallow identifiers starting with `new` or `class`.
5701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
5726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
5702
5727
  */
5703
5728
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5704
5729
  /**
5705
5730
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5707
5732
  * @deprecated
5708
5733
  */
5709
5734
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5710
5735
  /**
5711
5736
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
5737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
5713
5738
  */
5714
5739
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5715
5740
  /**
5716
5741
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
5742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
5718
5743
  */
5719
5744
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5720
5745
  /**
5721
5746
  * Disallow named usage of default import and export.
5722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
5747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
5723
5748
  */
5724
5749
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5725
5750
  /**
5726
5751
  * Disallow negated conditions.
5727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
5752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
5728
5753
  */
5729
5754
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5730
5755
  /**
5731
5756
  * Disallow negated expression in equality check.
5732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
5757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
5733
5758
  */
5734
5759
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5735
5760
  /**
5736
5761
  * Disallow nested ternary expressions.
5737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
5762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
5738
5763
  */
5739
5764
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5740
5765
  /**
5741
5766
  * Disallow `new Array()`.
5742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
5767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
5743
5768
  */
5744
5769
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5745
5770
  /**
5746
5771
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
5772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
5748
5773
  */
5749
5774
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5750
5775
  /**
5751
5776
  * Disallow the use of the `null` literal.
5752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
5777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
5753
5778
  */
5754
5779
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5755
5780
  /**
5756
5781
  * Disallow the use of objects as default parameters.
5757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
5782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
5758
5783
  */
5759
5784
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5760
5785
  /**
5761
5786
  * Disallow `process.exit()`.
5762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
5787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
5763
5788
  */
5764
5789
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5765
5790
  /**
5766
5791
  * Disallow passing single-element arrays to `Promise` methods.
5767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
5792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
5768
5793
  */
5769
5794
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5770
5795
  /**
5771
5796
  * Disallow classes that only have static members.
5772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
5797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
5773
5798
  */
5774
5799
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5775
5800
  /**
5776
5801
  * Disallow `then` property.
5777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
5802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
5778
5803
  */
5779
5804
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5780
5805
  /**
5781
5806
  * Disallow assigning `this` to a variable.
5782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
5807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
5783
5808
  */
5784
5809
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5785
5810
  /**
5786
5811
  * Disallow comparing `undefined` using `typeof`.
5787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
5812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
5788
5813
  */
5789
5814
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5790
5815
  /**
5791
5816
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5793
5818
  */
5794
5819
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
5795
5820
  /**
5796
5821
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
5822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
5798
5823
  */
5799
5824
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
5800
5825
  /**
5801
5826
  * Disallow awaiting non-promise values.
5802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
5827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
5803
5828
  */
5804
5829
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5805
5830
  /**
5806
5831
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
5832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
5808
5833
  */
5809
5834
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5810
5835
  /**
5811
5836
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
5837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
5813
5838
  */
5814
5839
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
5815
5840
  /**
5816
5841
  * Disallow unreadable array destructuring.
5817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
5842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
5818
5843
  */
5819
5844
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5820
5845
  /**
5821
5846
  * Disallow unreadable IIFEs.
5822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
5847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
5823
5848
  */
5824
5849
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5825
5850
  /**
5826
5851
  * Disallow unused object properties.
5827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
5852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
5828
5853
  */
5829
5854
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5830
5855
  /**
5831
5856
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
5857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
5833
5858
  */
5834
5859
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
5835
5860
  /**
5836
5861
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5838
5863
  */
5839
5864
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
5840
5865
  /**
5841
5866
  * Disallow useless fallback when spreading in object literals.
5842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
5843
5868
  */
5844
5869
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5845
5870
  /**
5846
5871
  * Disallow useless array length check.
5847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
5848
5873
  */
5849
5874
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5850
5875
  /**
5851
5876
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
5853
5878
  */
5854
5879
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5855
5880
  /**
5856
5881
  * Disallow unnecessary spread.
5857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
5858
5883
  */
5859
5884
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5860
5885
  /**
5861
5886
  * Disallow useless case in switch statements.
5862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
5863
5888
  */
5864
5889
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5865
5890
  /**
5866
5891
  * Disallow useless `undefined`.
5867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
5868
5893
  */
5869
5894
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5870
5895
  /**
5871
5896
  * Disallow number literals with zero fractions or dangling dots.
5872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
5873
5898
  */
5874
5899
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5875
5900
  /**
5876
5901
  * Enforce proper case for numeric literals.
5877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
5878
5903
  */
5879
5904
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
5880
5905
  /**
5881
5906
  * Enforce the style of numeric separators by correctly grouping digits.
5882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
5883
5908
  */
5884
5909
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5885
5910
  /**
5886
5911
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
5888
5913
  */
5889
5914
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5890
5915
  /**
5891
5916
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
5893
5918
  */
5894
5919
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5895
5920
  /**
5896
5921
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
5898
5923
  */
5899
5924
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5900
5925
  /**
5901
5926
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
5903
5928
  */
5904
5929
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5905
5930
  /**
5906
5931
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
5908
5933
  */
5909
5934
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5910
5935
  /**
5911
5936
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
5913
5938
  */
5914
5939
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5915
5940
  /**
5916
5941
  * Prefer `.at()` method for index access and `String#charAt()`.
5917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
5942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
5918
5943
  */
5919
5944
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5920
5945
  /**
5921
5946
  * Prefer `BigInt` literals over the constructor.
5922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
5947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
5923
5948
  */
5924
5949
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
5925
5950
  /**
5926
5951
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
5952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
5928
5953
  */
5929
5954
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5930
5955
  /**
5931
5956
  * Prefer class field declarations over `this` assignments in constructors.
5932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
5957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
5933
5958
  */
5934
5959
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
5935
5960
  /**
5936
5961
  * Prefer using `Element#classList.toggle()` to toggle class names.
5937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
5962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
5938
5963
  */
5939
5964
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
5940
5965
  /**
5941
5966
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
5967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
5943
5968
  */
5944
5969
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5945
5970
  /**
5946
5971
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
5972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
5948
5973
  */
5949
5974
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5950
5975
  /**
5951
5976
  * Prefer default parameters over reassignment.
5952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
5977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
5953
5978
  */
5954
5979
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5955
5980
  /**
5956
5981
  * Prefer `Node#append()` over `Node#appendChild()`.
5957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
5982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
5958
5983
  */
5959
5984
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5960
5985
  /**
5961
5986
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
5987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
5963
5988
  */
5964
5989
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5965
5990
  /**
5966
5991
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
5992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
5968
5993
  */
5969
5994
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5970
5995
  /**
5971
5996
  * Prefer `.textContent` over `.innerText`.
5972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
5997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
5973
5998
  */
5974
5999
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5975
6000
  /**
5976
6001
  * Prefer `EventTarget` over `EventEmitter`.
5977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
6002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
5978
6003
  */
5979
6004
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5980
6005
  /**
5981
6006
  * Prefer `export…from` when re-exporting.
5982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
6007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
5983
6008
  */
5984
6009
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5985
6010
  /**
5986
6011
  * Prefer `globalThis` over `window`, `self`, and `global`.
5987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
6012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
5988
6013
  */
5989
6014
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5990
6015
  /**
5991
6016
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
6017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
5993
6018
  */
5994
6019
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
5995
6020
  /**
5996
6021
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
6022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
5998
6023
  */
5999
6024
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6000
6025
  /**
6001
6026
  * Prefer reading a JSON file as a buffer.
6002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
6027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
6003
6028
  */
6004
6029
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6005
6030
  /**
6006
6031
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
6032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
6008
6033
  */
6009
6034
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6010
6035
  /**
6011
6036
  * Prefer using a logical operator over a ternary.
6012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6013
6038
  */
6014
6039
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6015
6040
  /**
6016
6041
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
6042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
6018
6043
  */
6019
6044
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6020
6045
  /**
6021
6046
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
6047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
6023
6048
  */
6024
6049
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6025
6050
  /**
6026
6051
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
6052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
6028
6053
  */
6029
6054
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6030
6055
  /**
6031
6056
  * Prefer modern `Math` APIs over legacy patterns.
6032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
6057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
6033
6058
  */
6034
6059
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6035
6060
  /**
6036
6061
  * Prefer JavaScript modules (ESM) over CommonJS.
6037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
6062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
6038
6063
  */
6039
6064
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6040
6065
  /**
6041
6066
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
6067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
6043
6068
  */
6044
6069
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6045
6070
  /**
6046
6071
  * Prefer negative index over `.length - index` when possible.
6047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
6072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
6048
6073
  */
6049
6074
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6050
6075
  /**
6051
6076
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
6077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
6053
6078
  */
6054
6079
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6055
6080
  /**
6056
6081
  * Prefer `Number` static properties over global ones.
6057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
6082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
6058
6083
  */
6059
6084
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6060
6085
  /**
6061
6086
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
6087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
6063
6088
  */
6064
6089
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6065
6090
  /**
6066
6091
  * Prefer omitting the `catch` binding parameter.
6067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
6068
6093
  */
6069
6094
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6070
6095
  /**
6071
6096
  * Prefer borrowing methods from the prototype instead of the instance.
6072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
6073
6098
  */
6074
6099
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6075
6100
  /**
6076
6101
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
6078
6103
  */
6079
6104
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6080
6105
  /**
6081
6106
  * Prefer `Reflect.apply()` over `Function#apply()`.
6082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
6083
6108
  */
6084
6109
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6085
6110
  /**
6086
6111
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
6088
6113
  */
6089
6114
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6090
6115
  /**
6091
6116
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
6093
6118
  */
6094
6119
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
6095
6120
  /**
6096
6121
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
6098
6123
  */
6099
6124
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6100
6125
  /**
6101
6126
  * Prefer using `Set#size` instead of `Array#length`.
6102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
6103
6128
  */
6104
6129
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6105
6130
  /**
6106
6131
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
6108
6133
  */
6109
6134
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6110
6135
  /**
6111
6136
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
6113
6138
  */
6114
6139
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6115
6140
  /**
6116
6141
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
6118
6143
  */
6119
6144
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6120
6145
  /**
6121
6146
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
6123
6148
  */
6124
6149
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6125
6150
  /**
6126
6151
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
6128
6153
  */
6129
6154
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6130
6155
  /**
6131
6156
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
6133
6158
  */
6134
6159
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6135
6160
  /**
6136
6161
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
6138
6163
  */
6139
6164
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6140
6165
  /**
6141
6166
  * Prefer using `structuredClone` to create a deep clone.
6142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
6143
6168
  */
6144
6169
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6145
6170
  /**
6146
6171
  * Prefer `switch` over multiple `else-if`.
6147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
6148
6173
  */
6149
6174
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6150
6175
  /**
6151
6176
  * Prefer ternary expressions over simple `if-else` statements.
6152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
6153
6178
  */
6154
6179
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6155
6180
  /**
6156
6181
  * Prefer top-level await over top-level promises and async function calls.
6157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
6158
6183
  */
6159
6184
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6160
6185
  /**
6161
6186
  * Enforce throwing `TypeError` in type checking conditions.
6162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
6163
6188
  */
6164
6189
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6165
6190
  /**
6166
6191
  * Prevent abbreviations.
6167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
6168
6193
  */
6169
6194
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6170
6195
  /**
6171
6196
  * Enforce consistent relative URL style.
6172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
6173
6198
  */
6174
6199
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6175
6200
  /**
6176
6201
  * Enforce using the separator argument with `Array#join()`.
6177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
6178
6203
  */
6179
6204
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6180
6205
  /**
6181
6206
  * Require non-empty module attributes for imports and exports
6182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
6183
6208
  */
6184
6209
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
6185
6210
  /**
6186
6211
  * Require non-empty specifier list in import and export statements.
6187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
6188
6213
  */
6189
6214
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
6190
6215
  /**
6191
6216
  * Enforce using the digits argument with `Number#toFixed()`.
6192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6193
6218
  */
6194
6219
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6195
6220
  /**
6196
6221
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
6198
6223
  */
6199
6224
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6200
6225
  /**
6201
6226
  * Enforce better string content.
6202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
6203
6228
  */
6204
6229
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6205
6230
  /**
6206
6231
  * Enforce consistent brace style for `case` clauses.
6207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
6208
6233
  */
6209
6234
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6210
6235
  /**
6211
6236
  * Fix whitespace-insensitive template indentation.
6212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
6213
6238
  */
6214
6239
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6215
6240
  /**
6216
6241
  * Enforce consistent case for text encoding identifiers.
6217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
6218
6243
  */
6219
6244
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
6220
6245
  /**
6221
6246
  * Require `new` when creating an error.
6222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
6223
6248
  */
6224
6249
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6225
6250
  /**
@@ -7307,6 +7332,11 @@ type TypescriptEslintNoUseBeforeDefine = []|[("nofunc" | {
7307
7332
 
7308
7333
  variables?: boolean
7309
7334
  })]
7335
+ // ----- @typescript-eslint/no-useless-default-assignment -----
7336
+ type TypescriptEslintNoUselessDefaultAssignment = []|[{
7337
+
7338
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
7339
+ }]
7310
7340
  // ----- @typescript-eslint/no-var-requires -----
7311
7341
  type TypescriptEslintNoVarRequires = []|[{
7312
7342
 
@@ -7639,6 +7669,7 @@ type AntfuConsistentListNewline = []|[{
7639
7669
  ExportNamedDeclaration?: boolean
7640
7670
  FunctionDeclaration?: boolean
7641
7671
  FunctionExpression?: boolean
7672
+ IfStatement?: boolean
7642
7673
  ImportDeclaration?: boolean
7643
7674
  JSONArrayExpression?: boolean
7644
7675
  JSONObjectExpression?: boolean
@@ -7905,6 +7936,14 @@ type HtmlNoExtraSpacingAttrs = []|[{
7905
7936
  type HtmlNoExtraSpacingText = []|[{
7906
7937
  skip?: string[]
7907
7938
  }]
7939
+ // ----- html/no-invalid-attr-value -----
7940
+ type HtmlNoInvalidAttrValue = []|[{
7941
+ allow?: {
7942
+ tag: string
7943
+ attr: string
7944
+ valuePattern?: string
7945
+ }[]
7946
+ }]
7908
7947
  // ----- html/no-multiple-empty-lines -----
7909
7948
  type HtmlNoMultipleEmptyLines = []|[{
7910
7949
  max: number
@@ -9010,6 +9049,8 @@ type JsdocTagLines = []|[("always" | "any" | "never")]|[("always" | "any" | "nev
9010
9049
 
9011
9050
  startLines?: (number | null)
9012
9051
 
9052
+ startLinesWithNoTags?: number
9053
+
9013
9054
  tags?: {
9014
9055
  [k: string]: {
9015
9056
  count?: number
@@ -10834,12 +10875,16 @@ type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
10834
10875
  type NodePreferGlobalBuffer = []|[("always" | "never")]
10835
10876
  // ----- node/prefer-global/console -----
10836
10877
  type NodePreferGlobalConsole = []|[("always" | "never")]
10878
+ // ----- node/prefer-global/crypto -----
10879
+ type NodePreferGlobalCrypto = []|[("always" | "never")]
10837
10880
  // ----- node/prefer-global/process -----
10838
10881
  type NodePreferGlobalProcess = []|[("always" | "never")]
10839
10882
  // ----- node/prefer-global/text-decoder -----
10840
10883
  type NodePreferGlobalTextDecoder = []|[("always" | "never")]
10841
10884
  // ----- node/prefer-global/text-encoder -----
10842
10885
  type NodePreferGlobalTextEncoder = []|[("always" | "never")]
10886
+ // ----- node/prefer-global/timers -----
10887
+ type NodePreferGlobalTimers = []|[("always" | "never")]
10843
10888
  // ----- node/prefer-global/url -----
10844
10889
  type NodePreferGlobalUrl = []|[("always" | "never")]
10845
10890
  // ----- node/prefer-global/url-search-params -----
@@ -11022,7 +11067,7 @@ type PerfectionistSortArrayIncludes = {
11022
11067
  flags?: string
11023
11068
  } | string))
11024
11069
 
11025
- selector?: ("literal" | "spread")
11070
+ selector?: "literal"
11026
11071
  }, ...({
11027
11072
 
11028
11073
  elementNamePattern?: (({
@@ -11037,7 +11082,7 @@ type PerfectionistSortArrayIncludes = {
11037
11082
  flags?: string
11038
11083
  } | string))
11039
11084
 
11040
- selector?: ("literal" | "spread")
11085
+ selector?: "literal"
11041
11086
  })[]]
11042
11087
  } | {
11043
11088
 
@@ -11067,7 +11112,7 @@ type PerfectionistSortArrayIncludes = {
11067
11112
  flags?: string
11068
11113
  } | string))
11069
11114
 
11070
- selector?: ("literal" | "spread")
11115
+ selector?: "literal"
11071
11116
  })[]
11072
11117
  newlinesInside?: (("ignore" | number) | "newlinesBetween")
11073
11118
 
@@ -11346,6 +11391,8 @@ type PerfectionistSortClasses = []|[{
11346
11391
  })[]
11347
11392
  newlinesBetween?: ("ignore" | number)
11348
11393
 
11394
+ useExperimentalDependencyDetection?: boolean
11395
+
11349
11396
  ignoreCallbackDependenciesPatterns?: (({
11350
11397
 
11351
11398
  pattern: string
@@ -14497,7 +14544,7 @@ type PerfectionistSortSets = {
14497
14544
  flags?: string
14498
14545
  } | string))
14499
14546
 
14500
- selector?: ("literal" | "spread")
14547
+ selector?: "literal"
14501
14548
  }, ...({
14502
14549
 
14503
14550
  elementNamePattern?: (({
@@ -14512,7 +14559,7 @@ type PerfectionistSortSets = {
14512
14559
  flags?: string
14513
14560
  } | string))
14514
14561
 
14515
- selector?: ("literal" | "spread")
14562
+ selector?: "literal"
14516
14563
  })[]]
14517
14564
  } | {
14518
14565
 
@@ -14542,7 +14589,7 @@ type PerfectionistSortSets = {
14542
14589
  flags?: string
14543
14590
  } | string))
14544
14591
 
14545
- selector?: ("literal" | "spread")
14592
+ selector?: "literal"
14546
14593
  })[]
14547
14594
  newlinesInside?: (("ignore" | number) | "newlinesBetween")
14548
14595
 
@@ -15206,9 +15253,9 @@ type ReactHooksVoidUseMemo = []|[{
15206
15253
  }]
15207
15254
  // ----- react-refresh/only-export-components -----
15208
15255
  type ReactRefreshOnlyExportComponents = []|[{
15256
+ extraHOCs?: string[]
15209
15257
  allowExportNames?: string[]
15210
15258
  allowConstantExport?: boolean
15211
- customHOCs?: string[]
15212
15259
  checkJS?: boolean
15213
15260
  }]
15214
15261
  // ----- react/boolean-prop-naming -----
@@ -15894,6 +15941,116 @@ type SwitchColonSpacing = []|[{
15894
15941
  // ----- tailwindcss/enforce-canonical-classes -----
15895
15942
  type TailwindcssEnforceCanonicalClasses = []|[{
15896
15943
 
15944
+ selectors?: ({
15945
+
15946
+ kind: "attribute"
15947
+
15948
+ match?: ({
15949
+
15950
+ type: "strings"
15951
+ } | {
15952
+
15953
+ path?: string
15954
+
15955
+ type: "objectKeys"
15956
+ } | {
15957
+
15958
+ path?: string
15959
+
15960
+ type: "objectValues"
15961
+ })[]
15962
+
15963
+ name: string
15964
+ } | ({
15965
+
15966
+ callTarget?: ("all" | "first" | "last" | number)
15967
+
15968
+ kind: "callee"
15969
+
15970
+ match?: ({
15971
+
15972
+ type: "strings"
15973
+ } | {
15974
+
15975
+ path?: string
15976
+
15977
+ type: "objectKeys"
15978
+ } | {
15979
+
15980
+ path?: string
15981
+
15982
+ type: "objectValues"
15983
+ })[]
15984
+
15985
+ name: string
15986
+
15987
+ path?: string
15988
+ } | {
15989
+
15990
+ callTarget?: ("all" | "first" | "last" | number)
15991
+
15992
+ kind: "callee"
15993
+
15994
+ match?: ({
15995
+
15996
+ type: "strings"
15997
+ } | {
15998
+
15999
+ path?: string
16000
+
16001
+ type: "objectKeys"
16002
+ } | {
16003
+
16004
+ path?: string
16005
+
16006
+ type: "objectValues"
16007
+ })[]
16008
+
16009
+ name?: string
16010
+
16011
+ path: string
16012
+ }) | {
16013
+
16014
+ kind: "tag"
16015
+
16016
+ match?: ({
16017
+
16018
+ type: "strings"
16019
+ } | {
16020
+
16021
+ path?: string
16022
+
16023
+ type: "objectKeys"
16024
+ } | {
16025
+
16026
+ path?: string
16027
+
16028
+ type: "objectValues"
16029
+ })[]
16030
+
16031
+ name: string
16032
+ } | {
16033
+
16034
+ kind: "variable"
16035
+
16036
+ match?: ({
16037
+
16038
+ type: "strings"
16039
+ } | {
16040
+
16041
+ path?: string
16042
+
16043
+ type: "objectKeys"
16044
+ } | {
16045
+
16046
+ path?: string
16047
+
16048
+ type: "objectValues"
16049
+ })[]
16050
+
16051
+ name: string
16052
+ })[]
16053
+
15897
16054
  callees?: ([string, ({
15898
16055
 
15899
16056
  match: "strings"
@@ -15973,6 +16130,116 @@ type TailwindcssEnforceCanonicalClasses = []|[{
15973
16130
  // ----- tailwindcss/enforce-consistent-class-order -----
15974
16131
  type TailwindcssEnforceConsistentClassOrder = []|[{
15975
16132
 
16133
+ selectors?: ({
16134
+
16135
+ kind: "attribute"
16136
+
16137
+ match?: ({
16138
+
16139
+ type: "strings"
16140
+ } | {
16141
+
16142
+ path?: string
16143
+
16144
+ type: "objectKeys"
16145
+ } | {
16146
+
16147
+ path?: string
16148
+
16149
+ type: "objectValues"
16150
+ })[]
16151
+
16152
+ name: string
16153
+ } | ({
16154
+
16155
+ callTarget?: ("all" | "first" | "last" | number)
16156
+
16157
+ kind: "callee"
16158
+
16159
+ match?: ({
16160
+
16161
+ type: "strings"
16162
+ } | {
16163
+
16164
+ path?: string
16165
+
16166
+ type: "objectKeys"
16167
+ } | {
16168
+
16169
+ path?: string
16170
+
16171
+ type: "objectValues"
16172
+ })[]
16173
+
16174
+ name: string
16175
+
16176
+ path?: string
16177
+ } | {
16178
+
16179
+ callTarget?: ("all" | "first" | "last" | number)
16180
+
16181
+ kind: "callee"
16182
+
16183
+ match?: ({
16184
+
16185
+ type: "strings"
16186
+ } | {
16187
+
16188
+ path?: string
16189
+
16190
+ type: "objectKeys"
16191
+ } | {
16192
+
16193
+ path?: string
16194
+
16195
+ type: "objectValues"
16196
+ })[]
16197
+
16198
+ name?: string
16199
+
16200
+ path: string
16201
+ }) | {
16202
+
16203
+ kind: "tag"
16204
+
16205
+ match?: ({
16206
+
16207
+ type: "strings"
16208
+ } | {
16209
+
16210
+ path?: string
16211
+
16212
+ type: "objectKeys"
16213
+ } | {
16214
+
16215
+ path?: string
16216
+
16217
+ type: "objectValues"
16218
+ })[]
16219
+
16220
+ name: string
16221
+ } | {
16222
+
16223
+ kind: "variable"
16224
+
16225
+ match?: ({
16226
+
16227
+ type: "strings"
16228
+ } | {
16229
+
16230
+ path?: string
16231
+
16232
+ type: "objectKeys"
16233
+ } | {
16234
+
16235
+ path?: string
16236
+
16237
+ type: "objectValues"
16238
+ })[]
16239
+
16240
+ name: string
16241
+ })[]
16242
+
15976
16243
  callees?: ([string, ({
15977
16244
 
15978
16245
  match: "strings"
@@ -16058,6 +16325,116 @@ type TailwindcssEnforceConsistentClassOrder = []|[{
16058
16325
  // ----- tailwindcss/enforce-consistent-important-position -----
16059
16326
  type TailwindcssEnforceConsistentImportantPosition = []|[{
16060
16327
 
16328
+ selectors?: ({
16329
+
16330
+ kind: "attribute"
16331
+
16332
+ match?: ({
16333
+
16334
+ type: "strings"
16335
+ } | {
16336
+
16337
+ path?: string
16338
+
16339
+ type: "objectKeys"
16340
+ } | {
16341
+
16342
+ path?: string
16343
+
16344
+ type: "objectValues"
16345
+ })[]
16346
+
16347
+ name: string
16348
+ } | ({
16349
+
16350
+ callTarget?: ("all" | "first" | "last" | number)
16351
+
16352
+ kind: "callee"
16353
+
16354
+ match?: ({
16355
+
16356
+ type: "strings"
16357
+ } | {
16358
+
16359
+ path?: string
16360
+
16361
+ type: "objectKeys"
16362
+ } | {
16363
+
16364
+ path?: string
16365
+
16366
+ type: "objectValues"
16367
+ })[]
16368
+
16369
+ name: string
16370
+
16371
+ path?: string
16372
+ } | {
16373
+
16374
+ callTarget?: ("all" | "first" | "last" | number)
16375
+
16376
+ kind: "callee"
16377
+
16378
+ match?: ({
16379
+
16380
+ type: "strings"
16381
+ } | {
16382
+
16383
+ path?: string
16384
+
16385
+ type: "objectKeys"
16386
+ } | {
16387
+
16388
+ path?: string
16389
+
16390
+ type: "objectValues"
16391
+ })[]
16392
+
16393
+ name?: string
16394
+
16395
+ path: string
16396
+ }) | {
16397
+
16398
+ kind: "tag"
16399
+
16400
+ match?: ({
16401
+
16402
+ type: "strings"
16403
+ } | {
16404
+
16405
+ path?: string
16406
+
16407
+ type: "objectKeys"
16408
+ } | {
16409
+
16410
+ path?: string
16411
+
16412
+ type: "objectValues"
16413
+ })[]
16414
+
16415
+ name: string
16416
+ } | {
16417
+
16418
+ kind: "variable"
16419
+
16420
+ match?: ({
16421
+
16422
+ type: "strings"
16423
+ } | {
16424
+
16425
+ path?: string
16426
+
16427
+ type: "objectKeys"
16428
+ } | {
16429
+
16430
+ path?: string
16431
+
16432
+ type: "objectValues"
16433
+ })[]
16434
+
16435
+ name: string
16436
+ })[]
16437
+
16061
16438
  callees?: ([string, ({
16062
16439
 
16063
16440
  match: "strings"
@@ -16135,6 +16512,116 @@ type TailwindcssEnforceConsistentImportantPosition = []|[{
16135
16512
  // ----- tailwindcss/enforce-consistent-line-wrapping -----
16136
16513
  type TailwindcssEnforceConsistentLineWrapping = []|[{
16137
16514
 
16515
+ selectors?: ({
16516
+
16517
+ kind: "attribute"
16518
+
16519
+ match?: ({
16520
+
16521
+ type: "strings"
16522
+ } | {
16523
+
16524
+ path?: string
16525
+
16526
+ type: "objectKeys"
16527
+ } | {
16528
+
16529
+ path?: string
16530
+
16531
+ type: "objectValues"
16532
+ })[]
16533
+
16534
+ name: string
16535
+ } | ({
16536
+
16537
+ callTarget?: ("all" | "first" | "last" | number)
16538
+
16539
+ kind: "callee"
16540
+
16541
+ match?: ({
16542
+
16543
+ type: "strings"
16544
+ } | {
16545
+
16546
+ path?: string
16547
+
16548
+ type: "objectKeys"
16549
+ } | {
16550
+
16551
+ path?: string
16552
+
16553
+ type: "objectValues"
16554
+ })[]
16555
+
16556
+ name: string
16557
+
16558
+ path?: string
16559
+ } | {
16560
+
16561
+ callTarget?: ("all" | "first" | "last" | number)
16562
+
16563
+ kind: "callee"
16564
+
16565
+ match?: ({
16566
+
16567
+ type: "strings"
16568
+ } | {
16569
+
16570
+ path?: string
16571
+
16572
+ type: "objectKeys"
16573
+ } | {
16574
+
16575
+ path?: string
16576
+
16577
+ type: "objectValues"
16578
+ })[]
16579
+
16580
+ name?: string
16581
+
16582
+ path: string
16583
+ }) | {
16584
+
16585
+ kind: "tag"
16586
+
16587
+ match?: ({
16588
+
16589
+ type: "strings"
16590
+ } | {
16591
+
16592
+ path?: string
16593
+
16594
+ type: "objectKeys"
16595
+ } | {
16596
+
16597
+ path?: string
16598
+
16599
+ type: "objectValues"
16600
+ })[]
16601
+
16602
+ name: string
16603
+ } | {
16604
+
16605
+ kind: "variable"
16606
+
16607
+ match?: ({
16608
+
16609
+ type: "strings"
16610
+ } | {
16611
+
16612
+ path?: string
16613
+
16614
+ type: "objectKeys"
16615
+ } | {
16616
+
16617
+ path?: string
16618
+
16619
+ type: "objectValues"
16620
+ })[]
16621
+
16622
+ name: string
16623
+ })[]
16624
+
16138
16625
  callees?: ([string, ({
16139
16626
 
16140
16627
  match: "strings"
@@ -16224,21 +16711,131 @@ type TailwindcssEnforceConsistentLineWrapping = []|[{
16224
16711
  // ----- tailwindcss/enforce-consistent-variable-syntax -----
16225
16712
  type TailwindcssEnforceConsistentVariableSyntax = []|[{
16226
16713
 
16227
- callees?: ([string, ({
16714
+ selectors?: ({
16228
16715
 
16229
- match: "strings"
16230
- } | {
16716
+ kind: "attribute"
16231
16717
 
16232
- match: "objectKeys"
16718
+ match?: ({
16719
+
16720
+ type: "strings"
16721
+ } | {
16722
+
16723
+ path?: string
16724
+
16725
+ type: "objectKeys"
16726
+ } | {
16727
+
16728
+ path?: string
16729
+
16730
+ type: "objectValues"
16731
+ })[]
16233
16732
 
16234
- pathPattern?: string
16235
- } | {
16733
+ name: string
16734
+ } | ({
16236
16735
 
16237
- match: "objectValues"
16736
+ callTarget?: ("all" | "first" | "last" | number)
16238
16737
 
16239
- pathPattern?: string
16240
- })[]] | string)[]
16241
-
16738
+ kind: "callee"
16739
+
16740
+ match?: ({
16741
+
16742
+ type: "strings"
16743
+ } | {
16744
+
16745
+ path?: string
16746
+
16747
+ type: "objectKeys"
16748
+ } | {
16749
+
16750
+ path?: string
16751
+
16752
+ type: "objectValues"
16753
+ })[]
16754
+
16755
+ name: string
16756
+
16757
+ path?: string
16758
+ } | {
16759
+
16760
+ callTarget?: ("all" | "first" | "last" | number)
16761
+
16762
+ kind: "callee"
16763
+
16764
+ match?: ({
16765
+
16766
+ type: "strings"
16767
+ } | {
16768
+
16769
+ path?: string
16770
+
16771
+ type: "objectKeys"
16772
+ } | {
16773
+
16774
+ path?: string
16775
+
16776
+ type: "objectValues"
16777
+ })[]
16778
+
16779
+ name?: string
16780
+
16781
+ path: string
16782
+ }) | {
16783
+
16784
+ kind: "tag"
16785
+
16786
+ match?: ({
16787
+
16788
+ type: "strings"
16789
+ } | {
16790
+
16791
+ path?: string
16792
+
16793
+ type: "objectKeys"
16794
+ } | {
16795
+
16796
+ path?: string
16797
+
16798
+ type: "objectValues"
16799
+ })[]
16800
+
16801
+ name: string
16802
+ } | {
16803
+
16804
+ kind: "variable"
16805
+
16806
+ match?: ({
16807
+
16808
+ type: "strings"
16809
+ } | {
16810
+
16811
+ path?: string
16812
+
16813
+ type: "objectKeys"
16814
+ } | {
16815
+
16816
+ path?: string
16817
+
16818
+ type: "objectValues"
16819
+ })[]
16820
+
16821
+ name: string
16822
+ })[]
16823
+
16824
+ callees?: ([string, ({
16825
+
16826
+ match: "strings"
16827
+ } | {
16828
+
16829
+ match: "objectKeys"
16830
+
16831
+ pathPattern?: string
16832
+ } | {
16833
+
16834
+ match: "objectValues"
16835
+
16836
+ pathPattern?: string
16837
+ })[]] | string)[]
16838
+
16242
16839
  attributes?: (string | [string, ({
16243
16840
 
16244
16841
  match: "strings"
@@ -16301,6 +16898,116 @@ type TailwindcssEnforceConsistentVariableSyntax = []|[{
16301
16898
  // ----- tailwindcss/enforce-shorthand-classes -----
16302
16899
  type TailwindcssEnforceShorthandClasses = []|[{
16303
16900
 
16901
+ selectors?: ({
16902
+
16903
+ kind: "attribute"
16904
+
16905
+ match?: ({
16906
+
16907
+ type: "strings"
16908
+ } | {
16909
+
16910
+ path?: string
16911
+
16912
+ type: "objectKeys"
16913
+ } | {
16914
+
16915
+ path?: string
16916
+
16917
+ type: "objectValues"
16918
+ })[]
16919
+
16920
+ name: string
16921
+ } | ({
16922
+
16923
+ callTarget?: ("all" | "first" | "last" | number)
16924
+
16925
+ kind: "callee"
16926
+
16927
+ match?: ({
16928
+
16929
+ type: "strings"
16930
+ } | {
16931
+
16932
+ path?: string
16933
+
16934
+ type: "objectKeys"
16935
+ } | {
16936
+
16937
+ path?: string
16938
+
16939
+ type: "objectValues"
16940
+ })[]
16941
+
16942
+ name: string
16943
+
16944
+ path?: string
16945
+ } | {
16946
+
16947
+ callTarget?: ("all" | "first" | "last" | number)
16948
+
16949
+ kind: "callee"
16950
+
16951
+ match?: ({
16952
+
16953
+ type: "strings"
16954
+ } | {
16955
+
16956
+ path?: string
16957
+
16958
+ type: "objectKeys"
16959
+ } | {
16960
+
16961
+ path?: string
16962
+
16963
+ type: "objectValues"
16964
+ })[]
16965
+
16966
+ name?: string
16967
+
16968
+ path: string
16969
+ }) | {
16970
+
16971
+ kind: "tag"
16972
+
16973
+ match?: ({
16974
+
16975
+ type: "strings"
16976
+ } | {
16977
+
16978
+ path?: string
16979
+
16980
+ type: "objectKeys"
16981
+ } | {
16982
+
16983
+ path?: string
16984
+
16985
+ type: "objectValues"
16986
+ })[]
16987
+
16988
+ name: string
16989
+ } | {
16990
+
16991
+ kind: "variable"
16992
+
16993
+ match?: ({
16994
+
16995
+ type: "strings"
16996
+ } | {
16997
+
16998
+ path?: string
16999
+
17000
+ type: "objectKeys"
17001
+ } | {
17002
+
17003
+ path?: string
17004
+
17005
+ type: "objectValues"
17006
+ })[]
17007
+
17008
+ name: string
17009
+ })[]
17010
+
16304
17011
  callees?: ([string, ({
16305
17012
 
16306
17013
  match: "strings"
@@ -16376,6 +17083,116 @@ type TailwindcssEnforceShorthandClasses = []|[{
16376
17083
  // ----- tailwindcss/no-conflicting-classes -----
16377
17084
  type TailwindcssNoConflictingClasses = []|[{
16378
17085
 
17086
+ selectors?: ({
17087
+
17088
+ kind: "attribute"
17089
+
17090
+ match?: ({
17091
+
17092
+ type: "strings"
17093
+ } | {
17094
+
17095
+ path?: string
17096
+
17097
+ type: "objectKeys"
17098
+ } | {
17099
+
17100
+ path?: string
17101
+
17102
+ type: "objectValues"
17103
+ })[]
17104
+
17105
+ name: string
17106
+ } | ({
17107
+
17108
+ callTarget?: ("all" | "first" | "last" | number)
17109
+
17110
+ kind: "callee"
17111
+
17112
+ match?: ({
17113
+
17114
+ type: "strings"
17115
+ } | {
17116
+
17117
+ path?: string
17118
+
17119
+ type: "objectKeys"
17120
+ } | {
17121
+
17122
+ path?: string
17123
+
17124
+ type: "objectValues"
17125
+ })[]
17126
+
17127
+ name: string
17128
+
17129
+ path?: string
17130
+ } | {
17131
+
17132
+ callTarget?: ("all" | "first" | "last" | number)
17133
+
17134
+ kind: "callee"
17135
+
17136
+ match?: ({
17137
+
17138
+ type: "strings"
17139
+ } | {
17140
+
17141
+ path?: string
17142
+
17143
+ type: "objectKeys"
17144
+ } | {
17145
+
17146
+ path?: string
17147
+
17148
+ type: "objectValues"
17149
+ })[]
17150
+
17151
+ name?: string
17152
+
17153
+ path: string
17154
+ }) | {
17155
+
17156
+ kind: "tag"
17157
+
17158
+ match?: ({
17159
+
17160
+ type: "strings"
17161
+ } | {
17162
+
17163
+ path?: string
17164
+
17165
+ type: "objectKeys"
17166
+ } | {
17167
+
17168
+ path?: string
17169
+
17170
+ type: "objectValues"
17171
+ })[]
17172
+
17173
+ name: string
17174
+ } | {
17175
+
17176
+ kind: "variable"
17177
+
17178
+ match?: ({
17179
+
17180
+ type: "strings"
17181
+ } | {
17182
+
17183
+ path?: string
17184
+
17185
+ type: "objectKeys"
17186
+ } | {
17187
+
17188
+ path?: string
17189
+
17190
+ type: "objectValues"
17191
+ })[]
17192
+
17193
+ name: string
17194
+ })[]
17195
+
16379
17196
  callees?: ([string, ({
16380
17197
 
16381
17198
  match: "strings"
@@ -16451,6 +17268,116 @@ type TailwindcssNoConflictingClasses = []|[{
16451
17268
  // ----- tailwindcss/no-deprecated-classes -----
16452
17269
  type TailwindcssNoDeprecatedClasses = []|[{
16453
17270
 
17271
+ selectors?: ({
17272
+
17273
+ kind: "attribute"
17274
+
17275
+ match?: ({
17276
+
17277
+ type: "strings"
17278
+ } | {
17279
+
17280
+ path?: string
17281
+
17282
+ type: "objectKeys"
17283
+ } | {
17284
+
17285
+ path?: string
17286
+
17287
+ type: "objectValues"
17288
+ })[]
17289
+
17290
+ name: string
17291
+ } | ({
17292
+
17293
+ callTarget?: ("all" | "first" | "last" | number)
17294
+
17295
+ kind: "callee"
17296
+
17297
+ match?: ({
17298
+
17299
+ type: "strings"
17300
+ } | {
17301
+
17302
+ path?: string
17303
+
17304
+ type: "objectKeys"
17305
+ } | {
17306
+
17307
+ path?: string
17308
+
17309
+ type: "objectValues"
17310
+ })[]
17311
+
17312
+ name: string
17313
+
17314
+ path?: string
17315
+ } | {
17316
+
17317
+ callTarget?: ("all" | "first" | "last" | number)
17318
+
17319
+ kind: "callee"
17320
+
17321
+ match?: ({
17322
+
17323
+ type: "strings"
17324
+ } | {
17325
+
17326
+ path?: string
17327
+
17328
+ type: "objectKeys"
17329
+ } | {
17330
+
17331
+ path?: string
17332
+
17333
+ type: "objectValues"
17334
+ })[]
17335
+
17336
+ name?: string
17337
+
17338
+ path: string
17339
+ }) | {
17340
+
17341
+ kind: "tag"
17342
+
17343
+ match?: ({
17344
+
17345
+ type: "strings"
17346
+ } | {
17347
+
17348
+ path?: string
17349
+
17350
+ type: "objectKeys"
17351
+ } | {
17352
+
17353
+ path?: string
17354
+
17355
+ type: "objectValues"
17356
+ })[]
17357
+
17358
+ name: string
17359
+ } | {
17360
+
17361
+ kind: "variable"
17362
+
17363
+ match?: ({
17364
+
17365
+ type: "strings"
17366
+ } | {
17367
+
17368
+ path?: string
17369
+
17370
+ type: "objectKeys"
17371
+ } | {
17372
+
17373
+ path?: string
17374
+
17375
+ type: "objectValues"
17376
+ })[]
17377
+
17378
+ name: string
17379
+ })[]
17380
+
16454
17381
  callees?: ([string, ({
16455
17382
 
16456
17383
  match: "strings"
@@ -16526,6 +17453,116 @@ type TailwindcssNoDeprecatedClasses = []|[{
16526
17453
  // ----- tailwindcss/no-duplicate-classes -----
16527
17454
  type TailwindcssNoDuplicateClasses = []|[{
16528
17455
 
17456
+ selectors?: ({
17457
+
17458
+ kind: "attribute"
17459
+
17460
+ match?: ({
17461
+
17462
+ type: "strings"
17463
+ } | {
17464
+
17465
+ path?: string
17466
+
17467
+ type: "objectKeys"
17468
+ } | {
17469
+
17470
+ path?: string
17471
+
17472
+ type: "objectValues"
17473
+ })[]
17474
+
17475
+ name: string
17476
+ } | ({
17477
+
17478
+ callTarget?: ("all" | "first" | "last" | number)
17479
+
17480
+ kind: "callee"
17481
+
17482
+ match?: ({
17483
+
17484
+ type: "strings"
17485
+ } | {
17486
+
17487
+ path?: string
17488
+
17489
+ type: "objectKeys"
17490
+ } | {
17491
+
17492
+ path?: string
17493
+
17494
+ type: "objectValues"
17495
+ })[]
17496
+
17497
+ name: string
17498
+
17499
+ path?: string
17500
+ } | {
17501
+
17502
+ callTarget?: ("all" | "first" | "last" | number)
17503
+
17504
+ kind: "callee"
17505
+
17506
+ match?: ({
17507
+
17508
+ type: "strings"
17509
+ } | {
17510
+
17511
+ path?: string
17512
+
17513
+ type: "objectKeys"
17514
+ } | {
17515
+
17516
+ path?: string
17517
+
17518
+ type: "objectValues"
17519
+ })[]
17520
+
17521
+ name?: string
17522
+
17523
+ path: string
17524
+ }) | {
17525
+
17526
+ kind: "tag"
17527
+
17528
+ match?: ({
17529
+
17530
+ type: "strings"
17531
+ } | {
17532
+
17533
+ path?: string
17534
+
17535
+ type: "objectKeys"
17536
+ } | {
17537
+
17538
+ path?: string
17539
+
17540
+ type: "objectValues"
17541
+ })[]
17542
+
17543
+ name: string
17544
+ } | {
17545
+
17546
+ kind: "variable"
17547
+
17548
+ match?: ({
17549
+
17550
+ type: "strings"
17551
+ } | {
17552
+
17553
+ path?: string
17554
+
17555
+ type: "objectKeys"
17556
+ } | {
17557
+
17558
+ path?: string
17559
+
17560
+ type: "objectValues"
17561
+ })[]
17562
+
17563
+ name: string
17564
+ })[]
17565
+
16529
17566
  callees?: ([string, ({
16530
17567
 
16531
17568
  match: "strings"
@@ -16601,6 +17638,116 @@ type TailwindcssNoDuplicateClasses = []|[{
16601
17638
  // ----- tailwindcss/no-restricted-classes -----
16602
17639
  type TailwindcssNoRestrictedClasses = []|[{
16603
17640
 
17641
+ selectors?: ({
17642
+
17643
+ kind: "attribute"
17644
+
17645
+ match?: ({
17646
+
17647
+ type: "strings"
17648
+ } | {
17649
+
17650
+ path?: string
17651
+
17652
+ type: "objectKeys"
17653
+ } | {
17654
+
17655
+ path?: string
17656
+
17657
+ type: "objectValues"
17658
+ })[]
17659
+
17660
+ name: string
17661
+ } | ({
17662
+
17663
+ callTarget?: ("all" | "first" | "last" | number)
17664
+
17665
+ kind: "callee"
17666
+
17667
+ match?: ({
17668
+
17669
+ type: "strings"
17670
+ } | {
17671
+
17672
+ path?: string
17673
+
17674
+ type: "objectKeys"
17675
+ } | {
17676
+
17677
+ path?: string
17678
+
17679
+ type: "objectValues"
17680
+ })[]
17681
+
17682
+ name: string
17683
+
17684
+ path?: string
17685
+ } | {
17686
+
17687
+ callTarget?: ("all" | "first" | "last" | number)
17688
+
17689
+ kind: "callee"
17690
+
17691
+ match?: ({
17692
+
17693
+ type: "strings"
17694
+ } | {
17695
+
17696
+ path?: string
17697
+
17698
+ type: "objectKeys"
17699
+ } | {
17700
+
17701
+ path?: string
17702
+
17703
+ type: "objectValues"
17704
+ })[]
17705
+
17706
+ name?: string
17707
+
17708
+ path: string
17709
+ }) | {
17710
+
17711
+ kind: "tag"
17712
+
17713
+ match?: ({
17714
+
17715
+ type: "strings"
17716
+ } | {
17717
+
17718
+ path?: string
17719
+
17720
+ type: "objectKeys"
17721
+ } | {
17722
+
17723
+ path?: string
17724
+
17725
+ type: "objectValues"
17726
+ })[]
17727
+
17728
+ name: string
17729
+ } | {
17730
+
17731
+ kind: "variable"
17732
+
17733
+ match?: ({
17734
+
17735
+ type: "strings"
17736
+ } | {
17737
+
17738
+ path?: string
17739
+
17740
+ type: "objectKeys"
17741
+ } | {
17742
+
17743
+ path?: string
17744
+
17745
+ type: "objectValues"
17746
+ })[]
17747
+
17748
+ name: string
17749
+ })[]
17750
+
16604
17751
  callees?: ([string, ({
16605
17752
 
16606
17753
  match: "strings"
@@ -16684,6 +17831,116 @@ type TailwindcssNoRestrictedClasses = []|[{
16684
17831
  // ----- tailwindcss/no-unknown-classes -----
16685
17832
  type TailwindcssNoUnknownClasses = []|[{
16686
17833
 
17834
+ selectors?: ({
17835
+
17836
+ kind: "attribute"
17837
+
17838
+ match?: ({
17839
+
17840
+ type: "strings"
17841
+ } | {
17842
+
17843
+ path?: string
17844
+
17845
+ type: "objectKeys"
17846
+ } | {
17847
+
17848
+ path?: string
17849
+
17850
+ type: "objectValues"
17851
+ })[]
17852
+
17853
+ name: string
17854
+ } | ({
17855
+
17856
+ callTarget?: ("all" | "first" | "last" | number)
17857
+
17858
+ kind: "callee"
17859
+
17860
+ match?: ({
17861
+
17862
+ type: "strings"
17863
+ } | {
17864
+
17865
+ path?: string
17866
+
17867
+ type: "objectKeys"
17868
+ } | {
17869
+
17870
+ path?: string
17871
+
17872
+ type: "objectValues"
17873
+ })[]
17874
+
17875
+ name: string
17876
+
17877
+ path?: string
17878
+ } | {
17879
+
17880
+ callTarget?: ("all" | "first" | "last" | number)
17881
+
17882
+ kind: "callee"
17883
+
17884
+ match?: ({
17885
+
17886
+ type: "strings"
17887
+ } | {
17888
+
17889
+ path?: string
17890
+
17891
+ type: "objectKeys"
17892
+ } | {
17893
+
17894
+ path?: string
17895
+
17896
+ type: "objectValues"
17897
+ })[]
17898
+
17899
+ name?: string
17900
+
17901
+ path: string
17902
+ }) | {
17903
+
17904
+ kind: "tag"
17905
+
17906
+ match?: ({
17907
+
17908
+ type: "strings"
17909
+ } | {
17910
+
17911
+ path?: string
17912
+
17913
+ type: "objectKeys"
17914
+ } | {
17915
+
17916
+ path?: string
17917
+
17918
+ type: "objectValues"
17919
+ })[]
17920
+
17921
+ name: string
17922
+ } | {
17923
+
17924
+ kind: "variable"
17925
+
17926
+ match?: ({
17927
+
17928
+ type: "strings"
17929
+ } | {
17930
+
17931
+ path?: string
17932
+
17933
+ type: "objectKeys"
17934
+ } | {
17935
+
17936
+ path?: string
17937
+
17938
+ type: "objectValues"
17939
+ })[]
17940
+
17941
+ name: string
17942
+ })[]
17943
+
16687
17944
  callees?: ([string, ({
16688
17945
 
16689
17946
  match: "strings"
@@ -16761,6 +18018,116 @@ type TailwindcssNoUnknownClasses = []|[{
16761
18018
  // ----- tailwindcss/no-unnecessary-whitespace -----
16762
18019
  type TailwindcssNoUnnecessaryWhitespace = []|[{
16763
18020
 
18021
+ selectors?: ({
18022
+
18023
+ kind: "attribute"
18024
+
18025
+ match?: ({
18026
+
18027
+ type: "strings"
18028
+ } | {
18029
+
18030
+ path?: string
18031
+
18032
+ type: "objectKeys"
18033
+ } | {
18034
+
18035
+ path?: string
18036
+
18037
+ type: "objectValues"
18038
+ })[]
18039
+
18040
+ name: string
18041
+ } | ({
18042
+
18043
+ callTarget?: ("all" | "first" | "last" | number)
18044
+
18045
+ kind: "callee"
18046
+
18047
+ match?: ({
18048
+
18049
+ type: "strings"
18050
+ } | {
18051
+
18052
+ path?: string
18053
+
18054
+ type: "objectKeys"
18055
+ } | {
18056
+
18057
+ path?: string
18058
+
18059
+ type: "objectValues"
18060
+ })[]
18061
+
18062
+ name: string
18063
+
18064
+ path?: string
18065
+ } | {
18066
+
18067
+ callTarget?: ("all" | "first" | "last" | number)
18068
+
18069
+ kind: "callee"
18070
+
18071
+ match?: ({
18072
+
18073
+ type: "strings"
18074
+ } | {
18075
+
18076
+ path?: string
18077
+
18078
+ type: "objectKeys"
18079
+ } | {
18080
+
18081
+ path?: string
18082
+
18083
+ type: "objectValues"
18084
+ })[]
18085
+
18086
+ name?: string
18087
+
18088
+ path: string
18089
+ }) | {
18090
+
18091
+ kind: "tag"
18092
+
18093
+ match?: ({
18094
+
18095
+ type: "strings"
18096
+ } | {
18097
+
18098
+ path?: string
18099
+
18100
+ type: "objectKeys"
18101
+ } | {
18102
+
18103
+ path?: string
18104
+
18105
+ type: "objectValues"
18106
+ })[]
18107
+
18108
+ name: string
18109
+ } | {
18110
+
18111
+ kind: "variable"
18112
+
18113
+ match?: ({
18114
+
18115
+ type: "strings"
18116
+ } | {
18117
+
18118
+ path?: string
18119
+
18120
+ type: "objectKeys"
18121
+ } | {
18122
+
18123
+ path?: string
18124
+
18125
+ type: "objectValues"
18126
+ })[]
18127
+
18128
+ name: string
18129
+ })[]
18130
+
16764
18131
  callees?: ([string, ({
16765
18132
 
16766
18133
  match: "strings"
@@ -17023,6 +18390,15 @@ interface _UnicornImportStyle_ModuleStyles {
17023
18390
  interface _UnicornImportStyle_BooleanObject {
17024
18391
  [k: string]: boolean | undefined
17025
18392
  }
18393
+ // ----- unicorn/isolated-functions -----
18394
+ type UnicornIsolatedFunctions = []|[{
18395
+ overrideGlobals?: {
18396
+ [k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined
18397
+ }
18398
+ functions?: string[]
18399
+ selectors?: string[]
18400
+ comments?: string[]
18401
+ }]
17026
18402
  // ----- unicorn/no-array-reduce -----
17027
18403
  type UnicornNoArrayReduce = []|[{
17028
18404
  allowSimpleOperations?: boolean