@ivanmaxlogiudice/eslint-config 4.0.1 → 4.0.3

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/cli.mjs +11 -11
  2. package/dist/index.d.mts +184 -153
  3. package/package.json +11 -11
package/dist/cli.mjs CHANGED
@@ -12,7 +12,7 @@ import { execSync } from "node:child_process";
12
12
  var package_default = {
13
13
  name: "@ivanmaxlogiudice/eslint-config",
14
14
  type: "module",
15
- version: "4.0.1",
15
+ version: "4.0.3",
16
16
  packageManager: "bun@1.3.5",
17
17
  description: "Personal ESLint config",
18
18
  license: "MIT",
@@ -62,21 +62,21 @@ var package_default = {
62
62
  "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
63
63
  "@eslint/markdown": "^7.5.1",
64
64
  "@ivanmaxlogiudice/gitignore": "^0.0.2",
65
- "@stylistic/eslint-plugin": "^5.7.1",
66
- "@typescript-eslint/eslint-plugin": "^8.54.0",
67
- "@typescript-eslint/parser": "^8.54.0",
68
- "@vitest/eslint-plugin": "^1.6.6",
65
+ "@stylistic/eslint-plugin": "^5.8.0",
66
+ "@typescript-eslint/eslint-plugin": "^8.55.0",
67
+ "@typescript-eslint/parser": "^8.55.0",
68
+ "@vitest/eslint-plugin": "^1.6.7",
69
69
  "ansis": "^4.2.0",
70
70
  "cac": "^6.7.14",
71
- "eslint-plugin-antfu": "^3.2.0",
71
+ "eslint-plugin-antfu": "^3.2.1",
72
72
  "eslint-plugin-import-lite": "^0.5.0",
73
73
  "eslint-plugin-jsdoc": "^62.5.4",
74
- "eslint-plugin-jsonc": "^2.21.0",
74
+ "eslint-plugin-jsonc": "^2.21.1",
75
75
  "eslint-plugin-n": "^17.23.2",
76
76
  "eslint-plugin-no-only-tests": "^3.3.0",
77
77
  "eslint-plugin-perfectionist": "^5.5.0",
78
- "eslint-plugin-unicorn": "^62.0.0",
79
- "eslint-plugin-unused-imports": "^4.3.0",
78
+ "eslint-plugin-unicorn": "^63.0.0",
79
+ "eslint-plugin-unused-imports": "^4.4.1",
80
80
  "eslint-plugin-vue": "^10.7.0",
81
81
  "globals": "^17.3.0",
82
82
  "jsonc-eslint-parser": "^2.4.2",
@@ -86,8 +86,8 @@ var package_default = {
86
86
  },
87
87
  devDependencies: {
88
88
  "@eslint/config-inspector": "^1.4.2",
89
- "@types/bun": "^1.3.8",
90
- "@types/node": "^25.2.2",
89
+ "@types/bun": "^1.3.9",
90
+ "@types/node": "^25.2.3",
91
91
  "@unocss/eslint-plugin": "^66.6.0",
92
92
  "bumpp": "^10.4.1",
93
93
  "eslint": "^10.0.0",
package/dist/index.d.mts CHANGED
@@ -3127,6 +3127,11 @@ interface RuleOptions {
3127
3127
  * @see https://eslint.style/rules/eol-last
3128
3128
  */
3129
3129
  'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
3130
+ /**
3131
+ * Enforce consistent line break styles for JSX props
3132
+ * @see https://eslint.style/rules/jsx-props-style
3133
+ */
3134
+ 'style/exp-jsx-props-style'?: Linter.RuleEntry<StyleExpJsxPropsStyle>;
3130
3135
  /**
3131
3136
  * Enforce consistent spacing and line break styles inside brackets.
3132
3137
  * @see https://eslint.style/rules/list-style
@@ -4441,7 +4446,7 @@ interface RuleOptions {
4441
4446
  * Disallow default values that will never be used
4442
4447
  * @see https://typescript-eslint.io/rules/no-useless-default-assignment
4443
4448
  */
4444
- 'ts/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
4449
+ 'ts/no-useless-default-assignment'?: Linter.RuleEntry<TsNoUselessDefaultAssignment>;
4445
4450
  /**
4446
4451
  * Disallow empty exports that don't change anything in a module file
4447
4452
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -4658,725 +4663,730 @@ interface RuleOptions {
4658
4663
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
4659
4664
  /**
4660
4665
  * Improve regexes by making them shorter, consistent, and safer.
4661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
4666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
4662
4667
  */
4663
4668
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
4664
4669
  /**
4665
4670
  * Enforce a specific parameter name in catch clauses.
4666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
4671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
4667
4672
  */
4668
4673
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
4669
4674
  /**
4670
4675
  * Enforce consistent assertion style with `node:assert`.
4671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
4676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
4672
4677
  */
4673
4678
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
4674
4679
  /**
4675
4680
  * Prefer passing `Date` directly to the constructor when cloning.
4676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
4681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
4677
4682
  */
4678
4683
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
4679
4684
  /**
4680
4685
  * Use destructured variables over properties.
4681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
4686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
4682
4687
  */
4683
4688
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
4684
4689
  /**
4685
4690
  * Prefer consistent types when spreading a ternary in an array literal.
4686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
4691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
4687
4692
  */
4688
4693
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
4689
4694
  /**
4690
4695
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
4696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
4692
4697
  */
4693
4698
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
4694
4699
  /**
4695
4700
  * Move function definitions to the highest possible scope.
4696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
4701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
4697
4702
  */
4698
4703
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4699
4704
  /**
4700
4705
  * Enforce correct `Error` subclassing.
4701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
4706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
4702
4707
  */
4703
4708
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
4704
4709
  /**
4705
4710
  * Enforce no spaces between braces.
4706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
4711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
4707
4712
  */
4708
4713
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
4709
4714
  /**
4710
4715
  * Enforce passing a `message` value when creating a built-in error.
4711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
4716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
4712
4717
  */
4713
4718
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
4714
4719
  /**
4715
4720
  * Require escape sequences to use uppercase or lowercase values.
4716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
4721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
4717
4722
  */
4718
4723
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
4719
4724
  /**
4720
4725
  * Add expiration conditions to TODO comments.
4721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
4726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
4722
4727
  */
4723
4728
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4724
4729
  /**
4725
4730
  * Enforce explicitly comparing the `length` or `size` property of a value.
4726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
4731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
4727
4732
  */
4728
4733
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4729
4734
  /**
4730
4735
  * Enforce a case style for filenames.
4731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
4736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
4732
4737
  */
4733
4738
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
4734
4739
  /**
4735
4740
  * Enforce specific import styles per module.
4736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
4741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
4737
4742
  */
4738
4743
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
4744
+ /**
4745
+ * Prevent usage of variables from outside the scope of isolated functions.
4746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
4747
+ */
4748
+ 'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4739
4749
  /**
4740
4750
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
4751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
4742
4752
  */
4743
4753
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
4744
4754
  /**
4745
4755
  * Enforce specifying rules to disable in `eslint-disable` comments.
4746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
4756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
4747
4757
  */
4748
4758
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
4749
4759
  /**
4750
4760
  * Disallow recursive access to `this` within getters and setters.
4751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
4761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
4752
4762
  */
4753
4763
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
4754
4764
  /**
4755
4765
  * Disallow anonymous functions and classes as the default export.
4756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
4766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
4757
4767
  */
4758
4768
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
4759
4769
  /**
4760
4770
  * Prevent passing a function reference directly to iterator methods.
4761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
4771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
4762
4772
  */
4763
4773
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
4764
4774
  /**
4765
4775
  * Prefer `for…of` over the `forEach` method.
4766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
4776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
4767
4777
  */
4768
4778
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
4769
4779
  /**
4770
4780
  * Disallow using the `this` argument in array methods.
4771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
4781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
4772
4782
  */
4773
4783
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
4774
4784
  /**
4775
4785
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4777
4787
  * @deprecated
4778
4788
  */
4779
4789
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
4780
4790
  /**
4781
4791
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
4792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
4783
4793
  */
4784
4794
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
4785
4795
  /**
4786
4796
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
4797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
4788
4798
  */
4789
4799
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
4790
4800
  /**
4791
4801
  * Prefer `Array#toSorted()` over `Array#sort()`.
4792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
4802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
4793
4803
  */
4794
4804
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
4795
4805
  /**
4796
4806
  * Disallow member access from await expression.
4797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
4807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
4798
4808
  */
4799
4809
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
4800
4810
  /**
4801
4811
  * Disallow using `await` in `Promise` method parameters.
4802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
4812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
4803
4813
  */
4804
4814
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
4805
4815
  /**
4806
4816
  * Do not use leading/trailing space between `console.log` parameters.
4807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
4817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
4808
4818
  */
4809
4819
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
4810
4820
  /**
4811
4821
  * Do not use `document.cookie` directly.
4812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
4822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
4813
4823
  */
4814
4824
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
4815
4825
  /**
4816
4826
  * Disallow empty files.
4817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
4827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
4818
4828
  */
4819
4829
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
4820
4830
  /**
4821
4831
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
4832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
4823
4833
  */
4824
4834
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
4825
4835
  /**
4826
4836
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
4837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
4828
4838
  */
4829
4839
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
4830
4840
  /**
4831
4841
  * Disallow immediate mutation after variable assignment.
4832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
4842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
4833
4843
  */
4834
4844
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
4835
4845
  /**
4836
4846
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
4847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4838
4848
  * @deprecated
4839
4849
  */
4840
4850
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
4841
4851
  /**
4842
4852
  * Disallow `instanceof` with built-in objects
4843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
4853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
4844
4854
  */
4845
4855
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4846
4856
  /**
4847
4857
  * Disallow invalid options in `fetch()` and `new Request()`.
4848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
4858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
4849
4859
  */
4850
4860
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
4851
4861
  /**
4852
4862
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
4863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
4854
4864
  */
4855
4865
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
4856
4866
  /**
4857
4867
  * Disallow identifiers starting with `new` or `class`.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
4868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
4859
4869
  */
4860
4870
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4861
4871
  /**
4862
4872
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
4873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4864
4874
  * @deprecated
4865
4875
  */
4866
4876
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
4867
4877
  /**
4868
4878
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
4879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
4870
4880
  */
4871
4881
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
4872
4882
  /**
4873
4883
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
4884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
4875
4885
  */
4876
4886
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
4877
4887
  /**
4878
4888
  * Disallow named usage of default import and export.
4879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
4889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
4880
4890
  */
4881
4891
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
4882
4892
  /**
4883
4893
  * Disallow negated conditions.
4884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
4894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
4885
4895
  */
4886
4896
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
4887
4897
  /**
4888
4898
  * Disallow negated expression in equality check.
4889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
4899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
4890
4900
  */
4891
4901
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
4892
4902
  /**
4893
4903
  * Disallow nested ternary expressions.
4894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
4904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
4895
4905
  */
4896
4906
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
4897
4907
  /**
4898
4908
  * Disallow `new Array()`.
4899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
4909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
4900
4910
  */
4901
4911
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
4902
4912
  /**
4903
4913
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
4914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
4905
4915
  */
4906
4916
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
4907
4917
  /**
4908
4918
  * Disallow the use of the `null` literal.
4909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
4919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
4910
4920
  */
4911
4921
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
4912
4922
  /**
4913
4923
  * Disallow the use of objects as default parameters.
4914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
4924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
4915
4925
  */
4916
4926
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
4917
4927
  /**
4918
4928
  * Disallow `process.exit()`.
4919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
4929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
4920
4930
  */
4921
4931
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
4922
4932
  /**
4923
4933
  * Disallow passing single-element arrays to `Promise` methods.
4924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
4934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
4925
4935
  */
4926
4936
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4927
4937
  /**
4928
4938
  * Disallow classes that only have static members.
4929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
4939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
4930
4940
  */
4931
4941
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4932
4942
  /**
4933
4943
  * Disallow `then` property.
4934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
4944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
4935
4945
  */
4936
4946
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4937
4947
  /**
4938
4948
  * Disallow assigning `this` to a variable.
4939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
4949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
4940
4950
  */
4941
4951
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4942
4952
  /**
4943
4953
  * Disallow comparing `undefined` using `typeof`.
4944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
4954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
4945
4955
  */
4946
4956
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4947
4957
  /**
4948
4958
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4950
4960
  */
4951
4961
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
4952
4962
  /**
4953
4963
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
4964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
4955
4965
  */
4956
4966
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
4957
4967
  /**
4958
4968
  * Disallow awaiting non-promise values.
4959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
4969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
4960
4970
  */
4961
4971
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
4962
4972
  /**
4963
4973
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
4974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
4965
4975
  */
4966
4976
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4967
4977
  /**
4968
4978
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
4970
4980
  */
4971
4981
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
4972
4982
  /**
4973
4983
  * Disallow unreadable array destructuring.
4974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
4975
4985
  */
4976
4986
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
4977
4987
  /**
4978
4988
  * Disallow unreadable IIFEs.
4979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
4980
4990
  */
4981
4991
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
4982
4992
  /**
4983
4993
  * Disallow unused object properties.
4984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
4994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
4985
4995
  */
4986
4996
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
4987
4997
  /**
4988
4998
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
4989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
4999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
4990
5000
  */
4991
5001
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
4992
5002
  /**
4993
5003
  * Disallow unnecessary `Error.captureStackTrace(…)`.
4994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4995
5005
  */
4996
5006
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
4997
5007
  /**
4998
5008
  * Disallow useless fallback when spreading in object literals.
4999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
5000
5010
  */
5001
5011
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5002
5012
  /**
5003
5013
  * Disallow useless array length check.
5004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
5005
5015
  */
5006
5016
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5007
5017
  /**
5008
5018
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
5010
5020
  */
5011
5021
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5012
5022
  /**
5013
5023
  * Disallow unnecessary spread.
5014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
5015
5025
  */
5016
5026
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5017
5027
  /**
5018
5028
  * Disallow useless case in switch statements.
5019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
5020
5030
  */
5021
5031
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5022
5032
  /**
5023
5033
  * Disallow useless `undefined`.
5024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
5025
5035
  */
5026
5036
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5027
5037
  /**
5028
5038
  * Disallow number literals with zero fractions or dangling dots.
5029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
5030
5040
  */
5031
5041
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5032
5042
  /**
5033
5043
  * Enforce proper case for numeric literals.
5034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
5035
5045
  */
5036
5046
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5037
5047
  /**
5038
5048
  * Enforce the style of numeric separators by correctly grouping digits.
5039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
5040
5050
  */
5041
5051
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5042
5052
  /**
5043
5053
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
5045
5055
  */
5046
5056
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5047
5057
  /**
5048
5058
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
5050
5060
  */
5051
5061
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5052
5062
  /**
5053
5063
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
5055
5065
  */
5056
5066
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5057
5067
  /**
5058
5068
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
5060
5070
  */
5061
5071
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5062
5072
  /**
5063
5073
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
5065
5075
  */
5066
5076
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5067
5077
  /**
5068
5078
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
5070
5080
  */
5071
5081
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5072
5082
  /**
5073
5083
  * Prefer `.at()` method for index access and `String#charAt()`.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
5075
5085
  */
5076
5086
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5077
5087
  /**
5078
5088
  * Prefer `BigInt` literals over the constructor.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
5080
5090
  */
5081
5091
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5082
5092
  /**
5083
5093
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
5085
5095
  */
5086
5096
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5087
5097
  /**
5088
5098
  * Prefer class field declarations over `this` assignments in constructors.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
5090
5100
  */
5091
5101
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5092
5102
  /**
5093
5103
  * Prefer using `Element#classList.toggle()` to toggle class names.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
5104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
5095
5105
  */
5096
5106
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5097
5107
  /**
5098
5108
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
5100
5110
  */
5101
5111
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5102
5112
  /**
5103
5113
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
5105
5115
  */
5106
5116
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5107
5117
  /**
5108
5118
  * Prefer default parameters over reassignment.
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
5110
5120
  */
5111
5121
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5112
5122
  /**
5113
5123
  * Prefer `Node#append()` over `Node#appendChild()`.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
5115
5125
  */
5116
5126
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5117
5127
  /**
5118
5128
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
5120
5130
  */
5121
5131
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5122
5132
  /**
5123
5133
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
5125
5135
  */
5126
5136
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5127
5137
  /**
5128
5138
  * Prefer `.textContent` over `.innerText`.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
5130
5140
  */
5131
5141
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5132
5142
  /**
5133
5143
  * Prefer `EventTarget` over `EventEmitter`.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
5135
5145
  */
5136
5146
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5137
5147
  /**
5138
5148
  * Prefer `export…from` when re-exporting.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
5140
5150
  */
5141
5151
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5142
5152
  /**
5143
5153
  * Prefer `globalThis` over `window`, `self`, and `global`.
5144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
5145
5155
  */
5146
5156
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5147
5157
  /**
5148
5158
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
5150
5160
  */
5151
5161
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5152
5162
  /**
5153
5163
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
5155
5165
  */
5156
5166
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5157
5167
  /**
5158
5168
  * Prefer reading a JSON file as a buffer.
5159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
5160
5170
  */
5161
5171
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5162
5172
  /**
5163
5173
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
5174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
5165
5175
  */
5166
5176
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5167
5177
  /**
5168
5178
  * Prefer using a logical operator over a ternary.
5169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5170
5180
  */
5171
5181
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5172
5182
  /**
5173
5183
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
5184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
5175
5185
  */
5176
5186
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5177
5187
  /**
5178
5188
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
5180
5190
  */
5181
5191
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5182
5192
  /**
5183
5193
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
5194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
5185
5195
  */
5186
5196
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5187
5197
  /**
5188
5198
  * Prefer modern `Math` APIs over legacy patterns.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
5190
5200
  */
5191
5201
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5192
5202
  /**
5193
5203
  * Prefer JavaScript modules (ESM) over CommonJS.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
5204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
5195
5205
  */
5196
5206
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5197
5207
  /**
5198
5208
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
5200
5210
  */
5201
5211
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5202
5212
  /**
5203
5213
  * Prefer negative index over `.length - index` when possible.
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
5205
5215
  */
5206
5216
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5207
5217
  /**
5208
5218
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
5210
5220
  */
5211
5221
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5212
5222
  /**
5213
5223
  * Prefer `Number` static properties over global ones.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
5215
5225
  */
5216
5226
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5217
5227
  /**
5218
5228
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
5220
5230
  */
5221
5231
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5222
5232
  /**
5223
5233
  * Prefer omitting the `catch` binding parameter.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
5225
5235
  */
5226
5236
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5227
5237
  /**
5228
5238
  * Prefer borrowing methods from the prototype instead of the instance.
5229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
5239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
5230
5240
  */
5231
5241
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5232
5242
  /**
5233
5243
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
5244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
5235
5245
  */
5236
5246
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
5237
5247
  /**
5238
5248
  * Prefer `Reflect.apply()` over `Function#apply()`.
5239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
5249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
5240
5250
  */
5241
5251
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5242
5252
  /**
5243
5253
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
5254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
5245
5255
  */
5246
5256
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5247
5257
  /**
5248
5258
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
5259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
5250
5260
  */
5251
5261
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
5252
5262
  /**
5253
5263
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
5264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
5255
5265
  */
5256
5266
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
5257
5267
  /**
5258
5268
  * Prefer using `Set#size` instead of `Array#length`.
5259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
5269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
5260
5270
  */
5261
5271
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5262
5272
  /**
5263
5273
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
5274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
5265
5275
  */
5266
5276
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5267
5277
  /**
5268
5278
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
5279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
5270
5280
  */
5271
5281
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5272
5282
  /**
5273
5283
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
5284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
5275
5285
  */
5276
5286
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5277
5287
  /**
5278
5288
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
5289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
5280
5290
  */
5281
5291
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5282
5292
  /**
5283
5293
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
5294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
5285
5295
  */
5286
5296
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5287
5297
  /**
5288
5298
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
5299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
5290
5300
  */
5291
5301
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5292
5302
  /**
5293
5303
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
5304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
5295
5305
  */
5296
5306
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5297
5307
  /**
5298
5308
  * Prefer using `structuredClone` to create a deep clone.
5299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
5309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
5300
5310
  */
5301
5311
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5302
5312
  /**
5303
5313
  * Prefer `switch` over multiple `else-if`.
5304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
5314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
5305
5315
  */
5306
5316
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5307
5317
  /**
5308
5318
  * Prefer ternary expressions over simple `if-else` statements.
5309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
5319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
5310
5320
  */
5311
5321
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5312
5322
  /**
5313
5323
  * Prefer top-level await over top-level promises and async function calls.
5314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
5324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
5315
5325
  */
5316
5326
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5317
5327
  /**
5318
5328
  * Enforce throwing `TypeError` in type checking conditions.
5319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
5329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
5320
5330
  */
5321
5331
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5322
5332
  /**
5323
5333
  * Prevent abbreviations.
5324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
5334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
5325
5335
  */
5326
5336
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
5327
5337
  /**
5328
5338
  * Enforce consistent relative URL style.
5329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
5339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
5330
5340
  */
5331
5341
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5332
5342
  /**
5333
5343
  * Enforce using the separator argument with `Array#join()`.
5334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
5344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
5335
5345
  */
5336
5346
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5337
5347
  /**
5338
5348
  * Require non-empty module attributes for imports and exports
5339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
5349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
5340
5350
  */
5341
5351
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
5342
5352
  /**
5343
5353
  * Require non-empty specifier list in import and export statements.
5344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
5354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
5345
5355
  */
5346
5356
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5347
5357
  /**
5348
5358
  * Enforce using the digits argument with `Number#toFixed()`.
5349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5350
5360
  */
5351
5361
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5352
5362
  /**
5353
5363
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
5364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
5355
5365
  */
5356
5366
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5357
5367
  /**
5358
5368
  * Enforce better string content.
5359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
5369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
5360
5370
  */
5361
5371
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5362
5372
  /**
5363
5373
  * Enforce consistent brace style for `case` clauses.
5364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
5374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
5365
5375
  */
5366
5376
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
5367
5377
  /**
5368
5378
  * Fix whitespace-insensitive template indentation.
5369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
5379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
5370
5380
  */
5371
5381
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5372
5382
  /**
5373
5383
  * Enforce consistent case for text encoding identifiers.
5374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
5384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
5375
5385
  */
5376
5386
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
5377
5387
  /**
5378
5388
  * Require `new` when creating an error.
5379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
5389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
5380
5390
  */
5381
5391
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5382
5392
  /**
@@ -11846,15 +11856,24 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
11846
11856
  consistent?: boolean;
11847
11857
  })]; // ----- style/dot-location -----
11848
11858
  type StyleDotLocation = [] | [("object" | "property")]; // ----- style/eol-last -----
11849
- type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- style/exp-list-style -----
11859
+ type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- style/exp-jsx-props-style -----
11860
+ type StyleExpJsxPropsStyle = [] | [{
11861
+ singleLine?: {
11862
+ maxItems?: number;
11863
+ };
11864
+ multiLine?: {
11865
+ minItems?: number;
11866
+ maxItemsPerLine?: number;
11867
+ };
11868
+ }]; // ----- style/exp-list-style -----
11850
11869
  type StyleExpListStyle = [] | [{
11851
11870
  singleLine?: _StyleExpListStyle_SingleLineConfig;
11852
11871
  multiLine?: _StyleExpListStyle_MultiLineConfig;
11853
11872
  overrides?: {
11873
+ "()"?: _StyleExpListStyle_BaseConfig;
11854
11874
  "[]"?: _StyleExpListStyle_BaseConfig;
11855
11875
  "{}"?: _StyleExpListStyle_BaseConfig;
11856
11876
  "<>"?: _StyleExpListStyle_BaseConfig;
11857
- "()"?: _StyleExpListStyle_BaseConfig;
11858
11877
  ArrayExpression?: _StyleExpListStyle_BaseConfig;
11859
11878
  ArrayPattern?: _StyleExpListStyle_BaseConfig;
11860
11879
  ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
@@ -11862,21 +11881,22 @@ type StyleExpListStyle = [] | [{
11862
11881
  ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
11863
11882
  FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
11864
11883
  FunctionExpression?: _StyleExpListStyle_BaseConfig;
11865
- ImportDeclaration?: _StyleExpListStyle_BaseConfig;
11884
+ IfStatement?: _StyleExpListStyle_BaseConfig;
11866
11885
  ImportAttributes?: _StyleExpListStyle_BaseConfig;
11886
+ ImportDeclaration?: _StyleExpListStyle_BaseConfig;
11887
+ JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
11888
+ JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
11867
11889
  NewExpression?: _StyleExpListStyle_BaseConfig;
11868
11890
  ObjectExpression?: _StyleExpListStyle_BaseConfig;
11869
11891
  ObjectPattern?: _StyleExpListStyle_BaseConfig;
11870
11892
  TSDeclareFunction?: _StyleExpListStyle_BaseConfig;
11893
+ TSEnumBody?: _StyleExpListStyle_BaseConfig;
11871
11894
  TSFunctionType?: _StyleExpListStyle_BaseConfig;
11872
11895
  TSInterfaceBody?: _StyleExpListStyle_BaseConfig;
11873
- TSEnumBody?: _StyleExpListStyle_BaseConfig;
11874
11896
  TSTupleType?: _StyleExpListStyle_BaseConfig;
11875
11897
  TSTypeLiteral?: _StyleExpListStyle_BaseConfig;
11876
11898
  TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig;
11877
11899
  TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig;
11878
- JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
11879
- JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
11880
11900
  };
11881
11901
  }];
11882
11902
  interface _StyleExpListStyle_SingleLineConfig {
@@ -13619,7 +13639,10 @@ type TsNoUseBeforeDefine = [] | [("nofunc" | {
13619
13639
  ignoreTypeReferences?: boolean;
13620
13640
  typedefs?: boolean;
13621
13641
  variables?: boolean;
13622
- })]; // ----- ts/no-var-requires -----
13642
+ })]; // ----- ts/no-useless-default-assignment -----
13643
+ type TsNoUselessDefaultAssignment = [] | [{
13644
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
13645
+ }]; // ----- ts/no-var-requires -----
13623
13646
  type TsNoVarRequires = [] | [{
13624
13647
  allow?: string[];
13625
13648
  }]; // ----- ts/only-throw-error -----
@@ -13866,7 +13889,15 @@ interface _UnicornImportStyle_ModuleStyles {
13866
13889
  }
13867
13890
  interface _UnicornImportStyle_BooleanObject {
13868
13891
  [k: string]: boolean | undefined;
13869
- } // ----- unicorn/no-array-reduce -----
13892
+ } // ----- unicorn/isolated-functions -----
13893
+ type UnicornIsolatedFunctions = [] | [{
13894
+ overrideGlobals?: {
13895
+ [k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
13896
+ };
13897
+ functions?: string[];
13898
+ selectors?: string[];
13899
+ comments?: string[];
13900
+ }]; // ----- unicorn/no-array-reduce -----
13870
13901
  type UnicornNoArrayReduce = [] | [{
13871
13902
  allowSimpleOperations?: boolean;
13872
13903
  }]; // ----- unicorn/no-array-reverse -----
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ivanmaxlogiudice/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.1",
4
+ "version": "4.0.3",
5
5
  "packageManager": "bun@1.3.5",
6
6
  "description": "Personal ESLint config",
7
7
  "license": "MIT",
@@ -68,21 +68,21 @@
68
68
  "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
69
69
  "@eslint/markdown": "^7.5.1",
70
70
  "@ivanmaxlogiudice/gitignore": "^0.0.2",
71
- "@stylistic/eslint-plugin": "^5.7.1",
72
- "@typescript-eslint/eslint-plugin": "^8.54.0",
73
- "@typescript-eslint/parser": "^8.54.0",
74
- "@vitest/eslint-plugin": "^1.6.6",
71
+ "@stylistic/eslint-plugin": "^5.8.0",
72
+ "@typescript-eslint/eslint-plugin": "^8.55.0",
73
+ "@typescript-eslint/parser": "^8.55.0",
74
+ "@vitest/eslint-plugin": "^1.6.7",
75
75
  "ansis": "^4.2.0",
76
76
  "cac": "^6.7.14",
77
- "eslint-plugin-antfu": "^3.2.0",
77
+ "eslint-plugin-antfu": "^3.2.1",
78
78
  "eslint-plugin-import-lite": "^0.5.0",
79
79
  "eslint-plugin-jsdoc": "^62.5.4",
80
- "eslint-plugin-jsonc": "^2.21.0",
80
+ "eslint-plugin-jsonc": "^2.21.1",
81
81
  "eslint-plugin-n": "^17.23.2",
82
82
  "eslint-plugin-no-only-tests": "^3.3.0",
83
83
  "eslint-plugin-perfectionist": "^5.5.0",
84
- "eslint-plugin-unicorn": "^62.0.0",
85
- "eslint-plugin-unused-imports": "^4.3.0",
84
+ "eslint-plugin-unicorn": "^63.0.0",
85
+ "eslint-plugin-unused-imports": "^4.4.1",
86
86
  "eslint-plugin-vue": "^10.7.0",
87
87
  "globals": "^17.3.0",
88
88
  "jsonc-eslint-parser": "^2.4.2",
@@ -92,8 +92,8 @@
92
92
  },
93
93
  "devDependencies": {
94
94
  "@eslint/config-inspector": "^1.4.2",
95
- "@types/bun": "^1.3.8",
96
- "@types/node": "^25.2.2",
95
+ "@types/bun": "^1.3.9",
96
+ "@types/node": "^25.2.3",
97
97
  "@unocss/eslint-plugin": "^66.6.0",
98
98
  "bumpp": "^10.4.1",
99
99
  "eslint": "^10.0.0",