@sxzz/eslint-config 7.8.3 → 7.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -53,6 +53,7 @@ interface Rules {
53
53
  /**
54
54
  * disallow unused `eslint-disable` comments
55
55
  * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
56
+ * @deprecated
56
57
  */
57
58
  "@eslint-community/eslint-comments/no-unused-disable"?: Linter.RuleEntry<[]>;
58
59
  /**
@@ -1063,6 +1064,11 @@ interface Rules {
1063
1064
  */
1064
1065
  "astro/no-exports-from-components"?: Linter.RuleEntry<[]>;
1065
1066
  /**
1067
+ * disallow `prerender` export outside of pages/ directory
1068
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
1069
+ */
1070
+ "astro/no-prerender-export-outside-pages"?: Linter.RuleEntry<[]>;
1071
+ /**
1066
1072
  * disallow use of `set:html` to prevent XSS attack
1067
1073
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/
1068
1074
  */
@@ -2089,6 +2095,11 @@ interface Rules {
2089
2095
  */
2090
2096
  "markdown/fenced-code-language"?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
2091
2097
  /**
2098
+ * Require or disallow metadata for fenced code blocks
2099
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
2100
+ */
2101
+ "markdown/fenced-code-meta"?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
2102
+ /**
2092
2103
  * Enforce heading levels increment by one
2093
2104
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
2094
2105
  */
@@ -3363,6 +3374,11 @@ interface Rules {
3363
3374
  */
3364
3375
  "perfectionist/sort-array-includes"?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
3365
3376
  /**
3377
+ * Enforce sorted arrays.
3378
+ * @see https://perfectionist.dev/rules/sort-arrays
3379
+ */
3380
+ "perfectionist/sort-arrays"?: Linter.RuleEntry<PerfectionistSortArrays>;
3381
+ /**
3366
3382
  * Enforce sorted classes.
3367
3383
  * @see https://perfectionist.dev/rules/sort-classes
3368
3384
  */
@@ -4139,730 +4155,750 @@ interface Rules {
4139
4155
  "unicode-bom"?: Linter.RuleEntry<UnicodeBom>;
4140
4156
  /**
4141
4157
  * Improve regexes by making them shorter, consistent, and safer.
4142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
4158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
4143
4159
  */
4144
4160
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
4145
4161
  /**
4146
4162
  * Enforce a specific parameter name in catch clauses.
4147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
4163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
4148
4164
  */
4149
4165
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
4150
4166
  /**
4151
4167
  * Enforce consistent assertion style with `node:assert`.
4152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
4168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
4153
4169
  */
4154
4170
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
4155
4171
  /**
4156
4172
  * Prefer passing `Date` directly to the constructor when cloning.
4157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
4173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
4158
4174
  */
4159
4175
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
4160
4176
  /**
4161
4177
  * Use destructured variables over properties.
4162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
4178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
4163
4179
  */
4164
4180
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
4165
4181
  /**
4166
4182
  * Prefer consistent types when spreading a ternary in an array literal.
4167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
4183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
4168
4184
  */
4169
4185
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
4170
4186
  /**
4171
4187
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
4188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
4173
4189
  */
4174
4190
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
4175
4191
  /**
4176
4192
  * Move function definitions to the highest possible scope.
4177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
4193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
4178
4194
  */
4179
4195
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4180
4196
  /**
4197
+ * Enforce consistent style for escaping `${` in template literals.
4198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
4199
+ */
4200
+ "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
4201
+ /**
4181
4202
  * Enforce correct `Error` subclassing.
4182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
4203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
4183
4204
  */
4184
4205
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
4185
4206
  /**
4186
4207
  * Enforce no spaces between braces.
4187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
4208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
4188
4209
  */
4189
4210
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
4190
4211
  /**
4191
4212
  * Enforce passing a `message` value when creating a built-in error.
4192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
4213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
4193
4214
  */
4194
4215
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
4195
4216
  /**
4196
4217
  * Require escape sequences to use uppercase or lowercase values.
4197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
4218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
4198
4219
  */
4199
4220
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
4200
4221
  /**
4201
4222
  * Add expiration conditions to TODO comments.
4202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
4223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
4203
4224
  */
4204
4225
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4205
4226
  /**
4206
4227
  * Enforce explicitly comparing the `length` or `size` property of a value.
4207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
4228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
4208
4229
  */
4209
4230
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4210
4231
  /**
4211
4232
  * Enforce a case style for filenames.
4212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
4233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
4213
4234
  */
4214
4235
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
4215
4236
  /**
4216
4237
  * Enforce specific import styles per module.
4217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
4238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
4218
4239
  */
4219
4240
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
4220
4241
  /**
4221
4242
  * Prevent usage of variables from outside the scope of isolated functions.
4222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
4243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
4223
4244
  */
4224
4245
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4225
4246
  /**
4226
4247
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
4248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
4228
4249
  */
4229
4250
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
4230
4251
  /**
4231
4252
  * Enforce specifying rules to disable in `eslint-disable` comments.
4232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
4253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
4233
4254
  */
4234
4255
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
4235
4256
  /**
4236
4257
  * Disallow recursive access to `this` within getters and setters.
4237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
4258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
4238
4259
  */
4239
4260
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
4240
4261
  /**
4241
4262
  * Disallow anonymous functions and classes as the default export.
4242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
4263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
4243
4264
  */
4244
4265
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
4245
4266
  /**
4246
4267
  * Prevent passing a function reference directly to iterator methods.
4247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
4268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
4248
4269
  */
4249
4270
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
4250
4271
  /**
4251
4272
  * Prefer `for…of` over the `forEach` method.
4252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
4273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
4253
4274
  */
4254
4275
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
4255
4276
  /**
4256
4277
  * Disallow using the `this` argument in array methods.
4257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
4278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
4258
4279
  */
4259
4280
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
4260
4281
  /**
4261
4282
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4263
4284
  * @deprecated
4264
4285
  */
4265
4286
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
4266
4287
  /**
4267
4288
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
4289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
4269
4290
  */
4270
4291
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
4271
4292
  /**
4272
4293
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
4294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
4274
4295
  */
4275
4296
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
4276
4297
  /**
4277
4298
  * Prefer `Array#toSorted()` over `Array#sort()`.
4278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
4299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
4279
4300
  */
4280
4301
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
4281
4302
  /**
4282
4303
  * Disallow member access from await expression.
4283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
4304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
4284
4305
  */
4285
4306
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
4286
4307
  /**
4287
4308
  * Disallow using `await` in `Promise` method parameters.
4288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
4309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
4289
4310
  */
4290
4311
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
4291
4312
  /**
4292
4313
  * Do not use leading/trailing space between `console.log` parameters.
4293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
4314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
4294
4315
  */
4295
4316
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
4296
4317
  /**
4297
4318
  * Do not use `document.cookie` directly.
4298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
4299
4320
  */
4300
4321
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
4301
4322
  /**
4302
4323
  * Disallow empty files.
4303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
4304
4325
  */
4305
4326
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
4306
4327
  /**
4307
4328
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
4329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
4309
4330
  */
4310
4331
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
4311
4332
  /**
4312
4333
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
4334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
4314
4335
  */
4315
4336
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
4316
4337
  /**
4317
4338
  * Disallow immediate mutation after variable assignment.
4318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
4339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
4319
4340
  */
4320
4341
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
4321
4342
  /**
4322
4343
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4324
4345
  * @deprecated
4325
4346
  */
4326
4347
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
4327
4348
  /**
4328
4349
  * Disallow `instanceof` with built-in objects
4329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
4350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
4330
4351
  */
4331
4352
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4332
4353
  /**
4333
4354
  * Disallow invalid options in `fetch()` and `new Request()`.
4334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
4355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
4335
4356
  */
4336
4357
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
4337
4358
  /**
4338
4359
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
4360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
4340
4361
  */
4341
4362
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
4342
4363
  /**
4343
4364
  * Disallow identifiers starting with `new` or `class`.
4344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
4365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
4345
4366
  */
4346
4367
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4347
4368
  /**
4348
4369
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4350
4371
  * @deprecated
4351
4372
  */
4352
4373
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
4353
4374
  /**
4354
4375
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
4376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
4356
4377
  */
4357
4378
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
4358
4379
  /**
4359
4380
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
4381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
4361
4382
  */
4362
4383
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
4363
4384
  /**
4364
4385
  * Disallow named usage of default import and export.
4365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
4386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
4366
4387
  */
4367
4388
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
4368
4389
  /**
4369
4390
  * Disallow negated conditions.
4370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
4391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
4371
4392
  */
4372
4393
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
4373
4394
  /**
4374
4395
  * Disallow negated expression in equality check.
4375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
4396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
4376
4397
  */
4377
4398
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
4378
4399
  /**
4379
4400
  * Disallow nested ternary expressions.
4380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
4401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
4381
4402
  */
4382
4403
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
4383
4404
  /**
4384
4405
  * Disallow `new Array()`.
4385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
4406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
4386
4407
  */
4387
4408
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
4388
4409
  /**
4389
4410
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
4411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
4391
4412
  */
4392
4413
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
4393
4414
  /**
4394
4415
  * Disallow the use of the `null` literal.
4395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
4416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
4396
4417
  */
4397
4418
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
4398
4419
  /**
4399
4420
  * Disallow the use of objects as default parameters.
4400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
4421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
4401
4422
  */
4402
4423
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
4403
4424
  /**
4404
4425
  * Disallow `process.exit()`.
4405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
4426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
4406
4427
  */
4407
4428
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
4408
4429
  /**
4409
4430
  * Disallow passing single-element arrays to `Promise` methods.
4410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
4431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
4411
4432
  */
4412
4433
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
4413
4434
  /**
4414
4435
  * Disallow classes that only have static members.
4415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
4436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
4416
4437
  */
4417
4438
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
4418
4439
  /**
4419
4440
  * Disallow `then` property.
4420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
4441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
4421
4442
  */
4422
4443
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
4423
4444
  /**
4424
4445
  * Disallow assigning `this` to a variable.
4425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
4446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
4426
4447
  */
4427
4448
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
4428
4449
  /**
4429
4450
  * Disallow comparing `undefined` using `typeof`.
4430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
4451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
4431
4452
  */
4432
4453
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4433
4454
  /**
4434
4455
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4436
4457
  */
4437
4458
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
4438
4459
  /**
4439
4460
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
4461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
4441
4462
  */
4442
4463
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
4443
4464
  /**
4444
4465
  * Disallow awaiting non-promise values.
4445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
4466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
4446
4467
  */
4447
4468
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
4448
4469
  /**
4449
4470
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
4471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
4451
4472
  */
4452
4473
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4453
4474
  /**
4454
4475
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
4476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
4456
4477
  */
4457
4478
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
4458
4479
  /**
4459
4480
  * Disallow unreadable array destructuring.
4460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
4481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
4461
4482
  */
4462
4483
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
4463
4484
  /**
4464
4485
  * Disallow unreadable IIFEs.
4465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
4486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
4466
4487
  */
4467
4488
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
4468
4489
  /**
4469
4490
  * Disallow unused object properties.
4470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
4491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
4471
4492
  */
4472
4493
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
4473
4494
  /**
4474
4495
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
4475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
4496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
4476
4497
  */
4477
4498
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
4478
4499
  /**
4479
4500
  * Disallow unnecessary `Error.captureStackTrace(…)`.
4480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4481
4502
  */
4482
4503
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
4483
4504
  /**
4484
4505
  * Disallow useless fallback when spreading in object literals.
4485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
4506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
4486
4507
  */
4487
4508
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
4488
4509
  /**
4510
+ * Disallow unnecessary `.toArray()` on iterators.
4511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
4512
+ */
4513
+ "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
4514
+ /**
4489
4515
  * Disallow useless array length check.
4490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
4516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
4491
4517
  */
4492
4518
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
4493
4519
  /**
4494
4520
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
4521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
4496
4522
  */
4497
4523
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
4498
4524
  /**
4499
4525
  * Disallow unnecessary spread.
4500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
4526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
4501
4527
  */
4502
4528
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
4503
4529
  /**
4504
4530
  * Disallow useless case in switch statements.
4505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
4531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
4506
4532
  */
4507
4533
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
4508
4534
  /**
4509
4535
  * Disallow useless `undefined`.
4510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
4536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
4511
4537
  */
4512
4538
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4513
4539
  /**
4514
4540
  * Disallow number literals with zero fractions or dangling dots.
4515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
4541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
4516
4542
  */
4517
4543
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
4518
4544
  /**
4519
4545
  * Enforce proper case for numeric literals.
4520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
4546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
4521
4547
  */
4522
4548
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4523
4549
  /**
4524
4550
  * Enforce the style of numeric separators by correctly grouping digits.
4525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
4551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
4526
4552
  */
4527
4553
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4528
4554
  /**
4529
4555
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
4556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
4531
4557
  */
4532
4558
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4533
4559
  /**
4534
4560
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
4561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
4536
4562
  */
4537
4563
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
4538
4564
  /**
4539
4565
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
4566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
4541
4567
  */
4542
4568
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4543
4569
  /**
4544
4570
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
4571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
4546
4572
  */
4547
4573
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
4548
4574
  /**
4549
4575
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
4576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
4551
4577
  */
4552
4578
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
4553
4579
  /**
4554
4580
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
4581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
4556
4582
  */
4557
4583
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
4558
4584
  /**
4559
4585
  * Prefer `.at()` method for index access and `String#charAt()`.
4560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
4586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
4561
4587
  */
4562
4588
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
4563
4589
  /**
4564
4590
  * Prefer `BigInt` literals over the constructor.
4565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
4591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
4566
4592
  */
4567
4593
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
4568
4594
  /**
4569
4595
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
4596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
4571
4597
  */
4572
4598
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
4573
4599
  /**
4574
4600
  * Prefer class field declarations over `this` assignments in constructors.
4575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
4601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
4576
4602
  */
4577
4603
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
4578
4604
  /**
4579
4605
  * Prefer using `Element#classList.toggle()` to toggle class names.
4580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
4606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
4581
4607
  */
4582
4608
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
4583
4609
  /**
4584
4610
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
4611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
4586
4612
  */
4587
4613
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
4588
4614
  /**
4589
4615
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
4616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
4591
4617
  */
4592
4618
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
4593
4619
  /**
4594
4620
  * Prefer default parameters over reassignment.
4595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
4621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
4596
4622
  */
4597
4623
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
4598
4624
  /**
4599
4625
  * Prefer `Node#append()` over `Node#appendChild()`.
4600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
4626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
4601
4627
  */
4602
4628
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
4603
4629
  /**
4604
4630
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
4631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
4606
4632
  */
4607
4633
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
4608
4634
  /**
4609
4635
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
4636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
4611
4637
  */
4612
4638
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
4613
4639
  /**
4614
4640
  * Prefer `.textContent` over `.innerText`.
4615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
4641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
4616
4642
  */
4617
4643
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
4618
4644
  /**
4619
4645
  * Prefer `EventTarget` over `EventEmitter`.
4620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
4646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
4621
4647
  */
4622
4648
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
4623
4649
  /**
4624
4650
  * Prefer `export…from` when re-exporting.
4625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
4651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
4626
4652
  */
4627
4653
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
4628
4654
  /**
4629
4655
  * Prefer `globalThis` over `window`, `self`, and `global`.
4630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
4656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
4631
4657
  */
4632
4658
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
4633
4659
  /**
4634
4660
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
4661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
4636
4662
  */
4637
4663
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
4638
4664
  /**
4639
4665
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
4666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
4641
4667
  */
4642
4668
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
4643
4669
  /**
4644
4670
  * Prefer reading a JSON file as a buffer.
4645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
4671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
4646
4672
  */
4647
4673
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
4648
4674
  /**
4649
4675
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
4676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
4651
4677
  */
4652
4678
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
4653
4679
  /**
4654
4680
  * Prefer using a logical operator over a ternary.
4655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4656
4682
  */
4657
4683
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
4658
4684
  /**
4659
4685
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
4686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
4661
4687
  */
4662
4688
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
4663
4689
  /**
4664
4690
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
4691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
4666
4692
  */
4667
4693
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
4668
4694
  /**
4669
4695
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
4696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
4671
4697
  */
4672
4698
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
4673
4699
  /**
4674
4700
  * Prefer modern `Math` APIs over legacy patterns.
4675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
4701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
4676
4702
  */
4677
4703
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
4678
4704
  /**
4679
4705
  * Prefer JavaScript modules (ESM) over CommonJS.
4680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
4706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
4681
4707
  */
4682
4708
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
4683
4709
  /**
4684
4710
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
4711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
4686
4712
  */
4687
4713
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
4688
4714
  /**
4689
4715
  * Prefer negative index over `.length - index` when possible.
4690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
4716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
4691
4717
  */
4692
4718
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
4693
4719
  /**
4694
4720
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
4721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
4696
4722
  */
4697
4723
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
4698
4724
  /**
4699
4725
  * Prefer `Number` static properties over global ones.
4700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
4726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
4701
4727
  */
4702
4728
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4703
4729
  /**
4704
4730
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
4731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
4706
4732
  */
4707
4733
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4708
4734
  /**
4709
4735
  * Prefer omitting the `catch` binding parameter.
4710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
4736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
4711
4737
  */
4712
4738
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
4713
4739
  /**
4714
4740
  * Prefer borrowing methods from the prototype instead of the instance.
4715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
4741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
4716
4742
  */
4717
4743
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
4718
4744
  /**
4719
4745
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
4746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
4721
4747
  */
4722
4748
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
4723
4749
  /**
4724
4750
  * Prefer `Reflect.apply()` over `Function#apply()`.
4725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
4751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
4726
4752
  */
4727
4753
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
4728
4754
  /**
4729
4755
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
4756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
4731
4757
  */
4732
4758
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
4733
4759
  /**
4734
4760
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
4735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
4761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
4736
4762
  */
4737
4763
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
4738
4764
  /**
4739
4765
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
4766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
4741
4767
  */
4742
4768
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
4743
4769
  /**
4744
4770
  * Prefer using `Set#size` instead of `Array#length`.
4745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
4771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
4746
4772
  */
4747
4773
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
4748
4774
  /**
4775
+ * Prefer simple conditions first in logical expressions.
4776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
4777
+ */
4778
+ "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
4779
+ /**
4749
4780
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
4781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
4751
4782
  */
4752
4783
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
4753
4784
  /**
4754
4785
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
4756
4787
  */
4757
4788
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
4758
4789
  /**
4759
4790
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
4791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
4761
4792
  */
4762
4793
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
4763
4794
  /**
4764
4795
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
4796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
4766
4797
  */
4767
4798
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
4768
4799
  /**
4769
4800
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
4801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
4771
4802
  */
4772
4803
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
4773
4804
  /**
4774
4805
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
4806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
4776
4807
  */
4777
4808
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
4778
4809
  /**
4779
4810
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
4811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
4781
4812
  */
4782
4813
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
4783
4814
  /**
4784
4815
  * Prefer using `structuredClone` to create a deep clone.
4785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
4816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
4786
4817
  */
4787
4818
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4788
4819
  /**
4789
4820
  * Prefer `switch` over multiple `else-if`.
4790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
4821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
4791
4822
  */
4792
4823
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
4793
4824
  /**
4794
4825
  * Prefer ternary expressions over simple `if-else` statements.
4795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
4826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
4796
4827
  */
4797
4828
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
4798
4829
  /**
4799
4830
  * Prefer top-level await over top-level promises and async function calls.
4800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
4831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
4801
4832
  */
4802
4833
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
4803
4834
  /**
4804
4835
  * Enforce throwing `TypeError` in type checking conditions.
4805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
4836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
4806
4837
  */
4807
4838
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
4808
4839
  /**
4809
4840
  * Prevent abbreviations.
4810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
4841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
4811
4842
  */
4812
4843
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
4813
4844
  /**
4814
4845
  * Enforce consistent relative URL style.
4815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
4846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
4816
4847
  */
4817
4848
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
4818
4849
  /**
4819
4850
  * Enforce using the separator argument with `Array#join()`.
4820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
4851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
4821
4852
  */
4822
4853
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
4823
4854
  /**
4824
4855
  * Require non-empty module attributes for imports and exports
4825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
4856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
4826
4857
  */
4827
4858
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
4828
4859
  /**
4829
4860
  * Require non-empty specifier list in import and export statements.
4830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
4861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
4831
4862
  */
4832
4863
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
4833
4864
  /**
4834
4865
  * Enforce using the digits argument with `Number#toFixed()`.
4835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4836
4867
  */
4837
4868
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
4838
4869
  /**
4839
4870
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
4871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
4841
4872
  */
4842
4873
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
4843
4874
  /**
4844
4875
  * Enforce better string content.
4845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
4876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
4846
4877
  */
4847
4878
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
4848
4879
  /**
4849
4880
  * Enforce consistent brace style for `case` clauses.
4850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
4881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
4851
4882
  */
4852
4883
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
4853
4884
  /**
4885
+ * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
4886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
4887
+ */
4888
+ "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
4889
+ /**
4854
4890
  * Fix whitespace-insensitive template indentation.
4855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
4891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
4856
4892
  */
4857
4893
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
4858
4894
  /**
4859
4895
  * Enforce consistent case for text encoding identifiers.
4860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
4896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
4861
4897
  */
4862
4898
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
4863
4899
  /**
4864
4900
  * Require `new` when creating an error.
4865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
4901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
4866
4902
  */
4867
4903
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
4868
4904
  /**
@@ -5419,7 +5455,7 @@ interface Rules {
5419
5455
  * disallow object, array, and function literals in template
5420
5456
  * @see https://eslint.vuejs.org/rules/no-literals-in-template.html
5421
5457
  */
5422
- "vue/no-literals-in-template"?: Linter.RuleEntry<[]>;
5458
+ "vue/no-literals-in-template"?: Linter.RuleEntry<VueNoLiteralsInTemplate>;
5423
5459
  /**
5424
5460
  * disallow unnecessary `<template>`
5425
5461
  * @see https://eslint.vuejs.org/rules/no-lone-template.html
@@ -5813,6 +5849,11 @@ interface Rules {
5813
5849
  */
5814
5850
  "vue/prefer-separate-static-class"?: Linter.RuleEntry<[]>;
5815
5851
  /**
5852
+ * enforce passing a single argument to custom event emissions
5853
+ * @see https://eslint.vuejs.org/rules/prefer-single-event-payload.html
5854
+ */
5855
+ "vue/prefer-single-event-payload"?: Linter.RuleEntry<[]>;
5856
+ /**
5816
5857
  * Require template literals instead of string concatenation in `<template>`
5817
5858
  * @see https://eslint.vuejs.org/rules/prefer-template.html
5818
5859
  */
@@ -5828,6 +5869,11 @@ interface Rules {
5828
5869
  */
5829
5870
  "vue/prefer-use-template-ref"?: Linter.RuleEntry<[]>;
5830
5871
  /**
5872
+ * enforce using `v-model` instead of `:prop`/`@update:prop` pair
5873
+ * @see https://eslint.vuejs.org/rules/prefer-v-model.html
5874
+ */
5875
+ "vue/prefer-v-model"?: Linter.RuleEntry<[]>;
5876
+ /**
5831
5877
  * enforce specific casing for the Prop name in Vue components
5832
5878
  * @see https://eslint.vuejs.org/rules/prop-name-casing.html
5833
5879
  */
@@ -7105,6 +7151,18 @@ type TypescriptEslintPreferOptionalChain = [] | [{
7105
7151
  requireNullish?: boolean;
7106
7152
  }];
7107
7153
  type TypescriptEslintPreferPromiseRejectErrors = [] | [{
7154
+ allow?: (string | {
7155
+ from: "file";
7156
+ name: (string | [string, ...(string)[]]);
7157
+ path?: string;
7158
+ } | {
7159
+ from: "lib";
7160
+ name: (string | [string, ...(string)[]]);
7161
+ } | {
7162
+ from: "package";
7163
+ name: (string | [string, ...(string)[]]);
7164
+ package: string;
7165
+ })[];
7108
7166
  allowEmptyReject?: boolean;
7109
7167
  allowThrowingAny?: boolean;
7110
7168
  allowThrowingUnknown?: boolean;
@@ -8665,12 +8723,14 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
8665
8723
  type MarkdownFencedCodeLanguage = [] | [{
8666
8724
  required?: string[];
8667
8725
  }];
8726
+ type MarkdownFencedCodeMeta = [] | [("always" | "never")];
8668
8727
  type MarkdownHeadingIncrement = [] | [{
8669
8728
  frontmatterTitle?: string;
8670
8729
  }];
8671
8730
  type MarkdownNoDuplicateDefinitions = [] | [{
8672
8731
  allowDefinitions?: string[];
8673
8732
  allowFootnoteDefinitions?: string[];
8733
+ checkFootnoteDefinitions?: boolean;
8674
8734
  }];
8675
8735
  type MarkdownNoDuplicateHeadings = [] | [{
8676
8736
  checkSiblingsOnly?: boolean;
@@ -8703,6 +8763,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
8703
8763
  type MarkdownNoUnusedDefinitions = [] | [{
8704
8764
  allowDefinitions?: string[];
8705
8765
  allowFootnoteDefinitions?: string[];
8766
+ checkFootnoteDefinitions?: boolean;
8706
8767
  }];
8707
8768
  type MarkdownTableColumnCount = [] | [{
8708
8769
  checkMissingCells?: boolean;
@@ -9555,6 +9616,7 @@ type PerfectionistSortArrayIncludes = {
9555
9616
  pattern: string;
9556
9617
  flags?: string;
9557
9618
  } | string));
9619
+ matchesAstSelector?: string;
9558
9620
  };
9559
9621
  partitionByComment?: (boolean | (({
9560
9622
  pattern: string;
@@ -9580,7 +9642,113 @@ type PerfectionistSortArrayIncludes = {
9580
9642
  });
9581
9643
  partitionByNewLine?: boolean;
9582
9644
  }[];
9583
- type PerfectionistSortClasses = [] | [{
9645
+ type PerfectionistSortArrays = {
9646
+ fallbackSort?: {
9647
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9648
+ order?: ("asc" | "desc");
9649
+ };
9650
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9651
+ specialCharacters?: ("remove" | "trim" | "keep");
9652
+ ignoreCase?: boolean;
9653
+ alphabet?: string;
9654
+ locales?: (string | string[]);
9655
+ order?: ("asc" | "desc");
9656
+ customGroups?: ({
9657
+ fallbackSort?: {
9658
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9659
+ order?: ("asc" | "desc");
9660
+ };
9661
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9662
+ groupName: string;
9663
+ newlinesInside?: ("ignore" | number);
9664
+ order?: ("asc" | "desc");
9665
+ anyOf: [{
9666
+ elementNamePattern?: (({
9667
+ pattern: string;
9668
+ flags?: string;
9669
+ } | string)[] | ({
9670
+ pattern: string;
9671
+ flags?: string;
9672
+ } | string));
9673
+ selector?: "literal";
9674
+ }, ...({
9675
+ elementNamePattern?: (({
9676
+ pattern: string;
9677
+ flags?: string;
9678
+ } | string)[] | ({
9679
+ pattern: string;
9680
+ flags?: string;
9681
+ } | string));
9682
+ selector?: "literal";
9683
+ })[]];
9684
+ } | {
9685
+ fallbackSort?: {
9686
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9687
+ order?: ("asc" | "desc");
9688
+ };
9689
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9690
+ groupName: string;
9691
+ newlinesInside?: ("ignore" | number);
9692
+ order?: ("asc" | "desc");
9693
+ elementNamePattern?: (({
9694
+ pattern: string;
9695
+ flags?: string;
9696
+ } | string)[] | ({
9697
+ pattern: string;
9698
+ flags?: string;
9699
+ } | string));
9700
+ selector?: "literal";
9701
+ })[];
9702
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
9703
+ groups?: (string | [string, ...(string)[]] | {
9704
+ newlinesBetween: ("ignore" | number);
9705
+ } | {
9706
+ group: (string | [string, ...(string)[]]);
9707
+ fallbackSort?: {
9708
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9709
+ order?: ("asc" | "desc");
9710
+ };
9711
+ commentAbove?: string;
9712
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9713
+ newlinesInside?: ("ignore" | number);
9714
+ order?: ("asc" | "desc");
9715
+ })[];
9716
+ newlinesBetween?: ("ignore" | number);
9717
+ useConfigurationIf: {
9718
+ allNamesMatchPattern?: (({
9719
+ pattern: string;
9720
+ flags?: string;
9721
+ } | string)[] | ({
9722
+ pattern: string;
9723
+ flags?: string;
9724
+ } | string));
9725
+ matchesAstSelector?: string;
9726
+ };
9727
+ partitionByComment?: (boolean | (({
9728
+ pattern: string;
9729
+ flags?: string;
9730
+ } | string)[] | ({
9731
+ pattern: string;
9732
+ flags?: string;
9733
+ } | string)) | {
9734
+ block?: (boolean | (({
9735
+ pattern: string;
9736
+ flags?: string;
9737
+ } | string)[] | ({
9738
+ pattern: string;
9739
+ flags?: string;
9740
+ } | string)));
9741
+ line?: (boolean | (({
9742
+ pattern: string;
9743
+ flags?: string;
9744
+ } | string)[] | ({
9745
+ pattern: string;
9746
+ flags?: string;
9747
+ } | string)));
9748
+ });
9749
+ partitionByNewLine?: boolean;
9750
+ }[];
9751
+ type PerfectionistSortClasses = {
9584
9752
  fallbackSort?: {
9585
9753
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9586
9754
  order?: ("asc" | "desc");
@@ -9697,7 +9865,18 @@ type PerfectionistSortClasses = [] | [{
9697
9865
  order?: ("asc" | "desc");
9698
9866
  })[];
9699
9867
  newlinesBetween?: ("ignore" | number);
9868
+ useConfigurationIf?: {
9869
+ allNamesMatchPattern?: (({
9870
+ pattern: string;
9871
+ flags?: string;
9872
+ } | string)[] | ({
9873
+ pattern: string;
9874
+ flags?: string;
9875
+ } | string));
9876
+ matchesAstSelector?: string;
9877
+ };
9700
9878
  useExperimentalDependencyDetection?: boolean;
9879
+ newlinesBetweenOverloadSignatures?: ("ignore" | number);
9701
9880
  ignoreCallbackDependenciesPatterns?: (({
9702
9881
  pattern: string;
9703
9882
  flags?: string;
@@ -9728,7 +9907,7 @@ type PerfectionistSortClasses = [] | [{
9728
9907
  } | string)));
9729
9908
  });
9730
9909
  partitionByNewLine?: boolean;
9731
- }];
9910
+ }[];
9732
9911
  type PerfectionistSortDecorators = {
9733
9912
  fallbackSort?: {
9734
9913
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -9827,7 +10006,7 @@ type PerfectionistSortDecorators = {
9827
10006
  });
9828
10007
  partitionByNewLine?: boolean;
9829
10008
  }[];
9830
- type PerfectionistSortEnums = [] | [{
10009
+ type PerfectionistSortEnums = {
9831
10010
  fallbackSort?: {
9832
10011
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9833
10012
  order?: ("asc" | "desc");
@@ -9917,6 +10096,16 @@ type PerfectionistSortEnums = [] | [{
9917
10096
  order?: ("asc" | "desc");
9918
10097
  })[];
9919
10098
  newlinesBetween?: ("ignore" | number);
10099
+ useConfigurationIf?: {
10100
+ allNamesMatchPattern?: (({
10101
+ pattern: string;
10102
+ flags?: string;
10103
+ } | string)[] | ({
10104
+ pattern: string;
10105
+ flags?: string;
10106
+ } | string));
10107
+ matchesAstSelector?: string;
10108
+ };
9920
10109
  sortByValue?: ("always" | "ifNumericEnum" | "never");
9921
10110
  useExperimentalDependencyDetection?: boolean;
9922
10111
  partitionByComment?: (boolean | (({
@@ -9942,7 +10131,7 @@ type PerfectionistSortEnums = [] | [{
9942
10131
  } | string)));
9943
10132
  });
9944
10133
  partitionByNewLine?: boolean;
9945
- }];
10134
+ }[];
9946
10135
  type PerfectionistSortExportAttributes = {
9947
10136
  fallbackSort?: {
9948
10137
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -10012,6 +10201,16 @@ type PerfectionistSortExportAttributes = {
10012
10201
  order?: ("asc" | "desc");
10013
10202
  })[];
10014
10203
  newlinesBetween?: ("ignore" | number);
10204
+ useConfigurationIf?: {
10205
+ allNamesMatchPattern?: (({
10206
+ pattern: string;
10207
+ flags?: string;
10208
+ } | string)[] | ({
10209
+ pattern: string;
10210
+ flags?: string;
10211
+ } | string));
10212
+ matchesAstSelector?: string;
10213
+ };
10015
10214
  partitionByComment?: (boolean | (({
10016
10215
  pattern: string;
10017
10216
  flags?: string;
@@ -10204,6 +10403,16 @@ type PerfectionistSortHeritageClauses = {
10204
10403
  order?: ("asc" | "desc");
10205
10404
  })[];
10206
10405
  newlinesBetween?: ("ignore" | number);
10406
+ useConfigurationIf?: {
10407
+ allNamesMatchPattern?: (({
10408
+ pattern: string;
10409
+ flags?: string;
10410
+ } | string)[] | ({
10411
+ pattern: string;
10412
+ flags?: string;
10413
+ } | string));
10414
+ matchesAstSelector?: string;
10415
+ };
10207
10416
  partitionByNewLine?: boolean;
10208
10417
  partitionByComment?: (boolean | (({
10209
10418
  pattern: string;
@@ -10297,6 +10506,16 @@ type PerfectionistSortImportAttributes = {
10297
10506
  order?: ("asc" | "desc");
10298
10507
  })[];
10299
10508
  newlinesBetween?: ("ignore" | number);
10509
+ useConfigurationIf?: {
10510
+ allNamesMatchPattern?: (({
10511
+ pattern: string;
10512
+ flags?: string;
10513
+ } | string)[] | ({
10514
+ pattern: string;
10515
+ flags?: string;
10516
+ } | string));
10517
+ matchesAstSelector?: string;
10518
+ };
10300
10519
  partitionByComment?: (boolean | (({
10301
10520
  pattern: string;
10302
10521
  flags?: string;
@@ -10565,6 +10784,7 @@ type PerfectionistSortInterfaces = {
10565
10784
  pattern: string;
10566
10785
  flags?: string;
10567
10786
  } | string));
10787
+ matchesAstSelector?: string;
10568
10788
  declarationMatchesPattern?: (({
10569
10789
  scope?: ("shallow" | "deep");
10570
10790
  pattern: string;
@@ -10671,6 +10891,16 @@ type PerfectionistSortIntersectionTypes = {
10671
10891
  order?: ("asc" | "desc");
10672
10892
  })[];
10673
10893
  newlinesBetween?: ("ignore" | number);
10894
+ useConfigurationIf?: {
10895
+ allNamesMatchPattern?: (({
10896
+ pattern: string;
10897
+ flags?: string;
10898
+ } | string)[] | ({
10899
+ pattern: string;
10900
+ flags?: string;
10901
+ } | string));
10902
+ matchesAstSelector?: string;
10903
+ };
10674
10904
  partitionByComment?: (boolean | (({
10675
10905
  pattern: string;
10676
10906
  flags?: string;
@@ -10799,6 +11029,7 @@ type PerfectionistSortJsxProps = {
10799
11029
  pattern: string;
10800
11030
  flags?: string;
10801
11031
  } | string));
11032
+ matchesAstSelector?: string;
10802
11033
  tagMatchesPattern?: (({
10803
11034
  pattern: string;
10804
11035
  flags?: string;
@@ -10886,6 +11117,7 @@ type PerfectionistSortMaps = {
10886
11117
  pattern: string;
10887
11118
  flags?: string;
10888
11119
  } | string));
11120
+ matchesAstSelector?: string;
10889
11121
  };
10890
11122
  partitionByComment?: (boolean | (({
10891
11123
  pattern: string;
@@ -11008,6 +11240,7 @@ type PerfectionistSortModules = [] | [{
11008
11240
  })[];
11009
11241
  newlinesBetween?: ("ignore" | number);
11010
11242
  useExperimentalDependencyDetection?: boolean;
11243
+ newlinesBetweenOverloadSignatures?: ("ignore" | number);
11011
11244
  partitionByComment?: (boolean | (({
11012
11245
  pattern: string;
11013
11246
  flags?: string;
@@ -11107,6 +11340,16 @@ type PerfectionistSortNamedExports = {
11107
11340
  order?: ("asc" | "desc");
11108
11341
  })[];
11109
11342
  newlinesBetween?: ("ignore" | number);
11343
+ useConfigurationIf?: {
11344
+ allNamesMatchPattern?: (({
11345
+ pattern: string;
11346
+ flags?: string;
11347
+ } | string)[] | ({
11348
+ pattern: string;
11349
+ flags?: string;
11350
+ } | string));
11351
+ matchesAstSelector?: string;
11352
+ };
11110
11353
  ignoreAlias?: boolean;
11111
11354
  partitionByComment?: (boolean | (({
11112
11355
  pattern: string;
@@ -11207,6 +11450,16 @@ type PerfectionistSortNamedImports = {
11207
11450
  order?: ("asc" | "desc");
11208
11451
  })[];
11209
11452
  newlinesBetween?: ("ignore" | number);
11453
+ useConfigurationIf?: {
11454
+ allNamesMatchPattern?: (({
11455
+ pattern: string;
11456
+ flags?: string;
11457
+ } | string)[] | ({
11458
+ pattern: string;
11459
+ flags?: string;
11460
+ } | string));
11461
+ matchesAstSelector?: string;
11462
+ };
11210
11463
  ignoreAlias?: boolean;
11211
11464
  partitionByComment?: (boolean | (({
11212
11465
  pattern: string;
@@ -11354,6 +11607,7 @@ type PerfectionistSortObjectTypes = {
11354
11607
  pattern: string;
11355
11608
  flags?: string;
11356
11609
  } | string));
11610
+ matchesAstSelector?: string;
11357
11611
  declarationMatchesPattern?: (({
11358
11612
  scope?: ("shallow" | "deep");
11359
11613
  pattern: string;
@@ -11520,6 +11774,7 @@ type PerfectionistSortObjects = {
11520
11774
  pattern: string;
11521
11775
  flags?: string;
11522
11776
  } | string));
11777
+ matchesAstSelector?: string;
11523
11778
  declarationMatchesPattern?: (({
11524
11779
  scope?: ("shallow" | "deep");
11525
11780
  pattern: string;
@@ -11530,6 +11785,7 @@ type PerfectionistSortObjects = {
11530
11785
  flags?: string;
11531
11786
  } | string));
11532
11787
  };
11788
+ partitionByComputedKey?: boolean;
11533
11789
  styledComponents?: boolean;
11534
11790
  useExperimentalDependencyDetection?: boolean;
11535
11791
  partitionByComment?: (boolean | (({
@@ -11636,6 +11892,7 @@ type PerfectionistSortSets = {
11636
11892
  pattern: string;
11637
11893
  flags?: string;
11638
11894
  } | string));
11895
+ matchesAstSelector?: string;
11639
11896
  };
11640
11897
  partitionByComment?: (boolean | (({
11641
11898
  pattern: string;
@@ -11745,6 +12002,16 @@ type PerfectionistSortUnionTypes = {
11745
12002
  order?: ("asc" | "desc");
11746
12003
  })[];
11747
12004
  newlinesBetween?: ("ignore" | number);
12005
+ useConfigurationIf?: {
12006
+ allNamesMatchPattern?: (({
12007
+ pattern: string;
12008
+ flags?: string;
12009
+ } | string)[] | ({
12010
+ pattern: string;
12011
+ flags?: string;
12012
+ } | string));
12013
+ matchesAstSelector?: string;
12014
+ };
11748
12015
  partitionByComment?: (boolean | (({
11749
12016
  pattern: string;
11750
12017
  flags?: string;
@@ -11769,7 +12036,7 @@ type PerfectionistSortUnionTypes = {
11769
12036
  });
11770
12037
  partitionByNewLine?: boolean;
11771
12038
  }[];
11772
- type PerfectionistSortVariableDeclarations = [] | [{
12039
+ type PerfectionistSortVariableDeclarations = {
11773
12040
  fallbackSort?: {
11774
12041
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11775
12042
  order?: ("asc" | "desc");
@@ -11841,6 +12108,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
11841
12108
  order?: ("asc" | "desc");
11842
12109
  })[];
11843
12110
  newlinesBetween?: ("ignore" | number);
12111
+ useConfigurationIf?: {
12112
+ allNamesMatchPattern?: (({
12113
+ pattern: string;
12114
+ flags?: string;
12115
+ } | string)[] | ({
12116
+ pattern: string;
12117
+ flags?: string;
12118
+ } | string));
12119
+ matchesAstSelector?: string;
12120
+ };
11844
12121
  useExperimentalDependencyDetection?: boolean;
11845
12122
  partitionByComment?: (boolean | (({
11846
12123
  pattern: string;
@@ -11865,7 +12142,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
11865
12142
  } | string)));
11866
12143
  });
11867
12144
  partitionByNewLine?: boolean;
11868
- }];
12145
+ }[];
11869
12146
  type PnpmJsonEnforceCatalog = [] | [{
11870
12147
  allowedProtocols?: string[];
11871
12148
  autofix?: boolean;
@@ -12151,6 +12428,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
12151
12428
  type UnicornExpiringTodoComments = [] | [{
12152
12429
  terms?: string[];
12153
12430
  ignore?: unknown[];
12431
+ ignoreDates?: boolean;
12154
12432
  ignoreDatesOnPullRequests?: boolean;
12155
12433
  allowWarningComments?: boolean;
12156
12434
  date?: string;
@@ -12310,6 +12588,9 @@ interface _UnicornPreventAbbreviations_Abbreviations {
12310
12588
  interface _UnicornPreventAbbreviations_BooleanObject {
12311
12589
  [k: string]: boolean | undefined;
12312
12590
  }
12591
+ interface _UnicornPreventAbbreviations_BooleanObject {
12592
+ [k: string]: boolean | undefined;
12593
+ }
12313
12594
  type UnicornRelativeUrlStyle = [] | [("never" | "always")];
12314
12595
  type UnicornStringContent = [] | [{
12315
12596
  patterns?: {
@@ -13080,6 +13361,9 @@ type VueNoIrregularWhitespace = [] | [{
13080
13361
  skipHTMLAttributeValues?: boolean;
13081
13362
  skipHTMLTextContents?: boolean;
13082
13363
  }];
13364
+ type VueNoLiteralsInTemplate = [] | [{
13365
+ ignores?: string[];
13366
+ }];
13083
13367
  type VueNoLoneTemplate = [] | [{
13084
13368
  ignoreAccessible?: boolean;
13085
13369
  }];
@@ -13233,7 +13517,7 @@ type VueNoUnusedComponents = [] | [{
13233
13517
  ignoreWhenBindingPresent?: boolean;
13234
13518
  }];
13235
13519
  type VueNoUnusedProperties = [] | [{
13236
- groups?: ("props" | "data" | "asyncData" | "computed" | "methods" | "setup")[];
13520
+ groups?: ("props" | "data" | "asyncData" | "computed" | "methods" | "setup" | "inject")[];
13237
13521
  deepData?: boolean;
13238
13522
  ignorePublicMembers?: boolean;
13239
13523
  unreferencedOptions?: ("unknownMemberAsUnreferenced" | "returnAsUnreferenced")[];