@jsse/eslint-config 0.8.6 → 0.8.7

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
@@ -1,22 +1,9 @@
1
- import pluginE18e from "@e18e/eslint-plugin";
2
- import pluginEslintComments from "@eslint-community/eslint-plugin-eslint-comments";
3
- import pluginTs from "@typescript-eslint/eslint-plugin";
4
- import * as parserTs from "@typescript-eslint/parser";
5
1
  import { ParserOptions } from "@typescript-eslint/parser";
6
- import pluginAntfu from "eslint-plugin-antfu";
7
- import pluginDeMorgan from "eslint-plugin-de-morgan";
8
- import pluginImportLite from "eslint-plugin-import-lite";
9
- import pluginN from "eslint-plugin-n";
10
- import pluginPerfectionist from "eslint-plugin-perfectionist";
11
- import pluginPnpm from "eslint-plugin-pnpm";
12
- import pluginRegexp from "eslint-plugin-regexp";
13
- import pluginUnicorn from "eslint-plugin-unicorn";
14
- import pluginUnusedImports from "eslint-plugin-unused-imports";
15
2
  import { Linter } from "eslint";
16
3
  import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
17
4
 
18
5
  //#region src/_generated/version.d.ts
19
- declare const VERSION = "0.8.6";
6
+ declare const VERSION = "0.8.7";
20
7
  //#endregion
21
8
  //#region src/_generated/dts/builtins.d.ts
