@sxzz/eslint-config 7.2.6 → 7.2.8

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 +232 -144
  2. package/dist/index.js +2 -2
  3. package/package.json +22 -23
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import pluginJsdoc from "eslint-plugin-jsdoc";
13
13
  import pluginIgnore from "eslint-config-flat-gitignore";
14
14
  import pluginDeMorgan from "eslint-plugin-de-morgan";
15
15
  import pluginPnpm from "eslint-plugin-pnpm";
16
- import * as pluginImport from "eslint-plugin-import-x";
16
+ import pluginImport from "eslint-plugin-import-x";
17
17
  import pluginJsonc from "eslint-plugin-jsonc";
18
18
  import pluginYml from "eslint-plugin-yml";
19
19
  import configJs from "@eslint/js";
@@ -494,7 +494,7 @@ interface Rules {
494
494
  * Disallow member access on a value with type `any`
495
495
  * @see https://typescript-eslint.io/rules/no-unsafe-member-access
496
496
  */
497
- "@typescript-eslint/no-unsafe-member-access"?: Linter.RuleEntry<[]>;
497
+ "@typescript-eslint/no-unsafe-member-access"?: Linter.RuleEntry<TypescriptEslintNoUnsafeMemberAccess>;
498
498
  /**
499
499
  * Disallow returning a value with type `any` from a function
500
500
  * @see https://typescript-eslint.io/rules/no-unsafe-return
@@ -1395,6 +1395,11 @@ interface Rules {
1395
1395
  */
1396
1396
  "jsdoc/empty-tags"?: Linter.RuleEntry<JsdocEmptyTags>;
1397
1397
  /**
1398
+ * Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
1399
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/escape-inline-tags.md#repos-sticky-header
1400
+ */
1401
+ "jsdoc/escape-inline-tags"?: Linter.RuleEntry<JsdocEscapeInlineTags>;
1402
+ /**
1398
1403
  * Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors).
1399
1404
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/implements-on-classes.md#repos-sticky-header
1400
1405
  */
@@ -1660,6 +1665,26 @@ interface Rules {
1660
1665
  */
1661
1666
  "jsdoc/text-escaping"?: Linter.RuleEntry<JsdocTextEscaping>;
1662
1667
  /**
1668
+ * Prefers either function properties or method signatures
1669
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
1670
+ */
1671
+ "jsdoc/ts-method-signature-style"?: Linter.RuleEntry<JsdocTsMethodSignatureStyle>;
1672
+ /**
1673
+ * Warns against use of the empty object type
1674
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-empty-object-type.md#repos-sticky-header
1675
+ */
1676
+ "jsdoc/ts-no-empty-object-type"?: Linter.RuleEntry<[]>;
1677
+ /**
1678
+ * Catches unnecessary template expressions such as string expressions within a template literal.
1679
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-unnecessary-template-expression.md#repos-sticky-header
1680
+ */
1681
+ "jsdoc/ts-no-unnecessary-template-expression"?: Linter.RuleEntry<JsdocTsNoUnnecessaryTemplateExpression>;
1682
+ /**
1683
+ * Prefers function types over call signatures when there are no other properties.
1684
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-prefer-function-type.md#repos-sticky-header
1685
+ */
1686
+ "jsdoc/ts-prefer-function-type"?: Linter.RuleEntry<JsdocTsPreferFunctionType>;
1687
+ /**
1663
1688
  * Formats JSDoc type values.
1664
1689
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
1665
1690
  */
@@ -3332,6 +3357,11 @@ interface Rules {
3332
3357
  */
3333
3358
  "pnpm/yaml-no-unused-catalog-item"?: Linter.RuleEntry<[]>;
3334
3359
  /**
3360
+ * Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
3361
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
3362
+ */
3363
+ "pnpm/yaml-valid-packages"?: Linter.RuleEntry<[]>;
3364
+ /**
3335
3365
  * Require using arrow functions for callbacks
3336
3366
  * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
3337
3367
  */
@@ -3968,710 +3998,725 @@ interface Rules {
3968
3998
  "unicode-bom"?: Linter.RuleEntry<UnicodeBom>;
3969
3999
  /**
3970
4000
  * Improve regexes by making them shorter, consistent, and safer.
3971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
4001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
3972
4002
  */
3973
4003
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
3974
4004
  /**
3975
4005
  * Enforce a specific parameter name in catch clauses.
3976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
4006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
3977
4007
  */
3978
4008
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
3979
4009
  /**
3980
4010
  * Enforce consistent assertion style with `node:assert`.
3981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
4011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
3982
4012
  */
3983
4013
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
3984
4014
  /**
3985
4015
  * Prefer passing `Date` directly to the constructor when cloning.
3986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
4016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
3987
4017
  */
3988
4018
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
3989
4019
  /**
3990
4020
  * Use destructured variables over properties.
3991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
4021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
3992
4022
  */
3993
4023
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
3994
4024
  /**
3995
4025
  * Prefer consistent types when spreading a ternary in an array literal.
3996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
4026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
3997
4027
  */
3998
4028
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
3999
4029
  /**
4000
4030
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
4031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
4002
4032
  */
4003
4033
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
4004
4034
  /**
4005
4035
  * Move function definitions to the highest possible scope.
4006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
4036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
4007
4037
  */
4008
4038
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4009
4039
  /**
4010
4040
  * Enforce correct `Error` subclassing.
4011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
4041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
4012
4042
  */
4013
4043
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
4014
4044
  /**
4015
4045
  * Enforce no spaces between braces.
4016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
4046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
4017
4047
  */
4018
4048
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
4019
4049
  /**
4020
4050
  * Enforce passing a `message` value when creating a built-in error.
4021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
4051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
4022
4052
  */
4023
4053
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
4024
4054
  /**
4025
4055
  * Require escape sequences to use uppercase or lowercase values.
4026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
4056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
4027
4057
  */
4028
4058
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
4029
4059
  /**
4030
4060
  * Add expiration conditions to TODO comments.
4031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
4061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
4032
4062
  */
4033
4063
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4034
4064
  /**
4035
4065
  * Enforce explicitly comparing the `length` or `size` property of a value.
4036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
4066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
4037
4067
  */
4038
4068
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4039
4069
  /**
4040
4070
  * Enforce a case style for filenames.
4041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
4071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
4042
4072
  */
4043
4073
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
4044
4074
  /**
4045
4075
  * Enforce specific import styles per module.
4046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
4076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
4047
4077
  */
4048
4078
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
4049
4079
  /**
4050
4080
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
4081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
4052
4082
  */
4053
4083
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
4054
4084
  /**
4055
4085
  * Enforce specifying rules to disable in `eslint-disable` comments.
4056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
4086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
4057
4087
  */
4058
4088
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
4059
4089
  /**
4060
4090
  * Disallow recursive access to `this` within getters and setters.
4061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
4091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
4062
4092
  */
4063
4093
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
4064
4094
  /**
4065
4095
  * Disallow anonymous functions and classes as the default export.
4066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
4096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
4067
4097
  */
4068
4098
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
4069
4099
  /**
4070
4100
  * Prevent passing a function reference directly to iterator methods.
4071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
4101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
4072
4102
  */
4073
4103
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
4074
4104
  /**
4075
4105
  * Prefer `for…of` over the `forEach` method.
4076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
4106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
4077
4107
  */
4078
4108
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
4079
4109
  /**
4080
4110
  * Disallow using the `this` argument in array methods.
4081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
4111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
4082
4112
  */
4083
4113
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
4084
4114
  /**
4085
4115
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
4116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
4087
4117
  * @deprecated
4088
4118
  */
4089
4119
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
4090
4120
  /**
4091
4121
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
4122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
4093
4123
  */
4094
4124
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
4095
4125
  /**
4096
4126
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
4127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
4098
4128
  */
4099
4129
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
4100
4130
  /**
4101
4131
  * Prefer `Array#toSorted()` over `Array#sort()`.
4102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
4132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
4103
4133
  */
4104
4134
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
4105
4135
  /**
4106
4136
  * Disallow member access from await expression.
4107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
4137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
4108
4138
  */
4109
4139
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
4110
4140
  /**
4111
4141
  * Disallow using `await` in `Promise` method parameters.
4112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
4142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
4113
4143
  */
4114
4144
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
4115
4145
  /**
4116
4146
  * Do not use leading/trailing space between `console.log` parameters.
4117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
4147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
4118
4148
  */
4119
4149
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
4120
4150
  /**
4121
4151
  * Do not use `document.cookie` directly.
4122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
4152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
4123
4153
  */
4124
4154
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
4125
4155
  /**
4126
4156
  * Disallow empty files.
4127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
4157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
4128
4158
  */
4129
4159
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
4130
4160
  /**
4131
4161
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
4162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
4133
4163
  */
4134
4164
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
4135
4165
  /**
4136
4166
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
4167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
4138
4168
  */
4139
4169
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
4140
4170
  /**
4171
+ * Disallow immediate mutation after variable assignment.
4172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
4173
+ */
4174
+ "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
4175
+ /**
4141
4176
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
4177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
4143
4178
  * @deprecated
4144
4179
  */
4145
4180
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
4146
4181
  /**
4147
4182
  * Disallow `instanceof` with built-in objects
4148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
4183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
4149
4184
  */
4150
4185
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4151
4186
  /**
4152
4187
  * Disallow invalid options in `fetch()` and `new Request()`.
4153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
4188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
4154
4189
  */
4155
4190
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
4156
4191
  /**
4157
4192
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
4193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
4159
4194
  */
4160
4195
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
4161
4196
  /**
4162
4197
  * Disallow identifiers starting with `new` or `class`.
4163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
4198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
4164
4199
  */
4165
4200
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4166
4201
  /**
4167
4202
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
4203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
4169
4204
  * @deprecated
4170
4205
  */
4171
4206
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
4172
4207
  /**
4173
4208
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
4209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
4175
4210
  */
4176
4211
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
4177
4212
  /**
4178
4213
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
4214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
4180
4215
  */
4181
4216
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
4182
4217
  /**
4183
4218
  * Disallow named usage of default import and export.
4184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
4219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
4185
4220
  */
4186
4221
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
4187
4222
  /**
4188
4223
  * Disallow negated conditions.
4189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
4224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
4190
4225
  */
4191
4226
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
4192
4227
  /**
4193
4228
  * Disallow negated expression in equality check.
4194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
4229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
4195
4230
  */
4196
4231
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
4197
4232
  /**
4198
4233
  * Disallow nested ternary expressions.
4199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
4234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
4200
4235
  */
4201
4236
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
4202
4237
  /**
4203
4238
  * Disallow `new Array()`.
4204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
4239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
4205
4240
  */
4206
4241
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
4207
4242
  /**
4208
4243
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
4244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
4210
4245
  */
4211
4246
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
4212
4247
  /**
4213
4248
  * Disallow the use of the `null` literal.
4214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
4249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
4215
4250
  */
4216
4251
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
4217
4252
  /**
4218
4253
  * Disallow the use of objects as default parameters.
4219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
4254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
4220
4255
  */
4221
4256
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
4222
4257
  /**
4223
4258
  * Disallow `process.exit()`.
4224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
4259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
4225
4260
  */
4226
4261
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
4227
4262
  /**
4228
4263
  * Disallow passing single-element arrays to `Promise` methods.
4229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
4264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
4230
4265
  */
4231
4266
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
4232
4267
  /**
4233
4268
  * Disallow classes that only have static members.
4234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
4269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
4235
4270
  */
4236
4271
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
4237
4272
  /**
4238
4273
  * Disallow `then` property.
4239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
4274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
4240
4275
  */
4241
4276
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
4242
4277
  /**
4243
4278
  * Disallow assigning `this` to a variable.
4244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
4279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
4245
4280
  */
4246
4281
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
4247
4282
  /**
4248
4283
  * Disallow comparing `undefined` using `typeof`.
4249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
4284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
4250
4285
  */
4251
4286
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4252
4287
  /**
4253
4288
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
4289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4255
4290
  */
4256
4291
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
4257
4292
  /**
4258
4293
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
4294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
4260
4295
  */
4261
4296
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
4262
4297
  /**
4263
4298
  * Disallow awaiting non-promise values.
4264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
4299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
4265
4300
  */
4266
4301
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
4267
4302
  /**
4268
4303
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
4304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
4270
4305
  */
4271
4306
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4272
4307
  /**
4273
4308
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
4309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
4275
4310
  */
4276
4311
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
4277
4312
  /**
4278
4313
  * Disallow unreadable array destructuring.
4279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
4314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
4280
4315
  */
4281
4316
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
4282
4317
  /**
4283
4318
  * Disallow unreadable IIFEs.
4284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
4285
4320
  */
4286
4321
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
4287
4322
  /**
4288
4323
  * Disallow unused object properties.
4289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
4290
4325
  */
4291
4326
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
4292
4327
  /**
4328
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
4329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
4330
+ */
4331
+ "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
4332
+ /**
4293
4333
  * Disallow unnecessary `Error.captureStackTrace(…)`.
4294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
4334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4295
4335
  */
4296
4336
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
4297
4337
  /**
4298
4338
  * Disallow useless fallback when spreading in object literals.
4299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
4339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
4300
4340
  */
4301
4341
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
4302
4342
  /**
4303
4343
  * Disallow useless array length check.
4304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
4344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
4305
4345
  */
4306
4346
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
4307
4347
  /**
4308
4348
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
4349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
4310
4350
  */
4311
4351
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
4312
4352
  /**
4313
4353
  * Disallow unnecessary spread.
4314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
4354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
4315
4355
  */
4316
4356
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
4317
4357
  /**
4318
4358
  * Disallow useless case in switch statements.
4319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
4359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
4320
4360
  */
4321
4361
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
4322
4362
  /**
4323
4363
  * Disallow useless `undefined`.
4324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
4364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
4325
4365
  */
4326
4366
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4327
4367
  /**
4328
4368
  * Disallow number literals with zero fractions or dangling dots.
4329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
4369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
4330
4370
  */
4331
4371
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
4332
4372
  /**
4333
4373
  * Enforce proper case for numeric literals.
4334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
4374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
4335
4375
  */
4336
4376
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4337
4377
  /**
4338
4378
  * Enforce the style of numeric separators by correctly grouping digits.
4339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
4379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
4340
4380
  */
4341
4381
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4342
4382
  /**
4343
4383
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
4384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
4345
4385
  */
4346
4386
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4347
4387
  /**
4348
4388
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
4389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
4350
4390
  */
4351
4391
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
4352
4392
  /**
4353
4393
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
4394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
4355
4395
  */
4356
4396
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4357
4397
  /**
4358
4398
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
4399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
4360
4400
  */
4361
4401
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
4362
4402
  /**
4363
4403
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
4404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
4365
4405
  */
4366
4406
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
4367
4407
  /**
4368
4408
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
4409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
4370
4410
  */
4371
4411
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
4372
4412
  /**
4373
4413
  * Prefer `.at()` method for index access and `String#charAt()`.
4374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
4414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
4375
4415
  */
4376
4416
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
4377
4417
  /**
4378
4418
  * Prefer `BigInt` literals over the constructor.
4379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
4419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
4380
4420
  */
4381
4421
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
4382
4422
  /**
4383
4423
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
4424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
4385
4425
  */
4386
4426
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
4387
4427
  /**
4388
4428
  * Prefer class field declarations over `this` assignments in constructors.
4389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
4429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
4390
4430
  */
4391
4431
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
4392
4432
  /**
4393
4433
  * Prefer using `Element#classList.toggle()` to toggle class names.
4394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
4434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
4395
4435
  */
4396
4436
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
4397
4437
  /**
4398
4438
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
4439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
4400
4440
  */
4401
4441
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
4402
4442
  /**
4403
4443
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
4444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
4405
4445
  */
4406
4446
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
4407
4447
  /**
4408
4448
  * Prefer default parameters over reassignment.
4409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
4449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
4410
4450
  */
4411
4451
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
4412
4452
  /**
4413
4453
  * Prefer `Node#append()` over `Node#appendChild()`.
4414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
4454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
4415
4455
  */
4416
4456
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
4417
4457
  /**
4418
4458
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
4459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
4420
4460
  */
4421
4461
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
4422
4462
  /**
4423
4463
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
4464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
4425
4465
  */
4426
4466
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
4427
4467
  /**
4428
4468
  * Prefer `.textContent` over `.innerText`.
4429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
4469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
4430
4470
  */
4431
4471
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
4432
4472
  /**
4433
4473
  * Prefer `EventTarget` over `EventEmitter`.
4434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
4474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
4435
4475
  */
4436
4476
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
4437
4477
  /**
4438
4478
  * Prefer `export…from` when re-exporting.
4439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
4479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
4440
4480
  */
4441
4481
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
4442
4482
  /**
4443
4483
  * Prefer `globalThis` over `window`, `self`, and `global`.
4444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
4484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
4445
4485
  */
4446
4486
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
4447
4487
  /**
4448
4488
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
4489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
4450
4490
  */
4451
4491
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
4452
4492
  /**
4453
4493
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
4494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
4455
4495
  */
4456
4496
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
4457
4497
  /**
4458
4498
  * Prefer reading a JSON file as a buffer.
4459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
4499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
4460
4500
  */
4461
4501
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
4462
4502
  /**
4463
4503
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
4504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
4465
4505
  */
4466
4506
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
4467
4507
  /**
4468
4508
  * Prefer using a logical operator over a ternary.
4469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
4509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4470
4510
  */
4471
4511
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
4472
4512
  /**
4473
4513
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
4514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
4475
4515
  */
4476
4516
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
4477
4517
  /**
4478
4518
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
4519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
4480
4520
  */
4481
4521
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
4482
4522
  /**
4483
4523
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
4524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
4485
4525
  */
4486
4526
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
4487
4527
  /**
4488
4528
  * Prefer modern `Math` APIs over legacy patterns.
4489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
4529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
4490
4530
  */
4491
4531
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
4492
4532
  /**
4493
4533
  * Prefer JavaScript modules (ESM) over CommonJS.
4494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
4534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
4495
4535
  */
4496
4536
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
4497
4537
  /**
4498
4538
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
4539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
4500
4540
  */
4501
4541
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
4502
4542
  /**
4503
4543
  * Prefer negative index over `.length - index` when possible.
4504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
4544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
4505
4545
  */
4506
4546
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
4507
4547
  /**
4508
4548
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
4549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
4510
4550
  */
4511
4551
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
4512
4552
  /**
4513
4553
  * Prefer `Number` static properties over global ones.
4514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
4554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
4515
4555
  */
4516
4556
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4517
4557
  /**
4518
4558
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
4559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
4520
4560
  */
4521
4561
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4522
4562
  /**
4523
4563
  * Prefer omitting the `catch` binding parameter.
4524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
4564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
4525
4565
  */
4526
4566
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
4527
4567
  /**
4528
4568
  * Prefer borrowing methods from the prototype instead of the instance.
4529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
4569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
4530
4570
  */
4531
4571
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
4532
4572
  /**
4533
4573
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
4574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
4535
4575
  */
4536
4576
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
4537
4577
  /**
4538
4578
  * Prefer `Reflect.apply()` over `Function#apply()`.
4539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
4579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
4540
4580
  */
4541
4581
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
4542
4582
  /**
4543
4583
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
4584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
4545
4585
  */
4546
4586
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
4547
4587
  /**
4588
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
4589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
4590
+ */
4591
+ "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
4592
+ /**
4548
4593
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
4594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
4550
4595
  */
4551
4596
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
4552
4597
  /**
4553
4598
  * Prefer using `Set#size` instead of `Array#length`.
4554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
4599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
4555
4600
  */
4556
4601
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
4557
4602
  /**
4558
4603
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
4604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
4560
4605
  */
4561
4606
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
4562
4607
  /**
4563
4608
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
4609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
4565
4610
  */
4566
4611
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
4567
4612
  /**
4568
4613
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
4614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
4570
4615
  */
4571
4616
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
4572
4617
  /**
4573
4618
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
4619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
4575
4620
  */
4576
4621
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
4577
4622
  /**
4578
4623
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
4624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
4580
4625
  */
4581
4626
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
4582
4627
  /**
4583
4628
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
4629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
4585
4630
  */
4586
4631
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
4587
4632
  /**
4588
4633
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
4634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
4590
4635
  */
4591
4636
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
4592
4637
  /**
4593
4638
  * Prefer using `structuredClone` to create a deep clone.
4594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
4639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
4595
4640
  */
4596
4641
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4597
4642
  /**
4598
4643
  * Prefer `switch` over multiple `else-if`.
4599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
4644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
4600
4645
  */
4601
4646
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
4602
4647
  /**
4603
4648
  * Prefer ternary expressions over simple `if-else` statements.
4604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
4649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
4605
4650
  */
4606
4651
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
4607
4652
  /**
4608
4653
  * Prefer top-level await over top-level promises and async function calls.
4609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
4654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
4610
4655
  */
4611
4656
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
4612
4657
  /**
4613
4658
  * Enforce throwing `TypeError` in type checking conditions.
4614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
4659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
4615
4660
  */
4616
4661
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
4617
4662
  /**
4618
4663
  * Prevent abbreviations.
4619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
4664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
4620
4665
  */
4621
4666
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
4622
4667
  /**
4623
4668
  * Enforce consistent relative URL style.
4624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
4669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
4625
4670
  */
4626
4671
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
4627
4672
  /**
4628
4673
  * Enforce using the separator argument with `Array#join()`.
4629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
4674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
4630
4675
  */
4631
4676
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
4632
4677
  /**
4633
4678
  * Require non-empty module attributes for imports and exports
4634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
4679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
4635
4680
  */
4636
4681
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
4637
4682
  /**
4638
4683
  * Require non-empty specifier list in import and export statements.
4639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
4684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
4640
4685
  */
4641
4686
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
4642
4687
  /**
4643
4688
  * Enforce using the digits argument with `Number#toFixed()`.
4644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
4689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4645
4690
  */
4646
4691
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
4647
4692
  /**
4648
4693
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
4694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
4650
4695
  */
4651
4696
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
4652
4697
  /**
4653
4698
  * Enforce better string content.
4654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
4699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
4655
4700
  */
4656
4701
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
4657
4702
  /**
4658
4703
  * Enforce consistent brace style for `case` clauses.
4659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
4704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
4660
4705
  */
4661
4706
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
4662
4707
  /**
4663
4708
  * Fix whitespace-insensitive template indentation.
4664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
4709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
4665
4710
  */
4666
4711
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
4667
4712
  /**
4668
4713
  * Enforce consistent case for text encoding identifiers.
4669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
4714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
4670
4715
  */
4671
- "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
4716
+ "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
4672
4717
  /**
4673
4718
  * Require `new` when creating an error.
4674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
4719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
4675
4720
  */
4676
4721
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
4677
4722
  /**
@@ -6781,6 +6826,9 @@ type TypescriptEslintNoUnnecessaryTypeAssertion = [] | [{
6781
6826
  checkLiteralConstAssertions?: boolean;
6782
6827
  typesToIgnore?: string[];
6783
6828
  }];
6829
+ type TypescriptEslintNoUnsafeMemberAccess = [] | [{
6830
+ allowOptionalChaining?: boolean;
6831
+ }];
6784
6832
  type TypescriptEslintNoUnusedExpressions = [] | [{
6785
6833
  allowShortCircuit?: boolean;
6786
6834
  allowTernary?: boolean;
@@ -6796,6 +6844,7 @@ type TypescriptEslintNoUnusedVars = [] | [(("all" | "local") | {
6796
6844
  destructuredArrayIgnorePattern?: string;
6797
6845
  ignoreClassWithStaticInitBlock?: boolean;
6798
6846
  ignoreRestSiblings?: boolean;
6847
+ ignoreUsingDeclarations?: boolean;
6799
6848
  reportUsedIgnorePattern?: boolean;
6800
6849
  vars?: ("all" | "local");
6801
6850
  varsIgnorePattern?: string;
@@ -7580,6 +7629,11 @@ type JsdocConvertToJsdocComments = [] | [{
7580
7629
  type JsdocEmptyTags = [] | [{
7581
7630
  tags?: string[];
7582
7631
  }];
7632
+ type JsdocEscapeInlineTags = [] | [{
7633
+ allowedInlineTags?: string[];
7634
+ enableFixer?: boolean;
7635
+ fixType?: ("backticks" | "backslash");
7636
+ }];
7583
7637
  type JsdocImplementsOnClasses = [] | [{
7584
7638
  contexts?: (string | {
7585
7639
  comment?: string;
@@ -7838,6 +7892,7 @@ type JsdocRequireReturns = [] | [{
7838
7892
  type JsdocRequireReturnsCheck = [] | [{
7839
7893
  exemptAsync?: boolean;
7840
7894
  exemptGenerators?: boolean;
7895
+ noNativeTypes?: boolean;
7841
7896
  reportMissingReturnForUndefinedTypes?: boolean;
7842
7897
  }];
7843
7898
  type JsdocRequireReturnsDescription = [] | [{
@@ -7916,15 +7971,40 @@ type JsdocTextEscaping = [] | [{
7916
7971
  escapeHTML?: boolean;
7917
7972
  escapeMarkdown?: boolean;
7918
7973
  }];
7974
+ type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
7975
+ enableFixer?: boolean;
7976
+ }];
7977
+ type JsdocTsNoUnnecessaryTemplateExpression = [] | [{
7978
+ enableFixer?: boolean;
7979
+ }];
7980
+ type JsdocTsPreferFunctionType = [] | [{
7981
+ enableFixer?: boolean;
7982
+ }];
7919
7983
  type JsdocTypeFormatting = [] | [{
7920
7984
  arrayBrackets?: ("angle" | "square");
7985
+ arrowFunctionPostReturnMarkerSpacing?: string;
7986
+ arrowFunctionPreReturnMarkerSpacing?: string;
7921
7987
  enableFixer?: boolean;
7988
+ functionOrClassParameterSpacing?: string;
7989
+ functionOrClassPostGenericSpacing?: string;
7990
+ functionOrClassPostReturnMarkerSpacing?: string;
7991
+ functionOrClassPreReturnMarkerSpacing?: string;
7992
+ functionOrClassTypeParameterSpacing?: string;
7993
+ genericAndTupleElementSpacing?: string;
7922
7994
  genericDot?: boolean;
7995
+ keyValuePostColonSpacing?: string;
7996
+ keyValuePostKeySpacing?: string;
7997
+ keyValuePostOptionalSpacing?: string;
7998
+ keyValuePostVariadicSpacing?: string;
7999
+ methodQuotes?: ("double" | "single");
7923
8000
  objectFieldIndent?: string;
7924
8001
  objectFieldQuote?: ("double" | "single" | null);
7925
8002
  objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak");
7926
8003
  objectFieldSeparatorOptionalLinebreak?: boolean;
7927
8004
  objectFieldSeparatorTrailingPunctuation?: boolean;
8005
+ parameterDefaultValueSpacing?: string;
8006
+ postMethodNameSpacing?: string;
8007
+ postNewSpacing?: string;
7928
8008
  separatorForSingleObjectField?: boolean;
7929
8009
  stringQuotes?: ("double" | "single");
7930
8010
  typeBracketSpacing?: string;
@@ -8910,12 +8990,14 @@ type NoRestrictedImports = ((string | {
8910
8990
  message?: string;
8911
8991
  importNames?: string[];
8912
8992
  allowImportNames?: string[];
8993
+ allowTypeImports?: boolean;
8913
8994
  })[] | [] | [{
8914
8995
  paths?: (string | {
8915
8996
  name: string;
8916
8997
  message?: string;
8917
8998
  importNames?: string[];
8918
8999
  allowImportNames?: string[];
9000
+ allowTypeImports?: boolean;
8919
9001
  })[];
8920
9002
  patterns?: (string[] | ({
8921
9003
  [k: string]: unknown | undefined;
@@ -11080,6 +11162,7 @@ type PnpmJsonValidCatalog = [] | [{
11080
11162
  }];
11081
11163
  type PnpmYamlNoDuplicateCatalogItem = [] | [{
11082
11164
  allow?: string[];
11165
+ checkDuplicates?: ("name-only" | "exact-version");
11083
11166
  }];
11084
11167
  type PreferArrowCallback = [] | [{
11085
11168
  allowNamedFunctions?: boolean;
@@ -11504,6 +11587,9 @@ type UnicornTemplateIndent = [] | [{
11504
11587
  selectors?: string[];
11505
11588
  comments?: string[];
11506
11589
  }];
11590
+ type UnicornTextEncodingIdentifierCase = [] | [{
11591
+ withDash?: boolean;
11592
+ }];
11507
11593
  type UnocssEnforceClassCompile = [] | [{
11508
11594
  prefix?: string;
11509
11595
  enableFix?: boolean;
@@ -11520,6 +11606,7 @@ type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
11520
11606
  destructuredArrayIgnorePattern?: string;
11521
11607
  ignoreClassWithStaticInitBlock?: boolean;
11522
11608
  ignoreRestSiblings?: boolean;
11609
+ ignoreUsingDeclarations?: boolean;
11523
11610
  reportUsedIgnorePattern?: boolean;
11524
11611
  vars?: ("all" | "local");
11525
11612
  varsIgnorePattern?: string;
@@ -11532,6 +11619,7 @@ type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
11532
11619
  destructuredArrayIgnorePattern?: string;
11533
11620
  ignoreClassWithStaticInitBlock?: boolean;
11534
11621
  ignoreRestSiblings?: boolean;
11622
+ ignoreUsingDeclarations?: boolean;
11535
11623
  reportUsedIgnorePattern?: boolean;
11536
11624
  vars?: ("all" | "local");
11537
11625
  varsIgnorePattern?: string;
package/dist/index.js CHANGED
@@ -13,9 +13,9 @@ const pluginPrettierRecommended = __cjs_require("eslint-plugin-prettier/recommen
13
13
  import pluginUnusedImports from "eslint-plugin-unused-imports";
14
14
  import pluginJsdoc from "eslint-plugin-jsdoc";
15
15
  import pluginIgnore from "eslint-config-flat-gitignore";
16
- const pluginDeMorgan = __cjs_require("eslint-plugin-de-morgan");
16
+ import pluginDeMorgan from "eslint-plugin-de-morgan";
17
17
  import pluginPnpm from "eslint-plugin-pnpm";
18
- import * as pluginImport from "eslint-plugin-import-x";
18
+ import pluginImport from "eslint-plugin-import-x";
19
19
  const pluginJsonc = __cjs_require("eslint-plugin-jsonc");
20
20
  const pluginYml = __cjs_require("eslint-plugin-yml");
21
21
  const configJs = __cjs_require("@eslint/js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "7.2.6",
3
+ "version": "7.2.8",
4
4
  "description": "ESLint config for @sxzz.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,48 +38,47 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
41
- "@eslint/js": "^9.36.0",
42
- "@eslint/markdown": "^7.3.0",
41
+ "@eslint/js": "^9.38.0",
42
+ "@eslint/markdown": "^7.5.0",
43
43
  "eslint-config-flat-gitignore": "^2.1.0",
44
44
  "eslint-config-prettier": "^10.1.8",
45
45
  "eslint-flat-config-utils": "^2.1.4",
46
46
  "eslint-plugin-antfu": "^3.1.1",
47
47
  "eslint-plugin-command": "^3.3.1",
48
- "eslint-plugin-de-morgan": "^1.3.1",
48
+ "eslint-plugin-de-morgan": "^2.0.0",
49
49
  "eslint-plugin-import-x": "^4.16.1",
50
- "eslint-plugin-jsdoc": "^60.5.0",
51
- "eslint-plugin-jsonc": "^2.20.1",
50
+ "eslint-plugin-jsdoc": "^61.1.11",
51
+ "eslint-plugin-jsonc": "^2.21.0",
52
52
  "eslint-plugin-n": "^17.23.1",
53
- "eslint-plugin-perfectionist": "^4.15.0",
54
- "eslint-plugin-pnpm": "^1.1.2",
53
+ "eslint-plugin-perfectionist": "^4.15.1",
54
+ "eslint-plugin-pnpm": "^1.3.0",
55
55
  "eslint-plugin-prettier": "^5.5.4",
56
56
  "eslint-plugin-regexp": "^2.10.0",
57
57
  "eslint-plugin-sxzz": "^0.4.1",
58
- "eslint-plugin-unicorn": "^61.0.2",
59
- "eslint-plugin-unused-imports": "^4.2.0",
60
- "eslint-plugin-vue": "^10.5.0",
61
- "eslint-plugin-yml": "^1.18.0",
58
+ "eslint-plugin-unicorn": "^62.0.0",
59
+ "eslint-plugin-unused-imports": "^4.3.0",
60
+ "eslint-plugin-vue": "^10.5.1",
61
+ "eslint-plugin-yml": "^1.19.0",
62
62
  "globals": "^16.4.0",
63
63
  "jsonc-eslint-parser": "^2.4.1",
64
64
  "local-pkg": "^1.1.2",
65
65
  "prettier": "^3.6.2",
66
- "typescript-eslint": "^8.44.1",
66
+ "typescript-eslint": "^8.46.2",
67
67
  "vue-eslint-parser": "^10.2.0",
68
68
  "yaml-eslint-parser": "^1.3.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@eslint/config-inspector": "^1.3.0",
72
72
  "@sxzz/prettier-config": "^2.2.4",
73
- "@types/node": "^24.5.2",
74
- "@unocss/eslint-plugin": "^66.5.2",
75
- "ansis": "^4.2.0",
76
- "bumpp": "^10.2.3",
77
- "eslint": "^9.36.0",
73
+ "@types/node": "^24.9.2",
74
+ "@unocss/eslint-plugin": "^66.5.4",
75
+ "bumpp": "^10.3.1",
76
+ "eslint": "^9.38.0",
78
77
  "eslint-typegen": "^2.3.0",
79
- "rolldown-plugin-require-cjs": "^0.3.0",
80
- "tsdown": "^0.15.5",
81
- "tsx": "^4.20.6",
82
- "typescript": "^5.9.2"
78
+ "rolldown-plugin-require-cjs": "^0.3.1",
79
+ "tsdown": "^0.15.12",
80
+ "typescript": "^5.9.3",
81
+ "unrun": "^0.2.1"
83
82
  },
84
83
  "engines": {
85
84
  "node": ">=20.0.0"
@@ -91,7 +90,7 @@
91
90
  "scripts": {
92
91
  "dev": "eslint-config-inspector --config eslint-inspector.config.ts",
93
92
  "build": "pnpm run build:typegen && tsdown",
94
- "build:typegen": "tsx scripts/typegen.ts",
93
+ "build:typegen": "unrun scripts/typegen.ts",
95
94
  "build:inspector": "eslint-config-inspector build --config eslint-inspector.config.ts",
96
95
  "test": "echo Skip",
97
96
  "lint": "eslint --max-warnings=0",