@sxzz/eslint-config 7.7.2 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.mts +181 -148
  2. package/package.json +17 -17
package/dist/index.d.mts CHANGED
@@ -538,7 +538,7 @@ interface Rules {
538
538
  * Disallow default values that will never be used
539
539
  * @see https://typescript-eslint.io/rules/no-useless-default-assignment
540
540
  */
541
- "@typescript-eslint/no-useless-default-assignment"?: Linter.RuleEntry<[]>;
541
+ "@typescript-eslint/no-useless-default-assignment"?: Linter.RuleEntry<TypescriptEslintNoUselessDefaultAssignment>;
542
542
  /**
543
543
  * Disallow empty exports that don't change anything in a module file
544
544
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -3235,6 +3235,11 @@ interface Rules {
3235
3235
  */
3236
3236
  "node/prefer-global/console"?: Linter.RuleEntry<NodePreferGlobalConsole>;
3237
3237
  /**
3238
+ * enforce either `crypto` or `require("crypto").webcrypto`
3239
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
3240
+ */
3241
+ "node/prefer-global/crypto"?: Linter.RuleEntry<NodePreferGlobalCrypto>;
3242
+ /**
3238
3243
  * enforce either `process` or `require("process")`
3239
3244
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
3240
3245
  */
@@ -3250,6 +3255,11 @@ interface Rules {
3250
3255
  */
3251
3256
  "node/prefer-global/text-encoder"?: Linter.RuleEntry<NodePreferGlobalTextEncoder>;
3252
3257
  /**
3258
+ * enforce either global timer functions or `require("timers")`
3259
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
3260
+ */
3261
+ "node/prefer-global/timers"?: Linter.RuleEntry<NodePreferGlobalTimers>;
3262
+ /**
3253
3263
  * enforce either `URL` or `require("url").URL`
3254
3264
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
3255
3265
  */
@@ -3586,7 +3596,7 @@ interface Rules {
3586
3596
  */
3587
3597
  "quotes"?: Linter.RuleEntry<Quotes>;
3588
3598
  /**
3589
- * Enforce the consistent use of the radix argument when using `parseInt()`
3599
+ * Enforce the use of the radix argument when using `parseInt()`
3590
3600
  * @see https://eslint.org/docs/latest/rules/radix
3591
3601
  */
3592
3602
  "radix"?: Linter.RuleEntry<Radix>;
@@ -4130,725 +4140,730 @@ interface Rules {
4130
4140
  "unicode-bom"?: Linter.RuleEntry<UnicodeBom>;
4131
4141
  /**
4132
4142
  * Improve regexes by making them shorter, consistent, and safer.
4133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
4143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
4134
4144
  */
4135
4145
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
4136
4146
  /**
4137
4147
  * Enforce a specific parameter name in catch clauses.
4138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
4148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
4139
4149
  */
4140
4150
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
4141
4151
  /**
4142
4152
  * Enforce consistent assertion style with `node:assert`.
4143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
4153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
4144
4154
  */
4145
4155
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
4146
4156
  /**
4147
4157
  * Prefer passing `Date` directly to the constructor when cloning.
4148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
4158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
4149
4159
  */
4150
4160
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
4151
4161
  /**
4152
4162
  * Use destructured variables over properties.
4153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
4163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
4154
4164
  */
4155
4165
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
4156
4166
  /**
4157
4167
  * Prefer consistent types when spreading a ternary in an array literal.
4158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
4168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
4159
4169
  */
4160
4170
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
4161
4171
  /**
4162
4172
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
4173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
4164
4174
  */
4165
4175
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
4166
4176
  /**
4167
4177
  * Move function definitions to the highest possible scope.
4168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
4178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
4169
4179
  */
4170
4180
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4171
4181
  /**
4172
4182
  * Enforce correct `Error` subclassing.
4173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
4183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
4174
4184
  */
4175
4185
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
4176
4186
  /**
4177
4187
  * Enforce no spaces between braces.
4178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
4188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
4179
4189
  */
4180
4190
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
4181
4191
  /**
4182
4192
  * Enforce passing a `message` value when creating a built-in error.
4183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
4193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
4184
4194
  */
4185
4195
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
4186
4196
  /**
4187
4197
  * Require escape sequences to use uppercase or lowercase values.
4188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
4198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
4189
4199
  */
4190
4200
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
4191
4201
  /**
4192
4202
  * Add expiration conditions to TODO comments.
4193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
4203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
4194
4204
  */
4195
4205
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4196
4206
  /**
4197
4207
  * Enforce explicitly comparing the `length` or `size` property of a value.
4198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
4208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
4199
4209
  */
4200
4210
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4201
4211
  /**
4202
4212
  * Enforce a case style for filenames.
4203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
4213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
4204
4214
  */
4205
4215
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
4206
4216
  /**
4207
4217
  * Enforce specific import styles per module.
4208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
4218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
4209
4219
  */
4210
4220
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
4211
4221
  /**
4222
+ * Prevent usage of variables from outside the scope of isolated functions.
4223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
4224
+ */
4225
+ "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4226
+ /**
4212
4227
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
4228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
4214
4229
  */
4215
4230
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
4216
4231
  /**
4217
4232
  * Enforce specifying rules to disable in `eslint-disable` comments.
4218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
4233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
4219
4234
  */
4220
4235
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
4221
4236
  /**
4222
4237
  * Disallow recursive access to `this` within getters and setters.
4223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
4238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
4224
4239
  */
4225
4240
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
4226
4241
  /**
4227
4242
  * Disallow anonymous functions and classes as the default export.
4228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
4243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
4229
4244
  */
4230
4245
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
4231
4246
  /**
4232
4247
  * Prevent passing a function reference directly to iterator methods.
4233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
4248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
4234
4249
  */
4235
4250
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
4236
4251
  /**
4237
4252
  * Prefer `for…of` over the `forEach` method.
4238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
4253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
4239
4254
  */
4240
4255
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
4241
4256
  /**
4242
4257
  * Disallow using the `this` argument in array methods.
4243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
4258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
4244
4259
  */
4245
4260
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
4246
4261
  /**
4247
4262
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
4263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4249
4264
  * @deprecated
4250
4265
  */
4251
4266
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
4252
4267
  /**
4253
4268
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
4269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
4255
4270
  */
4256
4271
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
4257
4272
  /**
4258
4273
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
4274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
4260
4275
  */
4261
4276
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
4262
4277
  /**
4263
4278
  * Prefer `Array#toSorted()` over `Array#sort()`.
4264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
4279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
4265
4280
  */
4266
4281
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
4267
4282
  /**
4268
4283
  * Disallow member access from await expression.
4269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
4284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
4270
4285
  */
4271
4286
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
4272
4287
  /**
4273
4288
  * Disallow using `await` in `Promise` method parameters.
4274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
4289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
4275
4290
  */
4276
4291
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
4277
4292
  /**
4278
4293
  * Do not use leading/trailing space between `console.log` parameters.
4279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
4294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
4280
4295
  */
4281
4296
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
4282
4297
  /**
4283
4298
  * Do not use `document.cookie` directly.
4284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
4299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
4285
4300
  */
4286
4301
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
4287
4302
  /**
4288
4303
  * Disallow empty files.
4289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
4304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
4290
4305
  */
4291
4306
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
4292
4307
  /**
4293
4308
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
4309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
4295
4310
  */
4296
4311
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
4297
4312
  /**
4298
4313
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
4314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
4300
4315
  */
4301
4316
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
4302
4317
  /**
4303
4318
  * Disallow immediate mutation after variable assignment.
4304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
4305
4320
  */
4306
4321
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
4307
4322
  /**
4308
4323
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4310
4325
  * @deprecated
4311
4326
  */
4312
4327
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
4313
4328
  /**
4314
4329
  * Disallow `instanceof` with built-in objects
4315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
4330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
4316
4331
  */
4317
4332
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4318
4333
  /**
4319
4334
  * Disallow invalid options in `fetch()` and `new Request()`.
4320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
4335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
4321
4336
  */
4322
4337
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
4323
4338
  /**
4324
4339
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
4340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
4326
4341
  */
4327
4342
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
4328
4343
  /**
4329
4344
  * Disallow identifiers starting with `new` or `class`.
4330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
4345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
4331
4346
  */
4332
4347
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4333
4348
  /**
4334
4349
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
4350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4336
4351
  * @deprecated
4337
4352
  */
4338
4353
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
4339
4354
  /**
4340
4355
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
4356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
4342
4357
  */
4343
4358
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
4344
4359
  /**
4345
4360
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
4361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
4347
4362
  */
4348
4363
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
4349
4364
  /**
4350
4365
  * Disallow named usage of default import and export.
4351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
4366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
4352
4367
  */
4353
4368
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
4354
4369
  /**
4355
4370
  * Disallow negated conditions.
4356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
4371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
4357
4372
  */
4358
4373
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
4359
4374
  /**
4360
4375
  * Disallow negated expression in equality check.
4361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
4376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
4362
4377
  */
4363
4378
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
4364
4379
  /**
4365
4380
  * Disallow nested ternary expressions.
4366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
4381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
4367
4382
  */
4368
4383
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
4369
4384
  /**
4370
4385
  * Disallow `new Array()`.
4371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
4386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
4372
4387
  */
4373
4388
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
4374
4389
  /**
4375
4390
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
4391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
4377
4392
  */
4378
4393
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
4379
4394
  /**
4380
4395
  * Disallow the use of the `null` literal.
4381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
4396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
4382
4397
  */
4383
4398
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
4384
4399
  /**
4385
4400
  * Disallow the use of objects as default parameters.
4386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
4401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
4387
4402
  */
4388
4403
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
4389
4404
  /**
4390
4405
  * Disallow `process.exit()`.
4391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
4406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
4392
4407
  */
4393
4408
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
4394
4409
  /**
4395
4410
  * Disallow passing single-element arrays to `Promise` methods.
4396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
4411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
4397
4412
  */
4398
4413
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
4399
4414
  /**
4400
4415
  * Disallow classes that only have static members.
4401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
4416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
4402
4417
  */
4403
4418
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
4404
4419
  /**
4405
4420
  * Disallow `then` property.
4406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
4421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
4407
4422
  */
4408
4423
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
4409
4424
  /**
4410
4425
  * Disallow assigning `this` to a variable.
4411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
4426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
4412
4427
  */
4413
4428
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
4414
4429
  /**
4415
4430
  * Disallow comparing `undefined` using `typeof`.
4416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
4431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
4417
4432
  */
4418
4433
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4419
4434
  /**
4420
4435
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4422
4437
  */
4423
4438
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
4424
4439
  /**
4425
4440
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
4441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
4427
4442
  */
4428
4443
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
4429
4444
  /**
4430
4445
  * Disallow awaiting non-promise values.
4431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
4446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
4432
4447
  */
4433
4448
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
4434
4449
  /**
4435
4450
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
4451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
4437
4452
  */
4438
4453
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4439
4454
  /**
4440
4455
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
4456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
4442
4457
  */
4443
4458
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
4444
4459
  /**
4445
4460
  * Disallow unreadable array destructuring.
4446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
4461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
4447
4462
  */
4448
4463
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
4449
4464
  /**
4450
4465
  * Disallow unreadable IIFEs.
4451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
4466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
4452
4467
  */
4453
4468
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
4454
4469
  /**
4455
4470
  * Disallow unused object properties.
4456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
4471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
4457
4472
  */
4458
4473
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
4459
4474
  /**
4460
4475
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
4461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
4476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
4462
4477
  */
4463
4478
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
4464
4479
  /**
4465
4480
  * Disallow unnecessary `Error.captureStackTrace(…)`.
4466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4467
4482
  */
4468
4483
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
4469
4484
  /**
4470
4485
  * Disallow useless fallback when spreading in object literals.
4471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
4486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
4472
4487
  */
4473
4488
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
4474
4489
  /**
4475
4490
  * Disallow useless array length check.
4476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
4491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
4477
4492
  */
4478
4493
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
4479
4494
  /**
4480
4495
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
4496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
4482
4497
  */
4483
4498
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
4484
4499
  /**
4485
4500
  * Disallow unnecessary spread.
4486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
4501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
4487
4502
  */
4488
4503
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
4489
4504
  /**
4490
4505
  * Disallow useless case in switch statements.
4491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
4506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
4492
4507
  */
4493
4508
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
4494
4509
  /**
4495
4510
  * Disallow useless `undefined`.
4496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
4511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
4497
4512
  */
4498
4513
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4499
4514
  /**
4500
4515
  * Disallow number literals with zero fractions or dangling dots.
4501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
4516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
4502
4517
  */
4503
4518
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
4504
4519
  /**
4505
4520
  * Enforce proper case for numeric literals.
4506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
4521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
4507
4522
  */
4508
4523
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4509
4524
  /**
4510
4525
  * Enforce the style of numeric separators by correctly grouping digits.
4511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
4526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
4512
4527
  */
4513
4528
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4514
4529
  /**
4515
4530
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
4531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
4517
4532
  */
4518
4533
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4519
4534
  /**
4520
4535
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
4536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
4522
4537
  */
4523
4538
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
4524
4539
  /**
4525
4540
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
4541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
4527
4542
  */
4528
4543
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4529
4544
  /**
4530
4545
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
4546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
4532
4547
  */
4533
4548
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
4534
4549
  /**
4535
4550
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
4551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
4537
4552
  */
4538
4553
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
4539
4554
  /**
4540
4555
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
4556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
4542
4557
  */
4543
4558
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
4544
4559
  /**
4545
4560
  * Prefer `.at()` method for index access and `String#charAt()`.
4546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
4561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
4547
4562
  */
4548
4563
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
4549
4564
  /**
4550
4565
  * Prefer `BigInt` literals over the constructor.
4551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
4566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
4552
4567
  */
4553
4568
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
4554
4569
  /**
4555
4570
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
4571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
4557
4572
  */
4558
4573
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
4559
4574
  /**
4560
4575
  * Prefer class field declarations over `this` assignments in constructors.
4561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
4576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
4562
4577
  */
4563
4578
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
4564
4579
  /**
4565
4580
  * Prefer using `Element#classList.toggle()` to toggle class names.
4566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
4581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
4567
4582
  */
4568
4583
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
4569
4584
  /**
4570
4585
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
4586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
4572
4587
  */
4573
4588
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
4574
4589
  /**
4575
4590
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
4591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
4577
4592
  */
4578
4593
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
4579
4594
  /**
4580
4595
  * Prefer default parameters over reassignment.
4581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
4596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
4582
4597
  */
4583
4598
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
4584
4599
  /**
4585
4600
  * Prefer `Node#append()` over `Node#appendChild()`.
4586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
4601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
4587
4602
  */
4588
4603
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
4589
4604
  /**
4590
4605
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
4606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
4592
4607
  */
4593
4608
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
4594
4609
  /**
4595
4610
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
4611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
4597
4612
  */
4598
4613
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
4599
4614
  /**
4600
4615
  * Prefer `.textContent` over `.innerText`.
4601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
4616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
4602
4617
  */
4603
4618
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
4604
4619
  /**
4605
4620
  * Prefer `EventTarget` over `EventEmitter`.
4606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
4621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
4607
4622
  */
4608
4623
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
4609
4624
  /**
4610
4625
  * Prefer `export…from` when re-exporting.
4611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
4626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
4612
4627
  */
4613
4628
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
4614
4629
  /**
4615
4630
  * Prefer `globalThis` over `window`, `self`, and `global`.
4616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
4631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
4617
4632
  */
4618
4633
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
4619
4634
  /**
4620
4635
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
4636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
4622
4637
  */
4623
4638
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
4624
4639
  /**
4625
4640
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
4641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
4627
4642
  */
4628
4643
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
4629
4644
  /**
4630
4645
  * Prefer reading a JSON file as a buffer.
4631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
4646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
4632
4647
  */
4633
4648
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
4634
4649
  /**
4635
4650
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
4651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
4637
4652
  */
4638
4653
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
4639
4654
  /**
4640
4655
  * Prefer using a logical operator over a ternary.
4641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4642
4657
  */
4643
4658
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
4644
4659
  /**
4645
4660
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
4661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
4647
4662
  */
4648
4663
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
4649
4664
  /**
4650
4665
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
4666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
4652
4667
  */
4653
4668
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
4654
4669
  /**
4655
4670
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
4671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
4657
4672
  */
4658
4673
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
4659
4674
  /**
4660
4675
  * Prefer modern `Math` APIs over legacy patterns.
4661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
4676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
4662
4677
  */
4663
4678
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
4664
4679
  /**
4665
4680
  * Prefer JavaScript modules (ESM) over CommonJS.
4666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
4681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
4667
4682
  */
4668
4683
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
4669
4684
  /**
4670
4685
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
4686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
4672
4687
  */
4673
4688
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
4674
4689
  /**
4675
4690
  * Prefer negative index over `.length - index` when possible.
4676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
4691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
4677
4692
  */
4678
4693
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
4679
4694
  /**
4680
4695
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
4696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
4682
4697
  */
4683
4698
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
4684
4699
  /**
4685
4700
  * Prefer `Number` static properties over global ones.
4686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
4701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
4687
4702
  */
4688
4703
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4689
4704
  /**
4690
4705
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
4706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
4692
4707
  */
4693
4708
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4694
4709
  /**
4695
4710
  * Prefer omitting the `catch` binding parameter.
4696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
4711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
4697
4712
  */
4698
4713
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
4699
4714
  /**
4700
4715
  * Prefer borrowing methods from the prototype instead of the instance.
4701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
4716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
4702
4717
  */
4703
4718
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
4704
4719
  /**
4705
4720
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
4721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
4707
4722
  */
4708
4723
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
4709
4724
  /**
4710
4725
  * Prefer `Reflect.apply()` over `Function#apply()`.
4711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
4726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
4712
4727
  */
4713
4728
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
4714
4729
  /**
4715
4730
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
4731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
4717
4732
  */
4718
4733
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
4719
4734
  /**
4720
4735
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
4721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
4736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
4722
4737
  */
4723
4738
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
4724
4739
  /**
4725
4740
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
4741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
4727
4742
  */
4728
4743
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
4729
4744
  /**
4730
4745
  * Prefer using `Set#size` instead of `Array#length`.
4731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
4746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
4732
4747
  */
4733
4748
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
4734
4749
  /**
4735
4750
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
4751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
4737
4752
  */
4738
4753
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
4739
4754
  /**
4740
4755
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
4756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
4742
4757
  */
4743
4758
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
4744
4759
  /**
4745
4760
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
4761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
4747
4762
  */
4748
4763
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
4749
4764
  /**
4750
4765
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
4766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
4752
4767
  */
4753
4768
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
4754
4769
  /**
4755
4770
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
4771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
4757
4772
  */
4758
4773
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
4759
4774
  /**
4760
4775
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
4776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
4762
4777
  */
4763
4778
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
4764
4779
  /**
4765
4780
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
4781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
4767
4782
  */
4768
4783
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
4769
4784
  /**
4770
4785
  * Prefer using `structuredClone` to create a deep clone.
4771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
4772
4787
  */
4773
4788
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4774
4789
  /**
4775
4790
  * Prefer `switch` over multiple `else-if`.
4776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
4791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
4777
4792
  */
4778
4793
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
4779
4794
  /**
4780
4795
  * Prefer ternary expressions over simple `if-else` statements.
4781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
4796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
4782
4797
  */
4783
4798
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
4784
4799
  /**
4785
4800
  * Prefer top-level await over top-level promises and async function calls.
4786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
4801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
4787
4802
  */
4788
4803
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
4789
4804
  /**
4790
4805
  * Enforce throwing `TypeError` in type checking conditions.
4791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
4806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
4792
4807
  */
4793
4808
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
4794
4809
  /**
4795
4810
  * Prevent abbreviations.
4796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
4811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
4797
4812
  */
4798
4813
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
4799
4814
  /**
4800
4815
  * Enforce consistent relative URL style.
4801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
4816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
4802
4817
  */
4803
4818
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
4804
4819
  /**
4805
4820
  * Enforce using the separator argument with `Array#join()`.
4806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
4821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
4807
4822
  */
4808
4823
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
4809
4824
  /**
4810
4825
  * Require non-empty module attributes for imports and exports
4811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
4826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
4812
4827
  */
4813
4828
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
4814
4829
  /**
4815
4830
  * Require non-empty specifier list in import and export statements.
4816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
4831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
4817
4832
  */
4818
4833
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
4819
4834
  /**
4820
4835
  * Enforce using the digits argument with `Number#toFixed()`.
4821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4822
4837
  */
4823
4838
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
4824
4839
  /**
4825
4840
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
4841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
4827
4842
  */
4828
4843
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
4829
4844
  /**
4830
4845
  * Enforce better string content.
4831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
4846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
4832
4847
  */
4833
4848
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
4834
4849
  /**
4835
4850
  * Enforce consistent brace style for `case` clauses.
4836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
4851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
4837
4852
  */
4838
4853
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
4839
4854
  /**
4840
4855
  * Fix whitespace-insensitive template indentation.
4841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
4856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
4842
4857
  */
4843
4858
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
4844
4859
  /**
4845
4860
  * Enforce consistent case for text encoding identifiers.
4846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
4861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
4847
4862
  */
4848
4863
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
4849
4864
  /**
4850
4865
  * Require `new` when creating an error.
4851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
4866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
4852
4867
  */
4853
4868
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
4854
4869
  /**
@@ -6094,7 +6109,7 @@ interface Rules {
6094
6109
  * enforce valid `v-for` directives
6095
6110
  * @see https://eslint.vuejs.org/rules/valid-v-for.html
6096
6111
  */
6097
- "vue/valid-v-for"?: Linter.RuleEntry<[]>;
6112
+ "vue/valid-v-for"?: Linter.RuleEntry<VueValidVFor>;
6098
6113
  /**
6099
6114
  * enforce valid `v-html` directives
6100
6115
  * @see https://eslint.vuejs.org/rules/valid-v-html.html
@@ -7008,6 +7023,9 @@ type TypescriptEslintNoUseBeforeDefine = [] | [("nofunc" | {
7008
7023
  typedefs?: boolean;
7009
7024
  variables?: boolean;
7010
7025
  })];
7026
+ type TypescriptEslintNoUselessDefaultAssignment = [] | [{
7027
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
7028
+ }];
7011
7029
  type TypescriptEslintNoVarRequires = [] | [{
7012
7030
  allow?: string[];
7013
7031
  }];
@@ -8782,6 +8800,7 @@ type MaxParams = [] | [(number | {
8782
8800
  maximum?: number;
8783
8801
  max?: number;
8784
8802
  countVoidThis?: boolean;
8803
+ countThis?: ("never" | "except-void" | "always");
8785
8804
  })];
8786
8805
  type MaxStatements = [] | [(number | {
8787
8806
  maximum?: number;
@@ -9340,9 +9359,11 @@ type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
9340
9359
  }];
9341
9360
  type NodePreferGlobalBuffer = [] | [("always" | "never")];
9342
9361
  type NodePreferGlobalConsole = [] | [("always" | "never")];
9362
+ type NodePreferGlobalCrypto = [] | [("always" | "never")];
9343
9363
  type NodePreferGlobalProcess = [] | [("always" | "never")];
9344
9364
  type NodePreferGlobalTextDecoder = [] | [("always" | "never")];
9345
9365
  type NodePreferGlobalTextEncoder = [] | [("always" | "never")];
9366
+ type NodePreferGlobalTimers = [] | [("always" | "never")];
9346
9367
  type NodePreferGlobalUrl = [] | [("always" | "never")];
9347
9368
  type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")];
9348
9369
  type NodePreferNodeProtocol = [] | [{
@@ -12165,6 +12186,14 @@ interface _UnicornImportStyle_ModuleStyles {
12165
12186
  interface _UnicornImportStyle_BooleanObject {
12166
12187
  [k: string]: boolean | undefined;
12167
12188
  }
12189
+ type UnicornIsolatedFunctions = [] | [{
12190
+ overrideGlobals?: {
12191
+ [k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
12192
+ };
12193
+ functions?: string[];
12194
+ selectors?: string[];
12195
+ comments?: string[];
12196
+ }];
12168
12197
  type UnicornNoArrayReduce = [] | [{
12169
12198
  allowSimpleOperations?: boolean;
12170
12199
  }];
@@ -12381,6 +12410,7 @@ type VueAttributesOrder = [] | [{
12381
12410
  order?: (("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT") | ("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT")[])[];
12382
12411
  alphabetical?: boolean;
12383
12412
  sortLineLength?: boolean;
12413
+ ignoreVBindObject?: boolean;
12384
12414
  }];
12385
12415
  type VueBlockLang = [] | [{
12386
12416
  [k: string]: {
@@ -12453,7 +12483,7 @@ type VueDefineMacrosOrder = [] | [{
12453
12483
  }];
12454
12484
  type VueDefinePropsDeclaration = [] | [("type-based" | "runtime")];
12455
12485
  type VueDefinePropsDestructuring = [] | [{
12456
- destructure?: ("always" | "never");
12486
+ destructure?: ("only-when-assigned" | "always" | "never");
12457
12487
  }];
12458
12488
  type VueDotLocation = [] | [("object" | "property")];
12459
12489
  type VueDotNotation = [] | [{
@@ -13390,6 +13420,9 @@ type VueVSlotStyle = [] | [(("shorthand" | "longform") | {
13390
13420
  default?: ("shorthand" | "longform" | "v-slot");
13391
13421
  named?: ("shorthand" | "longform");
13392
13422
  })];
13423
+ type VueValidVFor = [] | [{
13424
+ allowEmptyAlias?: boolean;
13425
+ }];
13393
13426
  type VueValidVOn = [] | [{
13394
13427
  modifiers?: unknown[];
13395
13428
  }];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
3
  "type": "module",
4
- "version": "7.7.2",
4
+ "version": "7.8.0",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@unocss/eslint-plugin": ">=65.0.0",
33
- "eslint": "^9.5.0",
33
+ "eslint": "^9.5.0 || ^10.0.0",
34
34
  "eslint-plugin-astro": "^1.5.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
@@ -43,47 +43,47 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
46
- "@eslint/js": "^9.39.2",
46
+ "@eslint/js": "^10.0.1",
47
47
  "@eslint/markdown": "^7.5.1",
48
48
  "eslint-config-flat-gitignore": "^2.1.0",
49
49
  "eslint-config-prettier": "^10.1.8",
50
50
  "eslint-flat-config-utils": "^3.0.1",
51
- "eslint-plugin-antfu": "^3.2.0",
51
+ "eslint-plugin-antfu": "^3.2.2",
52
52
  "eslint-plugin-baseline-js": "^0.5.0",
53
53
  "eslint-plugin-command": "^3.4.0",
54
54
  "eslint-plugin-de-morgan": "^2.0.0",
55
55
  "eslint-plugin-importer": "^0.3.0",
56
- "eslint-plugin-jsdoc": "^62.5.4",
56
+ "eslint-plugin-jsdoc": "^62.5.5",
57
57
  "eslint-plugin-jsonc": "^2.21.1",
58
- "eslint-plugin-n": "^17.23.2",
58
+ "eslint-plugin-n": "^17.24.0",
59
59
  "eslint-plugin-perfectionist": "^5.5.0",
60
60
  "eslint-plugin-pnpm": "^1.5.0",
61
61
  "eslint-plugin-prettier": "^5.5.5",
62
62
  "eslint-plugin-regexp": "^3.0.0",
63
- "eslint-plugin-sxzz": "^0.4.2",
64
- "eslint-plugin-unicorn": "^62.0.0",
63
+ "eslint-plugin-sxzz": "^0.4.4",
64
+ "eslint-plugin-unicorn": "^63.0.0",
65
65
  "eslint-plugin-unused-imports": "^4.4.1",
66
- "eslint-plugin-vue": "^10.7.0",
67
- "eslint-plugin-yml": "^3.1.2",
66
+ "eslint-plugin-vue": "^10.8.0",
67
+ "eslint-plugin-yml": "^3.2.0",
68
68
  "globals": "^17.3.0",
69
69
  "jsonc-eslint-parser": "^2.4.2",
70
- "typescript-eslint": "^8.54.0",
71
- "vue-eslint-parser": "^10.2.0"
70
+ "typescript-eslint": "^8.56.0",
71
+ "vue-eslint-parser": "^10.4.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@eslint/config-inspector": "^1.4.2",
75
75
  "@sxzz/prettier-config": "^2.3.1",
76
- "@types/node": "^25.2.2",
77
- "@typescript/native-preview": "7.0.0-dev.20260209.1",
76
+ "@types/node": "^25.2.3",
77
+ "@typescript/native-preview": "7.0.0-dev.20260217.1",
78
78
  "@unocss/eslint-plugin": "^66.6.0",
79
79
  "bumpp": "^10.4.1",
80
- "eslint": "^9.39.2",
81
- "eslint-plugin-astro": "^1.5.0",
80
+ "eslint": "^10.0.0",
81
+ "eslint-plugin-astro": "^1.6.0",
82
82
  "eslint-typegen": "^2.3.0",
83
83
  "prettier": "^3.8.1",
84
84
  "rolldown-plugin-require-cjs": "^0.3.3",
85
85
  "tsdown": "^0.20.3",
86
- "tsdown-preset-sxzz": "^0.3.2",
86
+ "tsdown-preset-sxzz": "^0.3.3",
87
87
  "typescript": "^5.9.3",
88
88
  "unrun": "^0.2.27"
89
89
  },