22
9
  interface BuiltinsRuleOptions {
@@ -13370,1620 +13357,1670 @@ type ImportPreferDefaultExport = [] | [{
13370
13357
  interface UnicornRuleOptions {
13371
13358
  /**
13372
13359
  * Prefer better DOM traversal APIs.
13373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/better-dom-traversing.md
13360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/better-dom-traversing.md
13374
13361
  */
13375
13362
  "unicorn/better-dom-traversing"?: Linter.RuleEntry<[]>;
13376
13363
  /**
13377
13364
  * Removed. Prefer `eslint-plugin-regexp`
13378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
13365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#better-regex
13379
13366
  * @deprecated
13380
13367
  */
13381
13368
  "unicorn/better-regex"?: Linter.RuleEntry<[]>;
13382
13369
  /**
13383
13370
  * Enforce a specific parameter name in catch clauses.
13384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/catch-error-name.md
13371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/catch-error-name.md
13385
13372
  */
13386
13373
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
13387
13374
  /**
13388
13375
  * Enforce consistent class references in static methods.
13389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/class-reference-in-static-methods.md
13376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/class-reference-in-static-methods.md
13390
13377
  */
13391
13378
  "unicorn/class-reference-in-static-methods"?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
13392
13379
  /**
13393
13380
  * Enforce better comment content.
13394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
13381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/comment-content.md
13395
13382
  */
13396
13383
  "unicorn/comment-content"?: Linter.RuleEntry<UnicornCommentContent>;
13397
13384
  /**
13398
13385
  * Enforce consistent assertion style with `node:assert`.
13399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
13386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-assert.md
13400
13387
  */
13401
13388
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
13402
13389
  /**
13403
13390
  * Enforce consistent naming for boolean names.
13404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
13391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-boolean-name.md
13405
13392
  */
13406
13393
  "unicorn/consistent-boolean-name"?: Linter.RuleEntry<UnicornConsistentBooleanName>;
13407
13394
  /**
13408
13395
  * Enforce consistent class member order.
13409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
13396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-class-member-order.md
13410
13397
  */
13411
13398
  "unicorn/consistent-class-member-order"?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
13412
13399
  /**
13413
13400
  * Enforce consistent spelling of compound words in identifiers.
13414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
13401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-compound-words.md
13415
13402
  */
13416
13403
  "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
13417
13404
  /**
13418
13405
  * Enforce consistent conditional object spread style.
13419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
13406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-conditional-object-spread.md
13420
13407
  */
13421
13408
  "unicorn/consistent-conditional-object-spread"?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
13422
13409
  /**
13423
13410
  * Prefer passing `Date` directly to the constructor when cloning.
13424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
13411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-date-clone.md
13425
13412
  */
13426
13413
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
13427
13414
  /**
13428
13415
  * Use destructured variables over properties.
13429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
13416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-destructuring.md
13430
13417
  */
13431
13418
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
13432
13419
  /**
13433
13420
  * Prefer consistent types when spreading a ternary in an array literal.
13434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
13421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-empty-array-spread.md
13435
13422
  */
13436
13423
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
13437
13424
  /**
13438
13425
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
13439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
13426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-existence-index-check.md
13440
13427
  */
13441
13428
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
13442
13429
  /**
13443
13430
  * Enforce consistent decorator position on exported classes.
13444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
13431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-export-decorator-position.md
13445
13432
  */
13446
13433
  "unicorn/consistent-export-decorator-position"?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
13447
13434
  /**
13448
13435
  * Move function definitions to the highest possible scope.
13449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
13436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-scoping.md
13450
13437
  */
13451
13438
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
13452
13439
  /**
13453
13440
  * Enforce function syntax by role.
13454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
13441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-style.md
13455
13442
  */
13456
13443
  "unicorn/consistent-function-style"?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
13457
13444
  /**
13458
13445
  * Enforce consistent JSON file reads before `JSON.parse()`.
13459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
13446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-json-file-read.md
13460
13447
  */
13461
13448
  "unicorn/consistent-json-file-read"?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
13462
13449
  /**
13463
13450
  * Enforce consistent optional chaining for same-base member access.
13464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
13451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-optional-chaining.md
13465
13452
  */
13466
13453
  "unicorn/consistent-optional-chaining"?: Linter.RuleEntry<[]>;
13467
13454
  /**
13468
13455
  * Enforce consistent style for escaping `${` in template literals.
13469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
13456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-template-literal-escape.md
13470
13457
  */
13471
13458
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
13472
13459
  /**
13473
13460
  * Enforce consistent labels on tuple type elements.
13474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
13461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-tuple-labels.md
13475
13462
  */
13476
13463
  "unicorn/consistent-tuple-labels"?: Linter.RuleEntry<[]>;
13477
13464
  /**
13478
13465
  * Enforce correct `Error` subclassing.
13479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
13466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/custom-error-definition.md
13480
13467
  */
13481
13468
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
13482
13469
  /**
13483
13470
  * Enforce consistent default export declarations.
13484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
13471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/default-export-style.md
13485
13472
  */
13486
13473
  "unicorn/default-export-style"?: Linter.RuleEntry<UnicornDefaultExportStyle>;
13487
13474
  /**
13488
13475
  * Enforce consistent style for DOM element dataset access.
13489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
13476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/dom-node-dataset.md
13490
13477
  */
13491
13478
  "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
13492
13479
  /**
13493
13480
  * Enforce no spaces between braces.
13494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
13481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/empty-brace-spaces.md
13495
13482
  */
13496
13483
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
13497
13484
  /**
13498
13485
  * Enforce passing a `message` value when creating a built-in error.
13499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
13486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/error-message.md
13500
13487
  */
13501
13488
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
13502
13489
  /**
13503
13490
  * Require escape sequences to use uppercase or lowercase values.
13504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
13491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/escape-case.md
13505
13492
  */
13506
13493
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
13507
13494
  /**
13508
13495
  * Add expiration conditions to TODO comments.
13509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
13496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/expiring-todo-comments.md
13510
13497
  */
13511
13498
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
13512
13499
  /**
13513
13500
  * Enforce explicitly comparing the `length` or `size` property of a value.
13514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
13501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-length-check.md
13515
13502
  */
13516
13503
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
13517
13504
  /**
13518
13505
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
13519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
13506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-timer-delay.md
13520
13507
  */
13521
13508
  "unicorn/explicit-timer-delay"?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
13522
13509
  /**
13523
13510
  * Enforce a case style for filenames and directory names.
13524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
13511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/filename-case.md
13525
13512
  */
13526
13513
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
13527
13514
  /**
13528
13515
  * Require identifiers to match a specified regular expression.
13529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
13516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/id-match.md
13530
13517
  */
13531
13518
  "unicorn/id-match"?: Linter.RuleEntry<UnicornIdMatch>;
13532
13519
  /**
13533
13520
  * Enforce specific import styles per module.
13534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
13521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/import-style.md
13535
13522
  */
13536
13523
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
13537
13524
  /**
13538
13525
  * Prevent usage of variables from outside the scope of isolated functions.
13539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
13526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/isolated-functions.md
13540
13527
  */
13541
13528
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
13542
13529
  /**
13543
13530
  * Require or disallow logical assignment operator shorthand
13544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
13531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/logical-assignment-operators.md
13545
13532
  */
13546
13533
  "unicorn/logical-assignment-operators"?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
13547
13534
  /**
13548
13535
  * Limit the depth of nested calls.
13549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
13536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/max-nested-calls.md
13550
13537
  */
13551
13538
  "unicorn/max-nested-calls"?: Linter.RuleEntry<UnicornMaxNestedCalls>;
13552
13539
  /**
13553
13540
  * Enforce replacements for variable, property, and filenames.
13554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
13541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/name-replacements.md
13555
13542
  */
13556
13543
  "unicorn/name-replacements"?: Linter.RuleEntry<UnicornNameReplacements>;
13557
13544
  /**
13558
13545
  * Enforce correct use of `new` for builtin constructors.
13559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
13546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/new-for-builtins.md
13560
13547
  */
13561
13548
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
13562
13549
  /**
13563
13550
  * Enforce specifying rules to disable in `eslint-disable` comments.
13564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
13551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-abusive-eslint-disable.md
13565
13552
  */
13566
13553
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
13567
13554
  /**
13568
13555
  * Disallow recursive access to `this` within getters and setters.
13569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
13556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accessor-recursion.md
13570
13557
  */
13571
13558
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
13572
13559
  /**
13573
13560
  * Disallow bitwise operators where a logical operator was likely intended.
13574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
13561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accidental-bitwise-operator.md
13575
13562
  */
13576
13563
  "unicorn/no-accidental-bitwise-operator"?: Linter.RuleEntry<[]>;
13577
13564
  /**
13578
13565
  * Disallow anonymous functions and classes as the default export.
13579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
13566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-anonymous-default-export.md
13580
13567
  */
13581
13568
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
13582
13569
  /**
13583
13570
  * Prevent passing a function reference directly to iterator methods.
13584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
13571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-callback-reference.md
13585
13572
  */
13586
13573
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
13587
13574
  /**
13588
13575
  * Disallow array accumulation with `Array#concat()` in loops.
13589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
13576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-concat-in-loop.md
13590
13577
  */
13591
13578
  "unicorn/no-array-concat-in-loop"?: Linter.RuleEntry<[]>;
13592
13579
  /**
13593
13580
  * Disallow using reference values as `Array#fill()` values.
13594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
13581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-fill-with-reference-type.md
13595
13582
  */
13596
13583
  "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
13597
13584
  /**
13598
13585
  * Disallow `.fill()` after `Array.from({length: …})`.
13599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
13586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-from-fill.md
13600
13587
  */
13601
13588
  "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
13602
13589
  /**
13603
13590
  * Disallow front-of-array mutation.
13604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
13591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-front-mutation.md
13605
13592
  */
13606
13593
  "unicorn/no-array-front-mutation"?: Linter.RuleEntry<[]>;
13607
13594
  /**
13608
13595
  * Disallow using the `this` argument in array methods.
13609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
13596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-method-this-argument.md
13610
13597
  */
13611
13598
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
13612
13599
  /**
13613
13600
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
13614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13615
13602
  * @deprecated
13616
13603
  */
13617
13604
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
13618
13605
  /**
13619
13606
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
13620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
13607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reduce.md
13621
13608
  */
13622
13609
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
13623
13610
  /**
13624
13611
  * Prefer `Array#toReversed()` over `Array#reverse()`.
13625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
13612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reverse.md
13626
13613
  */
13627
13614
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
13628
13615
  /**
13629
13616
  * Prefer `Array#toSorted()` over `Array#sort()`.
13630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
13617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort.md
13631
13618
  */
13632
13619
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
13633
13620
  /**
13634
13621
  * Disallow sorting arrays to get the minimum or maximum value.
13635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
13622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort-for-min-max.md
13636
13623
  */
13637
13624
  "unicorn/no-array-sort-for-min-max"?: Linter.RuleEntry<[]>;
13638
13625
  /**
13639
13626
  * Prefer `Array#toSpliced()` over `Array#splice()`.
13640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
13627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-splice.md
13641
13628
  */
13642
13629
  "unicorn/no-array-splice"?: Linter.RuleEntry<[]>;
13643
13630
  /**
13644
13631
  * Disallow asterisk prefixes in documentation comments.
13645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
13632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
13646
13633
  */
13647
13634
  "unicorn/no-asterisk-prefix-in-documentation-comments"?: Linter.RuleEntry<[]>;
13635
+ /**
13636
+ * Disallow async functions as `Promise#finally()` callbacks.
13637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-async-promise-finally.md
13638
+ */
13639
+ "unicorn/no-async-promise-finally"?: Linter.RuleEntry<[]>;
13648
13640
  /**
13649
13641
  * Disallow member access from await expression.
13650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
13642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-expression-member.md
13651
13643
  */
13652
13644
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
13653
13645
  /**
13654
13646
  * Disallow using `await` in `Promise` method parameters.
13655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
13647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-in-promise-methods.md
13656
13648
  */
13657
13649
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
13658
13650
  /**
13659
13651
  * Disallow unnecessary `Blob` to `File` conversion.
13660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
13652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-blob-to-file.md
13661
13653
  */
13662
13654
  "unicorn/no-blob-to-file"?: Linter.RuleEntry<[]>;
13663
13655
  /**
13664
13656
  * Disallow boolean-returning sort comparators.
13665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
13657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-boolean-sort-comparator.md
13666
13658
  */
13667
13659
  "unicorn/no-boolean-sort-comparator"?: Linter.RuleEntry<[]>;
13668
13660
  /**
13669
13661
  * Disallow `break` and `continue` in nested loops and switches inside loops.
13670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
13662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-break-in-nested-loop.md
13671
13663
  */
13672
13664
  "unicorn/no-break-in-nested-loop"?: Linter.RuleEntry<[]>;
13673
13665
  /**
13674
13666
  * Prefer drawing canvases directly instead of converting them to images.
13675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
13667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-canvas-to-image.md
13676
13668
  */
13677
13669
  "unicorn/no-canvas-to-image"?: Linter.RuleEntry<[]>;
13678
13670
  /**
13679
13671
  * Disallow chained comparisons such as `a < b < c`.
13680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
13672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-chained-comparison.md
13681
13673
  */
13682
13674
  "unicorn/no-chained-comparison"?: Linter.RuleEntry<[]>;
13683
13675
  /**
13684
13676
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
13685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
13677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-collection-bracket-access.md
13686
13678
  */
13687
13679
  "unicorn/no-collection-bracket-access"?: Linter.RuleEntry<[]>;
13688
13680
  /**
13689
13681
  * Disallow dynamic object property existence checks.
13690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
13682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-computed-property-existence-check.md
13691
13683
  */
13692
13684
  "unicorn/no-computed-property-existence-check"?: Linter.RuleEntry<[]>;
13693
13685
  /**
13694
13686
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
13695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
13687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-splice.md
13696
13688
  */
13697
13689
  "unicorn/no-confusing-array-splice"?: Linter.RuleEntry<[]>;
13698
13690
  /**
13699
13691
  * Disallow confusing uses of `Array#with()`.
13700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
13692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-with.md
13701
13693
  */
13702
13694
  "unicorn/no-confusing-array-with"?: Linter.RuleEntry<[]>;
13703
13695
  /**
13704
13696
  * Do not use leading/trailing space between `console.log` parameters.
13705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
13697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-console-spaces.md
13706
13698
  */
13707
13699
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
13708
13700
  /**
13709
13701
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
13710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
13702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-constant-zero-expression.md
13711
13703
  */
13712
13704
  "unicorn/no-constant-zero-expression"?: Linter.RuleEntry<[]>;
13713
13705
  /**
13714
13706
  * Disallow declarations before conditional early exits when they are only used after the exit.
13715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
13707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-declarations-before-early-exit.md
13716
13708
  */
13717
13709
  "unicorn/no-declarations-before-early-exit"?: Linter.RuleEntry<[]>;
13718
13710
  /**
13719
13711
  * Do not use `document.cookie` directly.
13720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
13712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-document-cookie.md
13721
13713
  */
13722
13714
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
13723
13715
  /**
13724
13716
  * Disallow two comparisons of the same operands that can be combined into one.
13725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
13717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-double-comparison.md
13726
13718
  */
13727
13719
  "unicorn/no-double-comparison"?: Linter.RuleEntry<[]>;
13728
13720
  /**
13729
13721
  * Disallow duplicate adjacent branches in if chains.
13730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
13722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-if-branches.md
13731
13723
  */
13732
13724
  "unicorn/no-duplicate-if-branches"?: Linter.RuleEntry<[]>;
13733
13725
  /**
13734
13726
  * Disallow adjacent duplicate operands in logical expressions.
13735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
13727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-logical-operands.md
13736
13728
  */
13737
13729
  "unicorn/no-duplicate-logical-operands"?: Linter.RuleEntry<[]>;
13738
13730
  /**
13739
13731
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
13740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
13732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-loops.md
13741
13733
  */
13742
13734
  "unicorn/no-duplicate-loops"?: Linter.RuleEntry<[]>;
13743
13735
  /**
13744
13736
  * Disallow duplicate values in `Set` constructor array literals.
13745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
13737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-set-values.md
13746
13738
  */
13747
13739
  "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
13748
13740
  /**
13749
13741
  * Disallow empty files.
13750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
13742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-empty-file.md
13751
13743
  */
13752
13744
  "unicorn/no-empty-file"?: Linter.RuleEntry<UnicornNoEmptyFile>;
13753
13745
  /**
13754
13746
  * Disallow assigning to built-in error properties.
13755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
13747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-error-property-assignment.md
13756
13748
  */
13757
13749
  "unicorn/no-error-property-assignment"?: Linter.RuleEntry<[]>;
13758
13750
  /**
13759
13751
  * Disallow exports in scripts.
13760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
13752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-exports-in-scripts.md
13761
13753
  */
13762
13754
  "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
13763
13755
  /**
13764
13756
  * Prefer `for…of` over the `forEach` method.
13765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
13757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-each.md
13766
13758
  */
13767
13759
  "unicorn/no-for-each"?: Linter.RuleEntry<[]>;
13768
13760
  /**
13769
13761
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
13770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
13762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-loop.md
13771
13763
  */
13772
13764
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
13773
13765
  /**
13774
13766
  * Disallow assigning properties on the global object.
13775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
13767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-global-object-property-assignment.md
13776
13768
  */
13777
13769
  "unicorn/no-global-object-property-assignment"?: Linter.RuleEntry<[]>;
13778
13770
  /**
13779
13771
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
13780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13781
13773
  * @deprecated
13782
13774
  */
13783
13775
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
13784
13776
  /**
13785
13777
  * Disallow immediate mutation after variable assignment.
13786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
13778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-immediate-mutation.md
13787
13779
  */
13788
13780
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
13789
13781
  /**
13790
13782
  * Disallow impossible comparisons against `.length` or `.size`.
13791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
13783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-impossible-length-comparison.md
13792
13784
  */
13793
13785
  "unicorn/no-impossible-length-comparison"?: Linter.RuleEntry<[]>;
13794
13786
  /**
13795
13787
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
13796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
13788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-query-selector.md
13797
13789
  */
13798
13790
  "unicorn/no-incorrect-query-selector"?: Linter.RuleEntry<[]>;
13799
13791
  /**
13800
13792
  * Disallow incorrect template literal interpolation syntax.
13801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13802
13794
  */
13803
13795
  "unicorn/no-incorrect-template-string-interpolation"?: Linter.RuleEntry<[]>;
13804
13796
  /**
13805
13797
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
13806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13807
13799
  * @deprecated
13808
13800
  */
13809
13801
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
13810
13802
  /**
13811
13803
  * Disallow `instanceof` with built-in objects
13812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
13804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-instanceof-builtins.md
13813
13805
  */
13814
13806
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
13815
13807
  /**
13816
13808
  * Disallow calling functions and constructors with an invalid number of arguments.
13817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
13809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-argument-count.md
13818
13810
  */
13819
13811
  "unicorn/no-invalid-argument-count"?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
13820
13812
  /**
13821
13813
  * Disallow comparing a single character from a string to a multi-character string.
13822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
13814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-character-comparison.md
13823
13815
  */
13824
13816
  "unicorn/no-invalid-character-comparison"?: Linter.RuleEntry<[]>;
13825
13817
  /**
13826
13818
  * Disallow invalid options in `fetch()` and `new Request()`.
13827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
13819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-fetch-options.md
13828
13820
  */
13829
13821
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
13830
13822
  /**
13831
13823
  * Disallow invalid `accept` values on file inputs.
13832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
13824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-file-input-accept.md
13833
13825
  */
13834
13826
  "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
13835
13827
  /**
13836
13828
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
13837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
13829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-remove-event-listener.md
13838
13830
  */
13839
13831
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
13840
13832
  /**
13841
13833
  * Disallow invalid implementations of well-known symbol methods.
13842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
13834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
13843
13835
  */
13844
13836
  "unicorn/no-invalid-well-known-symbol-methods"?: Linter.RuleEntry<[]>;
13845
13837
  /**
13846
13838
  * Disallow identifiers starting with `new` or `class`.
13847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
13839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-keyword-prefix.md
13848
13840
  */
13849
13841
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
13850
13842
  /**
13851
13843
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
13852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
13844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-current-target-access.md
13853
13845
  */
13854
13846
  "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
13855
13847
  /**
13856
13848
  * Disallow event-control method calls after the synchronous event dispatch has finished.
13857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
13849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-event-control.md
13858
13850
  */
13859
13851
  "unicorn/no-late-event-control"?: Linter.RuleEntry<[]>;
13860
13852
  /**
13861
13853
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
13862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13863
13855
  * @deprecated
13864
13856
  */
13865
13857
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
13866
13858
  /**
13867
13859
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
13868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
13860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-lonely-if.md
13869
13861
  */
13870
13862
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
13871
13863
  /**
13872
13864
  * Disallow mutating a loop iterable during iteration.
13873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
13865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-loop-iterable-mutation.md
13874
13866
  */
13875
13867
  "unicorn/no-loop-iterable-mutation"?: Linter.RuleEntry<[]>;
13876
13868
  /**
13877
13869
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
13878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
13870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-magic-array-flat-depth.md
13879
13871
  */
13880
13872
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
13881
13873
  /**
13882
13874
  * Disallow manually wrapped comments.
13883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
13875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-manually-wrapped-comments.md
13884
13876
  */
13885
13877
  "unicorn/no-manually-wrapped-comments"?: Linter.RuleEntry<[]>;
13886
13878
  /**
13887
13879
  * Disallow checking a Map key before accessing a different key.
13888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
13880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-mismatched-map-key.md
13889
13881
  */
13890
13882
  "unicorn/no-mismatched-map-key"?: Linter.RuleEntry<[]>;
13891
13883
  /**
13892
13884
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
13893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
13885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-misrefactored-assignment.md
13894
13886
  */
13895
13887
  "unicorn/no-misrefactored-assignment"?: Linter.RuleEntry<[]>;
13896
13888
  /**
13897
13889
  * Disallow named usage of default import and export.
13898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
13890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-named-default.md
13899
13891
  */
13900
13892
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
13901
13893
  /**
13902
13894
  * Disallow negated array predicate calls.
13903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
13895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-array-predicate.md
13904
13896
  */
13905
13897
  "unicorn/no-negated-array-predicate"?: Linter.RuleEntry<[]>;
13906
13898
  /**
13907
13899
  * Disallow negated comparisons.
13908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
13900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-comparison.md
13909
13901
  */
13910
13902
  "unicorn/no-negated-comparison"?: Linter.RuleEntry<UnicornNoNegatedComparison>;
13911
13903
  /**
13912
13904
  * Disallow negated conditions.
13913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
13905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-condition.md
13914
13906
  */
13915
13907
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
13916
13908
  /**
13917
13909
  * Disallow negated expression in equality check.
13918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
13910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negation-in-equality-check.md
13919
13911
  */
13920
13912
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
13921
13913
  /**
13922
13914
  * Disallow nested ternary expressions.
13923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
13915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nested-ternary.md
13924
13916
  */
13925
13917
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
13926
13918
  /**
13927
13919
  * Disallow `new Array()`.
13928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
13920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-array.md
13929
13921
  */
13930
13922
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
13931
13923
  /**
13932
13924
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
13933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
13925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-buffer.md
13934
13926
  */
13935
13927
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
13936
13928
  /**
13937
13929
  * Disallow non-function values with function-style verb prefixes.
13938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
13930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-non-function-verb-prefix.md
13939
13931
  */
13940
13932
  "unicorn/no-non-function-verb-prefix"?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
13941
13933
  /**
13942
13934
  * Disallow non-standard properties on built-in objects.
13943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
13935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nonstandard-builtin-properties.md
13944
13936
  */
13945
13937
  "unicorn/no-nonstandard-builtin-properties"?: Linter.RuleEntry<[]>;
13946
13938
  /**
13947
13939
  * Disallow the use of the `null` literal.
13948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
13940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-null.md
13949
13941
  */
13950
13942
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
13951
13943
  /**
13952
13944
  * Disallow the use of objects as default parameters.
13953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
13945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-as-default-parameter.md
13954
13946
  */
13955
13947
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
13956
13948
  /**
13957
13949
  * Disallow `Object` methods with `Map` or `Set`.
13958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
13950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-methods-with-collections.md
13959
13951
  */
13960
13952
  "unicorn/no-object-methods-with-collections"?: Linter.RuleEntry<[]>;
13961
13953
  /**
13962
13954
  * Disallow optional chaining on undeclared variables.
13963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13964
13956
  */
13965
13957
  "unicorn/no-optional-chaining-on-undeclared-variable"?: Linter.RuleEntry<[]>;
13966
13958
  /**
13967
13959
  * Disallow `process.exit()`.
13968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
13960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-process-exit.md
13969
13961
  */
13970
13962
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
13971
13963
  /**
13972
13964
  * Disallow comparisons made redundant by an equality check in the same logical AND.
13973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
13965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-redundant-comparison.md
13974
13966
  */
13975
13967
  "unicorn/no-redundant-comparison"?: Linter.RuleEntry<[]>;
13976
13968
  /**
13977
13969
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
13978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
13970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-return-array-push.md
13979
13971
  */
13980
13972
  "unicorn/no-return-array-push"?: Linter.RuleEntry<[]>;
13981
13973
  /**
13982
13974
  * Disallow selector syntax in DOM names.
13983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
13975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-selector-as-dom-name.md
13984
13976
  */
13985
13977
  "unicorn/no-selector-as-dom-name"?: Linter.RuleEntry<[]>;
13986
13978
  /**
13987
13979
  * Disallow passing single-element arrays to `Promise` methods.
13988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
13980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-single-promise-in-promise-methods.md
13989
13981
  */
13990
13982
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
13991
13983
  /**
13992
13984
  * Disallow classes that only have static members.
13993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
13985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-static-only-class.md
13994
13986
  */
13995
13987
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
13996
13988
  /**
13997
13989
  * Prefer comparing values directly over subtracting and comparing to `0`.
13998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
13990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-subtraction-comparison.md
13999
13991
  */
14000
13992
  "unicorn/no-subtraction-comparison"?: Linter.RuleEntry<[]>;
14001
13993
  /**
14002
13994
  * Disallow `then` property.
14003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
13995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-thenable.md
14004
13996
  */
14005
13997
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
14006
13998
  /**
14007
13999
  * Disallow assigning `this` to a variable.
14008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
14000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-assignment.md
14009
14001
  */
14010
14002
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
14011
14003
  /**
14012
14004
  * Disallow `this` outside of classes.
14013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
14005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-outside-of-class.md
14014
14006
  */
14015
14007
  "unicorn/no-this-outside-of-class"?: Linter.RuleEntry<[]>;
14016
14008
  /**
14017
14009
  * Disallow assigning to top-level variables from inside functions.
14018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
14010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-assignment-in-function.md
14019
14011
  */
14020
14012
  "unicorn/no-top-level-assignment-in-function"?: Linter.RuleEntry<[]>;
14021
14013
  /**
14022
14014
  * Disallow top-level side effects in exported modules.
14023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
14015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-side-effects.md
14024
14016
  */
14025
14017
  "unicorn/no-top-level-side-effects"?: Linter.RuleEntry<[]>;
14026
14018
  /**
14027
14019
  * Disallow comparing `undefined` using `typeof`.
14028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
14020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-typeof-undefined.md
14029
14021
  */
14030
14022
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
14031
14023
  /**
14032
14024
  * Disallow referencing methods without calling them.
14033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
14025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-uncalled-method.md
14034
14026
  */
14035
14027
  "unicorn/no-uncalled-method"?: Linter.RuleEntry<[]>;
14036
14028
  /**
14037
14029
  * Require class members to be declared.
14038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
14030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-undeclared-class-members.md
14039
14031
  */
14040
14032
  "unicorn/no-undeclared-class-members"?: Linter.RuleEntry<[]>;
14041
14033
  /**
14042
14034
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
14043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
14035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-depth.md
14044
14036
  */
14045
14037
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
14038
+ /**
14039
+ * Disallow `Array#flatMap()` callbacks that only wrap a single item.
14040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-map.md
14041
+ */
14042
+ "unicorn/no-unnecessary-array-flat-map"?: Linter.RuleEntry<[]>;
14046
14043
  /**
14047
14044
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
14048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
14045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-splice-count.md
14049
14046
  */
14050
14047
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
14051
14048
  /**
14052
14049
  * Disallow awaiting non-promise values.
14053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
14050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-await.md
14054
14051
  */
14055
14052
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
14056
14053
  /**
14057
14054
  * Disallow unnecessary comparisons against boolean literals.
14058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
14055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-boolean-comparison.md
14059
14056
  */
14060
14057
  "unicorn/no-unnecessary-boolean-comparison"?: Linter.RuleEntry<[]>;
14058
+ /**
14059
+ * Disallow unnecessary options in `fetch()` and `new Request()`.
14060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-fetch-options.md
14061
+ */
14062
+ "unicorn/no-unnecessary-fetch-options"?: Linter.RuleEntry<[]>;
14061
14063
  /**
14062
14064
  * Disallow unnecessary `globalThis` references.
14063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
14065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-global-this.md
14064
14066
  */
14065
14067
  "unicorn/no-unnecessary-global-this"?: Linter.RuleEntry<[]>;
14066
14068
  /**
14067
14069
  * Disallow unnecessary nested ternary expressions.
14068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
14070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-nested-ternary.md
14069
14071
  */
14070
14072
  "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
14071
14073
  /**
14072
14074
  * Enforce the use of built-in methods instead of unnecessary polyfills.
14073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
14075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-polyfills.md
14074
14076
  */
14075
14077
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
14076
14078
  /**
14077
14079
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
14078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
14080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-slice-end.md
14079
14081
  */
14080
14082
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
14081
14083
  /**
14082
14084
  * Disallow `Array#splice()` when simpler alternatives exist.
14083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
14085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-splice.md
14084
14086
  */
14085
14087
  "unicorn/no-unnecessary-splice"?: Linter.RuleEntry<[]>;
14086
14088
  /**
14087
14089
  * Disallow unreadable array destructuring.
14088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
14090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-array-destructuring.md
14089
14091
  */
14090
14092
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
14091
14093
  /**
14092
14094
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
14093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
14095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-for-of-expression.md
14094
14096
  */
14095
14097
  "unicorn/no-unreadable-for-of-expression"?: Linter.RuleEntry<[]>;
14096
14098
  /**
14097
14099
  * Disallow unreadable IIFEs.
14098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
14100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-iife.md
14099
14101
  */
14100
14102
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
14101
14103
  /**
14102
14104
  * Disallow unreadable `new` expressions.
14103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
14105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-new-expression.md
14104
14106
  */
14105
14107
  "unicorn/no-unreadable-new-expression"?: Linter.RuleEntry<[]>;
14106
14108
  /**
14107
14109
  * Disallow unreadable object destructuring.
14108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
14110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-object-destructuring.md
14109
14111
  */
14110
14112
  "unicorn/no-unreadable-object-destructuring"?: Linter.RuleEntry<[]>;
14111
14113
  /**
14112
14114
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
14113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
14115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-buffer-conversion.md
14114
14116
  */
14115
14117
  "unicorn/no-unsafe-buffer-conversion"?: Linter.RuleEntry<[]>;
14116
14118
  /**
14117
14119
  * Disallow unsafe DOM HTML APIs.
14118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
14120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-dom-html.md
14119
14121
  */
14120
14122
  "unicorn/no-unsafe-dom-html"?: Linter.RuleEntry<[]>;
14123
+ /**
14124
+ * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
14125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
14126
+ */
14127
+ "unicorn/no-unsafe-promise-all-settled-values"?: Linter.RuleEntry<[]>;
14121
14128
  /**
14122
14129
  * Disallow unsafe values as property keys.
14123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
14130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-property-key.md
14124
14131
  */
14125
14132
  "unicorn/no-unsafe-property-key"?: Linter.RuleEntry<[]>;
14126
14133
  /**
14127
14134
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
14128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
14135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-string-replacement.md
14129
14136
  */
14130
14137
  "unicorn/no-unsafe-string-replacement"?: Linter.RuleEntry<[]>;
14131
14138
  /**
14132
14139
  * Disallow ignoring the return value of selected array methods.
14133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
14140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-array-method-return.md
14134
14141
  */
14135
14142
  "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
14136
14143
  /**
14137
14144
  * Disallow unused object properties.
14138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
14145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-properties.md
14139
14146
  */
14140
14147
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
14141
14148
  /**
14142
14149
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
14143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
14150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-boolean-cast.md
14144
14151
  */
14145
14152
  "unicorn/no-useless-boolean-cast"?: Linter.RuleEntry<[]>;
14146
14153
  /**
14147
14154
  * Disallow useless type coercions of values that are already of the target type.
14148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
14155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-coercion.md
14149
14156
  */
14150
14157
  "unicorn/no-useless-coercion"?: Linter.RuleEntry<[]>;
14151
14158
  /**
14152
14159
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
14153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
14160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-collection-argument.md
14154
14161
  */
14155
14162
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
14156
14163
  /**
14157
14164
  * Disallow useless compound assignments such as `x += 0`.
14158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
14165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-compound-assignment.md
14159
14166
  */
14160
14167
  "unicorn/no-useless-compound-assignment"?: Linter.RuleEntry<[]>;
14161
14168
  /**
14162
14169
  * Disallow useless concatenation of literals.
14163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
14170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-concat.md
14164
14171
  */
14165
14172
  "unicorn/no-useless-concat"?: Linter.RuleEntry<[]>;
14166
14173
  /**
14167
14174
  * Disallow useless `continue` statements.
14168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
14175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-continue.md
14169
14176
  */
14170
14177
  "unicorn/no-useless-continue"?: Linter.RuleEntry<[]>;
14171
14178
  /**
14172
14179
  * Disallow unnecessary existence checks before deletion.
14173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
14180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-delete-check.md
14174
14181
  */
14175
14182
  "unicorn/no-useless-delete-check"?: Linter.RuleEntry<[]>;
14176
14183
  /**
14177
14184
  * Disallow `else` after a statement that exits.
14178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
14185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-else.md
14179
14186
  */
14180
14187
  "unicorn/no-useless-else"?: Linter.RuleEntry<[]>;
14181
14188
  /**
14182
14189
  * Disallow unnecessary `Error.captureStackTrace(…)`.
14183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
14190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-error-capture-stack-trace.md
14184
14191
  */
14185
14192
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
14186
14193
  /**
14187
14194
  * Disallow useless fallback when spreading in object literals.
14188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
14195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-fallback-in-spread.md
14189
14196
  */
14190
14197
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
14191
14198
  /**
14192
14199
  * Disallow unnecessary `.toArray()` on iterators.
14193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
14200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-iterator-to-array.md
14194
14201
  */
14195
14202
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
14196
14203
  /**
14197
14204
  * Disallow useless array length check.
14198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
14205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-length-check.md
14199
14206
  */
14200
14207
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
14201
14208
  /**
14202
14209
  * Disallow unnecessary operands in logical expressions involving boolean literals.
14203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
14210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-logical-operand.md
14204
14211
  */
14205
14212
  "unicorn/no-useless-logical-operand"?: Linter.RuleEntry<[]>;
14206
14213
  /**
14207
14214
  * Disallow useless overrides of class methods.
14208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
14215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-override.md
14209
14216
  */
14210
14217
  "unicorn/no-useless-override"?: Linter.RuleEntry<[]>;
14211
14218
  /**
14212
14219
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
14213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
14220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-promise-resolve-reject.md
14214
14221
  */
14215
14222
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
14216
14223
  /**
14217
14224
  * Disallow simple recursive function calls that can be replaced with a loop.
14218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
14225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-recursion.md
14219
14226
  */
14220
14227
  "unicorn/no-useless-recursion"?: Linter.RuleEntry<[]>;
14221
14228
  /**
14222
14229
  * Disallow unnecessary spread.
14223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
14230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-spread.md
14224
14231
  */
14225
14232
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
14226
14233
  /**
14227
14234
  * Disallow useless case in switch statements.
14228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
14235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-switch-case.md
14229
14236
  */
14230
14237
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
14231
14238
  /**
14232
14239
  * Disallow useless template literal expressions.
14233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
14240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-template-literals.md
14234
14241
  */
14235
14242
  "unicorn/no-useless-template-literals"?: Linter.RuleEntry<[]>;
14236
14243
  /**
14237
14244
  * Disallow useless `undefined`.
14238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
14245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-undefined.md
14239
14246
  */
14240
14247
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
14241
14248
  /**
14242
14249
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
14243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
14250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-xor-as-exponentiation.md
14244
14251
  */
14245
14252
  "unicorn/no-xor-as-exponentiation"?: Linter.RuleEntry<[]>;
14246
14253
  /**
14247
14254
  * Disallow number literals with zero fractions or dangling dots.
14248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
14255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-zero-fractions.md
14249
14256
  */
14250
14257
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
14251
14258
  /**
14252
14259
  * Enforce proper case for numeric literals.
14253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
14260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/number-literal-case.md
14254
14261
  */
14255
14262
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
14256
14263
  /**
14257
14264
  * Enforce the style of numeric separators by correctly grouping digits.
14258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
14265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/numeric-separators-style.md
14259
14266
  */
14260
14267
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
14261
14268
  /**
14262
14269
  * Require assignment operator shorthand where possible.
14263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
14270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/operator-assignment.md
14264
14271
  */
14265
14272
  "unicorn/operator-assignment"?: Linter.RuleEntry<UnicornOperatorAssignment>;
14273
+ /**
14274
+ * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
14275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-any.md
14276
+ */
14277
+ "unicorn/prefer-abort-signal-any"?: Linter.RuleEntry<[]>;
14266
14278
  /**
14267
14279
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
14268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
14280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-timeout.md
14269
14281
  */
14270
14282
  "unicorn/prefer-abort-signal-timeout"?: Linter.RuleEntry<[]>;
14271
14283
  /**
14272
14284
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
14273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
14285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener.md
14274
14286
  */
14275
14287
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
14276
14288
  /**
14277
14289
  * Prefer an options object over a boolean in `.addEventListener()`.
14278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
14290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener-options.md
14279
14291
  */
14280
14292
  "unicorn/prefer-add-event-listener-options"?: Linter.RuleEntry<[]>;
14281
14293
  /**
14282
14294
  * Prefer `AggregateError` when throwing collected errors.
14283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
14295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-aggregate-error.md
14284
14296
  */
14285
14297
  "unicorn/prefer-aggregate-error"?: Linter.RuleEntry<[]>;
14286
14298
  /**
14287
14299
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
14288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
14300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-find.md
14289
14301
  */
14290
14302
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
14291
14303
  /**
14292
14304
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
14293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
14305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat.md
14294
14306
  */
14295
14307
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
14296
14308
  /**
14297
14309
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
14298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
14310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat-map.md
14299
14311
  */
14300
14312
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
14301
14313
  /**
14302
14314
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
14303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
14315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-async.md
14304
14316
  */
14305
14317
  "unicorn/prefer-array-from-async"?: Linter.RuleEntry<[]>;
14306
14318
  /**
14307
14319
  * Prefer using the `Array.from()` mapping function argument.
14308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
14320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-map.md
14309
14321
  */
14310
14322
  "unicorn/prefer-array-from-map"?: Linter.RuleEntry<[]>;
14323
+ /**
14324
+ * Prefer `Array.from({length}, …)` when creating range arrays.
14325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-range.md
14326
+ */
14327
+ "unicorn/prefer-array-from-range"?: Linter.RuleEntry<[]>;
14311
14328
  /**
14312
14329
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
14313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
14330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-index-of.md
14314
14331
  */
14315
14332
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
14316
14333
  /**
14317
14334
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
14318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
14335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-iterable-methods.md
14319
14336
  */
14320
14337
  "unicorn/prefer-array-iterable-methods"?: Linter.RuleEntry<[]>;
14321
14338
  /**
14322
14339
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
14323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
14340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-last-methods.md
14324
14341
  */
14325
14342
  "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
14326
14343
  /**
14327
14344
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
14328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
14345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-slice.md
14329
14346
  */
14330
14347
  "unicorn/prefer-array-slice"?: Linter.RuleEntry<[]>;
14331
14348
  /**
14332
14349
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
14333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
14350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-some.md
14334
14351
  */
14335
14352
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
14336
14353
  /**
14337
14354
  * Prefer `.at()` method for index access and `String#charAt()`.
14338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
14355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-at.md
14339
14356
  */
14340
14357
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
14341
14358
  /**
14342
14359
  * Prefer `await` over promise chaining.
14343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
14360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-await.md
14344
14361
  */
14345
14362
  "unicorn/prefer-await"?: Linter.RuleEntry<[]>;
14346
14363
  /**
14347
14364
  * Prefer `BigInt` literals over the constructor.
14348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
14365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-bigint-literals.md
14349
14366
  */
14350
14367
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
14351
14368
  /**
14352
14369
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
14353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
14370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-blob-reading-methods.md
14354
14371
  */
14355
14372
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
14373
+ /**
14374
+ * Prefer block statements over IIFEs used only for scoping.
14375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-block-statement-over-iife.md
14376
+ */
14377
+ "unicorn/prefer-block-statement-over-iife"?: Linter.RuleEntry<[]>;
14356
14378
  /**
14357
14379
  * Prefer directly returning boolean expressions over `if` statements.
14358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
14380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-boolean-return.md
14359
14381
  */
14360
14382
  "unicorn/prefer-boolean-return"?: Linter.RuleEntry<[]>;
14361
14383
  /**
14362
14384
  * Prefer class field declarations over `this` assignments in constructors.
14363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
14385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-class-fields.md
14364
14386
  */
14365
14387
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
14366
14388
  /**
14367
14389
  * Prefer using `Element#classList.toggle()` to toggle class names.
14368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
14390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-classlist-toggle.md
14369
14391
  */
14370
14392
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
14371
14393
  /**
14372
14394
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
14373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
14395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-code-point.md
14374
14396
  */
14375
14397
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
14376
14398
  /**
14377
14399
  * Prefer early continues over whole-loop conditional wrapping.
14378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
14400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-continue.md
14379
14401
  */
14380
14402
  "unicorn/prefer-continue"?: Linter.RuleEntry<UnicornPreferContinue>;
14381
14403
  /**
14382
14404
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
14383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
14405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-date-now.md
14384
14406
  */
14385
14407
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
14386
14408
  /**
14387
14409
  * Prefer default parameters over reassignment.
14388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
14410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-default-parameters.md
14389
14411
  */
14390
14412
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
14391
14413
  /**
14392
14414
  * Prefer direct iteration over default iterator method calls.
14393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
14415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-direct-iteration.md
14394
14416
  */
14395
14417
  "unicorn/prefer-direct-iteration"?: Linter.RuleEntry<[]>;
14396
14418
  /**
14397
14419
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
14398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
14420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dispose.md
14399
14421
  */
14400
14422
  "unicorn/prefer-dispose"?: Linter.RuleEntry<[]>;
14401
14423
  /**
14402
14424
  * Prefer `Element#append()` over `Node#appendChild()`.
14403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
14425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-append.md
14404
14426
  */
14405
14427
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
14406
14428
  /**
14407
14429
  * Renamed to `unicorn/dom-node-dataset`.
14408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
14430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
14409
14431
  * @deprecated
14410
14432
  */
14411
14433
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
14412
14434
  /**
14413
14435
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
14414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
14436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-html-methods.md
14415
14437
  */
14416
14438
  "unicorn/prefer-dom-node-html-methods"?: Linter.RuleEntry<[]>;
14417
14439
  /**
14418
14440
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
14419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
14441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-remove.md
14420
14442
  */
14421
14443
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
14422
14444
  /**
14423
14445
  * Prefer `.replaceChildren()` when emptying DOM children.
14424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
14446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-replace-children.md
14425
14447
  */
14426
14448
  "unicorn/prefer-dom-node-replace-children"?: Linter.RuleEntry<[]>;
14427
14449
  /**
14428
14450
  * Prefer `.textContent` over `.innerText`.
14429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
14451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-text-content.md
14430
14452
  */
14431
14453
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
14432
14454
  /**
14433
14455
  * Prefer early returns over full-function conditional wrapping.
14434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
14456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-early-return.md
14435
14457
  */
14436
14458
  "unicorn/prefer-early-return"?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
14437
14459
  /**
14438
14460
  * Prefer `else if` over adjacent `if` statements with related conditions.
14439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
14461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-else-if.md
14440
14462
  */
14441
14463
  "unicorn/prefer-else-if"?: Linter.RuleEntry<[]>;
14442
14464
  /**
14443
14465
  * Prefer `Error.isError()` when checking for errors.
14444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
14466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-error-is-error.md
14445
14467
  */
14446
14468
  "unicorn/prefer-error-is-error"?: Linter.RuleEntry<[]>;
14447
14469
  /**
14448
14470
  * Prefer `EventTarget` over `EventEmitter`.
14449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
14471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-event-target.md
14450
14472
  */
14451
14473
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
14452
14474
  /**
14453
14475
  * Prefer `export…from` when re-exporting.
14454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
14476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-export-from.md
14455
14477
  */
14456
14478
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
14457
14479
  /**
14458
14480
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
14459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
14481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-flat-math-min-max.md
14460
14482
  */
14461
14483
  "unicorn/prefer-flat-math-min-max"?: Linter.RuleEntry<[]>;
14462
14484
  /**
14463
14485
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
14464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
14486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-get-or-insert-computed.md
14465
14487
  */
14466
14488
  "unicorn/prefer-get-or-insert-computed"?: Linter.RuleEntry<[]>;
14467
14489
  /**
14468
14490
  * Prefer global numeric constants over `Number` static properties.
14469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
14491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-number-constants.md
14470
14492
  */
14471
14493
  "unicorn/prefer-global-number-constants"?: Linter.RuleEntry<[]>;
14472
14494
  /**
14473
14495
  * Prefer `globalThis` over `window`, `self`, and `global`.
14474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
14496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-this.md
14475
14497
  */
14476
14498
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
14499
+ /**
14500
+ * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
14501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-group-by.md
14502
+ */
14503
+ "unicorn/prefer-group-by"?: Linter.RuleEntry<[]>;
14477
14504
  /**
14478
14505
  * Prefer `.has()` when checking existence.
14479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
14506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-has-check.md
14480
14507
  */
14481
14508
  "unicorn/prefer-has-check"?: Linter.RuleEntry<[]>;
14482
14509
  /**
14483
14510
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
14484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
14511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-hoisting-branch-code.md
14485
14512
  */
14486
14513
  "unicorn/prefer-hoisting-branch-code"?: Linter.RuleEntry<[]>;
14487
14514
  /**
14488
14515
  * Prefer HTTPS over HTTP.
14489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
14516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-https.md
14490
14517
  */
14491
14518
  "unicorn/prefer-https"?: Linter.RuleEntry<[]>;
14492
14519
  /**
14493
14520
  * Prefer identifiers over string literals in import and export specifiers.
14494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
14521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
14495
14522
  */
14496
14523
  "unicorn/prefer-identifier-import-export-specifiers"?: Linter.RuleEntry<[]>;
14497
14524
  /**
14498
14525
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
14499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
14526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-import-meta-properties.md
14500
14527
  */
14501
14528
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
14502
14529
  /**
14503
14530
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
14504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
14531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes.md
14505
14532
  */
14506
14533
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
14507
14534
  /**
14508
14535
  * Prefer `.includes()` over repeated equality comparisons.
14509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14510
14537
  */
14511
14538
  "unicorn/prefer-includes-over-repeated-comparisons"?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
14512
14539
  /**
14513
14540
  * Prefer passing iterables directly to constructors instead of filling empty collections.
14514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
14541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterable-in-constructor.md
14515
14542
  */
14516
14543
  "unicorn/prefer-iterable-in-constructor"?: Linter.RuleEntry<[]>;
14517
14544
  /**
14518
14545
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
14519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
14546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-concat.md
14520
14547
  */
14521
14548
  "unicorn/prefer-iterator-concat"?: Linter.RuleEntry<[]>;
14549
+ /**
14550
+ * Prefer iterator helpers over temporary arrays from iterators.
14551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-helpers.md
14552
+ */
14553
+ "unicorn/prefer-iterator-helpers"?: Linter.RuleEntry<[]>;
14522
14554
  /**
14523
14555
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
14524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
14556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array.md
14525
14557
  */
14526
14558
  "unicorn/prefer-iterator-to-array"?: Linter.RuleEntry<[]>;
14527
14559
  /**
14528
14560
  * Prefer moving `.toArray()` to the end of iterator helper chains.
14529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
14561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array-at-end.md
14530
14562
  */
14531
14563
  "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
14532
14564
  /**
14533
14565
  * Renamed to `unicorn/consistent-json-file-read`.
14534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
14566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
14535
14567
  * @deprecated
14536
14568
  */
14537
14569
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
14538
14570
  /**
14539
14571
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
14540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
14572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-keyboard-event-key.md
14541
14573
  */
14542
14574
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
14543
14575
  /**
14544
14576
  * Prefer `location.assign()` over assigning to `location.href`.
14545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
14577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-location-assign.md
14546
14578
  */
14547
14579
  "unicorn/prefer-location-assign"?: Linter.RuleEntry<[]>;
14548
14580
  /**
14549
14581
  * Prefer using a logical operator over a ternary.
14550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
14582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-logical-operator-over-ternary.md
14551
14583
  */
14552
14584
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
14553
14585
  /**
14554
14586
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
14555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
14587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-map-from-entries.md
14556
14588
  */
14557
14589
  "unicorn/prefer-map-from-entries"?: Linter.RuleEntry<[]>;
14558
14590
  /**
14559
14591
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
14560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
14592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-abs.md
14561
14593
  */
14562
14594
  "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
14563
14595
  /**
14564
14596
  * Prefer `Math` constants over their approximate numeric values.
14565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
14597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-constants.md
14566
14598
  */
14567
14599
  "unicorn/prefer-math-constants"?: Linter.RuleEntry<[]>;
14568
14600
  /**
14569
14601
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
14570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
14602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-min-max.md
14571
14603
  */
14572
14604
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
14573
14605
  /**
14574
14606
  * Prefer `Math.trunc()` for truncating numbers.
14575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
14607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-trunc.md
14576
14608
  */
14577
14609
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
14578
14610
  /**
14579
14611
  * Prefer moving ternaries into the minimal varying part of an expression.
14580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
14612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-minimal-ternary.md
14581
14613
  */
14582
14614
  "unicorn/prefer-minimal-ternary"?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
14583
14615
  /**
14584
14616
  * Prefer modern DOM APIs.
14585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
14617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-dom-apis.md
14586
14618
  */
14587
14619
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
14588
14620
  /**
14589
14621
  * Prefer modern `Math` APIs over legacy patterns.
14590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
14622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-math-apis.md
14591
14623
  */
14592
14624
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
14593
14625
  /**
14594
14626
  * Prefer JavaScript modules (ESM) over CommonJS.
14595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
14627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-module.md
14596
14628
  */
14597
14629
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
14598
14630
  /**
14599
14631
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
14600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
14632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-native-coercion-functions.md
14601
14633
  */
14602
14634
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
14603
14635
  /**
14604
14636
  * Prefer negative index over `.length - index` when possible.
14605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
14637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-negative-index.md
14606
14638
  */
14607
14639
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
14608
14640
  /**
14609
14641
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
14610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
14642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-node-protocol.md
14611
14643
  */
14612
14644
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
14613
14645
  /**
14614
14646
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
14615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
14647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-coercion.md
14616
14648
  */
14617
14649
  "unicorn/prefer-number-coercion"?: Linter.RuleEntry<[]>;
14618
14650
  /**
14619
14651
  * Prefer `Number.isSafeInteger()` over integer checks.
14620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
14652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-is-safe-integer.md
14621
14653
  */
14622
14654
  "unicorn/prefer-number-is-safe-integer"?: Linter.RuleEntry<[]>;
14623
14655
  /**
14624
14656
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
14625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
14657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-properties.md
14626
14658
  */
14627
14659
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
14628
14660
  /**
14629
14661
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
14630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
14662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-define-properties.md
14631
14663
  */
14632
14664
  "unicorn/prefer-object-define-properties"?: Linter.RuleEntry<[]>;
14633
14665
  /**
14634
14666
  * Prefer object destructuring defaults over default object literals with spread.
14635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
14667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-destructuring-defaults.md
14636
14668
  */
14637
14669
  "unicorn/prefer-object-destructuring-defaults"?: Linter.RuleEntry<[]>;
14638
14670
  /**
14639
14671
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
14640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
14672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-from-entries.md
14641
14673
  */
14642
14674
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
14643
14675
  /**
14644
14676
  * Prefer the most specific `Object` iterable method.
14645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
14677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-iterable-methods.md
14646
14678
  */
14647
14679
  "unicorn/prefer-object-iterable-methods"?: Linter.RuleEntry<[]>;
14648
14680
  /**
14649
14681
  * Prefer observer APIs over resize and scroll listeners with layout reads.
14650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
14682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-observer-apis.md
14651
14683
  */
14652
14684
  "unicorn/prefer-observer-apis"?: Linter.RuleEntry<[]>;
14653
14685
  /**
14654
14686
  * Prefer omitting the `catch` binding parameter.
14655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
14687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-optional-catch-binding.md
14656
14688
  */
14657
14689
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
14658
14690
  /**
14659
14691
  * Prefer `Path2D` for repeatedly drawn canvas paths.
14660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
14692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-path2d.md
14661
14693
  */
14662
14694
  "unicorn/prefer-path2d"?: Linter.RuleEntry<[]>;
14663
14695
  /**
14664
14696
  * Prefer private class fields over the underscore-prefix convention.
14665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
14697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-private-class-fields.md
14666
14698
  */
14667
14699
  "unicorn/prefer-private-class-fields"?: Linter.RuleEntry<[]>;
14668
14700
  /**
14669
14701
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
14670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
14702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-try.md
14671
14703
  */
14672
14704
  "unicorn/prefer-promise-try"?: Linter.RuleEntry<[]>;
14673
14705
  /**
14674
14706
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
14675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
14707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-with-resolvers.md
14676
14708
  */
14677
14709
  "unicorn/prefer-promise-with-resolvers"?: Linter.RuleEntry<[]>;
14678
14710
  /**
14679
14711
  * Prefer borrowing methods from the prototype instead of the instance.
14680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
14712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-prototype-methods.md
14681
14713
  */
14682
14714
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
14683
14715
  /**
14684
14716
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
14685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
14717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-query-selector.md
14686
14718
  */
14687
14719
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
14688
14720
  /**
14689
14721
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
14690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
14722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-queue-microtask.md
14691
14723
  */
14692
14724
  "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
14693
14725
  /**
14694
14726
  * Prefer `Reflect.apply()` over `Function#apply()`.
14695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
14727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-reflect-apply.md
14696
14728
  */
14697
14729
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
14698
14730
  /**
14699
14731
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
14700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
14732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-escape.md
14701
14733
  */
14702
14734
  "unicorn/prefer-regexp-escape"?: Linter.RuleEntry<[]>;
14703
14735
  /**
14704
14736
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
14705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
14737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-test.md
14706
14738
  */
14707
14739
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
14708
14740
  /**
14709
14741
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
14710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
14742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-response-static-json.md
14711
14743
  */
14712
14744
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
14713
14745
  /**
14714
14746
  * Prefer `:scope` when using element query selector methods.
14715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
14747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-scoped-selector.md
14716
14748
  */
14717
14749
  "unicorn/prefer-scoped-selector"?: Linter.RuleEntry<[]>;
14718
14750
  /**
14719
14751
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
14720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
14752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-has.md
14721
14753
  */
14722
14754
  "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
14723
14755
  /**
14724
14756
  * Prefer `Set` methods for Set operations.
14725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
14757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-methods.md
14726
14758
  */
14727
14759
  "unicorn/prefer-set-methods"?: Linter.RuleEntry<[]>;
14728
14760
  /**
14729
14761
  * Prefer using `Set#size` instead of `Array#length`.
14730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
14762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-size.md
14731
14763
  */
14732
14764
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
14733
14765
  /**
14734
14766
  * Prefer arrow function properties over methods with a single return.
14735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
14767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-short-arrow-method.md
14736
14768
  */
14737
14769
  "unicorn/prefer-short-arrow-method"?: Linter.RuleEntry<[]>;
14738
14770
  /**
14739
14771
  * Prefer simple conditions first in logical expressions.
14740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
14772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-condition-first.md
14741
14773
  */
14742
14774
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
14743
14775
  /**
14744
14776
  * Prefer a simple comparison function for `Array#sort()`.
14745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
14777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-sort-comparator.md
14746
14778
  */
14747
14779
  "unicorn/prefer-simple-sort-comparator"?: Linter.RuleEntry<[]>;
14780
+ /**
14781
+ * Prefer simplified conditions.
14782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simplified-conditions.md
14783
+ */
14784
+ "unicorn/prefer-simplified-conditions"?: Linter.RuleEntry<[]>;
14748
14785
  /**
14749
14786
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
14750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
14787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-array-predicate.md
14751
14788
  */
14752
14789
  "unicorn/prefer-single-array-predicate"?: Linter.RuleEntry<[]>;
14753
14790
  /**
14754
14791
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
14755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
14792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-call.md
14756
14793
  */
14757
14794
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
14758
14795
  /**
14759
14796
  * Prefer a single object destructuring declaration per local const source.
14760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
14797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-object-destructuring.md
14761
14798
  */
14762
14799
  "unicorn/prefer-single-object-destructuring"?: Linter.RuleEntry<[]>;
14763
14800
  /**
14764
14801
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
14765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
14802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-replace.md
14766
14803
  */
14767
14804
  "unicorn/prefer-single-replace"?: Linter.RuleEntry<[]>;
14768
14805
  /**
14769
14806
  * Prefer declaring variables in the smallest possible scope.
14770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
14807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-smaller-scope.md
14771
14808
  */
14772
14809
  "unicorn/prefer-smaller-scope"?: Linter.RuleEntry<[]>;
14773
14810
  /**
14774
14811
  * Prefer `String#split()` with a limit.
14775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
14812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-split-limit.md
14776
14813
  */
14777
14814
  "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
14778
14815
  /**
14779
14816
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
14780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
14817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-spread.md
14781
14818
  */
14782
14819
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
14783
14820
  /**
14784
14821
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
14785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
14822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-match-all.md
14786
14823
  */
14787
14824
  "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
14788
14825
  /**
14789
14826
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
14790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
14827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-pad-start-end.md
14791
14828
  */
14792
14829
  "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
14793
14830
  /**
14794
14831
  * Prefer using the `String.raw` tag to avoid escaping `\`.
14795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
14832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-raw.md
14796
14833
  */
14797
14834
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
14798
14835
  /**
14799
14836
  * Prefer `String#repeat()` for repeated whitespace.
14800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
14837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-repeat.md
14801
14838
  */
14802
14839
  "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
14803
14840
  /**
14804
14841
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
14805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
14842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-replace-all.md
14806
14843
  */
14807
14844
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
14808
14845
  /**
14809
14846
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
14810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
14847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-slice.md
14811
14848
  */
14812
14849
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
14813
14850
  /**
14814
14851
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
14815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
14852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-starts-ends-with.md
14816
14853
  */
14817
14854
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
14818
14855
  /**
14819
14856
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
14820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
14857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-trim-start-end.md
14821
14858
  */
14822
14859
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
14823
14860
  /**
14824
14861
  * Prefer using `structuredClone` to create a deep clone.
14825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
14862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-structured-clone.md
14826
14863
  */
14827
14864
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
14828
14865
  /**
14829
14866
  * Prefer `switch` over multiple `else-if`.
14830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
14867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-switch.md
14831
14868
  */
14832
14869
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
14833
14870
  /**
14834
14871
  * Prefer `Temporal` over `Date`.
14835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
14872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-temporal.md
14836
14873
  */
14837
14874
  "unicorn/prefer-temporal"?: Linter.RuleEntry<UnicornPreferTemporal>;
14838
14875
  /**
14839
14876
  * Prefer ternary expressions over simple `if` statements that return or assign values.
14840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
14877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-ternary.md
14841
14878
  */
14842
14879
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
14843
14880
  /**
14844
14881
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
14845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
14882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-toggle-attribute.md
14846
14883
  */
14847
14884
  "unicorn/prefer-toggle-attribute"?: Linter.RuleEntry<[]>;
14848
14885
  /**
14849
14886
  * Prefer top-level await over top-level promises and async function calls.
14850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
14887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-top-level-await.md
14851
14888
  */
14852
14889
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
14853
14890
  /**
14854
14891
  * Enforce throwing `TypeError` in type checking conditions.
14855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
14892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-error.md
14856
14893
  */
14857
14894
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
14858
14895
  /**
14859
14896
  * Require type literals to be last in union types.
14860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
14897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-literal-last.md
14861
14898
  */
14862
14899
  "unicorn/prefer-type-literal-last"?: Linter.RuleEntry<[]>;
14863
14900
  /**
14864
14901
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
14865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
14902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-uint8array-base64.md
14866
14903
  */
14867
14904
  "unicorn/prefer-uint8array-base64"?: Linter.RuleEntry<[]>;
14868
14905
  /**
14869
14906
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
14870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
14907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unary-minus.md
14871
14908
  */
14872
14909
  "unicorn/prefer-unary-minus"?: Linter.RuleEntry<[]>;
14873
14910
  /**
14874
14911
  * Prefer Unicode code point escapes over legacy escape sequences.
14875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
14912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unicode-code-point-escapes.md
14876
14913
  */
14877
14914
  "unicorn/prefer-unicode-code-point-escapes"?: Linter.RuleEntry<[]>;
14878
14915
  /**
14879
14916
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
14880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
14917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-can-parse.md
14881
14918
  */
14882
14919
  "unicorn/prefer-url-can-parse"?: Linter.RuleEntry<[]>;
14883
14920
  /**
14884
14921
  * Prefer `URL#href` over stringifying a `URL`.
14885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
14922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-href.md
14886
14923
  */
14887
14924
  "unicorn/prefer-url-href"?: Linter.RuleEntry<[]>;
14888
14925
  /**
14889
14926
  * Prefer `URLSearchParams` over manually splitting query strings.
14890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
14927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-search-parameters.md
14891
14928
  */
14892
14929
  "unicorn/prefer-url-search-parameters"?: Linter.RuleEntry<[]>;
14893
14930
  /**
14894
14931
  * Prefer putting the condition in the while statement.
14895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
14932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-while-loop-condition.md
14896
14933
  */
14897
14934
  "unicorn/prefer-while-loop-condition"?: Linter.RuleEntry<[]>;
14898
14935
  /**
14899
14936
  * Renamed to `unicorn/name-replacements`.
14900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
14937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
14901
14938
  * @deprecated
14902
14939
  */
14903
14940
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<[]>;
14904
14941
  /**
14905
14942
  * Enforce consistent relative URL style.
14906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
14943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/relative-url-style.md
14907
14944
  */
14908
14945
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
14909
14946
  /**
14910
14947
  * Enforce using the separator argument with `Array#join()`.
14911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
14948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-join-separator.md
14912
14949
  */
14913
14950
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
14914
14951
  /**
14915
14952
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
14916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
14953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-sort-compare.md
14917
14954
  */
14918
14955
  "unicorn/require-array-sort-compare"?: Linter.RuleEntry<[]>;
14919
14956
  /**
14920
14957
  * Require `CSS.escape()` for interpolated values in CSS selectors.
14921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
14958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-css-escape.md
14922
14959
  */
14923
14960
  "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
14924
14961
  /**
14925
14962
  * Require non-empty module attributes for imports and exports
14926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
14963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-attributes.md
14927
14964
  */
14928
14965
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
14929
14966
  /**
14930
14967
  * Require non-empty specifier list in import and export statements.
14931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
14968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-specifiers.md
14932
14969
  */
14933
14970
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
14934
14971
  /**
14935
14972
  * Enforce using the digits argument with `Number#toFixed()`.
14936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
14973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-number-to-fixed-digits-argument.md
14937
14974
  */
14938
14975
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
14939
14976
  /**
14940
14977
  * Require passive event listeners for high-frequency events.
14941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
14978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-passive-events.md
14942
14979
  */
14943
14980
  "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
14944
14981
  /**
14945
14982
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
14946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
14983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-post-message-target-origin.md
14947
14984
  */
14948
14985
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
14949
14986
  /**
14950
14987
  * Require boolean-returning Proxy traps to return booleans.
14951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
14988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-proxy-trap-boolean-return.md
14952
14989
  */
14953
14990
  "unicorn/require-proxy-trap-boolean-return"?: Linter.RuleEntry<[]>;
14954
14991
  /**
14955
14992
  * Enforce better string content.
14956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
14993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/string-content.md
14957
14994
  */
14958
14995
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
14959
14996
  /**
14960
14997
  * Enforce consistent brace style for `case` clauses.
14961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
14998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-braces.md
14962
14999
  */
14963
15000
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
14964
15001
  /**
14965
15002
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
14966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
15003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-break-position.md
14967
15004
  */
14968
15005
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
14969
15006
  /**
14970
15007
  * Fix whitespace-insensitive template indentation.
14971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
15008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/template-indent.md
14972
15009
  */
14973
15010
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
14974
15011
  /**
14975
15012
  * Enforce consistent case for text encoding identifiers.
14976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
15013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/text-encoding-identifier-case.md
14977
15014
  */
14978
15015
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
14979
15016
  /**
14980
15017
  * Require `new` when creating an error.
14981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
15018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/throw-new-error.md
14982
15019
  */
14983
15020
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
14984
15021
  /**
14985
15022
  * Limit the complexity of `try` blocks.
14986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
15023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/try-complexity.md
14987
15024
  */
14988
15025
  "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
14989
15026
  }
@@ -15181,6 +15218,7 @@ type UnicornNoNegatedComparison = [] | [{
15181
15218
  }]; // ----- unicorn/no-non-function-verb-prefix -----
15182
15219
  type UnicornNoNonFunctionVerbPrefix = [] | [{
15183
15220
  verbs?: string[];
15221
+ ignore?: unknown[];
15184
15222
  }]; // ----- unicorn/no-null -----
15185
15223
  type UnicornNoNull = [] | [{
15186
15224
  checkArguments?: boolean;
@@ -16260,6 +16298,10 @@ type OptionsTypeScriptWithTypes = {
16260
16298
  * Override only type-aware rules.
16261
16299
  */
16262
16300
  overridesTypeAware?: Config["rules"];
16301
+ /**
16302
+ * Override TypeScript rules.
16303
+ */
16304
+ overrides?: TypescriptConfigRules;
16263
16305
  /**
16264
16306
  * strict vs recommended configs
16265
16307
  * @default false
@@ -16270,7 +16312,7 @@ type OptionsTypeScriptWithTypes = {
16270
16312
  */
16271
16313
  typeAware?: boolean;
16272
16314
  };
16273
- type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides) | (OptionsTypeScriptParserOptions & OptionsOverrides);
16315
+ type OptionsTypescript = OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions;
16274
16316
  type OptionsHasTypeScript = {
16275
16317
  typescript?: boolean;
16276
16318
  };
@@ -16298,6 +16340,64 @@ type OptionsReact = {
16298
16340
  react?: boolean;
16299
16341
  reactRefresh?: boolean;
16300
16342
  };
16343
+ type OptionsAntfu = {
16344
+ topLevelFunction?: "error" | "off";
16345
+ overrides?: AntfuRuleOptions;
16346
+ };
16347
+ type OptionsCommand = {
16348
+ overrides?: CommandRuleOptions;
16349
+ };
16350
+ type OptionsDeMorgan = {
16351
+ overrides?: DeMorganRuleOptions;
16352
+ };
16353
+ type OptionsE18e = {
16354
+ modernization?: boolean;
16355
+ moduleReplacements?: boolean;
16356
+ performanceImprovements?: boolean;
16357
+ overrides?: E18eRuleOptions;
16358
+ };
16359
+ type OptionsJavascript = {
16360
+ overrides?: JavascriptRuleOptions;
16361
+ };
16362
+ type OptionsJsdoc = {
16363
+ overrides?: JsdocRuleOptions;
16364
+ };
16365
+ type OptionsJsonc = OptionsStylistic & {
16366
+ overrides?: JsoncRuleOptions;
16367
+ };
16368
+ type OptionsMarkdown = OptionsComponentExts & {
16369
+ overrides?: MarkdownRuleOptions;
16370
+ };
16371
+ type OptionsN = {
16372
+ overrides?: NRuleOptions;
16373
+ };
16374
+ type OptionsPnpm = {
16375
+ overrides?: PnpmRuleOptions;
16376
+ };
16377
+ type OptionsReactConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & Omit<OptionsTypeScriptWithTypes, "overrides" | "overridesTypeAware"> & {
16378
+ reactRefresh?: boolean;
16379
+ overrides?: EslintReactRuleOptions;
16380
+ };
16381
+ type OptionsSortTsconfig = {
16382
+ extendTsconfigGlobs?: string[];
16383
+ };
16384
+ type OptionsTest = {
16385
+ overrides?: VitestRuleOptions;
16386
+ };
16387
+ type OptionsUnicorn = {
16388
+ /**
16389
+ * Unicorn preset to use as the base ruleset.
16390
+ * @default "recommended"
16391
+ */
16392
+ preset?: "recommended" | "unopinionated" | "all";
16393
+ /**
16394
+ * Override Unicorn rules after applying the preset and built-in rules.
16395
+ */
16396
+ overrides?: UnicornRuleOptions;
16397
+ };
16398
+ type OptionsYaml = OptionsFiles & OptionsStylistic & {
16399
+ overrides?: YmlRuleOptions;
16400
+ };
16301
16401
  /**
16302
16402
  * Tailwind CSS ESLint settings
16303
16403
  */
@@ -16317,7 +16417,100 @@ type TailwindEslintSettings = {
16317
16417
  whitelist: string[];
16318
16418
  };
16319
16419
  type TailwindOptions = Partial<TailwindEslintSettings> | boolean | undefined;
16320
- type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16420
+ type OptionsConfigs = {
16421
+ /**
16422
+ * Enable eslint-plugin-antfu.
16423
+ * @default true
16424
+ */
16425
+ antfu?: boolean | OptionsAntfu;
16426
+ /**
16427
+ * Enable `eslint-plugin-command`
16428
+ * @default true
16429
+ */
16430
+ command?: boolean | OptionsCommand;
16431
+ /**
16432
+ * Enable eslint-plugin-de-morgan.
16433
+ * @default true
16434
+ */
16435
+ demorgan?: boolean | OptionsDeMorgan;
16436
+ /**
16437
+ * Enable @e18e/eslint-plugin.
16438
+ * @default true
16439
+ */
16440
+ e18e?: boolean | OptionsE18e;
16441
+ /**
16442
+ * Configure JavaScript rules.
16443
+ */
16444
+ javascript?: OptionsJavascript;
16445
+ /**
16446
+ * Enable eslint-plugin-jsdoc.
16447
+ * @default true
16448
+ */
16449
+ jsdoc?: boolean | OptionsJsdoc;
16450
+ /**
16451
+ * Enable eslint-plugin-n (Node.js rules).
16452
+ * @default true
16453
+ */
16454
+ n?: boolean | OptionsN;
16455
+ /**
16456
+ * Enable eslint-plugin-pnpm.
16457
+ * @default false
16458
+ */
16459
+ pnpm?: boolean | OptionsPnpm;
16460
+ /**
16461
+ * Enable Tailwind CSS support.
16462
+ *
16463
+ * Passing an object to configure the options.
16464
+ * Tailwind support is currently disabled; passing this option only logs a warning.
16465
+ * @default false
16466
+ */
16467
+ tailwind?: TailwindOptions;
16468
+ /**
16469
+ * Enable TypeScript support.
16470
+ *
16471
+ * Passing an object to enable TypeScript Language Server support.
16472
+ * @default auto-detect based on the dependencies
16473
+ */
16474
+ typescript?: boolean | OptionsTypescript;
16475
+ /**
16476
+ * Enable eslint-plugin-unicorn.
16477
+ * @default true
16478
+ */
16479
+ unicorn?: boolean | OptionsUnicorn;
16480
+ react?: boolean | OptionsReactConfig;
16481
+ reactRefresh?: boolean;
16482
+ /**
16483
+ * Enable regexp plugin
16484
+ * @default true
16485
+ */
16486
+ regexp?: boolean;
16487
+ /**
16488
+ * Enable test support.
16489
+ * @default true
16490
+ */
16491
+ test?: boolean | OptionsTest;
16492
+ /**
16493
+ * Enable JSONC support.
16494
+ * @default true
16495
+ */
16496
+ jsonc?: boolean | OptionsJsonc;
16497
+ /**
16498
+ * Enable YAML support.
16499
+ * @default false
16500
+ */
16501
+ yaml?: boolean | OptionsYaml;
16502
+ /**
16503
+ * Enable Markdown support.
16504
+ * @default false
16505
+ */
16506
+ markdown?: boolean | OptionsMarkdown;
16507
+ /**
16508
+ * Enable stylistic rules.
16509
+ * @default true
16510
+ */
16511
+ stylistic?: boolean | StylisticConfig;
16512
+ };
16513
+ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & OptionsConfigs & {
16321
16514
  /**
16322
16515
  * Enable debug mode.
16323
16516
  */
@@ -16336,11 +16529,6 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16336
16529
  * Array of rules to turn off.
16337
16530
  */
16338
16531
  off?: RuleName[] | Set<RuleName>;
16339
- /**
16340
- * Enable `eslint-plugin-command`
16341
- * @default true
16342
- */
16343
- command?: boolean;
16344
16532
  /**
16345
16533
  * Enable fast mode.
16346
16534
  *
@@ -16355,19 +16543,6 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16355
16543
  * PLUGIN!.
16356
16544
  */
16357
16545
  prettier?: boolean;
16358
- /**
16359
- * Enable eslint-plugin-pnpm.
16360
- * @default false
16361
- */
16362
- pnpm?: boolean;
16363
- /**
16364
- * Enable Tailwind CSS support.
16365
- *
16366
- * Passing an object to configure the options.
16367
- * Tailwind support is currently disabled; passing this option only logs a warning.
16368
- * @default false
16369
- */
16370
- tailwind?: TailwindOptions;
16371
16546
  /**
16372
16547
  * The prefix for the name of the config item.
16373
16548
  * @default "jsse"
@@ -16394,7 +16569,7 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16394
16569
  * Enable sorting of tsconfig.json files.
16395
16570
  * @default true
16396
16571
  */
16397
- sortTsconfig?: boolean;
16572
+ sortTsconfig?: boolean | OptionsSortTsconfig;
16398
16573
  /**
16399
16574
  * Enable sorting of geojson files.
16400
16575
  * @default false
@@ -16413,24 +16588,10 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16413
16588
  * @default ['tsconfig.json', 'tsconfig.*.json']
16414
16589
  */
16415
16590
  extendTsconfigLintGlobs?: string[];
16416
- /**
16417
- * Enable TypeScript support.
16418
- *
16419
- * Passing an object to enable TypeScript Language Server support.
16420
- * @default auto-detect based on the dependencies
16421
- */
16422
- typescript?: boolean | OptionsTypeScriptWithTypes;
16423
16591
  /**
16424
16592
  * Forcibly disable type aware rules
16425
16593
  */
16426
16594
  typeAware?: boolean;
16427
- react?: boolean;
16428
- reactRefresh?: boolean;
16429
- /**
16430
- * Enable regexp plugin
16431
- * @default true
16432
- */
16433
- regexp?: boolean;
16434
16595
  /**
16435
16596
  * Enable JSX related rules.
16436
16597
  *
@@ -16438,56 +16599,17 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16438
16599
  * @default true
16439
16600
  */
16440
16601
  jsx?: boolean;
16441
- /**
16442
- * Enable test support.
16443
- * @default true
16444
- */
16445
- test?: boolean;
16446
- /**
16447
- * Enable JSONC support.
16448
- * @default true
16449
- */
16450
- jsonc?: boolean;
16451
- /**
16452
- * Enable YAML support.
16453
- * @default false
16454
- */
16455
- yaml?: boolean;
16456
- /**
16457
- * Enable Markdown support.
16458
- * @default false
16459
- */
16460
- markdown?: boolean;
16461
- /**
16462
- * Enable stylistic rules.
16463
- * @default true
16464
- */
16465
- stylistic?: boolean | StylisticConfig;
16466
16602
  /**
16467
16603
  * Control to disable some rules in editors.
16468
16604
  * @default auto-detect based on the process.env
16469
16605
  */
16470
16606
  isInEditor?: boolean;
16471
- /**
16472
- * Provide overrides for rules for each integration.
16473
- */
16474
- overrides?: {
16475
- javascript?: Config["rules"];
16476
- typescript?: Config["rules"];
16477
- test?: Config["rules"];
16478
- jsonc?: Config["rules"];
16479
- markdown?: Config["rules"];
16480
- yaml?: Config["rules"];
16481
- };
16482
16607
  };
16483
16608
  type NormalizedOptionsConfig = Omit<OptionsConfig, "off"> & {
16484
16609
  off: RuleName[];
16485
16610
  };
16486
16611
  type RenamePrefix<T extends Record<string, unknown>, FromPref extends string, ToPref extends string> = { [K in keyof T as K extends `${FromPref}${infer Rest}` ? `${ToPref}${Rest}` : K]: T[K] };
16487
16612
  //#endregion
16488
- //#region src/const.d.ts
16489
- declare const SLOW_RULES: RuleName[];
16490
- //#endregion
16491
16613
  //#region src/define-config.d.ts
16492
16614
  /**
16493
16615
  * Construct an array of ESLint flat config items.
@@ -16497,7 +16619,6 @@ declare const SLOW_RULES: RuleName[];
16497
16619
  */
16498
16620
  declare function jsse(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
16499
16621
  declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
16500
- type DefineConfig = typeof defineConfig;
16501
16622
  declare namespace globs_d_exports {
16502
16623
  export { GLOB_ALL_SRC, GLOB_CODE, GLOB_CSS, GLOB_EXCLUDE, GLOB_GEOJSON, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TS_SRC_EXT, GLOB_YAML };
16503
16624
  }
@@ -16532,402 +16653,5 @@ declare const GLOB_EXCLUDE: string[];
16532
16653
  //#endregion
16533
16654
  //#region src/options.d.ts
16534
16655
  declare function defaultOptions(): OptionsConfig;
16535
- declare function normalizeOptions(options?: OptionsConfig): NormalizedOptionsConfig;
16536
- //#endregion
16537
- //#region src/plugins.d.ts
16538
- declare function importPluginReact(): Promise<{
16539
- pluginReact: {
16540
- deprecatedRules: Partial<{
16541
- 'boolean-prop-naming': import("eslint").Rule.RuleModule;
16542
- 'button-has-type': import("eslint").Rule.RuleModule;
16543
- 'checked-requires-onchange-or-readonly': import("eslint").Rule.RuleModule;
16544
- 'default-props-match-prop-types': import("eslint").Rule.RuleModule;
16545
- 'destructuring-assignment': import("eslint").Rule.RuleModule;
16546
- 'display-name': import("eslint").Rule.RuleModule;
16547
- 'forbid-component-props': import("eslint").Rule.RuleModule;
16548
- 'forbid-dom-props': import("eslint").Rule.RuleModule;
16549
- 'forbid-elements': import("eslint").Rule.RuleModule;
16550
- 'forbid-foreign-prop-types': import("eslint").Rule.RuleModule;
16551
- 'forbid-prop-types': import("eslint").Rule.RuleModule;
16552
- 'forward-ref-uses-ref': import("eslint").Rule.RuleModule;
16553
- 'function-component-definition': import("eslint").Rule.RuleModule;
16554
- 'hook-use-state': import("eslint").Rule.RuleModule;
16555
- 'iframe-missing-sandbox': import("eslint").Rule.RuleModule;
16556
- 'jsx-boolean-value': import("eslint").Rule.RuleModule;
16557
- 'jsx-child-element-spacing': import("eslint").Rule.RuleModule;
16558
- 'jsx-closing-bracket-location': import("eslint").Rule.RuleModule;
16559
- 'jsx-closing-tag-location': import("eslint").Rule.RuleModule;
16560
- 'jsx-curly-spacing': import("eslint").Rule.RuleModule;
16561
- 'jsx-curly-newline': import("eslint").Rule.RuleModule;
16562
- 'jsx-equals-spacing': import("eslint").Rule.RuleModule;
16563
- 'jsx-filename-extension': import("eslint").Rule.RuleModule;
16564
- 'jsx-first-prop-new-line': import("eslint").Rule.RuleModule;
16565
- 'jsx-handler-names': import("eslint").Rule.RuleModule;
16566
- 'jsx-indent': import("eslint").Rule.RuleModule;
16567
- 'jsx-indent-props': import("eslint").Rule.RuleModule;
16568
- 'jsx-key': import("eslint").Rule.RuleModule;
16569
- 'jsx-max-depth': import("eslint").Rule.RuleModule;
16570
- 'jsx-max-props-per-line': import("eslint").Rule.RuleModule;
16571
- 'jsx-newline': import("eslint").Rule.RuleModule;
16572
- 'jsx-no-bind': import("eslint").Rule.RuleModule;
16573
- 'jsx-no-comment-textnodes': import("eslint").Rule.RuleModule;
16574
- 'jsx-no-constructed-context-values': import("eslint").Rule.RuleModule;
16575
- 'jsx-no-duplicate-props': import("eslint").Rule.RuleModule;
16576
- 'jsx-no-leaked-render': import("eslint").Rule.RuleModule;
16577
- 'jsx-no-literals': import("eslint").Rule.RuleModule;
16578
- 'jsx-no-script-url': import("eslint").Rule.RuleModule;
16579
- 'jsx-no-target-blank': import("eslint").Rule.RuleModule;
16580
- 'jsx-no-useless-fragment': import("eslint").Rule.RuleModule;
16581
- 'jsx-one-expression-per-line': import("eslint").Rule.RuleModule;
16582
- 'jsx-no-undef': import("eslint").Rule.RuleModule;
16583
- 'jsx-curly-brace-presence': import("eslint").Rule.RuleModule;
16584
- 'jsx-pascal-case': import("eslint").Rule.RuleModule;
16585
- 'jsx-fragments': import("eslint").Rule.RuleModule;
16586
- 'jsx-props-no-multi-spaces': import("eslint").Rule.RuleModule;
16587
- 'jsx-props-no-spreading': import("eslint").Rule.RuleModule;
16588
- 'jsx-props-no-spread-multi': import("eslint").Rule.RuleModule;
16589
- 'jsx-sort-default-props': import("eslint").Rule.RuleModule;
16590
- 'jsx-sort-props': import("eslint").Rule.RuleModule;
16591
- 'jsx-space-before-closing': import("eslint").Rule.RuleModule;
16592
- 'jsx-tag-spacing': import("eslint").Rule.RuleModule;
16593
- 'jsx-uses-react': import("eslint").Rule.RuleModule;
16594
- 'jsx-uses-vars': import("eslint").Rule.RuleModule;
16595
- 'jsx-wrap-multilines': import("eslint").Rule.RuleModule;
16596
- 'no-invalid-html-attribute': import("eslint").Rule.RuleModule;
16597
- 'no-access-state-in-setstate': import("eslint").Rule.RuleModule;
16598
- 'no-adjacent-inline-elements': import("eslint").Rule.RuleModule;
16599
- 'no-array-index-key': import("eslint").Rule.RuleModule;
16600
- 'no-arrow-function-lifecycle': import("eslint").Rule.RuleModule;
16601
- 'no-children-prop': import("eslint").Rule.RuleModule;
16602
- 'no-danger': import("eslint").Rule.RuleModule;
16603
- 'no-danger-with-children': import("eslint").Rule.RuleModule;
16604
- 'no-deprecated': import("eslint").Rule.RuleModule;
16605
- 'no-did-mount-set-state': import("eslint").Rule.RuleModule;
16606
- 'no-did-update-set-state': import("eslint").Rule.RuleModule;
16607
- 'no-direct-mutation-state': import("eslint").Rule.RuleModule;
16608
- 'no-find-dom-node': import("eslint").Rule.RuleModule;
16609
- 'no-is-mounted': import("eslint").Rule.RuleModule;
16610
- 'no-multi-comp': import("eslint").Rule.RuleModule;
16611
- 'no-namespace': import("eslint").Rule.RuleModule;
16612
- 'no-set-state': import("eslint").Rule.RuleModule;
16613
- 'no-string-refs': import("eslint").Rule.RuleModule;
16614
- 'no-redundant-should-component-update': import("eslint").Rule.RuleModule;
16615
- 'no-render-return-value': import("eslint").Rule.RuleModule;
16616
- 'no-this-in-sfc': import("eslint").Rule.RuleModule;
16617
- 'no-typos': import("eslint").Rule.RuleModule;
16618
- 'no-unescaped-entities': import("eslint").Rule.RuleModule;
16619
- 'no-unknown-property': import("eslint").Rule.RuleModule;
16620
- 'no-unsafe': import("eslint").Rule.RuleModule;
16621
- 'no-unstable-nested-components': import("eslint").Rule.RuleModule;
16622
- 'no-unused-class-component-methods': import("eslint").Rule.RuleModule;
16623
- 'no-unused-prop-types': import("eslint").Rule.RuleModule;
16624
- 'no-unused-state': import("eslint").Rule.RuleModule;
16625
- 'no-object-type-as-default-prop': import("eslint").Rule.RuleModule;
16626
- 'no-will-update-set-state': import("eslint").Rule.RuleModule;
16627
- 'prefer-es6-class': import("eslint").Rule.RuleModule;
16628
- 'prefer-exact-props': import("eslint").Rule.RuleModule;
16629
- 'prefer-read-only-props': import("eslint").Rule.RuleModule;
16630
- 'prefer-stateless-function': import("eslint").Rule.RuleModule;
16631
- 'prop-types': import("eslint").Rule.RuleModule;
16632
- 'react-in-jsx-scope': import("eslint").Rule.RuleModule;
16633
- 'require-default-props': import("eslint").Rule.RuleModule;
16634
- 'require-optimization': import("eslint").Rule.RuleModule;
16635
- 'require-render-return': import("eslint").Rule.RuleModule;
16636
- 'self-closing-comp': import("eslint").Rule.RuleModule;
16637
- 'sort-comp': import("eslint").Rule.RuleModule;
16638
- 'sort-default-props': import("eslint").Rule.RuleModule;
16639
- 'sort-prop-types': import("eslint").Rule.RuleModule;
16640
- 'state-in-constructor': import("eslint").Rule.RuleModule;
16641
- 'static-property-placement': import("eslint").Rule.RuleModule;
16642
- 'style-prop-object': import("eslint").Rule.RuleModule;
16643
- 'void-dom-elements-no-children': import("eslint").Rule.RuleModule;
16644
- }>;
16645
- rules: {
16646
- 'boolean-prop-naming': import("eslint").Rule.RuleModule;
16647
- 'button-has-type': import("eslint").Rule.RuleModule;
16648
- 'checked-requires-onchange-or-readonly': import("eslint").Rule.RuleModule;
16649
- 'default-props-match-prop-types': import("eslint").Rule.RuleModule;
16650
- 'destructuring-assignment': import("eslint").Rule.RuleModule;
16651
- 'display-name': import("eslint").Rule.RuleModule;
16652
- 'forbid-component-props': import("eslint").Rule.RuleModule;
16653
- 'forbid-dom-props': import("eslint").Rule.RuleModule;
16654
- 'forbid-elements': import("eslint").Rule.RuleModule;
16655
- 'forbid-foreign-prop-types': import("eslint").Rule.RuleModule;
16656
- 'forbid-prop-types': import("eslint").Rule.RuleModule;
16657
- 'forward-ref-uses-ref': import("eslint").Rule.RuleModule;
16658
- 'function-component-definition': import("eslint").Rule.RuleModule;
16659
- 'hook-use-state': import("eslint").Rule.RuleModule;
16660
- 'iframe-missing-sandbox': import("eslint").Rule.RuleModule;
16661
- 'jsx-boolean-value': import("eslint").Rule.RuleModule;
16662
- 'jsx-child-element-spacing': import("eslint").Rule.RuleModule;
16663
- 'jsx-closing-bracket-location': import("eslint").Rule.RuleModule;
16664
- 'jsx-closing-tag-location': import("eslint").Rule.RuleModule;
16665
- 'jsx-curly-spacing': import("eslint").Rule.RuleModule;
16666
- 'jsx-curly-newline': import("eslint").Rule.RuleModule;
16667
- 'jsx-equals-spacing': import("eslint").Rule.RuleModule;
16668
- 'jsx-filename-extension': import("eslint").Rule.RuleModule;
16669
- 'jsx-first-prop-new-line': import("eslint").Rule.RuleModule;
16670
- 'jsx-handler-names': import("eslint").Rule.RuleModule;
16671
- 'jsx-indent': import("eslint").Rule.RuleModule;
16672
- 'jsx-indent-props': import("eslint").Rule.RuleModule;
16673
- 'jsx-key': import("eslint").Rule.RuleModule;
16674
- 'jsx-max-depth': import("eslint").Rule.RuleModule;
16675
- 'jsx-max-props-per-line': import("eslint").Rule.RuleModule;
16676
- 'jsx-newline': import("eslint").Rule.RuleModule;
16677
- 'jsx-no-bind': import("eslint").Rule.RuleModule;
16678
- 'jsx-no-comment-textnodes': import("eslint").Rule.RuleModule;
16679
- 'jsx-no-constructed-context-values': import("eslint").Rule.RuleModule;
16680
- 'jsx-no-duplicate-props': import("eslint").Rule.RuleModule;
16681
- 'jsx-no-leaked-render': import("eslint").Rule.RuleModule;
16682
- 'jsx-no-literals': import("eslint").Rule.RuleModule;
16683
- 'jsx-no-script-url': import("eslint").Rule.RuleModule;
16684
- 'jsx-no-target-blank': import("eslint").Rule.RuleModule;
16685
- 'jsx-no-useless-fragment': import("eslint").Rule.RuleModule;
16686
- 'jsx-one-expression-per-line': import("eslint").Rule.RuleModule;
16687
- 'jsx-no-undef': import("eslint").Rule.RuleModule;
16688
- 'jsx-curly-brace-presence': import("eslint").Rule.RuleModule;
16689
- 'jsx-pascal-case': import("eslint").Rule.RuleModule;
16690
- 'jsx-fragments': import("eslint").Rule.RuleModule;
16691
- 'jsx-props-no-multi-spaces': import("eslint").Rule.RuleModule;
16692
- 'jsx-props-no-spreading': import("eslint").Rule.RuleModule;
16693
- 'jsx-props-no-spread-multi': import("eslint").Rule.RuleModule;
16694
- 'jsx-sort-default-props': import("eslint").Rule.RuleModule;
16695
- 'jsx-sort-props': import("eslint").Rule.RuleModule;
16696
- 'jsx-space-before-closing': import("eslint").Rule.RuleModule;
16697
- 'jsx-tag-spacing': import("eslint").Rule.RuleModule;
16698
- 'jsx-uses-react': import("eslint").Rule.RuleModule;
16699
- 'jsx-uses-vars': import("eslint").Rule.RuleModule;
16700
- 'jsx-wrap-multilines': import("eslint").Rule.RuleModule;
16701
- 'no-invalid-html-attribute': import("eslint").Rule.RuleModule;
16702
- 'no-access-state-in-setstate': import("eslint").Rule.RuleModule;
16703
- 'no-adjacent-inline-elements': import("eslint").Rule.RuleModule;
16704
- 'no-array-index-key': import("eslint").Rule.RuleModule;
16705
- 'no-arrow-function-lifecycle': import("eslint").Rule.RuleModule;
16706
- 'no-children-prop': import("eslint").Rule.RuleModule;
16707
- 'no-danger': import("eslint").Rule.RuleModule;
16708
- 'no-danger-with-children': import("eslint").Rule.RuleModule;
16709
- 'no-deprecated': import("eslint").Rule.RuleModule;
16710
- 'no-did-mount-set-state': import("eslint").Rule.RuleModule;
16711
- 'no-did-update-set-state': import("eslint").Rule.RuleModule;
16712
- 'no-direct-mutation-state': import("eslint").Rule.RuleModule;
16713
- 'no-find-dom-node': import("eslint").Rule.RuleModule;
16714
- 'no-is-mounted': import("eslint").Rule.RuleModule;
16715
- 'no-multi-comp': import("eslint").Rule.RuleModule;
16716
- 'no-namespace': import("eslint").Rule.RuleModule;
16717
- 'no-set-state': import("eslint").Rule.RuleModule;
16718
- 'no-string-refs': import("eslint").Rule.RuleModule;
16719
- 'no-redundant-should-component-update': import("eslint").Rule.RuleModule;
16720
- 'no-render-return-value': import("eslint").Rule.RuleModule;
16721
- 'no-this-in-sfc': import("eslint").Rule.RuleModule;
16722
- 'no-typos': import("eslint").Rule.RuleModule;
16723
- 'no-unescaped-entities': import("eslint").Rule.RuleModule;
16724
- 'no-unknown-property': import("eslint").Rule.RuleModule;
16725
- 'no-unsafe': import("eslint").Rule.RuleModule;
16726
- 'no-unstable-nested-components': import("eslint").Rule.RuleModule;
16727
- 'no-unused-class-component-methods': import("eslint").Rule.RuleModule;
16728
- 'no-unused-prop-types': import("eslint").Rule.RuleModule;
16729
- 'no-unused-state': import("eslint").Rule.RuleModule;
16730
- 'no-object-type-as-default-prop': import("eslint").Rule.RuleModule;
16731
- 'no-will-update-set-state': import("eslint").Rule.RuleModule;
16732
- 'prefer-es6-class': import("eslint").Rule.RuleModule;
16733
- 'prefer-exact-props': import("eslint").Rule.RuleModule;
16734
- 'prefer-read-only-props': import("eslint").Rule.RuleModule;
16735
- 'prefer-stateless-function': import("eslint").Rule.RuleModule;
16736
- 'prop-types': import("eslint").Rule.RuleModule;
16737
- 'react-in-jsx-scope': import("eslint").Rule.RuleModule;
16738
- 'require-default-props': import("eslint").Rule.RuleModule;
16739
- 'require-optimization': import("eslint").Rule.RuleModule;
16740
- 'require-render-return': import("eslint").Rule.RuleModule;
16741
- 'self-closing-comp': import("eslint").Rule.RuleModule;
16742
- 'sort-comp': import("eslint").Rule.RuleModule;
16743
- 'sort-default-props': import("eslint").Rule.RuleModule;
16744
- 'sort-prop-types': import("eslint").Rule.RuleModule;
16745
- 'state-in-constructor': import("eslint").Rule.RuleModule;
16746
- 'static-property-placement': import("eslint").Rule.RuleModule;
16747
- 'style-prop-object': import("eslint").Rule.RuleModule;
16748
- 'void-dom-elements-no-children': import("eslint").Rule.RuleModule;
16749
- };
16750
- configs: {
16751
- recommended: {
16752
- plugins: ["react"];
16753
- parserOptions: {
16754
- ecmaFeatures: {
16755
- jsx: boolean;
16756
- };
16757
- };
16758
- rules: {
16759
- "react/display-name": 2;
16760
- "react/jsx-key": 2;
16761
- "react/jsx-no-comment-textnodes": 2;
16762
- "react/jsx-no-duplicate-props": 2;
16763
- "react/jsx-no-target-blank": 2;
16764
- "react/jsx-no-undef": 2;
16765
- "react/jsx-uses-react": 2;
16766
- "react/jsx-uses-vars": 2;
16767
- "react/no-children-prop": 2;
16768
- "react/no-danger-with-children": 2;
16769
- "react/no-deprecated": 2;
16770
- "react/no-direct-mutation-state": 2;
16771
- "react/no-find-dom-node": 2;
16772
- "react/no-is-mounted": 2;
16773
- "react/no-render-return-value": 2;
16774
- "react/no-string-refs": 2;
16775
- "react/no-unescaped-entities": 2;
16776
- "react/no-unknown-property": 2;
16777
- "react/no-unsafe": 0;
16778
- "react/prop-types": 2;
16779
- "react/react-in-jsx-scope": 2;
16780
- "react/require-render-return": 2;
16781
- };
16782
- };
16783
- all: {
16784
- plugins: ["react"];
16785
- parserOptions: {
16786
- ecmaFeatures: {
16787
- jsx: boolean;
16788
- };
16789
- };
16790
- rules: Record<"boolean-prop-naming" | "button-has-type" | "checked-requires-onchange-or-readonly" | "default-props-match-prop-types" | "destructuring-assignment" | "display-name" | "forbid-component-props" | "forbid-dom-props" | "forbid-elements" | "forbid-foreign-prop-types" | "forbid-prop-types" | "prop-types" | "forward-ref-uses-ref" | "function-component-definition" | "hook-use-state" | "iframe-missing-sandbox" | "jsx-boolean-value" | "jsx-child-element-spacing" | "jsx-closing-bracket-location" | "jsx-closing-tag-location" | "jsx-curly-spacing" | "jsx-curly-newline" | "jsx-equals-spacing" | "jsx-filename-extension" | "jsx-first-prop-new-line" | "jsx-handler-names" | "jsx-indent" | "jsx-indent-props" | "jsx-key" | "jsx-max-depth" | "jsx-max-props-per-line" | "jsx-newline" | "jsx-no-bind" | "jsx-no-comment-textnodes" | "jsx-no-constructed-context-values" | "jsx-no-duplicate-props" | "jsx-no-leaked-render" | "jsx-no-literals" | "jsx-no-script-url" | "jsx-no-target-blank" | "jsx-no-useless-fragment" | "jsx-one-expression-per-line" | "jsx-no-undef" | "jsx-curly-brace-presence" | "jsx-pascal-case" | "jsx-fragments" | "jsx-props-no-multi-spaces" | "jsx-props-no-spreading" | "jsx-props-no-spread-multi" | "sort-default-props" | "jsx-sort-default-props" | "jsx-sort-props" | "jsx-tag-spacing" | "jsx-space-before-closing" | "jsx-uses-react" | "jsx-uses-vars" | "jsx-wrap-multilines" | "no-invalid-html-attribute" | "no-access-state-in-setstate" | "no-adjacent-inline-elements" | "no-array-index-key" | "no-arrow-function-lifecycle" | "no-children-prop" | "no-danger" | "no-danger-with-children" | "no-deprecated" | "no-direct-mutation-state" | "no-find-dom-node" | "no-is-mounted" | "no-multi-comp" | "no-namespace" | "no-set-state" | "no-string-refs" | "no-redundant-should-component-update" | "no-render-return-value" | "no-this-in-sfc" | "no-typos" | "no-unescaped-entities" | "no-unknown-property" | "no-unsafe" | "no-unstable-nested-components" | "no-unused-class-component-methods" | "no-unused-prop-types" | "no-unused-state" | "no-object-type-as-default-prop" | "prefer-es6-class" | "prefer-exact-props" | "prefer-read-only-props" | "prefer-stateless-function" | "react-in-jsx-scope" | "require-default-props" | "require-optimization" | "require-render-return" | "self-closing-comp" | "sort-comp" | "sort-prop-types" | "state-in-constructor" | "static-property-placement" | "style-prop-object" | "void-dom-elements-no-children" | "no-did-mount-set-state" | "no-did-update-set-state" | "no-will-update-set-state", 2 | "error">;
16791
- };
16792
- 'jsx-runtime': {
16793
- plugins: ["react"];
16794
- parserOptions: {
16795
- ecmaFeatures: {
16796
- jsx: boolean;
16797
- };
16798
- jsxPragma: any;
16799
- };
16800
- rules: {
16801
- "react/react-in-jsx-scope": 0;
16802
- "react/jsx-uses-react": 0;
16803
- };
16804
- };
16805
- flat: Record<string, import("eslint-plugin-react").ReactFlatConfig>;
16806
- } & {
16807
- flat: Record<string, import("eslint-plugin-react").ReactFlatConfig>;
16808
- };
16809
- };
16810
- }>;
16811
- declare function importPluginReactRefresh(): Promise<{
16812
- pluginReactRefresh: {
16813
- rules: {
16814
- "only-export-components": any;
16815
- };
16816
- configs: {
16817
- recommended: {
16818
- name: string;
16819
- plugins: {
16820
- "react-refresh": {
16821
- rules: {
16822
- "only-export-components": any;
16823
- };
16824
- };
16825
- };
16826
- rules: {
16827
- "only-export-components": any;
16828
- };
16829
- };
16830
- vite: {
16831
- name: string;
16832
- plugins: {
16833
- "react-refresh": {
16834
- rules: {
16835
- "only-export-components": any;
16836
- };
16837
- };
16838
- };
16839
- rules: {
16840
- "only-export-components": any;
16841
- };
16842
- };
16843
- next: {
16844
- name: string;
16845
- plugins: {
16846
- "react-refresh": {
16847
- rules: {
16848
- "only-export-components": any;
16849
- };
16850
- };
16851
- };
16852
- rules: {
16853
- "only-export-components": any;
16854
- };
16855
- };
16856
- };
16857
- };
16858
- }>;
16859
- declare function importPluginMarkdown(): Promise<{
16860
- pluginMarkdown: typeof import("@eslint/markdown").default;
16861
- }>;
16862
- declare function importPluginStylistic(): Promise<{
16863
- pluginStylistic: {
16864
- rules: import("@stylistic/eslint-plugin").Rules;
16865
- configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
16866
- };
16867
- }>;
16868
- //#endregion
16869
- //#region src/presets.d.ts
16870
- declare const jsseReact: DefineConfig;
16871
- //#endregion
16872
- //#region src/utils.d.ts
16873
- /**
16874
- * Combine array and non-array configs into a single array.
16875
- * @param configs configs to combine and flatten
16876
- * @returns combined configs as a flattened array
16877
- */
16878
- declare function combineAsync<T>(...configs: Awaitable<T | T[]>[]): Promise<T[]>;
16879
- /**
16880
- * Combine array and non-array configs into a single array.
16881
- * @param configs configs to combine
16882
- * @returns combined configs as an array
16883
- */
16884
- declare function combine(...configs: Awaitable<Config | Config[]>[]): Promise<Config[]>;
16885
- declare function renameRules<TRule = unknown>(rules: Record<string, TRule>, from: string, to: string): Record<string, TRule>;
16886
- declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
16887
- default: infer U;
16888
- } ? U : T>;
16889
- declare function isCI(): boolean;
16890
- declare function isInEditor(): boolean;
16891
- /**
16892
- * Make an array of strings unique maintaining order.
16893
- * @param strings strings to make unique
16894
- * @returns unique strings
16895
- */
16896
- declare function uniqueStrings(...strings: (string | string[])[]): string[];
16897
- type ScopeTypeScriptRulesOptions = {
16898
- files: string[];
16899
- rulePrefixes: string[];
16900
- };
16901
- declare function scopeTypeScriptRules<T extends Config>(configs: T[], options: ScopeTypeScriptRulesOptions): T[];
16902
- declare const parserPlain: {
16903
- meta: {
16904
- name: string;
16905
- };
16906
- parseForESLint: (code: string) => {
16907
- ast: {
16908
- body: never[];
16909
- comments: never[];
16910
- loc: {
16911
- end: number;
16912
- start: number;
16913
- };
16914
- range: number[];
16915
- tokens: never[];
16916
- type: string;
16917
- };
16918
- scopeManager: undefined;
16919
- services: {
16920
- isPlain: boolean;
16921
- };
16922
- visitorKeys: {
16923
- Program: never[];
16924
- };
16925
- };
16926
- };
16927
- declare function turnOffRules(configs: Config[], off: string[], debug?: boolean): Config[];
16928
- declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, level: Linter.RuleSeverity): Linter.RuleEntry<any>;
16929
- declare function error2warn<T extends Config>(configs: T[]): T[];
16930
- declare function warn2error<T extends Config>(configs: T[]): T[];
16931
- declare function replaceTypescriptEslintPrefixInplace<T>(items: Record<string, T>, tsPrefix: string): void;
16932
16656
  //#endregion
16933
- export { type Awaitable, type Config, type EslintConfigFn, type JavascriptRuleOptions, type LanguageOptions, type NormalizedOptionsConfig, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type RenamePrefix, type RuleName, type RulesRecord, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItemWithId, type TypescriptConfigRules, type UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defaultOptions, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, normalizeOptions, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginE18e, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefixInplace, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
16657
+ export { type Awaitable, type Config, type EslintConfigFn, type JavascriptRuleOptions, type LanguageOptions, type NormalizedOptionsConfig, type OptionsAntfu, type OptionsCommand, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsDeMorgan, type OptionsE18e, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsJavascript, type OptionsJsdoc, type OptionsJsonc, type OptionsMarkdown, type OptionsN, type OptionsOverrides, type OptionsPnpm, type OptionsPrefix, type OptionsReact, type OptionsReactConfig, type OptionsSortTsconfig, type OptionsStylistic, type OptionsTest, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsYaml, type RenamePrefix, type RuleName, type RulesRecord, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItemWithId, type TypescriptConfigRules, type UnPromise, VERSION, jsse as default, jsse, defaultOptions, defineConfig, globs_d_exports as globs };