@2digits/eslint-config 2.15.1 → 3.0.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
@@ -10,7 +10,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
10
10
  interface RuleOptions {
11
11
  /**
12
12
  * Enforce giving proper names to type parameters when there are two or more
13
- * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.32/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.3.34/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -250,6 +250,35 @@ interface RuleOptions {
250
250
  * @see https://eslint.org/docs/latest/rules/constructor-super
251
251
  */
252
252
  'constructor-super'?: Linter.RuleEntry<[]>
253
+ /**
254
+ * Disallow duplicate @import rules
255
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-duplicate-imports.md
256
+ */
257
+ 'css/no-duplicate-imports'?: Linter.RuleEntry<[]>
258
+ /**
259
+ * Disallow empty blocks
260
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-empty-blocks.md
261
+ */
262
+ 'css/no-empty-blocks'?: Linter.RuleEntry<[]>
263
+ /**
264
+ * Disallow invalid at-rules
265
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-at-rules.md
266
+ */
267
+ 'css/no-invalid-at-rules'?: Linter.RuleEntry<[]>
268
+ /**
269
+ * Disallow invalid properties
270
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-properties.md
271
+ */
272
+ 'css/no-invalid-properties'?: Linter.RuleEntry<[]>
273
+ /**
274
+ * Enforce the use of baseline features
275
+ */
276
+ 'css/require-baseline'?: Linter.RuleEntry<CssRequireBaseline>
277
+ /**
278
+ * Require use of layers
279
+ * @see https://github.com/eslint/css/blob/main/docs/rules/use-layers.md
280
+ */
281
+ 'css/use-layers'?: Linter.RuleEntry<CssUseLayers>
253
282
  /**
254
283
  * Enforce consistent brace style for all control statements
255
284
  * @see https://eslint.org/docs/latest/rules/curly
@@ -5897,7 +5926,7 @@ Backward pagination arguments
5897
5926
  */
5898
5927
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
5899
5928
  /**
5900
- * Disallow the use of `eval()`-like methods
5929
+ * Disallow the use of `eval()`-like functions
5901
5930
  * @see https://typescript-eslint.io/rules/no-implied-eval
5902
5931
  */
5903
5932
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -6353,702 +6382,642 @@ Backward pagination arguments
6353
6382
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
6354
6383
  /**
6355
6384
  * Improve regexes by making them shorter, consistent, and safer.
6356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
6385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
6357
6386
  */
6358
6387
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
6359
6388
  /**
6360
6389
  * Enforce a specific parameter name in catch clauses.
6361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
6390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
6362
6391
  */
6363
6392
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
6393
+ /**
6394
+ * Enforce consistent assertion style with `node:assert`.
6395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
6396
+ */
6397
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
6398
+ /**
6399
+ * Prefer passing `Date` directly to the constructor when cloning.
6400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
6401
+ */
6402
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
6364
6403
  /**
6365
6404
  * Use destructured variables over properties.
6366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
6405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
6367
6406
  */
6368
6407
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
6369
6408
  /**
6370
6409
  * Prefer consistent types when spreading a ternary in an array literal.
6371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
6410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
6372
6411
  */
6373
6412
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
6374
6413
  /**
6375
6414
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
6415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
6377
6416
  */
6378
6417
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
6379
6418
  /**
6380
6419
  * Move function definitions to the highest possible scope.
6381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
6420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
6382
6421
  */
6383
6422
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
6384
6423
  /**
6385
6424
  * Enforce correct `Error` subclassing.
6386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
6425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
6387
6426
  */
6388
6427
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
6389
6428
  /**
6390
6429
  * Enforce no spaces between braces.
6391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
6430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
6392
6431
  */
6393
6432
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
6394
6433
  /**
6395
6434
  * Enforce passing a `message` value when creating a built-in error.
6396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
6435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
6397
6436
  */
6398
6437
  'unicorn/error-message'?: Linter.RuleEntry<[]>
6399
6438
  /**
6400
6439
  * Require escape sequences to use uppercase values.
6401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
6440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
6402
6441
  */
6403
6442
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
6404
6443
  /**
6405
6444
  * Add expiration conditions to TODO comments.
6406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
6445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
6407
6446
  */
6408
6447
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
6409
6448
  /**
6410
6449
  * Enforce explicitly comparing the `length` or `size` property of a value.
6411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
6450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
6412
6451
  */
6413
6452
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
6414
6453
  /**
6415
6454
  * Enforce a case style for filenames.
6416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
6455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
6417
6456
  */
6418
6457
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
6419
- /**
6420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
6421
- * @deprecated
6422
- */
6423
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
6424
6458
  /**
6425
6459
  * Enforce specific import styles per module.
6426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
6460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
6427
6461
  */
6428
6462
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
6429
6463
  /**
6430
6464
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
6465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
6432
6466
  */
6433
6467
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
6434
6468
  /**
6435
6469
  * Enforce specifying rules to disable in `eslint-disable` comments.
6436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
6470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
6437
6471
  */
6438
6472
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6473
+ /**
6474
+ * Disallow recursive access to `this` within getters and setters.
6475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
6476
+ */
6477
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6439
6478
  /**
6440
6479
  * Disallow anonymous functions and classes as the default export.
6441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
6480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
6442
6481
  */
6443
6482
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6444
6483
  /**
6445
6484
  * Prevent passing a function reference directly to iterator methods.
6446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
6485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
6447
6486
  */
6448
6487
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6449
6488
  /**
6450
6489
  * Prefer `for…of` over the `forEach` method.
6451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
6490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
6452
6491
  */
6453
6492
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6454
- /**
6455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
6456
- * @deprecated
6457
- */
6458
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
6459
6493
  /**
6460
6494
  * Disallow using the `this` argument in array methods.
6461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
6495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
6462
6496
  */
6463
6497
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6464
6498
  /**
6465
6499
  * Enforce combining multiple `Array#push()` into one call.
6466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
6467
6501
  */
6468
6502
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
6469
6503
  /**
6470
6504
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
6472
6506
  */
6473
6507
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6474
6508
  /**
6475
6509
  * Disallow member access from await expression.
6476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
6477
6511
  */
6478
6512
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6479
6513
  /**
6480
6514
  * Disallow using `await` in `Promise` method parameters.
6481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
6482
6516
  */
6483
6517
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6484
6518
  /**
6485
6519
  * Do not use leading/trailing space between `console.log` parameters.
6486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
6487
6521
  */
6488
6522
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6489
6523
  /**
6490
6524
  * Do not use `document.cookie` directly.
6491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
6492
6526
  */
6493
6527
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6494
6528
  /**
6495
6529
  * Disallow empty files.
6496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
6497
6531
  */
6498
6532
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6499
- /**
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
6501
- * @deprecated
6502
- */
6503
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
6504
6533
  /**
6505
6534
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
6535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
6507
6536
  */
6508
6537
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6509
6538
  /**
6510
6539
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
6512
6541
  */
6513
6542
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6514
6543
  /**
6515
- * Require `Array.isArray()` instead of `instanceof Array`.
6516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
6544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
6545
+ * @deprecated
6517
6546
  */
6518
6547
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6548
+ /**
6549
+ * Disallow `instanceof` with built-in objects
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
6551
+ */
6552
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6519
6553
  /**
6520
6554
  * Disallow invalid options in `fetch()` and `new Request()`.
6521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
6522
6556
  */
6523
6557
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6524
6558
  /**
6525
6559
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
6527
6561
  */
6528
6562
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6529
6563
  /**
6530
6564
  * Disallow identifiers starting with `new` or `class`.
6531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
6532
6566
  */
6533
6567
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6534
6568
  /**
6535
6569
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
6537
6571
  */
6538
6572
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6539
6573
  /**
6540
6574
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
6542
6576
  */
6543
6577
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6544
6578
  /**
6545
6579
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
6547
6581
  */
6548
6582
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6583
+ /**
6584
+ * Disallow named usage of default import and export.
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
6586
+ */
6587
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6549
6588
  /**
6550
6589
  * Disallow negated conditions.
6551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
6552
6591
  */
6553
6592
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6554
6593
  /**
6555
6594
  * Disallow negated expression in equality check.
6556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
6557
6596
  */
6558
6597
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6559
6598
  /**
6560
6599
  * Disallow nested ternary expressions.
6561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
6562
6601
  */
6563
6602
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6564
6603
  /**
6565
6604
  * Disallow `new Array()`.
6566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
6567
6606
  */
6568
6607
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6569
6608
  /**
6570
6609
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
6572
6611
  */
6573
6612
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6574
6613
  /**
6575
6614
  * Disallow the use of the `null` literal.
6576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
6577
6616
  */
6578
6617
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6579
6618
  /**
6580
6619
  * Disallow the use of objects as default parameters.
6581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
6620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
6582
6621
  */
6583
6622
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6584
6623
  /**
6585
6624
  * Disallow `process.exit()`.
6586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
6625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
6587
6626
  */
6588
6627
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6589
- /**
6590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
6591
- * @deprecated
6592
- */
6593
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
6594
6628
  /**
6595
6629
  * Disallow passing single-element arrays to `Promise` methods.
6596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
6630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
6597
6631
  */
6598
6632
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6599
6633
  /**
6600
6634
  * Disallow classes that only have static members.
6601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
6602
6636
  */
6603
6637
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6604
6638
  /**
6605
6639
  * Disallow `then` property.
6606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
6607
6641
  */
6608
6642
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6609
6643
  /**
6610
6644
  * Disallow assigning `this` to a variable.
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
6612
6646
  */
6613
6647
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6614
6648
  /**
6615
6649
  * Disallow comparing `undefined` using `typeof`.
6616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
6617
6651
  */
6618
6652
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6619
6653
  /**
6620
6654
  * Disallow awaiting non-promise values.
6621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
6622
6656
  */
6623
6657
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6624
6658
  /**
6625
6659
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
6627
6661
  */
6628
6662
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6629
6663
  /**
6630
6664
  * Disallow unreadable array destructuring.
6631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
6632
6666
  */
6633
6667
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6634
6668
  /**
6635
6669
  * Disallow unreadable IIFEs.
6636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
6637
6671
  */
6638
6672
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6639
- /**
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
6641
- * @deprecated
6642
- */
6643
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
6644
6673
  /**
6645
6674
  * Disallow unused object properties.
6646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
6647
6676
  */
6648
6677
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6649
6678
  /**
6650
6679
  * Disallow useless fallback when spreading in object literals.
6651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
6652
6681
  */
6653
6682
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6654
6683
  /**
6655
6684
  * Disallow useless array length check.
6656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
6657
6686
  */
6658
6687
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6659
6688
  /**
6660
6689
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
6662
6691
  */
6663
6692
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6664
6693
  /**
6665
6694
  * Disallow unnecessary spread.
6666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
6667
6696
  */
6668
6697
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6669
6698
  /**
6670
6699
  * Disallow useless case in switch statements.
6671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
6672
6701
  */
6673
6702
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6674
6703
  /**
6675
6704
  * Disallow useless `undefined`.
6676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
6677
6706
  */
6678
6707
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6679
6708
  /**
6680
6709
  * Disallow number literals with zero fractions or dangling dots.
6681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
6682
6711
  */
6683
6712
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6684
6713
  /**
6685
6714
  * Enforce proper case for numeric literals.
6686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
6687
6716
  */
6688
6717
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6689
6718
  /**
6690
6719
  * Enforce the style of numeric separators by correctly grouping digits.
6691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
6692
6721
  */
6693
6722
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6694
6723
  /**
6695
6724
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
6697
6726
  */
6698
6727
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6699
6728
  /**
6700
6729
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
6702
6731
  */
6703
6732
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6704
6733
  /**
6705
6734
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
6735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
6707
6736
  */
6708
6737
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6709
6738
  /**
6710
6739
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
6740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
6712
6741
  */
6713
6742
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6714
6743
  /**
6715
6744
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
6745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
6717
6746
  */
6718
6747
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6719
6748
  /**
6720
6749
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
6750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
6722
6751
  */
6723
6752
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6724
6753
  /**
6725
6754
  * Prefer `.at()` method for index access and `String#charAt()`.
6726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
6755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
6727
6756
  */
6728
6757
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6729
6758
  /**
6730
6759
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
6760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
6732
6761
  */
6733
6762
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6734
6763
  /**
6735
6764
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
6765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
6737
6766
  */
6738
6767
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6739
- /**
6740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
6741
- * @deprecated
6742
- */
6743
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
6744
6768
  /**
6745
6769
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
6770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
6747
6771
  */
6748
6772
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6749
6773
  /**
6750
6774
  * Prefer default parameters over reassignment.
6751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
6775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
6752
6776
  */
6753
6777
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6754
6778
  /**
6755
6779
  * Prefer `Node#append()` over `Node#appendChild()`.
6756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
6780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
6757
6781
  */
6758
6782
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6759
6783
  /**
6760
6784
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
6785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
6762
6786
  */
6763
6787
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6764
6788
  /**
6765
6789
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
6790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
6767
6791
  */
6768
6792
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6769
6793
  /**
6770
6794
  * Prefer `.textContent` over `.innerText`.
6771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
6795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
6772
6796
  */
6773
6797
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6774
- /**
6775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
6776
- * @deprecated
6777
- */
6778
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
6779
6798
  /**
6780
6799
  * Prefer `EventTarget` over `EventEmitter`.
6781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
6800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6782
6801
  */
6783
6802
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6784
- /**
6785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
6786
- * @deprecated
6787
- */
6788
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
6789
6803
  /**
6790
6804
  * Prefer `export…from` when re-exporting.
6791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
6805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
6792
6806
  */
6793
6807
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6794
- /**
6795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
6796
- * @deprecated
6797
- */
6798
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
6799
6808
  /**
6800
6809
  * Prefer `globalThis` over `window`, `self`, and `global`.
6801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
6810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
6802
6811
  */
6803
6812
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6804
6813
  /**
6805
6814
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
6815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
6807
6816
  */
6808
6817
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6809
6818
  /**
6810
6819
  * Prefer reading a JSON file as a buffer.
6811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
6820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
6812
6821
  */
6813
6822
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6814
6823
  /**
6815
6824
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
6825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
6817
6826
  */
6818
6827
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6819
6828
  /**
6820
6829
  * Prefer using a logical operator over a ternary.
6821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6822
6831
  */
6823
6832
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6824
6833
  /**
6825
6834
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
6835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
6827
6836
  */
6828
6837
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6829
6838
  /**
6830
6839
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
6840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
6832
6841
  */
6833
6842
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6834
6843
  /**
6835
6844
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
6845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
6837
6846
  */
6838
6847
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6839
6848
  /**
6840
6849
  * Prefer modern `Math` APIs over legacy patterns.
6841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
6850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
6842
6851
  */
6843
6852
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6844
6853
  /**
6845
6854
  * Prefer JavaScript modules (ESM) over CommonJS.
6846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
6855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6847
6856
  */
6848
6857
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6849
6858
  /**
6850
6859
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
6860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
6852
6861
  */
6853
6862
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6854
6863
  /**
6855
6864
  * Prefer negative index over `.length - index` when possible.
6856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
6865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
6857
6866
  */
6858
6867
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6859
- /**
6860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
6861
- * @deprecated
6862
- */
6863
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
6864
6868
  /**
6865
6869
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
6870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
6867
6871
  */
6868
6872
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6869
- /**
6870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
6871
- * @deprecated
6872
- */
6873
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
6874
6873
  /**
6875
6874
  * Prefer `Number` static properties over global ones.
6876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
6875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
6877
6876
  */
6878
6877
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6879
6878
  /**
6880
6879
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
6880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
6882
6881
  */
6883
6882
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6884
- /**
6885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
6886
- * @deprecated
6887
- */
6888
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
6889
6883
  /**
6890
6884
  * Prefer omitting the `catch` binding parameter.
6891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
6885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
6892
6886
  */
6893
6887
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6894
6888
  /**
6895
6889
  * Prefer borrowing methods from the prototype instead of the instance.
6896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
6890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
6897
6891
  */
6898
6892
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6899
6893
  /**
6900
6894
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
6895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
6902
6896
  */
6903
6897
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6904
6898
  /**
6905
6899
  * Prefer `Reflect.apply()` over `Function#apply()`.
6906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
6900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
6907
6901
  */
6908
6902
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6909
6903
  /**
6910
6904
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
6905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
6912
6906
  */
6913
6907
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6914
- /**
6915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
6916
- * @deprecated
6917
- */
6918
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
6919
6908
  /**
6920
6909
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
6910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
6922
6911
  */
6923
6912
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6924
6913
  /**
6925
6914
  * Prefer using `Set#size` instead of `Array#length`.
6926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
6915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
6927
6916
  */
6928
6917
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6929
6918
  /**
6930
6919
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
6920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
6932
6921
  */
6933
6922
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6934
- /**
6935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
6936
- * @deprecated
6937
- */
6938
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
6939
6923
  /**
6940
6924
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
6925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
6942
6926
  */
6943
6927
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6944
6928
  /**
6945
6929
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
6930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
6947
6931
  */
6948
6932
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6949
6933
  /**
6950
6934
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
6935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
6952
6936
  */
6953
6937
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6954
6938
  /**
6955
6939
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
6940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
6957
6941
  */
6958
6942
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6959
6943
  /**
6960
6944
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
6945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
6962
6946
  */
6963
6947
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6964
6948
  /**
6965
6949
  * Prefer using `structuredClone` to create a deep clone.
6966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
6950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
6967
6951
  */
6968
6952
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6969
6953
  /**
6970
6954
  * Prefer `switch` over multiple `else-if`.
6971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
6955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
6972
6956
  */
6973
6957
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6974
6958
  /**
6975
6959
  * Prefer ternary expressions over simple `if-else` statements.
6976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
6960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
6977
6961
  */
6978
6962
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6979
- /**
6980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
6981
- * @deprecated
6982
- */
6983
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
6984
6963
  /**
6985
6964
  * Prefer top-level await over top-level promises and async function calls.
6986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
6965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
6987
6966
  */
6988
6967
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6989
- /**
6990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
6991
- * @deprecated
6992
- */
6993
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
6994
6968
  /**
6995
6969
  * Enforce throwing `TypeError` in type checking conditions.
6996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
6970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
6997
6971
  */
6998
6972
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6999
6973
  /**
7000
6974
  * Prevent abbreviations.
7001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
6975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
7002
6976
  */
7003
6977
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7004
- /**
7005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
7006
- * @deprecated
7007
- */
7008
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
7009
6978
  /**
7010
6979
  * Enforce consistent relative URL style.
7011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
6980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
7012
6981
  */
7013
6982
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7014
6983
  /**
7015
6984
  * Enforce using the separator argument with `Array#join()`.
7016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
6985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
7017
6986
  */
7018
6987
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7019
6988
  /**
7020
6989
  * Enforce using the digits argument with `Number#toFixed()`.
7021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7022
6991
  */
7023
6992
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7024
6993
  /**
7025
6994
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
6995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
7027
6996
  */
7028
6997
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7029
6998
  /**
7030
6999
  * Enforce better string content.
7031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
7000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
7032
7001
  */
7033
7002
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7034
7003
  /**
7035
7004
  * Enforce consistent brace style for `case` clauses.
7036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
7005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
7037
7006
  */
7038
7007
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7039
7008
  /**
7040
7009
  * Fix whitespace-insensitive template indentation.
7041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
7010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
7042
7011
  */
7043
7012
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7044
7013
  /**
7045
7014
  * Enforce consistent case for text encoding identifiers.
7046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
7015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
7047
7016
  */
7048
7017
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7049
7018
  /**
7050
7019
  * Require `new` when creating an error.
7051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
7020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
7052
7021
  */
7053
7022
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7054
7023
  /**
@@ -7260,6 +7229,16 @@ type ConsistentReturn = []|[{
7260
7229
  }]
7261
7230
  // ----- consistent-this -----
7262
7231
  type ConsistentThis = string[]
7232
+ // ----- css/require-baseline -----
7233
+ type CssRequireBaseline = []|[{
7234
+ available?: ("widely" | "newly")
7235
+ }]
7236
+ // ----- css/use-layers -----
7237
+ type CssUseLayers = []|[{
7238
+ allowUnnamedLayers?: boolean
7239
+ requireImportLayers?: boolean
7240
+ layerNamePattern?: string
7241
+ }]
7263
7242
  // ----- curly -----
7264
7243
  type Curly = ([]|["all"] | []|[("multi" | "multi-line" | "multi-or-nest")]|[("multi" | "multi-line" | "multi-or-nest"), "consistent"])
7265
7244
  // ----- default-case -----
@@ -11989,6 +11968,13 @@ type UnicornNoArrayPushPush = []|[{
11989
11968
  type UnicornNoArrayReduce = []|[{
11990
11969
  allowSimpleOperations?: boolean
11991
11970
  }]
11971
+ // ----- unicorn/no-instanceof-builtins -----
11972
+ type UnicornNoInstanceofBuiltins = []|[{
11973
+ useErrorIsError?: boolean
11974
+ strategy?: ("loose" | "strict")
11975
+ include?: string[]
11976
+ exclude?: string[]
11977
+ }]
11992
11978
  // ----- unicorn/no-keyword-prefix -----
11993
11979
  type UnicornNoKeywordPrefix = []|[{
11994
11980
 
@@ -12147,7 +12133,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
12147
12133
  onlyEquality?: boolean
12148
12134
  }]
12149
12135
  // Names of all the configs
12150
- type ConfigNames = '2digits:antfu' | '2digits:boolean' | '2digits:comments' | '2digits:drizzle' | '2digits:graphql' | '2digits:ignores' | '2digits:gitignore' | '2digits:javascript' | '2digits:jsdoc' | '2digits:jsonc/base' | '2digits:jsonc/base' | '2digits:jsonc/json' | '2digits:jsonc/jsonc' | '2digits:jsonc/json5' | '2digits:jsonc/package.json' | '2digits:jsonc/tsconfig.json' | '2digits:jsonc/prettier' | '2digits:jsonc/prettier' | '2digits:jsonc/prettier' | '2digits:next/setup' | '2digits:next/rules' | '2digits:node' | '2digits:prettier' | '2digits:react/setup' | '2digits:react/rules' | '2digits:regexp' | '2digits:sonar' | '2digits:storybook/setup' | '2digits:storybook/rules' | '2digits:storybook/disables' | '2digits:storybook/config' | '2digits:tailwind' | '2digits:tanstack' | '2digits:turbo' | '2digits:typescript/setup' | '2digits:typescript/rules' | '2digits:typescript/disables/dts' | '2digits:typescript/disables/test' | '2digits:typescript/disables/cjs' | '2digits:unicorn'
12136
+ type ConfigNames = '2digits:antfu' | '2digits:boolean' | '2digits:comments' | '2digits:css' | '2digits:drizzle' | '2digits:graphql' | '2digits:ignores' | '2digits:gitignore' | '2digits:javascript' | '2digits:jsdoc' | '2digits:jsonc/base' | '2digits:jsonc/base' | '2digits:jsonc/json' | '2digits:jsonc/jsonc' | '2digits:jsonc/json5' | '2digits:jsonc/package.json' | '2digits:jsonc/tsconfig.json' | '2digits:jsonc/prettier' | '2digits:jsonc/prettier' | '2digits:jsonc/prettier' | '2digits:next/setup' | '2digits:next/rules' | '2digits:node' | '2digits:prettier' | '2digits:react/setup' | '2digits:react/rules' | '2digits:regexp' | '2digits:sonar' | '2digits:storybook/setup' | '2digits:storybook/rules' | '2digits:storybook/disables' | '2digits:storybook/config' | '2digits:tailwind' | '2digits:tanstack' | '2digits:turbo' | '2digits:typescript/setup' | '2digits:typescript/rules' | '2digits:typescript/disables/dts' | '2digits:typescript/disables/test' | '2digits:typescript/disables/cjs' | '2digits:unicorn'
12151
12137
 
12152
12138
  type Rules = RuleOptions;
12153
12139
  interface TypedFlatConfigItem extends Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins' | 'languageOptions'> {
@@ -12158,7 +12144,7 @@ interface TypedFlatConfigItem extends Omit<Linter.Config<Linter.RulesRecord & Ru
12158
12144
  * @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
12159
12145
  */
12160
12146
  plugins?: Record<string, any>;
12161
- languageOptions?: FlatConfig.LanguageOptions;
12147
+ languageOptions?: FlatConfig.LanguageOptions & Record<string, unknown>;
12162
12148
  }
