@kazupon/eslint-config 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7857,7 +7857,7 @@ interface TypescriptRules {
7857
7857
  */
7858
7858
  '@typescript-eslint/no-for-in-array'?: Linter.RuleEntry<[]>;
7859
7859
  /**
7860
- * Disallow the use of `eval()`-like methods
7860
+ * Disallow the use of `eval()`-like functions
7861
7861
  * @see https://typescript-eslint.io/rules/no-implied-eval
7862
7862
  */
7863
7863
  '@typescript-eslint/no-implied-eval'?: Linter.RuleEntry<[]>;
@@ -9018,11 +9018,12 @@ type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = [] | [
9018
9018
  {
9019
9019
  allowComparingNullableBooleansToFalse?: boolean;
9020
9020
  allowComparingNullableBooleansToTrue?: boolean;
9021
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
9021
9022
  }
9022
9023
  ];
9023
9024
  type TypescriptEslintNoUnnecessaryCondition = [] | [
9024
9025
  {
9025
- allowConstantLoopConditions?: boolean;
9026
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"));
9026
9027
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
9027
9028
  checkTypePredicates?: boolean;
9028
9029
  }
@@ -9308,702 +9309,642 @@ type TypescriptEslintUnifiedSignatures = [] | [
9308
9309
  interface UnicornRules {
9309
9310
  /**
9310
9311
  * Improve regexes by making them shorter, consistent, and safer.
9311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
9312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
9312
9313
  */
9313
9314
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
9314
9315
  /**
9315
9316
  * Enforce a specific parameter name in catch clauses.
9316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
9317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
9317
9318
  */
9318
9319
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
9320
+ /**
9321
+ * Enforce consistent assertion style with `node:assert`.
9322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
9323
+ */
9324
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
9325
+ /**
9326
+ * Prefer passing `Date` directly to the constructor when cloning.
9327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
9328
+ */
9329
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
9319
9330
  /**
9320
9331
  * Use destructured variables over properties.
9321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
9332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
9322
9333
  */
9323
9334
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
9324
9335
  /**
9325
9336
  * Prefer consistent types when spreading a ternary in an array literal.
9326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
9337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
9327
9338
  */
9328
9339
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
9329
9340
  /**
9330
9341
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
9331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
9342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
9332
9343
  */
9333
9344
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
9334
9345
  /**
9335
9346
  * Move function definitions to the highest possible scope.
9336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
9347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
9337
9348
  */
9338
9349
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
9339
9350
  /**
9340
9351
  * Enforce correct `Error` subclassing.
9341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
9352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
9342
9353
  */
9343
9354
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
9344
9355
  /**
9345
9356
  * Enforce no spaces between braces.
9346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
9357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
9347
9358
  */
9348
9359
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
9349
9360
  /**
9350
9361
  * Enforce passing a `message` value when creating a built-in error.
9351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
9362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
9352
9363
  */
9353
9364
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
9354
9365
  /**
9355
9366
  * Require escape sequences to use uppercase values.
9356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
9367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
9357
9368
  */
9358
9369
  'unicorn/escape-case'?: Linter.RuleEntry<[]>;
9359
9370
  /**
9360
9371
  * Add expiration conditions to TODO comments.
9361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
9372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
9362
9373
  */
9363
9374
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
9364
9375
  /**
9365
9376
  * Enforce explicitly comparing the `length` or `size` property of a value.
9366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
9377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
9367
9378
  */
9368
9379
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
9369
9380
  /**
9370
9381
  * Enforce a case style for filenames.
9371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
9382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
9372
9383
  */
9373
9384
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
9374
- /**
9375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
9376
- * @deprecated
9377
- */
9378
- 'unicorn/import-index'?: Linter.RuleEntry<[]>;
9379
9385
  /**
9380
9386
  * Enforce specific import styles per module.
9381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
9387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
9382
9388
  */
9383
9389
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
9384
9390
  /**
9385
9391
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
9386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
9392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
9387
9393
  */
9388
9394
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
9389
9395
  /**
9390
9396
  * Enforce specifying rules to disable in `eslint-disable` comments.
9391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
9397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
9392
9398
  */
9393
9399
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
9400
+ /**
9401
+ * Disallow recursive access to `this` within getters and setters.
9402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
9403
+ */
9404
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
9394
9405
  /**
9395
9406
  * Disallow anonymous functions and classes as the default export.
9396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
9407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
9397
9408
  */
9398
9409
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
9399
9410
  /**
9400
9411
  * Prevent passing a function reference directly to iterator methods.
9401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
9412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
9402
9413
  */
9403
9414
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
9404
9415
  /**
9405
9416
  * Prefer `for…of` over the `forEach` method.
9406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
9417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
9407
9418
  */
9408
9419
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
9409
- /**
9410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
9411
- * @deprecated
9412
- */
9413
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>;
9414
9420
  /**
9415
9421
  * Disallow using the `this` argument in array methods.
9416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
9422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
9417
9423
  */
9418
9424
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
9419
9425
  /**
9420
9426
  * Enforce combining multiple `Array#push()` into one call.
9421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
9427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
9422
9428
  */
9423
9429
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>;
9424
9430
  /**
9425
9431
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
9426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
9432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
9427
9433
  */
9428
9434
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
9429
9435
  /**
9430
9436
  * Disallow member access from await expression.
9431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
9437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
9432
9438
  */
9433
9439
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
9434
9440
  /**
9435
9441
  * Disallow using `await` in `Promise` method parameters.
9436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
9442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
9437
9443
  */
9438
9444
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
9439
9445
  /**
9440
9446
  * Do not use leading/trailing space between `console.log` parameters.
9441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
9447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
9442
9448
  */
9443
9449
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
9444
9450
  /**
9445
9451
  * Do not use `document.cookie` directly.
9446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
9452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
9447
9453
  */
9448
9454
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
9449
9455
  /**
9450
9456
  * Disallow empty files.
9451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
9457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
9452
9458
  */
9453
9459
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
9454
- /**
9455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
9456
- * @deprecated
9457
- */
9458
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>;
9459
9460
  /**
9460
9461
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
9461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
9462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
9462
9463
  */
9463
9464
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
9464
9465
  /**
9465
9466
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
9466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
9467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
9467
9468
  */
9468
9469
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
9469
9470
  /**
9470
- * Require `Array.isArray()` instead of `instanceof Array`.
9471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
9471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
9472
+ * @deprecated
9472
9473
  */
9473
9474
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
9475
+ /**
9476
+ * Disallow `instanceof` with built-in objects
9477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
9478
+ */
9479
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
9474
9480
  /**
9475
9481
  * Disallow invalid options in `fetch()` and `new Request()`.
9476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
9482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
9477
9483
  */
9478
9484
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
9479
9485
  /**
9480
9486
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
9481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
9487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
9482
9488
  */
9483
9489
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
9484
9490
  /**
9485
9491
  * Disallow identifiers starting with `new` or `class`.
9486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
9492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
9487
9493
  */
9488
9494
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
9489
9495
  /**
9490
9496
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
9491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
9497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
9492
9498
  */
9493
9499
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
9494
9500
  /**
9495
9501
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
9496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
9502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
9497
9503
  */
9498
9504
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
9499
9505
  /**
9500
9506
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
9501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
9507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
9502
9508
  */
9503
9509
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
9510
+ /**
9511
+ * Disallow named usage of default import and export.
9512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
9513
+ */
9514
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
9504
9515
  /**
9505
9516
  * Disallow negated conditions.
9506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
9517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
9507
9518
  */
9508
9519
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
9509
9520
  /**
9510
9521
  * Disallow negated expression in equality check.
9511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
9522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
9512
9523
  */
9513
9524
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
9514
9525
  /**
9515
9526
  * Disallow nested ternary expressions.
9516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
9527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
9517
9528
  */
9518
9529
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
9519
9530
  /**
9520
9531
  * Disallow `new Array()`.
9521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
9532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
9522
9533
  */
9523
9534
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
9524
9535
  /**
9525
9536
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
9526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
9537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
9527
9538
  */
9528
9539
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
9529
9540
  /**
9530
9541
  * Disallow the use of the `null` literal.
9531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
9542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
9532
9543
  */
9533
9544
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
9534
9545
  /**
9535
9546
  * Disallow the use of objects as default parameters.
9536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
9547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
9537
9548
  */
9538
9549
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
9539
9550
  /**
9540
9551
  * Disallow `process.exit()`.
9541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
9552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
9542
9553
  */
9543
9554
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
9544
- /**
9545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
9546
- * @deprecated
9547
- */
9548
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>;
9549
9555
  /**
9550
9556
  * Disallow passing single-element arrays to `Promise` methods.
9551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
9557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
9552
9558
  */
9553
9559
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
9554
9560
  /**
9555
9561
  * Disallow classes that only have static members.
9556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
9562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
9557
9563
  */
9558
9564
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
9559
9565
  /**
9560
9566
  * Disallow `then` property.
9561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
9567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
9562
9568
  */
9563
9569
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
9564
9570
  /**
9565
9571
  * Disallow assigning `this` to a variable.
9566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
9572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
9567
9573
  */
9568
9574
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
9569
9575
  /**
9570
9576
  * Disallow comparing `undefined` using `typeof`.
9571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
9577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
9572
9578
  */
9573
9579
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
9574
9580
  /**
9575
9581
  * Disallow awaiting non-promise values.
9576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
9582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
9577
9583
  */
9578
9584
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
9579
9585
  /**
9580
9586
  * Enforce the use of built-in methods instead of unnecessary polyfills.
9581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
9587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
9582
9588
  */
9583
9589
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
9584
9590
  /**
9585
9591
  * Disallow unreadable array destructuring.
9586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
9592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
9587
9593
  */
9588
9594
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
9589
9595
  /**
9590
9596
  * Disallow unreadable IIFEs.
9591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
9597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
9592
9598
  */
9593
9599
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
9594
- /**
9595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
9596
- * @deprecated
9597
- */
9598
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>;
9599
9600
  /**
9600
9601
  * Disallow unused object properties.
9601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
9602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
9602
9603
  */
9603
9604
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
9604
9605
  /**
9605
9606
  * Disallow useless fallback when spreading in object literals.
9606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
9607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
9607
9608
  */
9608
9609
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
9609
9610
  /**
9610
9611
  * Disallow useless array length check.
9611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
9612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
9612
9613
  */
9613
9614
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
9614
9615
  /**
9615
9616
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
9616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
9617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
9617
9618
  */
9618
9619
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
9619
9620
  /**
9620
9621
  * Disallow unnecessary spread.
9621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
9622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
9622
9623
  */
9623
9624
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
9624
9625
  /**
9625
9626
  * Disallow useless case in switch statements.
9626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
9627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
9627
9628
  */
9628
9629
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
9629
9630
  /**
9630
9631
  * Disallow useless `undefined`.
9631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
9632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
9632
9633
  */
9633
9634
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
9634
9635
  /**
9635
9636
  * Disallow number literals with zero fractions or dangling dots.
9636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
9637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
9637
9638
  */
9638
9639
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
9639
9640
  /**
9640
9641
  * Enforce proper case for numeric literals.
9641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
9642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
9642
9643
  */
9643
9644
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>;
9644
9645
  /**
9645
9646
  * Enforce the style of numeric separators by correctly grouping digits.
9646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
9647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
9647
9648
  */
9648
9649
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
9649
9650
  /**
9650
9651
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
9651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
9652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
9652
9653
  */
9653
9654
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
9654
9655
  /**
9655
9656
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
9656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
9657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
9657
9658
  */
9658
9659
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
9659
9660
  /**
9660
9661
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
9661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
9662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
9662
9663
  */
9663
9664
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
9664
9665
  /**
9665
9666
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
9666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
9667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
9667
9668
  */
9668
9669
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
9669
9670
  /**
9670
9671
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
9671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
9672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
9672
9673
  */
9673
9674
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
9674
9675
  /**
9675
9676
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
9676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
9677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
9677
9678
  */
9678
9679
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
9679
9680
  /**
9680
9681
  * Prefer `.at()` method for index access and `String#charAt()`.
9681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
9682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
9682
9683
  */
9683
9684
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
9684
9685
  /**
9685
9686
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
9686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
9687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
9687
9688
  */
9688
9689
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
9689
9690
  /**
9690
9691
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
9691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
9692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
9692
9693
  */
9693
9694
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
9694
- /**
9695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
9696
- * @deprecated
9697
- */
9698
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>;
9699
9695
  /**
9700
9696
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
9701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
9697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
9702
9698
  */
9703
9699
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
9704
9700
  /**
9705
9701
  * Prefer default parameters over reassignment.
9706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
9702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
9707
9703
  */
9708
9704
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
9709
9705
  /**
9710
9706
  * Prefer `Node#append()` over `Node#appendChild()`.
9711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
9707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
9712
9708
  */
9713
9709
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
9714
9710
  /**
9715
9711
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
9716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
9712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
9717
9713
  */
9718
9714
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
9719
9715
  /**
9720
9716
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
9721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
9717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
9722
9718
  */
9723
9719
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
9724
9720
  /**
9725
9721
  * Prefer `.textContent` over `.innerText`.
9726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
9722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
9727
9723
  */
9728
9724
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
9729
- /**
9730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
9731
- * @deprecated
9732
- */
9733
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>;
9734
9725
  /**
9735
9726
  * Prefer `EventTarget` over `EventEmitter`.
9736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
9727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
9737
9728
  */
9738
9729
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
9739
- /**
9740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
9741
- * @deprecated
9742
- */
9743
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
9744
9730
  /**
9745
9731
  * Prefer `export…from` when re-exporting.
9746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
9732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
9747
9733
  */
9748
9734
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
9749
- /**
9750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
9751
- * @deprecated
9752
- */
9753
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>;
9754
9735
  /**
9755
9736
  * Prefer `globalThis` over `window`, `self`, and `global`.
9756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
9737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
9757
9738
  */
9758
9739
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
9759
9740
  /**
9760
9741
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
9761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
9742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
9762
9743
  */
9763
9744
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
9764
9745
  /**
9765
9746
  * Prefer reading a JSON file as a buffer.
9766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
9747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
9767
9748
  */
9768
9749
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
9769
9750
  /**
9770
9751
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
9771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
9752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
9772
9753
  */
9773
9754
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
9774
9755
  /**
9775
9756
  * Prefer using a logical operator over a ternary.
9776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
9757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9777
9758
  */
9778
9759
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
9779
9760
  /**
9780
9761
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
9781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
9762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
9782
9763
  */
9783
9764
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
9784
9765
  /**
9785
9766
  * Enforce the use of `Math.trunc` instead of bitwise operators.
9786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
9767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
9787
9768
  */
9788
9769
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
9789
9770
  /**
9790
9771
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
9791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
9772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
9792
9773
  */
9793
9774
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
9794
9775
  /**
9795
9776
  * Prefer modern `Math` APIs over legacy patterns.
9796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
9777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
9797
9778
  */
9798
9779
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
9799
9780
  /**
9800
9781
  * Prefer JavaScript modules (ESM) over CommonJS.
9801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
9782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
9802
9783
  */
9803
9784
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
9804
9785
  /**
9805
9786
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
9806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
9787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
9807
9788
  */
9808
9789
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
9809
9790
  /**
9810
9791
  * Prefer negative index over `.length - index` when possible.
9811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
9792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
9812
9793
  */
9813
9794
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
9814
- /**
9815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
9816
- * @deprecated
9817
- */
9818
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>;
9819
9795
  /**
9820
9796
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
9821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
9797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
9822
9798
  */
9823
9799
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
9824
- /**
9825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
9826
- * @deprecated
9827
- */
9828
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>;
9829
9800
  /**
9830
9801
  * Prefer `Number` static properties over global ones.
9831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
9802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
9832
9803
  */
9833
9804
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
9834
9805
  /**
9835
9806
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
9836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
9807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
9837
9808
  */
9838
9809
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
9839
- /**
9840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
9841
- * @deprecated
9842
- */
9843
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>;
9844
9810
  /**
9845
9811
  * Prefer omitting the `catch` binding parameter.
9846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
9812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
9847
9813
  */
9848
9814
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
9849
9815
  /**
9850
9816
  * Prefer borrowing methods from the prototype instead of the instance.
9851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
9817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
9852
9818
  */
9853
9819
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
9854
9820
  /**
9855
9821
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
9856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
9822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
9857
9823
  */
9858
9824
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
9859
9825
  /**
9860
9826
  * Prefer `Reflect.apply()` over `Function#apply()`.
9861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
9827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
9862
9828
  */
9863
9829
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
9864
9830
  /**
9865
9831
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
9866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
9832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
9867
9833
  */
9868
9834
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
9869
- /**
9870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
9871
- * @deprecated
9872
- */
9873
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>;
9874
9835
  /**
9875
9836
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
9876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
9837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
9877
9838
  */
9878
9839
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
9879
9840
  /**
9880
9841
  * Prefer using `Set#size` instead of `Array#length`.
9881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
9842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
9882
9843
  */
9883
9844
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
9884
9845
  /**
9885
9846
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
9886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
9847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
9887
9848
  */
9888
9849
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
9889
- /**
9890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
9891
- * @deprecated
9892
- */
9893
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>;
9894
9850
  /**
9895
9851
  * Prefer using the `String.raw` tag to avoid escaping `\`.
9896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
9852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
9897
9853
  */
9898
9854
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
9899
9855
  /**
9900
9856
  * Prefer `String#replaceAll()` over regex searches with the global flag.
9901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
9857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
9902
9858
  */
9903
9859
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
9904
9860
  /**
9905
9861
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
9906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
9862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
9907
9863
  */
9908
9864
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
9909
9865
  /**
9910
9866
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
9911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
9867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
9912
9868
  */
9913
9869
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
9914
9870
  /**
9915
9871
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
9916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
9872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
9917
9873
  */
9918
9874
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
9919
9875
  /**
9920
9876
  * Prefer using `structuredClone` to create a deep clone.
9921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
9877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
9922
9878
  */
9923
9879
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
9924
9880
  /**
9925
9881
  * Prefer `switch` over multiple `else-if`.
9926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
9882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
9927
9883
  */
9928
9884
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
9929
9885
  /**
9930
9886
  * Prefer ternary expressions over simple `if-else` statements.
9931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
9887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
9932
9888
  */
9933
9889
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
9934
- /**
9935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
9936
- * @deprecated
9937
- */
9938
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>;
9939
9890
  /**
9940
9891
  * Prefer top-level await over top-level promises and async function calls.
9941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
9892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
9942
9893
  */
9943
9894
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
9944
- /**
9945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
9946
- * @deprecated
9947
- */
9948
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>;
9949
9895
  /**
9950
9896
  * Enforce throwing `TypeError` in type checking conditions.
9951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
9897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
9952
9898
  */
9953
9899
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
9954
9900
  /**
9955
9901
  * Prevent abbreviations.
9956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
9902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
9957
9903
  */
9958
9904
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
9959
- /**
9960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
9961
- * @deprecated
9962
- */
9963
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>;
9964
9905
  /**
9965
9906
  * Enforce consistent relative URL style.
9966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
9907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
9967
9908
  */
9968
9909
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
9969
9910
  /**
9970
9911
  * Enforce using the separator argument with `Array#join()`.
9971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
9912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
9972
9913
  */
9973
9914
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
9974
9915
  /**
9975
9916
  * Enforce using the digits argument with `Number#toFixed()`.
9976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
9917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9977
9918
  */
9978
9919
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9979
9920
  /**
9980
9921
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
9922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
9982
9923
  */
9983
9924
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9984
9925
  /**
9985
9926
  * Enforce better string content.
9986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
9927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
9987
9928
  */
9988
9929
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9989
9930
  /**
9990
9931
  * Enforce consistent brace style for `case` clauses.
9991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
9932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
9992
9933
  */
9993
9934
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9994
9935
  /**
9995
9936
  * Fix whitespace-insensitive template indentation.
9996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
9937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
9997
9938
  */
9998
9939
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9999
9940
  /**
10000
9941
  * Enforce consistent case for text encoding identifiers.
10001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
9942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
10002
9943
  */
10003
9944
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
10004
9945
  /**
10005
9946
  * Require `new` when creating an error.
10006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
9947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
10007
9948
  */
10008
9949
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
10009
9950
  }
@@ -10080,6 +10021,14 @@ type UnicornNoArrayReduce = [] | [
10080
10021
  allowSimpleOperations?: boolean;
10081
10022
  }
10082
10023
  ];
10024
+ type UnicornNoInstanceofBuiltins = [] | [
10025
+ {
10026
+ useErrorIsError?: boolean;
10027
+ strategy?: ("loose" | "strict");
10028
+ include?: string[];
10029
+ exclude?: string[];
10030
+ }
10031
+ ];
10083
10032
  type UnicornNoKeywordPrefix = [] | [
10084
10033
  {
10085
10034
  disallowedPrefixes?: [] | [string];
@@ -10456,6 +10405,11 @@ interface VitestRules {
10456
10405
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
10457
10406
  */
10458
10407
  'vitest/prefer-spy-on'?: Linter.RuleEntry<[]>;
10408
+ /**
10409
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
10410
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
10411
+ */
10412
+ 'vitest/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>;
10459
10413
  /**
10460
10414
  * enforce strict equal over equal
10461
10415
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -10511,6 +10465,11 @@ interface VitestRules {
10511
10465
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
10512
10466
  */
10513
10467
  'vitest/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>;
10468
+ /**
10469
+ * enforce using type parameters with vitest mock functions
10470
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
10471
+ */
10472
+ 'vitest/require-mock-type-parameters'?: Linter.RuleEntry<VitestRequireMockTypeParameters>;
10514
10473
  /**
10515
10474
  * require toThrow() to be called with an error message
10516
10475
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -10625,6 +10584,11 @@ type VitestRequireHook = [] | [
10625
10584
  allowedFunctionCalls?: string[];
10626
10585
  }
10627
10586
  ];
10587
+ type VitestRequireMockTypeParameters = [] | [
10588
+ {
10589
+ checkImportFunctions?: boolean;
10590
+ }
10591
+ ];
10628
10592
  type VitestRequireTopLevelDescribe = [] | [
10629
10593
  {
10630
10594
  maxNumberOfTopLevelDescribes?: number;