@jimmy.codes/eslint-config 5.20.0 → 6.0.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.
package/dist/index.d.ts CHANGED
@@ -6421,670 +6421,690 @@ interface RuleOptions {
6421
6421
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
6422
6422
  /**
6423
6423
  * Improve regexes by making them shorter, consistent, and safer.
6424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
6424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
6425
6425
  */
6426
6426
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
6427
6427
  /**
6428
6428
  * Enforce a specific parameter name in catch clauses.
6429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
6429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
6430
6430
  */
6431
6431
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
6432
6432
  /**
6433
6433
  * Enforce consistent assertion style with `node:assert`.
6434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
6434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
6435
6435
  */
6436
6436
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
6437
6437
  /**
6438
6438
  * Prefer passing `Date` directly to the constructor when cloning.
6439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
6439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
6440
6440
  */
6441
6441
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
6442
6442
  /**
6443
6443
  * Use destructured variables over properties.
6444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
6444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
6445
6445
  */
6446
6446
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
6447
6447
  /**
6448
6448
  * Prefer consistent types when spreading a ternary in an array literal.
6449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
6449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
6450
6450
  */
6451
6451
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
6452
6452
  /**
6453
6453
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
6454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
6455
6455
  */
6456
6456
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
6457
6457
  /**
6458
6458
  * Move function definitions to the highest possible scope.
6459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
6459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
6460
6460
  */
6461
6461
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
6462
6462
  /**
6463
6463
  * Enforce correct `Error` subclassing.
6464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
6464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
6465
6465
  */
6466
6466
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
6467
6467
  /**
6468
6468
  * Enforce no spaces between braces.
6469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
6469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
6470
6470
  */
6471
6471
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
6472
6472
  /**
6473
6473
  * Enforce passing a `message` value when creating a built-in error.
6474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
6474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
6475
6475
  */
6476
6476
  'unicorn/error-message'?: Linter.RuleEntry<[]>
6477
6477
  /**
6478
6478
  * Require escape sequences to use uppercase or lowercase values.
6479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
6479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
6480
6480
  */
6481
6481
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
6482
6482
  /**
6483
6483
  * Add expiration conditions to TODO comments.
6484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
6484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
6485
6485
  */
6486
6486
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
6487
6487
  /**
6488
6488
  * Enforce explicitly comparing the `length` or `size` property of a value.
6489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
6489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
6490
6490
  */
6491
6491
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
6492
6492
  /**
6493
6493
  * Enforce a case style for filenames.
6494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
6494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
6495
6495
  */
6496
6496
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
6497
6497
  /**
6498
6498
  * Enforce specific import styles per module.
6499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
6499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
6500
6500
  */
6501
6501
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
6502
6502
  /**
6503
6503
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
6504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
6505
6505
  */
6506
6506
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
6507
6507
  /**
6508
6508
  * Enforce specifying rules to disable in `eslint-disable` comments.
6509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
6509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
6510
6510
  */
6511
6511
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6512
6512
  /**
6513
6513
  * Disallow recursive access to `this` within getters and setters.
6514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
6514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
6515
6515
  */
6516
6516
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6517
6517
  /**
6518
6518
  * Disallow anonymous functions and classes as the default export.
6519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
6519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
6520
6520
  */
6521
6521
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6522
6522
  /**
6523
6523
  * Prevent passing a function reference directly to iterator methods.
6524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
6524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
6525
6525
  */
6526
6526
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6527
6527
  /**
6528
6528
  * Prefer `for…of` over the `forEach` method.
6529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
6529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
6530
6530
  */
6531
6531
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6532
6532
  /**
6533
6533
  * Disallow using the `this` argument in array methods.
6534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
6534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
6535
6535
  */
6536
6536
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6537
6537
  /**
6538
6538
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
6539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
6540
6540
  * @deprecated
6541
6541
  */
6542
6542
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
6543
6543
  /**
6544
6544
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
6546
6546
  */
6547
6547
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6548
+ /**
6549
+ * Prefer `Array#toReversed()` over `Array#reverse()`.
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
6551
+ */
6552
+ 'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
6548
6553
  /**
6549
6554
  * Disallow member access from await expression.
6550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
6551
6556
  */
6552
6557
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6553
6558
  /**
6554
6559
  * Disallow using `await` in `Promise` method parameters.
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
6556
6561
  */
6557
6562
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6558
6563
  /**
6559
6564
  * Do not use leading/trailing space between `console.log` parameters.
6560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
6561
6566
  */
6562
6567
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6563
6568
  /**
6564
6569
  * Do not use `document.cookie` directly.
6565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
6566
6571
  */
6567
6572
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6568
6573
  /**
6569
6574
  * Disallow empty files.
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
6571
6576
  */
6572
6577
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6573
6578
  /**
6574
6579
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
6576
6581
  */
6577
6582
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6578
6583
  /**
6579
6584
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
6581
6586
  */
6582
6587
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6583
6588
  /**
6584
6589
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
6586
6591
  * @deprecated
6587
6592
  */
6588
6593
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6589
6594
  /**
6590
6595
  * Disallow `instanceof` with built-in objects
6591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
6596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
6592
6597
  */
6593
6598
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6594
6599
  /**
6595
6600
  * Disallow invalid options in `fetch()` and `new Request()`.
6596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
6601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
6597
6602
  */
6598
6603
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6599
6604
  /**
6600
6605
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
6606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
6602
6607
  */
6603
6608
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6604
6609
  /**
6605
6610
  * Disallow identifiers starting with `new` or `class`.
6606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
6611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
6607
6612
  */
6608
6613
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6609
6614
  /**
6610
6615
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
6616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6612
6617
  * @deprecated
6613
6618
  */
6614
6619
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6615
6620
  /**
6616
6621
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
6622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
6618
6623
  */
6619
6624
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6620
6625
  /**
6621
6626
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
6627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
6623
6628
  */
6624
6629
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6625
6630
  /**
6626
6631
  * Disallow named usage of default import and export.
6627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
6632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
6628
6633
  */
6629
6634
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6630
6635
  /**
6631
6636
  * Disallow negated conditions.
6632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
6637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
6633
6638
  */
6634
6639
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6635
6640
  /**
6636
6641
  * Disallow negated expression in equality check.
6637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
6642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
6638
6643
  */
6639
6644
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6640
6645
  /**
6641
6646
  * Disallow nested ternary expressions.
6642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
6647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
6643
6648
  */
6644
6649
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6645
6650
  /**
6646
6651
  * Disallow `new Array()`.
6647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
6652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
6648
6653
  */
6649
6654
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6650
6655
  /**
6651
6656
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
6657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
6653
6658
  */
6654
6659
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6655
6660
  /**
6656
6661
  * Disallow the use of the `null` literal.
6657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
6662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
6658
6663
  */
6659
6664
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6660
6665
  /**
6661
6666
  * Disallow the use of objects as default parameters.
6662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
6667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
6663
6668
  */
6664
6669
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6665
6670
  /**
6666
6671
  * Disallow `process.exit()`.
6667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
6672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
6668
6673
  */
6669
6674
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6670
6675
  /**
6671
6676
  * Disallow passing single-element arrays to `Promise` methods.
6672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
6677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
6673
6678
  */
6674
6679
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6675
6680
  /**
6676
6681
  * Disallow classes that only have static members.
6677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
6682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
6678
6683
  */
6679
6684
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6680
6685
  /**
6681
6686
  * Disallow `then` property.
6682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
6687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
6683
6688
  */
6684
6689
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6685
6690
  /**
6686
6691
  * Disallow assigning `this` to a variable.
6687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
6692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
6688
6693
  */
6689
6694
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6690
6695
  /**
6691
6696
  * Disallow comparing `undefined` using `typeof`.
6692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
6697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
6693
6698
  */
6694
6699
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6695
6700
  /**
6696
6701
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6698
6703
  */
6699
6704
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6700
6705
  /**
6701
6706
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
6707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
6703
6708
  */
6704
6709
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
6705
6710
  /**
6706
6711
  * Disallow awaiting non-promise values.
6707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
6712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
6708
6713
  */
6709
6714
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6710
6715
  /**
6711
6716
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
6717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
6713
6718
  */
6714
6719
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6715
6720
  /**
6716
6721
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
6722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
6718
6723
  */
6719
6724
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
6720
6725
  /**
6721
6726
  * Disallow unreadable array destructuring.
6722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
6727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
6723
6728
  */
6724
6729
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6725
6730
  /**
6726
6731
  * Disallow unreadable IIFEs.
6727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
6732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
6728
6733
  */
6729
6734
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6730
6735
  /**
6731
6736
  * Disallow unused object properties.
6732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
6737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
6733
6738
  */
6734
6739
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6740
+ /**
6741
+ * Disallow unnecessary `Error.captureStackTrace(…)`.
6742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6743
+ */
6744
+ 'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
6735
6745
  /**
6736
6746
  * Disallow useless fallback when spreading in object literals.
6737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
6747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
6738
6748
  */
6739
6749
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6740
6750
  /**
6741
6751
  * Disallow useless array length check.
6742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
6752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
6743
6753
  */
6744
6754
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6745
6755
  /**
6746
6756
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
6757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
6748
6758
  */
6749
6759
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6750
6760
  /**
6751
6761
  * Disallow unnecessary spread.
6752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
6762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
6753
6763
  */
6754
6764
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6755
6765
  /**
6756
6766
  * Disallow useless case in switch statements.
6757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
6767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
6758
6768
  */
6759
6769
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6760
6770
  /**
6761
6771
  * Disallow useless `undefined`.
6762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
6772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
6763
6773
  */
6764
6774
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6765
6775
  /**
6766
6776
  * Disallow number literals with zero fractions or dangling dots.
6767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
6777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
6768
6778
  */
6769
6779
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6770
6780
  /**
6771
6781
  * Enforce proper case for numeric literals.
6772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
6782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
6773
6783
  */
6774
6784
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6775
6785
  /**
6776
6786
  * Enforce the style of numeric separators by correctly grouping digits.
6777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
6787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
6778
6788
  */
6779
6789
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6780
6790
  /**
6781
6791
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
6792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
6783
6793
  */
6784
6794
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6785
6795
  /**
6786
6796
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
6797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
6788
6798
  */
6789
6799
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6790
6800
  /**
6791
6801
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
6802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
6793
6803
  */
6794
6804
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6795
6805
  /**
6796
6806
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
6807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
6798
6808
  */
6799
6809
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6800
6810
  /**
6801
6811
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
6812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
6803
6813
  */
6804
6814
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6805
6815
  /**
6806
6816
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
6817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
6808
6818
  */
6809
6819
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6810
6820
  /**
6811
6821
  * Prefer `.at()` method for index access and `String#charAt()`.
6812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
6822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
6813
6823
  */
6814
6824
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6815
6825
  /**
6816
6826
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
6827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
6818
6828
  */
6819
6829
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6830
+ /**
6831
+ * Prefer class field declarations over `this` assignments in constructors.
6832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
6833
+ */
6834
+ 'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
6820
6835
  /**
6821
6836
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
6837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
6823
6838
  */
6824
6839
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6825
6840
  /**
6826
6841
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
6842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
6828
6843
  */
6829
6844
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6830
6845
  /**
6831
6846
  * Prefer default parameters over reassignment.
6832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
6847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
6833
6848
  */
6834
6849
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6835
6850
  /**
6836
6851
  * Prefer `Node#append()` over `Node#appendChild()`.
6837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
6852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
6838
6853
  */
6839
6854
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6840
6855
  /**
6841
6856
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
6857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
6843
6858
  */
6844
6859
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6845
6860
  /**
6846
6861
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
6862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
6848
6863
  */
6849
6864
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6850
6865
  /**
6851
6866
  * Prefer `.textContent` over `.innerText`.
6852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
6867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
6853
6868
  */
6854
6869
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6855
6870
  /**
6856
6871
  * Prefer `EventTarget` over `EventEmitter`.
6857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
6872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
6858
6873
  */
6859
6874
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6860
6875
  /**
6861
6876
  * Prefer `export…from` when re-exporting.
6862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
6877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
6863
6878
  */
6864
6879
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6865
6880
  /**
6866
6881
  * Prefer `globalThis` over `window`, `self`, and `global`.
6867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
6882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
6868
6883
  */
6869
6884
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6870
6885
  /**
6871
6886
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
6887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
6873
6888
  */
6874
6889
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6875
6890
  /**
6876
6891
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
6892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
6878
6893
  */
6879
6894
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6880
6895
  /**
6881
6896
  * Prefer reading a JSON file as a buffer.
6882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
6897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
6883
6898
  */
6884
6899
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6885
6900
  /**
6886
6901
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
6902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
6888
6903
  */
6889
6904
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6890
6905
  /**
6891
6906
  * Prefer using a logical operator over a ternary.
6892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6893
6908
  */
6894
6909
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6895
6910
  /**
6896
6911
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
6912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
6898
6913
  */
6899
6914
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6900
6915
  /**
6901
6916
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
6917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
6903
6918
  */
6904
6919
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6905
6920
  /**
6906
6921
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
6922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
6908
6923
  */
6909
6924
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6910
6925
  /**
6911
6926
  * Prefer modern `Math` APIs over legacy patterns.
6912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
6927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
6913
6928
  */
6914
6929
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6915
6930
  /**
6916
6931
  * Prefer JavaScript modules (ESM) over CommonJS.
6917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
6932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
6918
6933
  */
6919
6934
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6920
6935
  /**
6921
6936
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
6937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
6923
6938
  */
6924
6939
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6925
6940
  /**
6926
6941
  * Prefer negative index over `.length - index` when possible.
6927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
6942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
6928
6943
  */
6929
6944
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6930
6945
  /**
6931
6946
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
6947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
6933
6948
  */
6934
6949
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6935
6950
  /**
6936
6951
  * Prefer `Number` static properties over global ones.
6937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
6952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
6938
6953
  */
6939
6954
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6940
6955
  /**
6941
6956
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
6957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
6943
6958
  */
6944
6959
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6945
6960
  /**
6946
6961
  * Prefer omitting the `catch` binding parameter.
6947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
6962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
6948
6963
  */
6949
6964
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6950
6965
  /**
6951
6966
  * Prefer borrowing methods from the prototype instead of the instance.
6952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
6967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
6953
6968
  */
6954
6969
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6955
6970
  /**
6956
6971
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
6972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
6958
6973
  */
6959
6974
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6960
6975
  /**
6961
6976
  * Prefer `Reflect.apply()` over `Function#apply()`.
6962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
6977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
6963
6978
  */
6964
6979
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6965
6980
  /**
6966
6981
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
6982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
6968
6983
  */
6969
6984
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6970
6985
  /**
6971
6986
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
6987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
6973
6988
  */
6974
6989
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6975
6990
  /**
6976
6991
  * Prefer using `Set#size` instead of `Array#length`.
6977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
6992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
6978
6993
  */
6979
6994
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6980
6995
  /**
6981
6996
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
6997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
6983
6998
  */
6984
6999
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6985
7000
  /**
6986
7001
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
7002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
6988
7003
  */
6989
7004
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6990
7005
  /**
6991
7006
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
7007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
6993
7008
  */
6994
7009
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6995
7010
  /**
6996
7011
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
7012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
6998
7013
  */
6999
7014
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
7000
7015
  /**
7001
7016
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
7017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
7003
7018
  */
7004
7019
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
7005
7020
  /**
7006
7021
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
7022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
7008
7023
  */
7009
7024
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
7010
7025
  /**
7011
7026
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
7027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
7013
7028
  */
7014
7029
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
7015
7030
  /**
7016
7031
  * Prefer using `structuredClone` to create a deep clone.
7017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
7032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
7018
7033
  */
7019
7034
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
7020
7035
  /**
7021
7036
  * Prefer `switch` over multiple `else-if`.
7022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
7037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
7023
7038
  */
7024
7039
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
7025
7040
  /**
7026
7041
  * Prefer ternary expressions over simple `if-else` statements.
7027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
7042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
7028
7043
  */
7029
7044
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
7030
7045
  /**
7031
7046
  * Prefer top-level await over top-level promises and async function calls.
7032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
7047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
7033
7048
  */
7034
7049
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
7035
7050
  /**
7036
7051
  * Enforce throwing `TypeError` in type checking conditions.
7037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
7052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
7038
7053
  */
7039
7054
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
7040
7055
  /**
7041
7056
  * Prevent abbreviations.
7042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
7057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
7043
7058
  */
7044
7059
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7045
7060
  /**
7046
7061
  * Enforce consistent relative URL style.
7047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
7062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
7048
7063
  */
7049
7064
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7050
7065
  /**
7051
7066
  * Enforce using the separator argument with `Array#join()`.
7052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
7067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
7053
7068
  */
7054
7069
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7070
+ /**
7071
+ * Require non-empty specifier list in import and export statements.
7072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
7073
+ */
7074
+ 'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
7055
7075
  /**
7056
7076
  * Enforce using the digits argument with `Number#toFixed()`.
7057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
7077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7058
7078
  */
7059
7079
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7060
7080
  /**
7061
7081
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
7082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
7063
7083
  */
7064
7084
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7065
7085
  /**
7066
7086
  * Enforce better string content.
7067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
7087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
7068
7088
  */
7069
7089
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7070
7090
  /**
7071
7091
  * Enforce consistent brace style for `case` clauses.
7072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
7092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
7073
7093
  */
7074
7094
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7075
7095
  /**
7076
7096
  * Fix whitespace-insensitive template indentation.
7077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
7097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
7078
7098
  */
7079
7099
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7080
7100
  /**
7081
7101
  * Enforce consistent case for text encoding identifiers.
7082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
7102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
7083
7103
  */
7084
7104
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7085
7105
  /**
7086
7106
  * Require `new` when creating an error.
7087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
7107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
7088
7108
  */
7089
7109
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7090
7110
  /**
@@ -9630,7 +9650,6 @@ type TypescriptEslintPreferDestructuring = []|[({
9630
9650
  enforceForDeclarationWithTypeAnnotation?: boolean
9631
9651
 
9632
9652
  enforceForRenamedProperties?: boolean
9633
- [k: string]: unknown | undefined
9634
9653
  }]
9635
9654
  // ----- @typescript-eslint/prefer-literal-enum-member -----
9636
9655
  type TypescriptEslintPreferLiteralEnumMember = []|[{
@@ -9659,7 +9678,6 @@ type TypescriptEslintPreferNullishCoalescing = []|[{
9659
9678
  number?: boolean
9660
9679
 
9661
9680
  string?: boolean
9662
- [k: string]: unknown | undefined
9663
9681
  } | true)
9664
9682
 
9665
9683
  ignoreTernaryTests?: boolean
@@ -16067,6 +16085,10 @@ interface _UnicornImportStyle_BooleanObject {
16067
16085
  type UnicornNoArrayReduce = []|[{
16068
16086
  allowSimpleOperations?: boolean
16069
16087
  }]
16088
+ // ----- unicorn/no-array-reverse -----
16089
+ type UnicornNoArrayReverse = []|[{
16090
+ allowExpressionStatement?: boolean
16091
+ }]
16070
16092
  // ----- unicorn/no-instanceof-builtins -----
16071
16093
  type UnicornNoInstanceofBuiltins = []|[{
16072
16094
  useErrorIsError?: boolean
@@ -16648,25 +16670,6 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
16648
16670
  "n/prefer-node-protocol": "error";
16649
16671
  "n/process-exit-as-throw": "error";
16650
16672
  };
16651
- } | {
16652
- name: string;
16653
- plugins: {
16654
- perfectionist: eslint.ESLint.Plugin;
16655
- };
16656
- rules: {
16657
- "perfectionist/sort-imports": ["error", {
16658
- customGroups: {
16659
- type: {};
16660
- value: {};
16661
- };
16662
- environment: "node";
16663
- groups: (string | string[])[];
16664
- internalPattern: string[];
16665
- order: "asc";
16666
- type: "natural";
16667
- }];
16668
- "perfectionist/sort-modules": "off";
16669
- };
16670
16673
  } | {
16671
16674
  name: string;
16672
16675
  rules: Record<string, 0 | "off">;
package/dist/index.js CHANGED
@@ -393,7 +393,6 @@ var perfectionistConfig = () => {
393
393
  {
394
394
  name: "jimmy.codes/perfectionist",
395
395
  plugins: {
396
- // TODO: remove unknown conversion
397
396
  perfectionist: perfectionist2
398
397
  },
399
398
  rules: perfectionistRules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "5.20.0",
3
+ "version": "6.0.0",
4
4
  "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -35,15 +35,15 @@
35
35
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
36
36
  "@eslint-react/eslint-plugin": "^1.52.3",
37
37
  "@eslint/js": "^9.31.0",
38
- "@next/eslint-plugin-next": "^15.4.1",
39
- "@stylistic/eslint-plugin": "^5.2.0",
38
+ "@next/eslint-plugin-next": "^15.4.2",
39
+ "@stylistic/eslint-plugin": "^5.2.1",
40
40
  "@tanstack/eslint-plugin-query": "^5.81.2",
41
41
  "@types/eslint": "9.6.1",
42
- "@typescript-eslint/parser": "^8.37.0",
43
- "@typescript-eslint/utils": "^8.37.0",
42
+ "@typescript-eslint/parser": "^8.38.0",
43
+ "@typescript-eslint/utils": "^8.38.0",
44
44
  "@vitest/eslint-plugin": "^1.3.4",
45
45
  "astro-eslint-parser": "^1.2.2",
46
- "eslint-config-prettier": "^10.1.5",
46
+ "eslint-config-prettier": "^10.1.8",
47
47
  "eslint-import-resolver-typescript": "^4.4.4",
48
48
  "eslint-plugin-astro": "^1.3.1",
49
49
  "eslint-plugin-import-x": "^4.16.1",
@@ -60,16 +60,16 @@
60
60
  "eslint-plugin-regexp": "^2.9.0",
61
61
  "eslint-plugin-storybook": "0.12.0",
62
62
  "eslint-plugin-testing-library": "^7.6.0",
63
- "eslint-plugin-unicorn": "^59.0.1",
63
+ "eslint-plugin-unicorn": "^60.0.0",
64
64
  "globals": "^16.3.0",
65
65
  "local-pkg": "^1.1.1",
66
- "typescript-eslint": "^8.37.0"
66
+ "typescript-eslint": "^8.38.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "eslint": "^9.10.0"
70
70
  },
71
71
  "engines": {
72
- "node": ">= 20"
72
+ "node": ">= 20.10.0"
73
73
  },
74
74
  "publishConfig": {
75
75
  "access": "public"