12163
12149
  interface OptionsOverrides {
12164
12150
  overrides?: TypedFlatConfigItem['rules'];
@@ -12214,6 +12200,8 @@ declare function boolean(): TypedFlatConfigItem[];
12214
12200
 
12215
12201
  declare function comments(): TypedFlatConfigItem[];
12216
12202
 
12203
+ declare function css(): TypedFlatConfigItem[];
12204
+
12217
12205
  declare function drizzle(options?: OptionsWithDrizzle): Promise<TypedFlatConfigItem[]>;
12218
12206
 
12219
12207
  declare function graphql(options?: OptionsWithFiles): Promise<TypedFlatConfigItem[]>;
@@ -12268,4 +12256,4 @@ interface ESLint2DigitsOptions {
12268
12256
  }
12269
12257
  declare function twoDigits(options?: ESLint2DigitsOptions, ...userConfig: TypedFlatConfigItem[]): Promise<TypedFlatConfigItem[]>;
12270
12258
 
12271
- export { type ConfigNames, type OptionsOverrides, type OptionsTypeScriptWithTypes, type OptionsWithDrizzle, type OptionsWithFiles, type OptionsWithIgnores, type OptionsWithReact, type OptionsWithStorybook, type Rules, type TypedFlatConfigItem, antfu, boolean, comments, twoDigits as default, drizzle, graphql, ignores, javascript, jsdoc, jsonc, next, node, prettier, react, regexp, sonar, storybook, tailwind, tanstack, turbo, twoDigits, typescript, unicorn };
12259
+ export { type ConfigNames, type OptionsOverrides, type OptionsTypeScriptWithTypes, type OptionsWithDrizzle, type OptionsWithFiles, type OptionsWithIgnores, type OptionsWithReact, type OptionsWithStorybook, type Rules, type TypedFlatConfigItem, antfu, boolean, comments, css, twoDigits as default, drizzle, graphql, ignores, javascript, jsdoc, jsonc, next, node, prettier, react, regexp, sonar, storybook, tailwind, tanstack, turbo, twoDigits, typescript, unicorn };