@kazupon/eslint-config 0.19.0 → 0.21.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
@@ -81,6 +81,50 @@ type EslintCommunityEslintCommentsRequireDescription = [] | [
81
81
  }
82
82
  ];
83
83
 
84
+ interface CssRules {
85
+ /**
86
+ * Disallow duplicate @import rules
87
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-duplicate-imports.md
88
+ */
89
+ 'css/no-duplicate-imports'?: Linter.RuleEntry<[]>;
90
+ /**
91
+ * Disallow empty blocks
92
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-empty-blocks.md
93
+ */
94
+ 'css/no-empty-blocks'?: Linter.RuleEntry<[]>;
95
+ /**
96
+ * Disallow invalid at-rules
97
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-at-rules.md
98
+ */
99
+ 'css/no-invalid-at-rules'?: Linter.RuleEntry<[]>;
100
+ /**
101
+ * Disallow invalid properties
102
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-properties.md
103
+ */
104
+ 'css/no-invalid-properties'?: Linter.RuleEntry<[]>;
105
+ /**
106
+ * Enforce the use of baseline features
107
+ */
108
+ 'css/require-baseline'?: Linter.RuleEntry<CssRequireBaseline>;
109
+ /**
110
+ * Require use of layers
111
+ * @see https://github.com/eslint/css/blob/main/docs/rules/use-layers.md
112
+ */
113
+ 'css/use-layers'?: Linter.RuleEntry<CssUseLayers>;
114
+ }
115
+ type CssRequireBaseline = [] | [
116
+ {
117
+ available?: ("widely" | "newly");
118
+ }
119
+ ];
120
+ type CssUseLayers = [] | [
121
+ {
122
+ allowUnnamedLayers?: boolean;
123
+ requireImportLayers?: boolean;
124
+ layerNamePattern?: string;
125
+ }
126
+ ];
127
+
84
128
  interface ImportsRules {
85
129
  /**
86
130
  * Enforce or ban the use of inline type-only markers for named imports.
@@ -7857,7 +7901,7 @@ interface TypescriptRules {
7857
7901
  */
7858
7902
  '@typescript-eslint/no-for-in-array'?: Linter.RuleEntry<[]>;
7859
7903
  /**
7860
- * Disallow the use of `eval()`-like methods
7904
+ * Disallow the use of `eval()`-like functions
7861
7905
  * @see https://typescript-eslint.io/rules/no-implied-eval
7862
7906
  */
7863
7907
  '@typescript-eslint/no-implied-eval'?: Linter.RuleEntry<[]>;
@@ -9018,11 +9062,12 @@ type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = [] | [
9018
9062
  {
9019
9063
  allowComparingNullableBooleansToFalse?: boolean;
9020
9064
  allowComparingNullableBooleansToTrue?: boolean;
9065
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
9021
9066
  }
9022
9067
  ];
9023
9068
  type TypescriptEslintNoUnnecessaryCondition = [] | [
9024
9069
  {
9025
- allowConstantLoopConditions?: boolean;
9070
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"));
9026
9071
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
9027
9072
  checkTypePredicates?: boolean;
9028
9073
  }
@@ -9308,702 +9353,642 @@ type TypescriptEslintUnifiedSignatures = [] | [
9308
9353
  interface UnicornRules {
9309
9354
  /**
9310
9355
  * 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
9356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
9312
9357
  */
9313
9358
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
9314
9359
  /**
9315
9360
  * 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
9361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
9317
9362
  */
9318
9363
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
9364
+ /**
9365
+ * Enforce consistent assertion style with `node:assert`.
9366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
9367
+ */
9368
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
9369
+ /**
9370
+ * Prefer passing `Date` directly to the constructor when cloning.
9371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
9372
+ */
9373
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
9319
9374
  /**
9320
9375
  * Use destructured variables over properties.
9321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
9376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
9322
9377
  */
9323
9378
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
9324
9379
  /**
9325
9380
  * 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
9381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
9327
9382
  */
9328
9383
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
9329
9384
  /**
9330
9385
  * 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
9386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
9332
9387
  */
9333
9388
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
9334
9389
  /**
9335
9390
  * 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
9391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
9337
9392
  */
9338
9393
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
9339
9394
  /**
9340
9395
  * Enforce correct `Error` subclassing.
9341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
9396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
9342
9397
  */
9343
9398
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
9344
9399
  /**
9345
9400
  * Enforce no spaces between braces.
9346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
9401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
9347
9402
  */
9348
9403
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
9349
9404
  /**
9350
9405
  * 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
9406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
9352
9407
  */
9353
9408
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
9354
9409
  /**
9355
9410
  * 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
9411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
9357
9412
  */
9358
9413
  'unicorn/escape-case'?: Linter.RuleEntry<[]>;
9359
9414
  /**
9360
9415
  * 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
9416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
9362
9417
  */
9363
9418
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
9364
9419
  /**
9365
9420
  * 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
9421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
9367
9422
  */
9368
9423
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
9369
9424
  /**
9370
9425
  * Enforce a case style for filenames.
9371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
9426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
9372
9427
  */
9373
9428
  '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
9429
  /**
9380
9430
  * Enforce specific import styles per module.
9381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
9431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
9382
9432
  */
9383
9433
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
9384
9434
  /**
9385
9435
  * 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
9436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
9387
9437
  */
9388
9438
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
9389
9439
  /**
9390
9440
  * 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
9441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
9392
9442
  */
9393
9443
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
9444
+ /**
9445
+ * Disallow recursive access to `this` within getters and setters.
9446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
9447
+ */
9448
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
9394
9449
  /**
9395
9450
  * 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
9451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
9397
9452
  */
9398
9453
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
9399
9454
  /**
9400
9455
  * 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
9456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
9402
9457
  */
9403
9458
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
9404
9459
  /**
9405
9460
  * 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
9461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
9407
9462
  */
9408
9463
  '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
9464
  /**
9415
9465
  * 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
9466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
9417
9467
  */
9418
9468
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
9419
9469
  /**
9420
9470
  * 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
9471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
9422
9472
  */
9423
9473
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>;
9424
9474
  /**
9425
9475
  * 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
9476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
9427
9477
  */
9428
9478
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
9429
9479
  /**
9430
9480
  * 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
9481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
9432
9482
  */
9433
9483
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
9434
9484
  /**
9435
9485
  * 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
9486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
9437
9487
  */
9438
9488
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
9439
9489
  /**
9440
9490
  * 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
9491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
9442
9492
  */
9443
9493
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
9444
9494
  /**
9445
9495
  * 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
9496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
9447
9497
  */
9448
9498
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
9449
9499
  /**
9450
9500
  * Disallow empty files.
9451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
9501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
9452
9502
  */
9453
9503
  '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
9504
  /**
9460
9505
  * 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
9506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
9462
9507
  */
9463
9508
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
9464
9509
  /**
9465
9510
  * 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
9511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
9467
9512
  */
9468
9513
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
9469
9514
  /**
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
9515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
9516
+ * @deprecated
9472
9517
  */
9473
9518
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
9519
+ /**
9520
+ * Disallow `instanceof` with built-in objects
9521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
9522
+ */
9523
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
9474
9524
  /**
9475
9525
  * 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
9526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
9477
9527
  */
9478
9528
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
9479
9529
  /**
9480
9530
  * 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
9531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
9482
9532
  */
9483
9533
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
9484
9534
  /**
9485
9535
  * 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
9536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
9487
9537
  */
9488
9538
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
9489
9539
  /**
9490
9540
  * 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
9541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
9492
9542
  */
9493
9543
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
9494
9544
  /**
9495
9545
  * 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
9546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
9497
9547
  */
9498
9548
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
9499
9549
  /**
9500
9550
  * 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
9551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
9502
9552
  */
9503
9553
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
9554
+ /**
9555
+ * Disallow named usage of default import and export.
9556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
9557
+ */
9558
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
9504
9559
  /**
9505
9560
  * Disallow negated conditions.
9506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
9561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
9507
9562
  */
9508
9563
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
9509
9564
  /**
9510
9565
  * 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
9566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
9512
9567
  */
9513
9568
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
9514
9569
  /**
9515
9570
  * Disallow nested ternary expressions.
9516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
9571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
9517
9572
  */
9518
9573
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
9519
9574
  /**
9520
9575
  * Disallow `new Array()`.
9521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
9576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
9522
9577
  */
9523
9578
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
9524
9579
  /**
9525
9580
  * 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
9581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
9527
9582
  */
9528
9583
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
9529
9584
  /**
9530
9585
  * 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
9586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
9532
9587
  */
9533
9588
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
9534
9589
  /**
9535
9590
  * 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
9591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
9537
9592
  */
9538
9593
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
9539
9594
  /**
9540
9595
  * Disallow `process.exit()`.
9541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
9596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
9542
9597
  */
9543
9598
  '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
9599
  /**
9550
9600
  * 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
9601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
9552
9602
  */
9553
9603
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
9554
9604
  /**
9555
9605
  * 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
9606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
9557
9607
  */
9558
9608
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
9559
9609
  /**
9560
9610
  * Disallow `then` property.
9561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
9611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
9562
9612
  */
9563
9613
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
9564
9614
  /**
9565
9615
  * 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
9616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
9567
9617
  */
9568
9618
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
9569
9619
  /**
9570
9620
  * Disallow comparing `undefined` using `typeof`.
9571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
9621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
9572
9622
  */
9573
9623
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
9574
9624
  /**
9575
9625
  * Disallow awaiting non-promise values.
9576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
9626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
9577
9627
  */
9578
9628
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
9579
9629
  /**
9580
9630
  * 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
9631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
9582
9632
  */
9583
9633
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
9584
9634
  /**
9585
9635
  * Disallow unreadable array destructuring.
9586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
9636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
9587
9637
  */
9588
9638
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
9589
9639
  /**
9590
9640
  * Disallow unreadable IIFEs.
9591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
9641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
9592
9642
  */
9593
9643
  '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
9644
  /**
9600
9645
  * Disallow unused object properties.
9601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
9646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
9602
9647
  */
9603
9648
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
9604
9649
  /**
9605
9650
  * 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
9651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
9607
9652
  */
9608
9653
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
9609
9654
  /**
9610
9655
  * 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
9656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
9612
9657
  */
9613
9658
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
9614
9659
  /**
9615
9660
  * 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
9661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
9617
9662
  */
9618
9663
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
9619
9664
  /**
9620
9665
  * Disallow unnecessary spread.
9621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
9666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
9622
9667
  */
9623
9668
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
9624
9669
  /**
9625
9670
  * 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
9671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
9627
9672
  */
9628
9673
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
9629
9674
  /**
9630
9675
  * Disallow useless `undefined`.
9631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
9676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
9632
9677
  */
9633
9678
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
9634
9679
  /**
9635
9680
  * 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
9681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
9637
9682
  */
9638
9683
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
9639
9684
  /**
9640
9685
  * 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
9686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
9642
9687
  */
9643
9688
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>;
9644
9689
  /**
9645
9690
  * 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
9691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
9647
9692
  */
9648
9693
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
9649
9694
  /**
9650
9695
  * 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
9696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
9652
9697
  */
9653
9698
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
9654
9699
  /**
9655
9700
  * 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
9701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
9657
9702
  */
9658
9703
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
9659
9704
  /**
9660
9705
  * 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
9706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
9662
9707
  */
9663
9708
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
9664
9709
  /**
9665
9710
  * 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
9711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
9667
9712
  */
9668
9713
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
9669
9714
  /**
9670
9715
  * 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
9716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
9672
9717
  */
9673
9718
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
9674
9719
  /**
9675
9720
  * 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
9721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
9677
9722
  */
9678
9723
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
9679
9724
  /**
9680
9725
  * 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
9726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
9682
9727
  */
9683
9728
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
9684
9729
  /**
9685
9730
  * 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
9731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
9687
9732
  */
9688
9733
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
9689
9734
  /**
9690
9735
  * 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
9736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
9692
9737
  */
9693
9738
  '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
9739
  /**
9700
9740
  * 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
9741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
9702
9742
  */
9703
9743
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
9704
9744
  /**
9705
9745
  * Prefer default parameters over reassignment.
9706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
9746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
9707
9747
  */
9708
9748
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
9709
9749
  /**
9710
9750
  * 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
9751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
9712
9752
  */
9713
9753
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
9714
9754
  /**
9715
9755
  * 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
9756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
9717
9757
  */
9718
9758
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
9719
9759
  /**
9720
9760
  * 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
9761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
9722
9762
  */
9723
9763
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
9724
9764
  /**
9725
9765
  * 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
9766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
9727
9767
  */
9728
9768
  '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
9769
  /**
9735
9770
  * Prefer `EventTarget` over `EventEmitter`.
9736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
9771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
9737
9772
  */
9738
9773
  '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
9774
  /**
9745
9775
  * 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
9776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
9747
9777
  */
9748
9778
  '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
9779
  /**
9755
9780
  * 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
9781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
9757
9782
  */
9758
9783
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
9759
9784
  /**
9760
9785
  * 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
9786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
9762
9787
  */
9763
9788
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
9764
9789
  /**
9765
9790
  * 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
9791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
9767
9792
  */
9768
9793
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
9769
9794
  /**
9770
9795
  * 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
9796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
9772
9797
  */
9773
9798
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
9774
9799
  /**
9775
9800
  * 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
9801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9777
9802
  */
9778
9803
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
9779
9804
  /**
9780
9805
  * 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
9806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
9782
9807
  */
9783
9808
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
9784
9809
  /**
9785
9810
  * 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
9811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
9787
9812
  */
9788
9813
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
9789
9814
  /**
9790
9815
  * 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
9816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
9792
9817
  */
9793
9818
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
9794
9819
  /**
9795
9820
  * 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
9821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
9797
9822
  */
9798
9823
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
9799
9824
  /**
9800
9825
  * Prefer JavaScript modules (ESM) over CommonJS.
9801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
9826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
9802
9827
  */
9803
9828
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
9804
9829
  /**
9805
9830
  * 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
9831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
9807
9832
  */
9808
9833
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
9809
9834
  /**
9810
9835
  * 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
9836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
9812
9837
  */
9813
9838
  '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
9839
  /**
9820
9840
  * 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
9841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
9822
9842
  */
9823
9843
  '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
9844
  /**
9830
9845
  * 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
9846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
9832
9847
  */
9833
9848
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
9834
9849
  /**
9835
9850
  * 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
9851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
9837
9852
  */
9838
9853
  '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
9854
  /**
9845
9855
  * 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
9856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
9847
9857
  */
9848
9858
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
9849
9859
  /**
9850
9860
  * 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
9861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
9852
9862
  */
9853
9863
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
9854
9864
  /**
9855
9865
  * 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
9866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
9857
9867
  */
9858
9868
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
9859
9869
  /**
9860
9870
  * 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
9871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
9862
9872
  */
9863
9873
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
9864
9874
  /**
9865
9875
  * 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
9876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
9867
9877
  */
9868
9878
  '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
9879
  /**
9875
9880
  * 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
9881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
9877
9882
  */
9878
9883
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
9879
9884
  /**
9880
9885
  * 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
9886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
9882
9887
  */
9883
9888
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
9884
9889
  /**
9885
9890
  * 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
9891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
9887
9892
  */
9888
9893
  '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
9894
  /**
9895
9895
  * 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
9896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
9897
9897
  */
9898
9898
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
9899
9899
  /**
9900
9900
  * 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
9901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
9902
9902
  */
9903
9903
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
9904
9904
  /**
9905
9905
  * 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
9906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
9907
9907
  */
9908
9908
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
9909
9909
  /**
9910
9910
  * 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
9911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
9912
9912
  */
9913
9913
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
9914
9914
  /**
9915
9915
  * 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
9916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
9917
9917
  */
9918
9918
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
9919
9919
  /**
9920
9920
  * 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
9921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
9922
9922
  */
9923
9923
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
9924
9924
  /**
9925
9925
  * Prefer `switch` over multiple `else-if`.
9926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
9926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
9927
9927
  */
9928
9928
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
9929
9929
  /**
9930
9930
  * 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
9931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
9932
9932
  */
9933
9933
  '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
9934
  /**
9940
9935
  * 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
9936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
9942
9937
  */
9943
9938
  '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
9939
  /**
9950
9940
  * 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
9941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
9952
9942
  */
9953
9943
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
9954
9944
  /**
9955
9945
  * Prevent abbreviations.
9956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
9946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
9957
9947
  */
9958
9948
  '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
9949
  /**
9965
9950
  * Enforce consistent relative URL style.
9966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
9951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
9967
9952
  */
9968
9953
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
9969
9954
  /**
9970
9955
  * 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
9956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
9972
9957
  */
9973
9958
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
9974
9959
  /**
9975
9960
  * 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
9961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9977
9962
  */
9978
9963
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9979
9964
  /**
9980
9965
  * 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
9966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
9982
9967
  */
9983
9968
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9984
9969
  /**
9985
9970
  * Enforce better string content.
9986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
9971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
9987
9972
  */
9988
9973
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9989
9974
  /**
9990
9975
  * 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
9976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
9992
9977
  */
9993
9978
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9994
9979
  /**
9995
9980
  * Fix whitespace-insensitive template indentation.
9996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
9981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
9997
9982
  */
9998
9983
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9999
9984
  /**
10000
9985
  * 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
9986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
10002
9987
  */
10003
9988
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
10004
9989
  /**
10005
9990
  * 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
9991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
10007
9992
  */
10008
9993
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
10009
9994
  }
@@ -10080,6 +10065,14 @@ type UnicornNoArrayReduce = [] | [
10080
10065
  allowSimpleOperations?: boolean;
10081
10066
  }
10082
10067
  ];
10068
+ type UnicornNoInstanceofBuiltins = [] | [
10069
+ {
10070
+ useErrorIsError?: boolean;
10071
+ strategy?: ("loose" | "strict");
10072
+ include?: string[];
10073
+ exclude?: string[];
10074
+ }
10075
+ ];
10083
10076
  type UnicornNoKeywordPrefix = [] | [
10084
10077
  {
10085
10078
  disallowedPrefixes?: [] | [string];
@@ -10456,6 +10449,11 @@ interface VitestRules {
10456
10449
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
10457
10450
  */
10458
10451
  'vitest/prefer-spy-on'?: Linter.RuleEntry<[]>;
10452
+ /**
10453
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
10454
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
10455
+ */
10456
+ 'vitest/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>;
10459
10457
  /**
10460
10458
  * enforce strict equal over equal
10461
10459
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -10511,6 +10509,11 @@ interface VitestRules {
10511
10509
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
10512
10510
  */
10513
10511
  'vitest/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>;
10512
+ /**
10513
+ * enforce using type parameters with vitest mock functions
10514
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
10515
+ */
10516
+ 'vitest/require-mock-type-parameters'?: Linter.RuleEntry<VitestRequireMockTypeParameters>;
10514
10517
  /**
10515
10518
  * require toThrow() to be called with an error message
10516
10519
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -10625,6 +10628,11 @@ type VitestRequireHook = [] | [
10625
10628
  allowedFunctionCalls?: string[];
10626
10629
  }
10627
10630
  ];
10631
+ type VitestRequireMockTypeParameters = [] | [
10632
+ {
10633
+ checkImportFunctions?: boolean;
10634
+ }
10635
+ ];
10628
10636
  type VitestRequireTopLevelDescribe = [] | [
10629
10637
  {
10630
10638
  maxNumberOfTopLevelDescribes?: number;
@@ -13838,7 +13846,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [
13838
13846
 
13839
13847
  declare module 'eslint' {
13840
13848
  namespace Linter {
13841
- interface RulesRecord extends CommentsRules, ImportsRules, JavascriptRules, JsdocRules, JsoncRules, MarkdownRules, PrettierRules, PromiseRules, ReactRules, RegexpRules, SvelteRules, TomlRules, TypescriptRules, UnicornRules, VitestRules, VueRules, YmlRules {
13849
+ interface RulesRecord extends CommentsRules, CssRules, ImportsRules, JavascriptRules, JsdocRules, JsoncRules, MarkdownRules, PrettierRules, PromiseRules, ReactRules, RegexpRules, SvelteRules, TomlRules, TypescriptRules, UnicornRules, VitestRules, VueRules, YmlRules {
13842
13850
  }
13843
13851
  }
13844
13852
  }
@@ -13857,6 +13865,32 @@ interface CommentsOptions {
13857
13865
  */
13858
13866
  declare function comments(options?: CommentsOptions & OverridesOptions<CommentsRules>): Promise<Linter.Config[]>;
13859
13867
 
13868
+ /**
13869
+ * eslint css configuration options
13870
+ */
13871
+ interface CssOptions {
13872
+ /**
13873
+ * whether to enable strict mode
13874
+ * @see https://github.com/eslint/css?tab=readme-ov-file#tolerant-mode
13875
+ * @default false
13876
+ */
13877
+ tolerant?: boolean;
13878
+ /**
13879
+ * whether to enable custom syntax
13880
+ * @description if 'tailwind', it will enable [Tailwind Syntax](https://github.com/eslint/css?tab=readme-ov-file#configuring-tailwind-syntax), otherwise it will enable [custom syntax](https://github.com/eslint/css?tab=readme-ov-file#configuring-custom-syntax)
13881
+ * @default false
13882
+ */
13883
+ customSyntax?: false | 'tailwind' | Record<string, any>;
13884
+ }
13885
+ /**
13886
+ * `@eslint/css` and overrides configuration options
13887
+ * @param {CssOptions & OverridesOptions} options
13888
+ * eslint css configuration options
13889
+ * @returns {Promise<Linter.Config[]>}
13890
+ * eslint flat configurations with `@eslint/css` and overrides
13891
+ */
13892
+ declare function css(options?: CssOptions & OverridesOptions<CssRules>): Promise<Linter.Config[]>;
13893
+
13860
13894
  /**
13861
13895
  * imports configuration options
13862
13896
  */
@@ -14213,4 +14247,4 @@ interface YmlOptions {
14213
14247
  declare function yml(options?: YmlOptions & OverridesOptions<YmlRules>): Promise<Linter.Config[]>;
14214
14248
  declare const yaml: typeof yml;
14215
14249
 
14216
- export { type CommentsOptions, type CommentsRules, type ImportsOptions, type ImportsRules, type JavaScriptOptions, type JavascriptRules, type JsDocumentOptions, type JsdocRules, type JsoncOptions, type JsoncRules, type MarkdownOptions, type MarkdownRules, type OverridesOptions, type PrettierOptions, type PrettierRules, type PromiseOptions, type PromiseRules, type ReactOptions, type ReactRules, type RegexpOptions, type RegexpRules, type SvelteRules, type SvelteScriptOptions, type TomlOptions, type TomlRules, type TypeScriptOptions, type TypeScriptParserOptions, type TypescriptRules, type UnicornOptions, type UnicornRules, type VitestOptions, type VitestRules, type VueRules, type VueScriptOptions, type YmlOptions, type YmlRules, comments, defineConfig, imports, javascript, jsdoc, jsonc, markdown, md, prettier, promise, react, regexp, svelte, toml, typescript, unicorn, vitest, vue, yaml, yml };
14250
+ export { type CommentsOptions, type CommentsRules, type CssOptions, type CssRules, type ImportsOptions, type ImportsRules, type JavaScriptOptions, type JavascriptRules, type JsDocumentOptions, type JsdocRules, type JsoncOptions, type JsoncRules, type MarkdownOptions, type MarkdownRules, type OverridesOptions, type PrettierOptions, type PrettierRules, type PromiseOptions, type PromiseRules, type ReactOptions, type ReactRules, type RegexpOptions, type RegexpRules, type SvelteRules, type SvelteScriptOptions, type TomlOptions, type TomlRules, type TypeScriptOptions, type TypeScriptParserOptions, type TypescriptRules, type UnicornOptions, type UnicornRules, type VitestOptions, type VitestRules, type VueRules, type VueScriptOptions, type YmlOptions, type YmlRules, comments, css, defineConfig, imports, javascript, jsdoc, jsonc, markdown, md, prettier, promise, react, regexp, svelte, toml, typescript, unicorn, vitest, vue, yaml, yml };