@eienjs/eslint-config 1.11.2 → 1.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/typegen.d.ts CHANGED
@@ -2663,6 +2663,11 @@ interface RuleOptions {
2663
2663
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
2664
2664
  */
2665
2665
  'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
2666
+ /**
2667
+ * Require or disallow metadata for fenced code blocks
2668
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
2669
+ */
2670
+ 'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
2666
2671
  /**
2667
2672
  * Enforce heading levels increment by one
2668
2673
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
@@ -3957,6 +3962,11 @@ interface RuleOptions {
3957
3962
  * @see https://perfectionist.dev/rules/sort-array-includes
3958
3963
  */
3959
3964
  'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
3965
+ /**
3966
+ * Enforce sorted arrays.
3967
+ * @see https://perfectionist.dev/rules/sort-arrays
3968
+ */
3969
+ 'perfectionist/sort-arrays'?: Linter.RuleEntry<PerfectionistSortArrays>;
3960
3970
  /**
3961
3971
  * Enforce sorted classes.
3962
3972
  * @see https://perfectionist.dev/rules/sort-classes
@@ -5109,6 +5119,11 @@ interface RuleOptions {
5109
5119
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
5110
5120
  */
5111
5121
  'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
5122
+ /**
5123
+ * enforce unbound methods are called with their expected scope
5124
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
5125
+ */
5126
+ 'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
5112
5127
  /**
5113
5128
  * enforce valid describe callback
5114
5129
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
@@ -5262,730 +5277,750 @@ interface RuleOptions {
5262
5277
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
5263
5278
  /**
5264
5279
  * Improve regexes by making them shorter, consistent, and safer.
5265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
5280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
5266
5281
  */
5267
5282
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
5268
5283
  /**
5269
5284
  * Enforce a specific parameter name in catch clauses.
5270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
5285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
5271
5286
  */
5272
5287
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
5273
5288
  /**
5274
5289
  * Enforce consistent assertion style with `node:assert`.
5275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
5290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
5276
5291
  */
5277
5292
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
5278
5293
  /**
5279
5294
  * Prefer passing `Date` directly to the constructor when cloning.
5280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
5295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
5281
5296
  */
5282
5297
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
5283
5298
  /**
5284
5299
  * Use destructured variables over properties.
5285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
5300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
5286
5301
  */
5287
5302
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
5288
5303
  /**
5289
5304
  * Prefer consistent types when spreading a ternary in an array literal.
5290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
5305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
5291
5306
  */
5292
5307
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
5293
5308
  /**
5294
5309
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
5310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
5296
5311
  */
5297
5312
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
5298
5313
  /**
5299
5314
  * Move function definitions to the highest possible scope.
5300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
5315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
5301
5316
  */
5302
5317
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
5318
+ /**
5319
+ * Enforce consistent style for escaping `${` in template literals.
5320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
5321
+ */
5322
+ 'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
5303
5323
  /**
5304
5324
  * Enforce correct `Error` subclassing.
5305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
5325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
5306
5326
  */
5307
5327
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
5308
5328
  /**
5309
5329
  * Enforce no spaces between braces.
5310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
5330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
5311
5331
  */
5312
5332
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
5313
5333
  /**
5314
5334
  * Enforce passing a `message` value when creating a built-in error.
5315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
5335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
5316
5336
  */
5317
5337
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
5318
5338
  /**
5319
5339
  * Require escape sequences to use uppercase or lowercase values.
5320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
5340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
5321
5341
  */
5322
5342
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
5323
5343
  /**
5324
5344
  * Add expiration conditions to TODO comments.
5325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
5345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
5326
5346
  */
5327
5347
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
5328
5348
  /**
5329
5349
  * Enforce explicitly comparing the `length` or `size` property of a value.
5330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
5350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
5331
5351
  */
5332
5352
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
5333
5353
  /**
5334
5354
  * Enforce a case style for filenames.
5335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
5355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
5336
5356
  */
5337
5357
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
5338
5358
  /**
5339
5359
  * Enforce specific import styles per module.
5340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
5360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
5341
5361
  */
5342
5362
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5343
5363
  /**
5344
5364
  * Prevent usage of variables from outside the scope of isolated functions.
5345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
5365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
5346
5366
  */
5347
5367
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
5348
5368
  /**
5349
5369
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
5370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
5351
5371
  */
5352
5372
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
5353
5373
  /**
5354
5374
  * Enforce specifying rules to disable in `eslint-disable` comments.
5355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
5375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
5356
5376
  */
5357
5377
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
5358
5378
  /**
5359
5379
  * Disallow recursive access to `this` within getters and setters.
5360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
5380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
5361
5381
  */
5362
5382
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5363
5383
  /**
5364
5384
  * Disallow anonymous functions and classes as the default export.
5365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
5385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
5366
5386
  */
5367
5387
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5368
5388
  /**
5369
5389
  * Prevent passing a function reference directly to iterator methods.
5370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
5390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
5371
5391
  */
5372
5392
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
5373
5393
  /**
5374
5394
  * Prefer `for…of` over the `forEach` method.
5375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
5395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
5376
5396
  */
5377
5397
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
5378
5398
  /**
5379
5399
  * Disallow using the `this` argument in array methods.
5380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
5400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
5381
5401
  */
5382
5402
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5383
5403
  /**
5384
5404
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5386
5406
  * @deprecated
5387
5407
  */
5388
5408
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5389
5409
  /**
5390
5410
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
5411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
5392
5412
  */
5393
5413
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5394
5414
  /**
5395
5415
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
5416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
5397
5417
  */
5398
5418
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5399
5419
  /**
5400
5420
  * Prefer `Array#toSorted()` over `Array#sort()`.
5401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
5421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
5402
5422
  */
5403
5423
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5404
5424
  /**
5405
5425
  * Disallow member access from await expression.
5406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
5426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
5407
5427
  */
5408
5428
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5409
5429
  /**
5410
5430
  * Disallow using `await` in `Promise` method parameters.
5411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
5431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
5412
5432
  */
5413
5433
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5414
5434
  /**
5415
5435
  * Do not use leading/trailing space between `console.log` parameters.
5416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
5436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
5417
5437
  */
5418
5438
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5419
5439
  /**
5420
5440
  * Do not use `document.cookie` directly.
5421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
5441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
5422
5442
  */
5423
5443
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5424
5444
  /**
5425
5445
  * Disallow empty files.
5426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
5446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
5427
5447
  */
5428
5448
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
5429
5449
  /**
5430
5450
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
5451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
5432
5452
  */
5433
5453
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5434
5454
  /**
5435
5455
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
5456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
5437
5457
  */
5438
5458
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5439
5459
  /**
5440
5460
  * Disallow immediate mutation after variable assignment.
5441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
5461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
5442
5462
  */
5443
5463
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5444
5464
  /**
5445
5465
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5447
5467
  * @deprecated
5448
5468
  */
5449
5469
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5450
5470
  /**
5451
5471
  * Disallow `instanceof` with built-in objects
5452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
5472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
5453
5473
  */
5454
5474
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5455
5475
  /**
5456
5476
  * Disallow invalid options in `fetch()` and `new Request()`.
5457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
5477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
5458
5478
  */
5459
5479
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5460
5480
  /**
5461
5481
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
5482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
5463
5483
  */
5464
5484
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5465
5485
  /**
5466
5486
  * Disallow identifiers starting with `new` or `class`.
5467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
5487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
5468
5488
  */
5469
5489
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5470
5490
  /**
5471
5491
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5473
5493
  * @deprecated
5474
5494
  */
5475
5495
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5476
5496
  /**
5477
5497
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
5498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
5479
5499
  */
5480
5500
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5481
5501
  /**
5482
5502
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
5503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
5484
5504
  */
5485
5505
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5486
5506
  /**
5487
5507
  * Disallow named usage of default import and export.
5488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
5508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
5489
5509
  */
5490
5510
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5491
5511
  /**
5492
5512
  * Disallow negated conditions.
5493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
5513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
5494
5514
  */
5495
5515
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5496
5516
  /**
5497
5517
  * Disallow negated expression in equality check.
5498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
5518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
5499
5519
  */
5500
5520
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5501
5521
  /**
5502
5522
  * Disallow nested ternary expressions.
5503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
5523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
5504
5524
  */
5505
5525
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5506
5526
  /**
5507
5527
  * Disallow `new Array()`.
5508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
5528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
5509
5529
  */
5510
5530
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5511
5531
  /**
5512
5532
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
5533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
5514
5534
  */
5515
5535
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5516
5536
  /**
5517
5537
  * Disallow the use of the `null` literal.
5518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
5538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
5519
5539
  */
5520
5540
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5521
5541
  /**
5522
5542
  * Disallow the use of objects as default parameters.
5523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
5543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
5524
5544
  */
5525
5545
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5526
5546
  /**
5527
5547
  * Disallow `process.exit()`.
5528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
5548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
5529
5549
  */
5530
5550
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5531
5551
  /**
5532
5552
  * Disallow passing single-element arrays to `Promise` methods.
5533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
5553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
5534
5554
  */
5535
5555
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5536
5556
  /**
5537
5557
  * Disallow classes that only have static members.
5538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
5558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
5539
5559
  */
5540
5560
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5541
5561
  /**
5542
5562
  * Disallow `then` property.
5543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
5563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
5544
5564
  */
5545
5565
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5546
5566
  /**
5547
5567
  * Disallow assigning `this` to a variable.
5548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
5568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
5549
5569
  */
5550
5570
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5551
5571
  /**
5552
5572
  * Disallow comparing `undefined` using `typeof`.
5553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
5573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
5554
5574
  */
5555
5575
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5556
5576
  /**
5557
5577
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5559
5579
  */
5560
5580
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5561
5581
  /**
5562
5582
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
5583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
5564
5584
  */
5565
5585
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5566
5586
  /**
5567
5587
  * Disallow awaiting non-promise values.
5568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
5588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
5569
5589
  */
5570
5590
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5571
5591
  /**
5572
5592
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
5593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
5574
5594
  */
5575
5595
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5576
5596
  /**
5577
5597
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
5598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
5579
5599
  */
5580
5600
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5581
5601
  /**
5582
5602
  * Disallow unreadable array destructuring.
5583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
5603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
5584
5604
  */
5585
5605
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
5586
5606
  /**
5587
5607
  * Disallow unreadable IIFEs.
5588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
5608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
5589
5609
  */
5590
5610
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5591
5611
  /**
5592
5612
  * Disallow unused object properties.
5593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
5613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
5594
5614
  */
5595
5615
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5596
5616
  /**
5597
5617
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
5618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
5599
5619
  */
5600
5620
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5601
5621
  /**
5602
5622
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5604
5624
  */
5605
5625
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5606
5626
  /**
5607
5627
  * Disallow useless fallback when spreading in object literals.
5608
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
5628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
5609
5629
  */
5610
5630
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5631
+ /**
5632
+ * Disallow unnecessary `.toArray()` on iterators.
5633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
5634
+ */
5635
+ 'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
5611
5636
  /**
5612
5637
  * Disallow useless array length check.
5613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
5638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
5614
5639
  */
5615
5640
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5616
5641
  /**
5617
5642
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
5643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
5619
5644
  */
5620
5645
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5621
5646
  /**
5622
5647
  * Disallow unnecessary spread.
5623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
5648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
5624
5649
  */
5625
5650
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5626
5651
  /**
5627
5652
  * Disallow useless case in switch statements.
5628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
5653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
5629
5654
  */
5630
5655
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5631
5656
  /**
5632
5657
  * Disallow useless `undefined`.
5633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
5658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
5634
5659
  */
5635
5660
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5636
5661
  /**
5637
5662
  * Disallow number literals with zero fractions or dangling dots.
5638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
5663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
5639
5664
  */
5640
5665
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5641
5666
  /**
5642
5667
  * Enforce proper case for numeric literals.
5643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
5668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
5644
5669
  */
5645
5670
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5646
5671
  /**
5647
5672
  * Enforce the style of numeric separators by correctly grouping digits.
5648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
5673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
5649
5674
  */
5650
5675
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5651
5676
  /**
5652
5677
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
5678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
5654
5679
  */
5655
5680
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5656
5681
  /**
5657
5682
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
5683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
5659
5684
  */
5660
5685
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5661
5686
  /**
5662
5687
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
5688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
5664
5689
  */
5665
5690
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5666
5691
  /**
5667
5692
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
5693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
5669
5694
  */
5670
5695
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5671
5696
  /**
5672
5697
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
5698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
5674
5699
  */
5675
5700
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5676
5701
  /**
5677
5702
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
5703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
5679
5704
  */
5680
5705
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5681
5706
  /**
5682
5707
  * Prefer `.at()` method for index access and `String#charAt()`.
5683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
5708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
5684
5709
  */
5685
5710
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5686
5711
  /**
5687
5712
  * Prefer `BigInt` literals over the constructor.
5688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
5713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
5689
5714
  */
5690
5715
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5691
5716
  /**
5692
5717
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
5718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
5694
5719
  */
5695
5720
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5696
5721
  /**
5697
5722
  * Prefer class field declarations over `this` assignments in constructors.
5698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
5723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
5699
5724
  */
5700
5725
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5701
5726
  /**
5702
5727
  * Prefer using `Element#classList.toggle()` to toggle class names.
5703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
5728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
5704
5729
  */
5705
5730
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5706
5731
  /**
5707
5732
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
5733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
5709
5734
  */
5710
5735
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5711
5736
  /**
5712
5737
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
5738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
5714
5739
  */
5715
5740
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5716
5741
  /**
5717
5742
  * Prefer default parameters over reassignment.
5718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
5743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
5719
5744
  */
5720
5745
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5721
5746
  /**
5722
5747
  * Prefer `Node#append()` over `Node#appendChild()`.
5723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
5748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
5724
5749
  */
5725
5750
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5726
5751
  /**
5727
5752
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
5753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
5729
5754
  */
5730
5755
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5731
5756
  /**
5732
5757
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
5758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
5734
5759
  */
5735
5760
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5736
5761
  /**
5737
5762
  * Prefer `.textContent` over `.innerText`.
5738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
5763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
5739
5764
  */
5740
5765
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5741
5766
  /**
5742
5767
  * Prefer `EventTarget` over `EventEmitter`.
5743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
5768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
5744
5769
  */
5745
5770
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5746
5771
  /**
5747
5772
  * Prefer `export…from` when re-exporting.
5748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
5773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
5749
5774
  */
5750
5775
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5751
5776
  /**
5752
5777
  * Prefer `globalThis` over `window`, `self`, and `global`.
5753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
5778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
5754
5779
  */
5755
5780
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5756
5781
  /**
5757
5782
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
5783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
5759
5784
  */
5760
5785
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5761
5786
  /**
5762
5787
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
5788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
5764
5789
  */
5765
5790
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5766
5791
  /**
5767
5792
  * Prefer reading a JSON file as a buffer.
5768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
5793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
5769
5794
  */
5770
5795
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5771
5796
  /**
5772
5797
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
5798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
5774
5799
  */
5775
5800
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5776
5801
  /**
5777
5802
  * Prefer using a logical operator over a ternary.
5778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5779
5804
  */
5780
5805
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5781
5806
  /**
5782
5807
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
5808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
5784
5809
  */
5785
5810
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5786
5811
  /**
5787
5812
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
5813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
5789
5814
  */
5790
5815
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5791
5816
  /**
5792
5817
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
5818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
5794
5819
  */
5795
5820
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5796
5821
  /**
5797
5822
  * Prefer modern `Math` APIs over legacy patterns.
5798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
5823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
5799
5824
  */
5800
5825
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5801
5826
  /**
5802
5827
  * Prefer JavaScript modules (ESM) over CommonJS.
5803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
5828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
5804
5829
  */
5805
5830
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5806
5831
  /**
5807
5832
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
5833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
5809
5834
  */
5810
5835
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5811
5836
  /**
5812
5837
  * Prefer negative index over `.length - index` when possible.
5813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
5838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
5814
5839
  */
5815
5840
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5816
5841
  /**
5817
5842
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
5843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
5819
5844
  */
5820
5845
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5821
5846
  /**
5822
5847
  * Prefer `Number` static properties over global ones.
5823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
5848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
5824
5849
  */
5825
5850
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5826
5851
  /**
5827
5852
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
5853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
5829
5854
  */
5830
5855
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5831
5856
  /**
5832
5857
  * Prefer omitting the `catch` binding parameter.
5833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
5858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
5834
5859
  */
5835
5860
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5836
5861
  /**
5837
5862
  * Prefer borrowing methods from the prototype instead of the instance.
5838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
5863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
5839
5864
  */
5840
5865
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5841
5866
  /**
5842
5867
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
5868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
5844
5869
  */
5845
5870
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
5846
5871
  /**
5847
5872
  * Prefer `Reflect.apply()` over `Function#apply()`.
5848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
5873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
5849
5874
  */
5850
5875
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5851
5876
  /**
5852
5877
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
5878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
5854
5879
  */
5855
5880
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5856
5881
  /**
5857
5882
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
5883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
5859
5884
  */
5860
5885
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
5861
5886
  /**
5862
5887
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
5888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
5864
5889
  */
5865
5890
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
5866
5891
  /**
5867
5892
  * Prefer using `Set#size` instead of `Array#length`.
5868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
5893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
5869
5894
  */
5870
5895
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5896
+ /**
5897
+ * Prefer simple conditions first in logical expressions.
5898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
5899
+ */
5900
+ 'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
5871
5901
  /**
5872
5902
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
5903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
5874
5904
  */
5875
5905
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5876
5906
  /**
5877
5907
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
5908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
5879
5909
  */
5880
5910
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5881
5911
  /**
5882
5912
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
5913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
5884
5914
  */
5885
5915
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5886
5916
  /**
5887
5917
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
5918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
5889
5919
  */
5890
5920
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5891
5921
  /**
5892
5922
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
5923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
5894
5924
  */
5895
5925
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5896
5926
  /**
5897
5927
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
5928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
5899
5929
  */
5900
5930
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5901
5931
  /**
5902
5932
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
5933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
5904
5934
  */
5905
5935
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5906
5936
  /**
5907
5937
  * Prefer using `structuredClone` to create a deep clone.
5908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
5938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
5909
5939
  */
5910
5940
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5911
5941
  /**
5912
5942
  * Prefer `switch` over multiple `else-if`.
5913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
5943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
5914
5944
  */
5915
5945
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5916
5946
  /**
5917
5947
  * Prefer ternary expressions over simple `if-else` statements.
5918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
5948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
5919
5949
  */
5920
5950
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5921
5951
  /**
5922
5952
  * Prefer top-level await over top-level promises and async function calls.
5923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
5953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
5924
5954
  */
5925
5955
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5926
5956
  /**
5927
5957
  * Enforce throwing `TypeError` in type checking conditions.
5928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
5958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
5929
5959
  */
5930
5960
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5931
5961
  /**
5932
5962
  * Prevent abbreviations.
5933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
5963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
5934
5964
  */
5935
5965
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
5936
5966
  /**
5937
5967
  * Enforce consistent relative URL style.
5938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
5968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
5939
5969
  */
5940
5970
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5941
5971
  /**
5942
5972
  * Enforce using the separator argument with `Array#join()`.
5943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
5973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
5944
5974
  */
5945
5975
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5946
5976
  /**
5947
5977
  * Require non-empty module attributes for imports and exports
5948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
5978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
5949
5979
  */
5950
5980
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
5951
5981
  /**
5952
5982
  * Require non-empty specifier list in import and export statements.
5953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
5983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
5954
5984
  */
5955
5985
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5956
5986
  /**
5957
5987
  * Enforce using the digits argument with `Number#toFixed()`.
5958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5959
5989
  */
5960
5990
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5961
5991
  /**
5962
5992
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
5993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
5964
5994
  */
5965
5995
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5966
5996
  /**
5967
5997
  * Enforce better string content.
5968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
5998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
5969
5999
  */
5970
6000
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5971
6001
  /**
5972
6002
  * Enforce consistent brace style for `case` clauses.
5973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
6003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
5974
6004
  */
5975
6005
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6006
+ /**
6007
+ * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
6009
+ */
6010
+ 'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
5976
6011
  /**
5977
6012
  * Fix whitespace-insensitive template indentation.
5978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
6013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
5979
6014
  */
5980
6015
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5981
6016
  /**
5982
6017
  * Enforce consistent case for text encoding identifiers.
5983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
6018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
5984
6019
  */
5985
6020
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
5986
6021
  /**
5987
6022
  * Require `new` when creating an error.
5988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
6023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
5989
6024
  */
5990
6025
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5991
6026
  /**
@@ -10955,13 +10990,15 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
10955
10990
  }] | ["never"]) & unknown[]); // ----- markdown/fenced-code-language -----
10956
10991
  type MarkdownFencedCodeLanguage = [] | [{
10957
10992
  required?: string[];
10958
- }]; // ----- markdown/heading-increment -----
10993
+ }]; // ----- markdown/fenced-code-meta -----
10994
+ type MarkdownFencedCodeMeta = [] | [("always" | "never")]; // ----- markdown/heading-increment -----
10959
10995
  type MarkdownHeadingIncrement = [] | [{
10960
10996
  frontmatterTitle?: string;
10961
10997
  }]; // ----- markdown/no-duplicate-definitions -----
10962
10998
  type MarkdownNoDuplicateDefinitions = [] | [{
10963
10999
  allowDefinitions?: string[];
10964
11000
  allowFootnoteDefinitions?: string[];
11001
+ checkFootnoteDefinitions?: boolean;
10965
11002
  }]; // ----- markdown/no-duplicate-headings -----
10966
11003
  type MarkdownNoDuplicateHeadings = [] | [{
10967
11004
  checkSiblingsOnly?: boolean;
@@ -10994,6 +11031,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
10994
11031
  type MarkdownNoUnusedDefinitions = [] | [{
10995
11032
  allowDefinitions?: string[];
10996
11033
  allowFootnoteDefinitions?: string[];
11034
+ checkFootnoteDefinitions?: boolean;
10997
11035
  }]; // ----- markdown/table-column-count -----
10998
11036
  type MarkdownTableColumnCount = [] | [{
10999
11037
  checkMissingCells?: boolean;
@@ -11846,6 +11884,113 @@ type PerfectionistSortArrayIncludes = {
11846
11884
  pattern: string;
11847
11885
  flags?: string;
11848
11886
  } | string));
11887
+ matchesAstSelector?: string;
11888
+ };
11889
+ partitionByComment?: (boolean | (({
11890
+ pattern: string;
11891
+ flags?: string;
11892
+ } | string)[] | ({
11893
+ pattern: string;
11894
+ flags?: string;
11895
+ } | string)) | {
11896
+ block?: (boolean | (({
11897
+ pattern: string;
11898
+ flags?: string;
11899
+ } | string)[] | ({
11900
+ pattern: string;
11901
+ flags?: string;
11902
+ } | string)));
11903
+ line?: (boolean | (({
11904
+ pattern: string;
11905
+ flags?: string;
11906
+ } | string)[] | ({
11907
+ pattern: string;
11908
+ flags?: string;
11909
+ } | string)));
11910
+ });
11911
+ partitionByNewLine?: boolean;
11912
+ }[]; // ----- perfectionist/sort-arrays -----
11913
+ type PerfectionistSortArrays = {
11914
+ fallbackSort?: {
11915
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11916
+ order?: ("asc" | "desc");
11917
+ };
11918
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11919
+ specialCharacters?: ("remove" | "trim" | "keep");
11920
+ ignoreCase?: boolean;
11921
+ alphabet?: string;
11922
+ locales?: (string | string[]);
11923
+ order?: ("asc" | "desc");
11924
+ customGroups?: ({
11925
+ fallbackSort?: {
11926
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11927
+ order?: ("asc" | "desc");
11928
+ };
11929
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11930
+ groupName: string;
11931
+ newlinesInside?: ("ignore" | number);
11932
+ order?: ("asc" | "desc");
11933
+ anyOf: [{
11934
+ elementNamePattern?: (({
11935
+ pattern: string;
11936
+ flags?: string;
11937
+ } | string)[] | ({
11938
+ pattern: string;
11939
+ flags?: string;
11940
+ } | string));
11941
+ selector?: "literal";
11942
+ }, ...({
11943
+ elementNamePattern?: (({
11944
+ pattern: string;
11945
+ flags?: string;
11946
+ } | string)[] | ({
11947
+ pattern: string;
11948
+ flags?: string;
11949
+ } | string));
11950
+ selector?: "literal";
11951
+ })[]];
11952
+ } | {
11953
+ fallbackSort?: {
11954
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11955
+ order?: ("asc" | "desc");
11956
+ };
11957
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11958
+ groupName: string;
11959
+ newlinesInside?: ("ignore" | number);
11960
+ order?: ("asc" | "desc");
11961
+ elementNamePattern?: (({
11962
+ pattern: string;
11963
+ flags?: string;
11964
+ } | string)[] | ({
11965
+ pattern: string;
11966
+ flags?: string;
11967
+ } | string));
11968
+ selector?: "literal";
11969
+ })[];
11970
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11971
+ groups?: (string | [string, ...(string)[]] | {
11972
+ newlinesBetween: ("ignore" | number);
11973
+ } | {
11974
+ group: (string | [string, ...(string)[]]);
11975
+ fallbackSort?: {
11976
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11977
+ order?: ("asc" | "desc");
11978
+ };
11979
+ commentAbove?: string;
11980
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11981
+ newlinesInside?: ("ignore" | number);
11982
+ order?: ("asc" | "desc");
11983
+ })[];
11984
+ newlinesBetween?: ("ignore" | number);
11985
+ useConfigurationIf: {
11986
+ allNamesMatchPattern?: (({
11987
+ pattern: string;
11988
+ flags?: string;
11989
+ } | string)[] | ({
11990
+ pattern: string;
11991
+ flags?: string;
11992
+ } | string));
11993
+ matchesAstSelector?: string;
11849
11994
  };
11850
11995
  partitionByComment?: (boolean | (({
11851
11996
  pattern: string;
@@ -11871,7 +12016,7 @@ type PerfectionistSortArrayIncludes = {
11871
12016
  });
11872
12017
  partitionByNewLine?: boolean;
11873
12018
  }[]; // ----- perfectionist/sort-classes -----
11874
- type PerfectionistSortClasses = [] | [{
12019
+ type PerfectionistSortClasses = {
11875
12020
  fallbackSort?: {
11876
12021
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11877
12022
  order?: ("asc" | "desc");
@@ -11988,6 +12133,16 @@ type PerfectionistSortClasses = [] | [{
11988
12133
  order?: ("asc" | "desc");
11989
12134
  })[];
11990
12135
  newlinesBetween?: ("ignore" | number);
12136
+ useConfigurationIf?: {
12137
+ allNamesMatchPattern?: (({
12138
+ pattern: string;
12139
+ flags?: string;
12140
+ } | string)[] | ({
12141
+ pattern: string;
12142
+ flags?: string;
12143
+ } | string));
12144
+ matchesAstSelector?: string;
12145
+ };
11991
12146
  useExperimentalDependencyDetection?: boolean;
11992
12147
  ignoreCallbackDependenciesPatterns?: (({
11993
12148
  pattern: string;
@@ -12019,7 +12174,7 @@ type PerfectionistSortClasses = [] | [{
12019
12174
  } | string)));
12020
12175
  });
12021
12176
  partitionByNewLine?: boolean;
12022
- }]; // ----- perfectionist/sort-decorators -----
12177
+ }[]; // ----- perfectionist/sort-decorators -----
12023
12178
  type PerfectionistSortDecorators = {
12024
12179
  fallbackSort?: {
12025
12180
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -12118,7 +12273,7 @@ type PerfectionistSortDecorators = {
12118
12273
  });
12119
12274
  partitionByNewLine?: boolean;
12120
12275
  }[]; // ----- perfectionist/sort-enums -----
12121
- type PerfectionistSortEnums = [] | [{
12276
+ type PerfectionistSortEnums = {
12122
12277
  fallbackSort?: {
12123
12278
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12124
12279
  order?: ("asc" | "desc");
@@ -12208,6 +12363,16 @@ type PerfectionistSortEnums = [] | [{
12208
12363
  order?: ("asc" | "desc");
12209
12364
  })[];
12210
12365
  newlinesBetween?: ("ignore" | number);
12366
+ useConfigurationIf?: {
12367
+ allNamesMatchPattern?: (({
12368
+ pattern: string;
12369
+ flags?: string;
12370
+ } | string)[] | ({
12371
+ pattern: string;
12372
+ flags?: string;
12373
+ } | string));
12374
+ matchesAstSelector?: string;
12375
+ };
12211
12376
  sortByValue?: ("always" | "ifNumericEnum" | "never");
12212
12377
  useExperimentalDependencyDetection?: boolean;
12213
12378
  partitionByComment?: (boolean | (({
@@ -12233,7 +12398,7 @@ type PerfectionistSortEnums = [] | [{
12233
12398
  } | string)));
12234
12399
  });
12235
12400
  partitionByNewLine?: boolean;
12236
- }]; // ----- perfectionist/sort-export-attributes -----
12401
+ }[]; // ----- perfectionist/sort-export-attributes -----
12237
12402
  type PerfectionistSortExportAttributes = {
12238
12403
  fallbackSort?: {
12239
12404
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -12303,6 +12468,16 @@ type PerfectionistSortExportAttributes = {
12303
12468
  order?: ("asc" | "desc");
12304
12469
  })[];
12305
12470
  newlinesBetween?: ("ignore" | number);
12471
+ useConfigurationIf?: {
12472
+ allNamesMatchPattern?: (({
12473
+ pattern: string;
12474
+ flags?: string;
12475
+ } | string)[] | ({
12476
+ pattern: string;
12477
+ flags?: string;
12478
+ } | string));
12479
+ matchesAstSelector?: string;
12480
+ };
12306
12481
  partitionByComment?: (boolean | (({
12307
12482
  pattern: string;
12308
12483
  flags?: string;
@@ -12495,6 +12670,16 @@ type PerfectionistSortHeritageClauses = {
12495
12670
  order?: ("asc" | "desc");
12496
12671
  })[];
12497
12672
  newlinesBetween?: ("ignore" | number);
12673
+ useConfigurationIf?: {
12674
+ allNamesMatchPattern?: (({
12675
+ pattern: string;
12676
+ flags?: string;
12677
+ } | string)[] | ({
12678
+ pattern: string;
12679
+ flags?: string;
12680
+ } | string));
12681
+ matchesAstSelector?: string;
12682
+ };
12498
12683
  partitionByNewLine?: boolean;
12499
12684
  partitionByComment?: (boolean | (({
12500
12685
  pattern: string;
@@ -12588,6 +12773,16 @@ type PerfectionistSortImportAttributes = {
12588
12773
  order?: ("asc" | "desc");
12589
12774
  })[];
12590
12775
  newlinesBetween?: ("ignore" | number);
12776
+ useConfigurationIf?: {
12777
+ allNamesMatchPattern?: (({
12778
+ pattern: string;
12779
+ flags?: string;
12780
+ } | string)[] | ({
12781
+ pattern: string;
12782
+ flags?: string;
12783
+ } | string));
12784
+ matchesAstSelector?: string;
12785
+ };
12591
12786
  partitionByComment?: (boolean | (({
12592
12787
  pattern: string;
12593
12788
  flags?: string;
@@ -12856,6 +13051,7 @@ type PerfectionistSortInterfaces = {
12856
13051
  pattern: string;
12857
13052
  flags?: string;
12858
13053
  } | string));
13054
+ matchesAstSelector?: string;
12859
13055
  declarationMatchesPattern?: (({
12860
13056
  scope?: ("shallow" | "deep");
12861
13057
  pattern: string;
@@ -12962,6 +13158,16 @@ type PerfectionistSortIntersectionTypes = {
12962
13158
  order?: ("asc" | "desc");
12963
13159
  })[];
12964
13160
  newlinesBetween?: ("ignore" | number);
13161
+ useConfigurationIf?: {
13162
+ allNamesMatchPattern?: (({
13163
+ pattern: string;
13164
+ flags?: string;
13165
+ } | string)[] | ({
13166
+ pattern: string;
13167
+ flags?: string;
13168
+ } | string));
13169
+ matchesAstSelector?: string;
13170
+ };
12965
13171
  partitionByComment?: (boolean | (({
12966
13172
  pattern: string;
12967
13173
  flags?: string;
@@ -13090,6 +13296,7 @@ type PerfectionistSortJsxProps = {
13090
13296
  pattern: string;
13091
13297
  flags?: string;
13092
13298
  } | string));
13299
+ matchesAstSelector?: string;
13093
13300
  tagMatchesPattern?: (({
13094
13301
  pattern: string;
13095
13302
  flags?: string;
@@ -13177,6 +13384,7 @@ type PerfectionistSortMaps = {
13177
13384
  pattern: string;
13178
13385
  flags?: string;
13179
13386
  } | string));
13387
+ matchesAstSelector?: string;
13180
13388
  };
13181
13389
  partitionByComment?: (boolean | (({
13182
13390
  pattern: string;
@@ -13398,6 +13606,16 @@ type PerfectionistSortNamedExports = {
13398
13606
  order?: ("asc" | "desc");
13399
13607
  })[];
13400
13608
  newlinesBetween?: ("ignore" | number);
13609
+ useConfigurationIf?: {
13610
+ allNamesMatchPattern?: (({
13611
+ pattern: string;
13612
+ flags?: string;
13613
+ } | string)[] | ({
13614
+ pattern: string;
13615
+ flags?: string;
13616
+ } | string));
13617
+ matchesAstSelector?: string;
13618
+ };
13401
13619
  ignoreAlias?: boolean;
13402
13620
  partitionByComment?: (boolean | (({
13403
13621
  pattern: string;
@@ -13498,6 +13716,16 @@ type PerfectionistSortNamedImports = {
13498
13716
  order?: ("asc" | "desc");
13499
13717
  })[];
13500
13718
  newlinesBetween?: ("ignore" | number);
13719
+ useConfigurationIf?: {
13720
+ allNamesMatchPattern?: (({
13721
+ pattern: string;
13722
+ flags?: string;
13723
+ } | string)[] | ({
13724
+ pattern: string;
13725
+ flags?: string;
13726
+ } | string));
13727
+ matchesAstSelector?: string;
13728
+ };
13501
13729
  ignoreAlias?: boolean;
13502
13730
  partitionByComment?: (boolean | (({
13503
13731
  pattern: string;
@@ -13645,6 +13873,7 @@ type PerfectionistSortObjectTypes = {
13645
13873
  pattern: string;
13646
13874
  flags?: string;
13647
13875
  } | string));
13876
+ matchesAstSelector?: string;
13648
13877
  declarationMatchesPattern?: (({
13649
13878
  scope?: ("shallow" | "deep");
13650
13879
  pattern: string;
@@ -13811,6 +14040,7 @@ type PerfectionistSortObjects = {
13811
14040
  pattern: string;
13812
14041
  flags?: string;
13813
14042
  } | string));
14043
+ matchesAstSelector?: string;
13814
14044
  declarationMatchesPattern?: (({
13815
14045
  scope?: ("shallow" | "deep");
13816
14046
  pattern: string;
@@ -13821,6 +14051,7 @@ type PerfectionistSortObjects = {
13821
14051
  flags?: string;
13822
14052
  } | string));
13823
14053
  };
14054
+ partitionByComputedKey?: boolean;
13824
14055
  styledComponents?: boolean;
13825
14056
  useExperimentalDependencyDetection?: boolean;
13826
14057
  partitionByComment?: (boolean | (({
@@ -13927,6 +14158,7 @@ type PerfectionistSortSets = {
13927
14158
  pattern: string;
13928
14159
  flags?: string;
13929
14160
  } | string));
14161
+ matchesAstSelector?: string;
13930
14162
  };
13931
14163
  partitionByComment?: (boolean | (({
13932
14164
  pattern: string;
@@ -14036,6 +14268,16 @@ type PerfectionistSortUnionTypes = {
14036
14268
  order?: ("asc" | "desc");
14037
14269
  })[];
14038
14270
  newlinesBetween?: ("ignore" | number);
14271
+ useConfigurationIf?: {
14272
+ allNamesMatchPattern?: (({
14273
+ pattern: string;
14274
+ flags?: string;
14275
+ } | string)[] | ({
14276
+ pattern: string;
14277
+ flags?: string;
14278
+ } | string));
14279
+ matchesAstSelector?: string;
14280
+ };
14039
14281
  partitionByComment?: (boolean | (({
14040
14282
  pattern: string;
14041
14283
  flags?: string;
@@ -14060,7 +14302,7 @@ type PerfectionistSortUnionTypes = {
14060
14302
  });
14061
14303
  partitionByNewLine?: boolean;
14062
14304
  }[]; // ----- perfectionist/sort-variable-declarations -----
14063
- type PerfectionistSortVariableDeclarations = [] | [{
14305
+ type PerfectionistSortVariableDeclarations = {
14064
14306
  fallbackSort?: {
14065
14307
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
14066
14308
  order?: ("asc" | "desc");
@@ -14132,6 +14374,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
14132
14374
  order?: ("asc" | "desc");
14133
14375
  })[];
14134
14376
  newlinesBetween?: ("ignore" | number);
14377
+ useConfigurationIf?: {
14378
+ allNamesMatchPattern?: (({
14379
+ pattern: string;
14380
+ flags?: string;
14381
+ } | string)[] | ({
14382
+ pattern: string;
14383
+ flags?: string;
14384
+ } | string));
14385
+ matchesAstSelector?: string;
14386
+ };
14135
14387
  useExperimentalDependencyDetection?: boolean;
14136
14388
  partitionByComment?: (boolean | (({
14137
14389
  pattern: string;
@@ -14156,7 +14408,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
14156
14408
  } | string)));
14157
14409
  });
14158
14410
  partitionByNewLine?: boolean;
14159
- }]; // ----- pnpm/json-enforce-catalog -----
14411
+ }[]; // ----- pnpm/json-enforce-catalog -----
14160
14412
  type PnpmJsonEnforceCatalog = [] | [{
14161
14413
  allowedProtocols?: string[];
14162
14414
  autofix?: boolean;
@@ -14498,6 +14750,9 @@ type TestRequireMockTypeParameters = [] | [{
14498
14750
  }]; // ----- test/require-top-level-describe -----
14499
14751
  type TestRequireTopLevelDescribe = [] | [{
14500
14752
  maxNumberOfTopLevelDescribes?: number;
14753
+ }]; // ----- test/unbound-method -----
14754
+ type TestUnboundMethod = [] | [{
14755
+ ignoreStatic?: boolean;
14501
14756
  }]; // ----- test/valid-expect -----
14502
14757
  type TestValidExpect = [] | [{
14503
14758
  alwaysAwait?: boolean;
@@ -14647,6 +14902,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
14647
14902
  type UnicornExpiringTodoComments = [] | [{
14648
14903
  terms?: string[];
14649
14904
  ignore?: unknown[];
14905
+ ignoreDates?: boolean;
14650
14906
  ignoreDatesOnPullRequests?: boolean;
14651
14907
  allowWarningComments?: boolean;
14652
14908
  date?: string;
@@ -14803,6 +15059,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
14803
15059
  interface _UnicornPreventAbbreviations_Abbreviations {
14804
15060
  [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
14805
15061
  }
15062
+ interface _UnicornPreventAbbreviations_BooleanObject {
15063
+ [k: string]: boolean | undefined;
15064
+ }
14806
15065
  interface _UnicornPreventAbbreviations_BooleanObject {
14807
15066
  [k: string]: boolean | undefined;
14808
15067
  } // ----- unicorn/relative-url-style -----