@rotki/eslint-config 4.2.1 → 4.4.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 +206 -155
  2. package/dist/index.js +430 -423
  3. package/package.json +12 -12
package/dist/index.d.ts CHANGED
@@ -4468,670 +4468,690 @@ interface RuleOptions {
4468
4468
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
4469
4469
  /**
4470
4470
  * Improve regexes by making them shorter, consistent, and safer.
4471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
4471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
4472
4472
  */
4473
4473
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
4474
4474
  /**
4475
4475
  * Enforce a specific parameter name in catch clauses.
4476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
4476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
4477
4477
  */
4478
4478
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
4479
4479
  /**
4480
4480
  * Enforce consistent assertion style with `node:assert`.
4481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
4481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
4482
4482
  */
4483
4483
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
4484
4484
  /**
4485
4485
  * Prefer passing `Date` directly to the constructor when cloning.
4486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
4486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
4487
4487
  */
4488
4488
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
4489
4489
  /**
4490
4490
  * Use destructured variables over properties.
4491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
4491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
4492
4492
  */
4493
4493
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
4494
4494
  /**
4495
4495
  * Prefer consistent types when spreading a ternary in an array literal.
4496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
4496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
4497
4497
  */
4498
4498
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
4499
4499
  /**
4500
4500
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
4501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
4502
4502
  */
4503
4503
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
4504
4504
  /**
4505
4505
  * Move function definitions to the highest possible scope.
4506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
4506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
4507
4507
  */
4508
4508
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4509
4509
  /**
4510
4510
  * Enforce correct `Error` subclassing.
4511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
4511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
4512
4512
  */
4513
4513
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
4514
4514
  /**
4515
4515
  * Enforce no spaces between braces.
4516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
4516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
4517
4517
  */
4518
4518
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
4519
4519
  /**
4520
4520
  * Enforce passing a `message` value when creating a built-in error.
4521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
4521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
4522
4522
  */
4523
4523
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
4524
4524
  /**
4525
4525
  * Require escape sequences to use uppercase or lowercase values.
4526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
4526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
4527
4527
  */
4528
4528
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
4529
4529
  /**
4530
4530
  * Add expiration conditions to TODO comments.
4531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
4531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
4532
4532
  */
4533
4533
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4534
4534
  /**
4535
4535
  * Enforce explicitly comparing the `length` or `size` property of a value.
4536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
4536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
4537
4537
  */
4538
4538
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4539
4539
  /**
4540
4540
  * Enforce a case style for filenames.
4541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
4541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
4542
4542
  */
4543
4543
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
4544
4544
  /**
4545
4545
  * Enforce specific import styles per module.
4546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
4546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
4547
4547
  */
4548
4548
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
4549
4549
  /**
4550
4550
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
4551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
4552
4552
  */
4553
4553
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
4554
4554
  /**
4555
4555
  * Enforce specifying rules to disable in `eslint-disable` comments.
4556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
4556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
4557
4557
  */
4558
4558
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
4559
4559
  /**
4560
4560
  * Disallow recursive access to `this` within getters and setters.
4561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
4561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
4562
4562
  */
4563
4563
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
4564
4564
  /**
4565
4565
  * Disallow anonymous functions and classes as the default export.
4566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
4566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
4567
4567
  */
4568
4568
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
4569
4569
  /**
4570
4570
  * Prevent passing a function reference directly to iterator methods.
4571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
4571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
4572
4572
  */
4573
4573
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
4574
4574
  /**
4575
4575
  * Prefer `for…of` over the `forEach` method.
4576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
4576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
4577
4577
  */
4578
4578
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
4579
4579
  /**
4580
4580
  * Disallow using the `this` argument in array methods.
4581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
4581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
4582
4582
  */
4583
4583
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
4584
4584
  /**
4585
4585
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
4586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
4587
4587
  * @deprecated
4588
4588
  */
4589
4589
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
4590
4590
  /**
4591
4591
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
4592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
4593
4593
  */
4594
4594
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
4595
+ /**
4596
+ * Prefer `Array#toReversed()` over `Array#reverse()`.
4597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
4598
+ */
4599
+ 'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
4595
4600
  /**
4596
4601
  * Disallow member access from await expression.
4597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
4602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
4598
4603
  */
4599
4604
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
4600
4605
  /**
4601
4606
  * Disallow using `await` in `Promise` method parameters.
4602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
4607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
4603
4608
  */
4604
4609
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
4605
4610
  /**
4606
4611
  * Do not use leading/trailing space between `console.log` parameters.
4607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
4612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
4608
4613
  */
4609
4614
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
4610
4615
  /**
4611
4616
  * Do not use `document.cookie` directly.
4612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
4617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
4613
4618
  */
4614
4619
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
4615
4620
  /**
4616
4621
  * Disallow empty files.
4617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
4622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
4618
4623
  */
4619
4624
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
4620
4625
  /**
4621
4626
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
4627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
4623
4628
  */
4624
4629
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
4625
4630
  /**
4626
4631
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
4632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
4628
4633
  */
4629
4634
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
4630
4635
  /**
4631
4636
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
4637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
4633
4638
  * @deprecated
4634
4639
  */
4635
4640
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
4636
4641
  /**
4637
4642
  * Disallow `instanceof` with built-in objects
4638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
4643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
4639
4644
  */
4640
4645
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4641
4646
  /**
4642
4647
  * Disallow invalid options in `fetch()` and `new Request()`.
4643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
4648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
4644
4649
  */
4645
4650
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
4646
4651
  /**
4647
4652
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
4653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
4649
4654
  */
4650
4655
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
4651
4656
  /**
4652
4657
  * Disallow identifiers starting with `new` or `class`.
4653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
4658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
4654
4659
  */
4655
4660
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4656
4661
  /**
4657
4662
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
4663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
4659
4664
  * @deprecated
4660
4665
  */
4661
4666
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
4662
4667
  /**
4663
4668
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
4669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
4665
4670
  */
4666
4671
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
4667
4672
  /**
4668
4673
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
4674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
4670
4675
  */
4671
4676
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
4672
4677
  /**
4673
4678
  * Disallow named usage of default import and export.
4674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
4679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
4675
4680
  */
4676
4681
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
4677
4682
  /**
4678
4683
  * Disallow negated conditions.
4679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
4684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
4680
4685
  */
4681
4686
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
4682
4687
  /**
4683
4688
  * Disallow negated expression in equality check.
4684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
4689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
4685
4690
  */
4686
4691
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
4687
4692
  /**
4688
4693
  * Disallow nested ternary expressions.
4689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
4694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
4690
4695
  */
4691
4696
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
4692
4697
  /**
4693
4698
  * Disallow `new Array()`.
4694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
4699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
4695
4700
  */
4696
4701
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
4697
4702
  /**
4698
4703
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
4704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
4700
4705
  */
4701
4706
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
4702
4707
  /**
4703
4708
  * Disallow the use of the `null` literal.
4704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
4709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
4705
4710
  */
4706
4711
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
4707
4712
  /**
4708
4713
  * Disallow the use of objects as default parameters.
4709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
4714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
4710
4715
  */
4711
4716
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
4712
4717
  /**
4713
4718
  * Disallow `process.exit()`.
4714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
4719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
4715
4720
  */
4716
4721
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
4717
4722
  /**
4718
4723
  * Disallow passing single-element arrays to `Promise` methods.
4719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
4724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
4720
4725
  */
4721
4726
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4722
4727
  /**
4723
4728
  * Disallow classes that only have static members.
4724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
4729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
4725
4730
  */
4726
4731
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4727
4732
  /**
4728
4733
  * Disallow `then` property.
4729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
4734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
4730
4735
  */
4731
4736
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4732
4737
  /**
4733
4738
  * Disallow assigning `this` to a variable.
4734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
4739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
4735
4740
  */
4736
4741
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4737
4742
  /**
4738
4743
  * Disallow comparing `undefined` using `typeof`.
4739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
4744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
4740
4745
  */
4741
4746
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4742
4747
  /**
4743
4748
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
4749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4745
4750
  */
4746
4751
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
4747
4752
  /**
4748
4753
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
4754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
4750
4755
  */
4751
4756
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
4752
4757
  /**
4753
4758
  * Disallow awaiting non-promise values.
4754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
4759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
4755
4760
  */
4756
4761
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
4757
4762
  /**
4758
4763
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
4764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
4760
4765
  */
4761
4766
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4762
4767
  /**
4763
4768
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
4769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
4765
4770
  */
4766
4771
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
4767
4772
  /**
4768
4773
  * Disallow unreadable array destructuring.
4769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
4774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
4770
4775
  */
4771
4776
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
4772
4777
  /**
4773
4778
  * Disallow unreadable IIFEs.
4774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
4779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
4775
4780
  */
4776
4781
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
4777
4782
  /**
4778
4783
  * Disallow unused object properties.
4779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
4784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
4780
4785
  */
4781
4786
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
4787
+ /**
4788
+ * Disallow unnecessary `Error.captureStackTrace(…)`.
4789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4790
+ */
4791
+ 'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
4782
4792
  /**
4783
4793
  * Disallow useless fallback when spreading in object literals.
4784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
4794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
4785
4795
  */
4786
4796
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
4787
4797
  /**
4788
4798
  * Disallow useless array length check.
4789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
4799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
4790
4800
  */
4791
4801
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
4792
4802
  /**
4793
4803
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
4804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
4795
4805
  */
4796
4806
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
4797
4807
  /**
4798
4808
  * Disallow unnecessary spread.
4799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
4809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
4800
4810
  */
4801
4811
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
4802
4812
  /**
4803
4813
  * Disallow useless case in switch statements.
4804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
4814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
4805
4815
  */
4806
4816
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
4807
4817
  /**
4808
4818
  * Disallow useless `undefined`.
4809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
4819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
4810
4820
  */
4811
4821
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4812
4822
  /**
4813
4823
  * Disallow number literals with zero fractions or dangling dots.
4814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
4824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
4815
4825
  */
4816
4826
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
4817
4827
  /**
4818
4828
  * Enforce proper case for numeric literals.
4819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
4829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
4820
4830
  */
4821
4831
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4822
4832
  /**
4823
4833
  * Enforce the style of numeric separators by correctly grouping digits.
4824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
4834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
4825
4835
  */
4826
4836
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4827
4837
  /**
4828
4838
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
4839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
4830
4840
  */
4831
4841
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4832
4842
  /**
4833
4843
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
4844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
4835
4845
  */
4836
4846
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
4837
4847
  /**
4838
4848
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
4849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
4840
4850
  */
4841
4851
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4842
4852
  /**
4843
4853
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
4854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
4845
4855
  */
4846
4856
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
4847
4857
  /**
4848
4858
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
4859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
4850
4860
  */
4851
4861
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
4852
4862
  /**
4853
4863
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
4864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
4855
4865
  */
4856
4866
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
4857
4867
  /**
4858
4868
  * Prefer `.at()` method for index access and `String#charAt()`.
4859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
4869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
4860
4870
  */
4861
4871
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
4862
4872
  /**
4863
4873
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
4874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
4865
4875
  */
4866
4876
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
4877
+ /**
4878
+ * Prefer class field declarations over `this` assignments in constructors.
4879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
4880
+ */
4881
+ 'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
4867
4882
  /**
4868
4883
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
4884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
4870
4885
  */
4871
4886
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
4872
4887
  /**
4873
4888
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
4889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
4875
4890
  */
4876
4891
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
4877
4892
  /**
4878
4893
  * Prefer default parameters over reassignment.
4879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
4894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
4880
4895
  */
4881
4896
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
4882
4897
  /**
4883
4898
  * Prefer `Node#append()` over `Node#appendChild()`.
4884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
4899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
4885
4900
  */
4886
4901
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
4887
4902
  /**
4888
4903
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
4904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
4890
4905
  */
4891
4906
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
4892
4907
  /**
4893
4908
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
4909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
4895
4910
  */
4896
4911
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
4897
4912
  /**
4898
4913
  * Prefer `.textContent` over `.innerText`.
4899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
4914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
4900
4915
  */
4901
4916
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
4902
4917
  /**
4903
4918
  * Prefer `EventTarget` over `EventEmitter`.
4904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
4919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
4905
4920
  */
4906
4921
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
4907
4922
  /**
4908
4923
  * Prefer `export…from` when re-exporting.
4909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
4924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
4910
4925
  */
4911
4926
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
4912
4927
  /**
4913
4928
  * Prefer `globalThis` over `window`, `self`, and `global`.
4914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
4929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
4915
4930
  */
4916
4931
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
4917
4932
  /**
4918
4933
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
4934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
4920
4935
  */
4921
4936
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
4922
4937
  /**
4923
4938
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
4939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
4925
4940
  */
4926
4941
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
4927
4942
  /**
4928
4943
  * Prefer reading a JSON file as a buffer.
4929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
4944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
4930
4945
  */
4931
4946
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
4932
4947
  /**
4933
4948
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
4949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
4935
4950
  */
4936
4951
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
4937
4952
  /**
4938
4953
  * Prefer using a logical operator over a ternary.
4939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
4954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4940
4955
  */
4941
4956
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
4942
4957
  /**
4943
4958
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
4959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
4945
4960
  */
4946
4961
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
4947
4962
  /**
4948
4963
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
4964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
4950
4965
  */
4951
4966
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
4952
4967
  /**
4953
4968
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
4969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
4955
4970
  */
4956
4971
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
4957
4972
  /**
4958
4973
  * Prefer modern `Math` APIs over legacy patterns.
4959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
4974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
4960
4975
  */
4961
4976
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
4962
4977
  /**
4963
4978
  * Prefer JavaScript modules (ESM) over CommonJS.
4964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
4965
4980
  */
4966
4981
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
4967
4982
  /**
4968
4983
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
4970
4985
  */
4971
4986
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
4972
4987
  /**
4973
4988
  * Prefer negative index over `.length - index` when possible.
4974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
4975
4990
  */
4976
4991
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
4977
4992
  /**
4978
4993
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
4994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
4980
4995
  */
4981
4996
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
4982
4997
  /**
4983
4998
  * Prefer `Number` static properties over global ones.
4984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
4999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
4985
5000
  */
4986
5001
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4987
5002
  /**
4988
5003
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
5004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
4990
5005
  */
4991
5006
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4992
5007
  /**
4993
5008
  * Prefer omitting the `catch` binding parameter.
4994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
4995
5010
  */
4996
5011
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
4997
5012
  /**
4998
5013
  * Prefer borrowing methods from the prototype instead of the instance.
4999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
5000
5015
  */
5001
5016
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5002
5017
  /**
5003
5018
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
5019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
5005
5020
  */
5006
5021
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
5007
5022
  /**
5008
5023
  * Prefer `Reflect.apply()` over `Function#apply()`.
5009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
5010
5025
  */
5011
5026
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5012
5027
  /**
5013
5028
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
5015
5030
  */
5016
5031
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5017
5032
  /**
5018
5033
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
5020
5035
  */
5021
5036
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
5022
5037
  /**
5023
5038
  * Prefer using `Set#size` instead of `Array#length`.
5024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
5039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
5025
5040
  */
5026
5041
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5027
5042
  /**
5028
5043
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
5044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
5030
5045
  */
5031
5046
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5032
5047
  /**
5033
5048
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
5049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
5035
5050
  */
5036
5051
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5037
5052
  /**
5038
5053
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
5040
5055
  */
5041
5056
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5042
5057
  /**
5043
5058
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
5045
5060
  */
5046
5061
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5047
5062
  /**
5048
5063
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
5050
5065
  */
5051
5066
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5052
5067
  /**
5053
5068
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
5055
5070
  */
5056
5071
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5057
5072
  /**
5058
5073
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
5060
5075
  */
5061
5076
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5062
5077
  /**
5063
5078
  * Prefer using `structuredClone` to create a deep clone.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
5065
5080
  */
5066
5081
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5067
5082
  /**
5068
5083
  * Prefer `switch` over multiple `else-if`.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
5070
5085
  */
5071
5086
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5072
5087
  /**
5073
5088
  * Prefer ternary expressions over simple `if-else` statements.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
5075
5090
  */
5076
5091
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5077
5092
  /**
5078
5093
  * Prefer top-level await over top-level promises and async function calls.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
5080
5095
  */
5081
5096
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5082
5097
  /**
5083
5098
  * Enforce throwing `TypeError` in type checking conditions.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
5085
5100
  */
5086
5101
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5087
5102
  /**
5088
5103
  * Prevent abbreviations.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
5104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
5090
5105
  */
5091
5106
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
5092
5107
  /**
5093
5108
  * Enforce consistent relative URL style.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
5095
5110
  */
5096
5111
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5097
5112
  /**
5098
5113
  * Enforce using the separator argument with `Array#join()`.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
5100
5115
  */
5101
5116
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5117
+ /**
5118
+ * Require non-empty specifier list in import and export statements.
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
5120
+ */
5121
+ 'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5102
5122
  /**
5103
5123
  * Enforce using the digits argument with `Number#toFixed()`.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5105
5125
  */
5106
5126
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5107
5127
  /**
5108
5128
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
5110
5130
  */
5111
5131
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5112
5132
  /**
5113
5133
  * Enforce better string content.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
5115
5135
  */
5116
5136
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5117
5137
  /**
5118
5138
  * Enforce consistent brace style for `case` clauses.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
5120
5140
  */
5121
5141
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
5122
5142
  /**
5123
5143
  * Fix whitespace-insensitive template indentation.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
5125
5145
  */
5126
5146
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5127
5147
  /**
5128
5148
  * Enforce consistent case for text encoding identifiers.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
5130
5150
  */
5131
5151
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
5132
5152
  /**
5133
5153
  * Require `new` when creating an error.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
5135
5155
  */
5136
5156
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5137
5157
  /**
@@ -6836,10 +6856,12 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
6836
6856
  FunctionDeclaration?: {
6837
6857
  parameters?: (number | ("first" | "off"));
6838
6858
  body?: number;
6859
+ returnType?: number;
6839
6860
  };
6840
6861
  FunctionExpression?: {
6841
6862
  parameters?: (number | ("first" | "off"));
6842
6863
  body?: number;
6864
+ returnType?: number;
6843
6865
  };
6844
6866
  StaticBlock?: {
6845
6867
  body?: number;
@@ -6880,31 +6902,52 @@ type StylisticJsxCurlyNewline = [] | [(("consistent" | "never") | {
6880
6902
  multiline?: ("consistent" | "require" | "forbid");
6881
6903
  })];
6882
6904
  // ----- @stylistic/jsx-curly-spacing -----
6883
- type StylisticJsxCurlySpacing = [] | [((_StylisticJsxCurlySpacing_BasicConfig & {
6884
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
6885
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
6886
- [k: string]: unknown | undefined;
6887
- }) | ("always" | "never"))] | [((_StylisticJsxCurlySpacing_BasicConfig & {
6888
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
6889
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
6890
- [k: string]: unknown | undefined;
6891
- }) | ("always" | "never")), {
6905
+ type StylisticJsxCurlySpacing = [] | [({
6906
+ when?: ("always" | "never");
6892
6907
  allowMultiline?: boolean;
6893
6908
  spacing?: {
6894
6909
  objectLiterals?: ("always" | "never");
6895
- [k: string]: unknown | undefined;
6896
6910
  };
6897
- }];
6898
- type _StylisticJsxCurlySpacingBasicConfigOrBoolean = (_StylisticJsxCurlySpacing_BasicConfig | boolean);
6899
- interface _StylisticJsxCurlySpacing_BasicConfig {
6911
+ attributes?: ({
6912
+ when?: ("always" | "never");
6913
+ allowMultiline?: boolean;
6914
+ spacing?: {
6915
+ objectLiterals?: ("always" | "never");
6916
+ };
6917
+ } | boolean);
6918
+ children?: ({
6919
+ when?: ("always" | "never");
6920
+ allowMultiline?: boolean;
6921
+ spacing?: {
6922
+ objectLiterals?: ("always" | "never");
6923
+ };
6924
+ } | boolean);
6925
+ } | ("always" | "never"))] | [({
6900
6926
  when?: ("always" | "never");
6901
6927
  allowMultiline?: boolean;
6902
6928
  spacing?: {
6903
6929
  objectLiterals?: ("always" | "never");
6904
- [k: string]: unknown | undefined;
6905
6930
  };
6906
- [k: string]: unknown | undefined;
6907
- }
6931
+ attributes?: ({
6932
+ when?: ("always" | "never");
6933
+ allowMultiline?: boolean;
6934
+ spacing?: {
6935
+ objectLiterals?: ("always" | "never");
6936
+ };
6937
+ } | boolean);
6938
+ children?: ({
6939
+ when?: ("always" | "never");
6940
+ allowMultiline?: boolean;
6941
+ spacing?: {
6942
+ objectLiterals?: ("always" | "never");
6943
+ };
6944
+ } | boolean);
6945
+ } | ("always" | "never")), {
6946
+ allowMultiline?: boolean;
6947
+ spacing?: {
6948
+ objectLiterals?: ("always" | "never");
6949
+ };
6950
+ }];
6908
6951
  // ----- @stylistic/jsx-equals-spacing -----
6909
6952
  type StylisticJsxEqualsSpacing = [] | [("always" | "never")];
6910
6953
  // ----- @stylistic/jsx-first-prop-new-line -----
@@ -6920,14 +6963,12 @@ type StylisticJsxIndent = [] | [("tab" | number)] | [("tab" | number), {
6920
6963
  type StylisticJsxIndentProps = [] | [(("tab" | "first") | number | {
6921
6964
  indentMode?: (("tab" | "first") | number);
6922
6965
  ignoreTernaryOperator?: boolean;
6923
- [k: string]: unknown | undefined;
6924
6966
  })];
6925
6967
  // ----- @stylistic/jsx-max-props-per-line -----
6926
6968
  type StylisticJsxMaxPropsPerLine = [] | [({
6927
6969
  maximum?: {
6928
6970
  single?: number;
6929
6971
  multi?: number;
6930
- [k: string]: unknown | undefined;
6931
6972
  };
6932
6973
  } | {
6933
6974
  maximum?: number;
@@ -7274,6 +7315,10 @@ type StylisticKeywordSpacing = [] | [{
7274
7315
  before?: boolean;
7275
7316
  after?: boolean;
7276
7317
  };
7318
+ accessor?: {
7319
+ before?: boolean;
7320
+ after?: boolean;
7321
+ };
7277
7322
  as?: {
7278
7323
  before?: boolean;
7279
7324
  after?: boolean;
@@ -7486,11 +7531,11 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
7486
7531
  // ----- @stylistic/multiline-comment-style -----
7487
7532
  type StylisticMultilineCommentStyle = ([] | [("starred-block" | "bare-block")] | [] | ["separate-lines"] | ["separate-lines", {
7488
7533
  checkJSDoc?: boolean;
7534
+ checkExclamation?: boolean;
7489
7535
  }]);
7490
7536
  // ----- @stylistic/multiline-ternary -----
7491
7537
  type StylisticMultilineTernary = [] | [("always" | "always-multiline" | "never")] | [("always" | "always-multiline" | "never"), {
7492
7538
  ignoreJSX?: boolean;
7493
- [k: string]: unknown | undefined;
7494
7539
  }];
7495
7540
  // ----- @stylistic/new-parens -----
7496
7541
  type StylisticNewParens = [] | [("always" | "never")];
@@ -8532,7 +8577,6 @@ type TypescriptEslintPreferDestructuring = [] | [({
8532
8577
  }), {
8533
8578
  enforceForDeclarationWithTypeAnnotation?: boolean;
8534
8579
  enforceForRenamedProperties?: boolean;
8535
- [k: string]: unknown | undefined;
8536
8580
  }];
8537
8581
  // ----- @typescript-eslint/prefer-literal-enum-member -----
8538
8582
  type TypescriptEslintPreferLiteralEnumMember = [] | [{
@@ -8550,7 +8594,6 @@ type TypescriptEslintPreferNullishCoalescing = [] | [{
8550
8594
  boolean?: boolean;
8551
8595
  number?: boolean;
8552
8596
  string?: boolean;
8553
- [k: string]: unknown | undefined;
8554
8597
  } | true);
8555
8598
  ignoreTernaryTests?: boolean;
8556
8599
  }];
@@ -12794,6 +12837,10 @@ interface _UnicornImportStyle_BooleanObject {
12794
12837
  type UnicornNoArrayReduce = [] | [{
12795
12838
  allowSimpleOperations?: boolean;
12796
12839
  }];
12840
+ // ----- unicorn/no-array-reverse -----
12841
+ type UnicornNoArrayReverse = [] | [{
12842
+ allowExpressionStatement?: boolean;
12843
+ }];
12797
12844
  // ----- unicorn/no-instanceof-builtins -----
12798
12845
  type UnicornNoInstanceofBuiltins = [] | [{
12799
12846
  useErrorIsError?: boolean;
@@ -14592,6 +14639,10 @@ interface OptionsVueI18n extends OptionsOverrides {
14592
14639
  * Optional configuration for @intlify/vue-i18n/no-raw-text rule
14593
14640
  */
14594
14641
  noRawTextIgnores?: VueI18nNoRawTextIgnores;
14642
+ /**
14643
+ * Specifies the configuration mode for @intlify/vue-i18n/no-unused-keys.
14644
+ */
14645
+ enableNoUnusedKeys?: 'always' | 'ci' | 'never';
14595
14646
  }
14596
14647
  interface OptionsOverrides {
14597
14648
  overrides?: TypedFlatConfigItem['rules'];
@@ -15025,4 +15076,4 @@ declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Reco
15025
15076
  declare function isInEditorEnv(): boolean;
15026
15077
  declare function isInGitHooksOrLintStaged(): boolean;
15027
15078
  //#endregion
15028
- export { Awaitable, ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_CYPRESS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsCypress, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsVue, OptionsVueI18n, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, comments, cypress, rotki as default, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsonc, markdown, node, parserPlain, perfectionist, pnpm, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, rotki, rotkiPlugin, sortPackageJson, sortTsconfig, storybook, stylistic, test, toArray, typescript, unicorn, vue, vueI18n, yaml };
15079
+ export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_CYPRESS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsCypress, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsVue, OptionsVueI18n, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, comments, cypress, rotki as default, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsonc, markdown, node, parserPlain, perfectionist, pnpm, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, rotki, rotkiPlugin, sortPackageJson, sortTsconfig, storybook, stylistic, test, toArray, typescript, unicorn, vue, vueI18n, yaml };