@2digits/eslint-config 5.8.1 → 5.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -180,7 +180,7 @@ interface RuleOptions {
180
180
  * Transforms the negation of a disjunction !(A || B) into the equivalent !A && !B according to De Morgan’s law
181
181
  * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
182
182
  */
183
- 'boolean/no-negated-disjunction'?: Linter.RuleEntry<[]>;
183
+ 'boolean/no-negated-disjunction'?: Linter.RuleEntry<BooleanNoNegatedDisjunction>;
184
184
  /**
185
185
  * Enforce consistent brace style for blocks
186
186
  * @see https://eslint.org/docs/latest/rules/brace-style
@@ -7144,6 +7144,11 @@ Backward pagination arguments
7144
7144
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
7145
7145
  */
7146
7146
  'ts/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
7147
+ /**
7148
+ * Disallow assigning non-enum values to enum typed locations
7149
+ * @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
7150
+ */
7151
+ 'ts/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
7147
7152
  /**
7148
7153
  * Disallow comparing an enum value with a non-enum value
7149
7154
  * @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
@@ -7425,1841 +7430,1992 @@ Backward pagination arguments
7425
7430
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7426
7431
  /**
7427
7432
  * Prefer better DOM traversal APIs.
7428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
7433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
7429
7434
  */
7430
7435
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7431
7436
  /**
7432
7437
  * Removed. Prefer `eslint-plugin-regexp`
7433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7434
7439
  * @deprecated
7435
7440
  */
7436
7441
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7437
7442
  /**
7438
7443
  * Enforce a specific parameter name in catch clauses.
7439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
7444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
7440
7445
  */
7441
7446
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7442
7447
  /**
7443
7448
  * Enforce consistent class references in static methods.
7444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
7449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
7445
7450
  */
7446
7451
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7452
+ /**
7453
+ * Enforce consistent spacing before and after commas in JSON.
7454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
7455
+ */
7456
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
7447
7457
  /**
7448
7458
  * Enforce better comment content.
7449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
7459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
7450
7460
  */
7451
7461
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7452
7462
  /**
7453
7463
  * Enforce a consistent return style for multiline arrow function bodies.
7454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
7464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
7455
7465
  */
7456
7466
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7457
7467
  /**
7458
7468
  * Enforce consistent assertion style with `node:assert`.
7459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
7469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
7460
7470
  */
7461
7471
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7462
7472
  /**
7463
7473
  * Enforce consistent naming for boolean names.
7464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
7474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
7465
7475
  */
7466
7476
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7467
7477
  /**
7468
7478
  * Enforce consistent class member order.
7469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
7479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
7470
7480
  */
7471
7481
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7472
7482
  /**
7473
7483
  * Enforce consistent spelling of compound words in identifiers.
7474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
7484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
7475
7485
  */
7476
7486
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7477
7487
  /**
7478
7488
  * Enforce consistent conditional object spread style.
7479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
7489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
7480
7490
  */
7481
7491
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7482
7492
  /**
7483
7493
  * Prefer passing `Date` directly to the constructor when cloning.
7484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
7494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
7485
7495
  */
7486
7496
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7487
7497
  /**
7488
7498
  * Use destructured variables over properties.
7489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
7499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
7490
7500
  */
7491
7501
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7492
7502
  /**
7493
7503
  * Prefer consistent types when spreading a ternary in an array literal.
7494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
7504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
7495
7505
  */
7496
7506
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7497
7507
  /**
7498
7508
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
7509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
7500
7510
  */
7501
7511
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7502
7512
  /**
7503
7513
  * Enforce consistent decorator position on exported classes.
7504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
7514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
7505
7515
  */
7506
7516
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7507
7517
  /**
7508
7518
  * Move function definitions to the highest possible scope.
7509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
7510
7520
  */
7511
7521
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7512
7522
  /**
7513
7523
  * Enforce function syntax by role.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
7515
7525
  */
7516
7526
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7517
7527
  /**
7518
7528
  * Enforce consistent JSON file reads before `JSON.parse()`.
7519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
7520
7530
  */
7521
7531
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7522
7532
  /**
7523
7533
  * Enforce consistent optional chaining for same-base member access.
7524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
7525
7535
  */
7526
7536
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7527
7537
  /**
7528
7538
  * Enforce consistent style for escaping `${` in template literals.
7529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
7530
7540
  */
7531
7541
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7532
7542
  /**
7533
7543
  * Enforce consistent labels on tuple type elements.
7534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
7535
7545
  */
7536
7546
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7537
7547
  /**
7538
7548
  * Enforce correct `Error` subclassing.
7539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
7540
7550
  */
7541
7551
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7542
7552
  /**
7543
7553
  * Enforce consistent default export declarations.
7544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
7545
7555
  */
7546
7556
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7547
7557
  /**
7548
7558
  * Enforce consistent style for DOM element dataset access.
7549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
7550
7560
  */
7551
7561
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7552
7562
  /**
7553
7563
  * Enforce no spaces between braces.
7554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
7555
7565
  */
7556
7566
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7557
7567
  /**
7558
7568
  * Enforce passing a `message` value when creating a built-in error.
7559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
7560
7570
  */
7561
7571
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7562
7572
  /**
7563
7573
  * Require escape sequences to use uppercase or lowercase values.
7564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
7565
7575
  */
7566
7576
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7567
7577
  /**
7568
7578
  * Add expiration conditions to TODO comments.
7569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
7570
7580
  */
7571
7581
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7572
7582
  /**
7573
7583
  * Enforce explicitly comparing the `length` or `size` property of a value.
7574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
7575
7585
  */
7576
7586
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7577
7587
  /**
7578
7588
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
7589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
7580
7590
  */
7581
7591
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7582
7592
  /**
7583
7593
  * Enforce a case style for filenames and directory names.
7584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
7594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
7585
7595
  */
7586
7596
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7587
7597
  /**
7588
7598
  * Require identifiers to match a specified regular expression.
7589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
7599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
7590
7600
  */
7591
7601
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7592
7602
  /**
7593
7603
  * Enforce specific import styles per module.
7594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
7604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
7595
7605
  */
7596
7606
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7607
+ /**
7608
+ * Enforce consistent indentation in JSON and CSS.
7609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
7610
+ */
7611
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
7597
7612
  /**
7598
7613
  * Prevent usage of variables from outside the scope of isolated functions.
7599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
7614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
7600
7615
  */
7601
7616
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7602
7617
  /**
7603
7618
  * Enforce a consistent style for optional loop sources.
7604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
7619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
7605
7620
  */
7606
7621
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7622
+ /**
7623
+ * Enforce a case style for data keys.
7624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
7625
+ */
7626
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
7607
7627
  /**
7608
7628
  * Require or disallow logical assignment operator shorthand
7609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
7629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
7610
7630
  */
7611
7631
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7612
7632
  /**
7613
7633
  * Limit the depth of nested calls.
7614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
7634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
7615
7635
  */
7616
7636
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7617
7637
  /**
7618
7638
  * Enforce replacements for variable, property, and filenames.
7619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
7639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
7620
7640
  */
7621
7641
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7622
7642
  /**
7623
7643
  * Enforce correct use of `new` for builtin constructors.
7624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
7644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
7625
7645
  */
7626
7646
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7627
7647
  /**
7628
7648
  * Enforce specifying rules to disable in `eslint-disable` comments.
7629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
7649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
7630
7650
  */
7631
7651
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7632
7652
  /**
7633
7653
  * Disallow recursive access to `this` within getters and setters.
7634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
7654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
7635
7655
  */
7636
7656
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7637
7657
  /**
7638
7658
  * Disallow bitwise operators where a logical operator was likely intended.
7639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
7659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
7640
7660
  */
7641
7661
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7642
7662
  /**
7643
7663
  * Disallow anonymous functions and classes as the default export.
7644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
7664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
7645
7665
  */
7646
7666
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7647
7667
  /**
7648
7668
  * Prevent passing a function reference directly to iterator methods.
7649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
7669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
7650
7670
  */
7651
7671
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7652
7672
  /**
7653
7673
  * Disallow array accumulation with `Array#concat()` in loops.
7654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
7674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
7655
7675
  */
7656
7676
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7657
7677
  /**
7658
7678
  * Disallow using reference values as `Array#fill()` values.
7659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
7679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
7660
7680
  */
7661
7681
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7662
7682
  /**
7663
7683
  * Disallow `.fill()` after `Array.from({length: …})`.
7664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
7684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
7665
7685
  */
7666
7686
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7667
7687
  /**
7668
7688
  * Disallow front-of-array mutation.
7669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
7689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
7670
7690
  */
7671
7691
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7672
7692
  /**
7673
7693
  * Disallow using the `this` argument in array methods.
7674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
7694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
7675
7695
  */
7676
7696
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7677
7697
  /**
7678
7698
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7680
7700
  * @deprecated
7681
7701
  */
7682
7702
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7683
7703
  /**
7684
7704
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
7705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
7686
7706
  */
7687
7707
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7688
7708
  /**
7689
7709
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
7710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
7691
7711
  */
7692
7712
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7693
7713
  /**
7694
7714
  * Prefer `Array#toSorted()` over `Array#sort()`.
7695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
7715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
7696
7716
  */
7697
7717
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7698
7718
  /**
7699
7719
  * Disallow sorting arrays to get the minimum or maximum value.
7700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
7720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
7701
7721
  */
7702
7722
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7703
7723
  /**
7704
7724
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
7725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
7706
7726
  */
7707
7727
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7708
7728
  /**
7709
- * Disallow asterisk prefixes in documentation comments.
7710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7729
+ * Disallow asterisk prefixes in multiline comments.
7730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7711
7731
  */
7712
7732
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7713
7733
  /**
7714
7734
  * Disallow asynchronous callbacks in synchronous iterator helpers.
7715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
7716
7736
  */
7717
7737
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
7718
7738
  /**
7719
7739
  * Disallow async functions as `Promise#finally()` callbacks.
7720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
7740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
7721
7741
  */
7722
7742
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7723
7743
  /**
7724
7744
  * Disallow member access from await expression.
7725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
7745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
7726
7746
  */
7727
7747
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7728
7748
  /**
7729
7749
  * Disallow using `await` in `Promise` method parameters.
7730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
7750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
7731
7751
  */
7732
7752
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7733
7753
  /**
7734
7754
  * Disallow barrel files.
7735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
7755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
7736
7756
  */
7737
7757
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7738
7758
  /**
7739
7759
  * Disallow unnecessary `Blob` to `File` conversion.
7740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
7760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
7741
7761
  */
7742
7762
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7743
7763
  /**
7744
7764
  * Disallow boolean-returning sort comparators.
7745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
7765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
7746
7766
  */
7747
7767
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7748
7768
  /**
7749
7769
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
7750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
7770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
7751
7771
  */
7752
7772
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7753
7773
  /**
7754
7774
  * Prefer drawing canvases directly instead of converting them to images.
7755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
7775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
7756
7776
  */
7757
7777
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7758
7778
  /**
7759
7779
  * Disallow chained comparisons such as `a < b < c`.
7760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
7780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
7761
7781
  */
7762
7782
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7763
7783
  /**
7764
7784
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
7785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
7766
7786
  */
7767
7787
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7768
7788
  /**
7769
7789
  * Disallow dynamic object property existence checks.
7770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
7790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
7771
7791
  */
7772
7792
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7793
+ /**
7794
+ * Disallow conflicting CSS query and HTML form constraints.
7795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
7796
+ */
7797
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
7773
7798
  /**
7774
7799
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
7800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
7776
7801
  */
7777
7802
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7778
7803
  /**
7779
7804
  * Disallow confusing uses of `Array#with()`.
7780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
7805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
7781
7806
  */
7782
7807
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7783
7808
  /**
7784
7809
  * Do not use leading/trailing space between `console.log` parameters.
7785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
7810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
7786
7811
  */
7787
7812
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7788
7813
  /**
7789
7814
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
7815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
7791
7816
  */
7792
7817
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7793
7818
  /**
7794
7819
  * Disallow declarations before conditional early exits when they are only used after the exit.
7795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
7820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
7796
7821
  */
7797
7822
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7798
7823
  /**
7799
- * Disallow deprecated CSS features.
7800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
7824
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
7825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7826
+ * @deprecated
7801
7827
  */
7802
- 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
7828
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
7803
7829
  /**
7804
7830
  * Do not use `document.cookie` directly.
7805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
7831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
7806
7832
  */
7807
7833
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7808
7834
  /**
7809
7835
  * Disallow two comparisons of the same operands that can be combined into one.
7810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
7836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
7811
7837
  */
7812
7838
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7813
7839
  /**
7814
- * Disallow duplicate CSS selectors.
7815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
7840
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
7841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7842
+ * @deprecated
7816
7843
  */
7817
7844
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
7818
7845
  /**
7819
- * Disallow duplicate font family names.
7820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
7846
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
7847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7848
+ * @deprecated
7821
7849
  */
7822
7850
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
7823
7851
  /**
7824
7852
  * Disallow duplicate adjacent branches in if chains.
7825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
7853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
7826
7854
  */
7827
7855
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7828
7856
  /**
7829
7857
  * Disallow adjacent duplicate operands in logical expressions.
7830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
7858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
7831
7859
  */
7832
7860
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7833
7861
  /**
7834
7862
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
7863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
7836
7864
  */
7837
7865
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7838
7866
  /**
7839
7867
  * Disallow duplicate values in `Set` constructor array literals.
7840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
7868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
7841
7869
  */
7842
7870
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7843
7871
  /**
7844
7872
  * Disallow empty files.
7845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
7873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
7846
7874
  */
7847
7875
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7876
+ /**
7877
+ * Disallow empty link text in Markdown.
7878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
7879
+ */
7880
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
7848
7881
  /**
7849
7882
  * Disallow assigning to built-in error properties.
7850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
7883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
7851
7884
  */
7852
7885
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7853
7886
  /**
7854
7887
  * Disallow exports in scripts.
7855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
7888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
7856
7889
  */
7857
7890
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7858
7891
  /**
7859
7892
  * Prefer `for…of` over the `forEach` method.
7860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
7893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
7861
7894
  */
7862
7895
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7863
7896
  /**
7864
7897
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
7898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
7866
7899
  */
7867
7900
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7868
7901
  /**
7869
7902
  * Disallow assigning properties on the global object.
7870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
7903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
7871
7904
  */
7872
7905
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7873
7906
  /**
7874
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7907
+ * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
7908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7876
7909
  * @deprecated
7877
7910
  */
7878
7911
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7879
7912
  /**
7880
7913
  * Disallow immediate mutation after variable assignment.
7881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
7914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
7882
7915
  */
7883
7916
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
7884
7917
  /**
7885
7918
  * Disallow impossible comparisons against `.length` or `.size`.
7886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
7919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
7887
7920
  */
7888
7921
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7922
+ /**
7923
+ * Disallow class accessors that hide an inherited getter or setter.
7924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
7925
+ */
7926
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
7889
7927
  /**
7890
7928
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
7929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
7892
7930
  */
7893
7931
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7894
7932
  /**
7895
7933
  * Disallow incorrect template literal interpolation syntax.
7896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7897
7935
  */
7898
7936
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7937
+ /**
7938
+ * Disallow ineffective CSP directives in `<meta>` elements.
7939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
7940
+ */
7941
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
7899
7942
  /**
7900
7943
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7902
7945
  * @deprecated
7903
7946
  */
7904
7947
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7905
7948
  /**
7906
7949
  * Disallow `instanceof` with built-in objects
7907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
7950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
7908
7951
  */
7909
7952
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7910
7953
  /**
7911
7954
  * Disallow calling functions and constructors with an invalid number of arguments.
7912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
7955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
7913
7956
  */
7914
7957
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7958
+ /**
7959
+ * Disallow invalid values for HTML boolean attributes.
7960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
7961
+ */
7962
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
7915
7963
  /**
7916
7964
  * Disallow comparing a single character from a string to a multi-character string.
7917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
7965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
7918
7966
  */
7919
7967
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7968
+ /**
7969
+ * Disallow invalid DOM tokens.
7970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
7971
+ */
7972
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
7920
7973
  /**
7921
7974
  * Disallow invalid options in `fetch()` and `new Request()`.
7922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
7975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
7923
7976
  */
7924
7977
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7925
7978
  /**
7926
7979
  * Disallow invalid `accept` values on file inputs.
7927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
7980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
7928
7981
  */
7929
7982
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7930
7983
  /**
7931
- * Disallow unknown media features and invalid values for known media features.
7932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
7984
+ * Disallow invalid subresource integrity metadata.
7985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
7986
+ */
7987
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
7988
+ /**
7989
+ * Disallow invalid or ignored Intl options.
7990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
7991
+ */
7992
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
7993
+ /**
7994
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
7995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
7996
+ * @deprecated
7933
7997
  */
7934
7998
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
7999
+ /**
8000
+ * Disallow invalid property descriptors.
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
8002
+ */
8003
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
7935
8004
  /**
7936
8005
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
7938
8007
  */
7939
8008
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
8009
+ /**
8010
+ * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
8011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
8012
+ */
8013
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
8014
+ /**
8015
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
8017
+ */
8018
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
8019
+ /**
8020
+ * Disallow statically known invalid Temporal arithmetic.
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
8022
+ */
8023
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
8024
+ /**
8025
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
8027
+ */
8028
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
7940
8029
  /**
7941
8030
  * Disallow invalid implementations of well-known symbol methods.
7942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7943
8032
  */
7944
8033
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
8034
+ /**
8035
+ * Disallow `javascript:` URLs in Markdown.
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
8037
+ */
8038
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
7945
8039
  /**
7946
8040
  * Disallow identifiers starting with `new` or `class`.
7947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
8041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
7948
8042
  */
7949
8043
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7950
8044
  /**
7951
8045
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
8046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
7953
8047
  */
7954
8048
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7955
8049
  /**
7956
8050
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
8051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
7958
8052
  */
7959
8053
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
8054
+ /**
8055
+ * Disallow empty lines at the beginning of a file.
8056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
8057
+ */
8058
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
7960
8059
  /**
7961
8060
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
8061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7963
8062
  * @deprecated
7964
8063
  */
7965
8064
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7966
8065
  /**
7967
8066
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
8067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
7969
8068
  */
7970
8069
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7971
8070
  /**
7972
8071
  * Disallow mutating a loop iterable during iteration.
7973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
7974
8073
  */
7975
8074
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
8075
+ /**
8076
+ * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
8078
+ */
8079
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
7976
8080
  /**
7977
8081
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
7979
8083
  */
7980
8084
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7981
8085
  /**
7982
8086
  * Disallow manually wrapped comments.
7983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
7984
8088
  */
7985
8089
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7986
8090
  /**
7987
8091
  * Disallow checking a Map key before accessing a different key.
7988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
7989
8093
  */
7990
8094
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7991
8095
  /**
7992
8096
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
7994
8098
  */
7995
8099
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7996
8100
  /**
7997
8101
  * Disallow references to missing local resources.
7998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
7999
8103
  */
8000
8104
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
8001
8105
  /**
8002
8106
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
8003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8004
8108
  */
8005
8109
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
8006
8110
  /**
8007
8111
  * Disallow named usage of default import and export.
8008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
8009
8113
  */
8010
8114
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
8011
8115
  /**
8012
8116
  * Disallow negated array predicate calls.
8013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
8014
8118
  */
8015
8119
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
8016
8120
  /**
8017
8121
  * Disallow negated comparisons.
8018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
8019
8123
  */
8020
8124
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
8021
8125
  /**
8022
8126
  * Disallow negated conditions.
8023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
8024
8128
  */
8025
8129
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
8026
8130
  /**
8027
8131
  * Disallow negated expression in equality check.
8028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
8029
8133
  */
8030
8134
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
8031
8135
  /**
8032
8136
  * Disallow nested ternary expressions.
8033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
8034
8138
  */
8035
8139
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
8036
8140
  /**
8037
- * Disallow nesting under selector lists with mixed specificity.
8038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
8141
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
8143
+ * @deprecated
8039
8144
  */
8040
8145
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
8041
8146
  /**
8042
8147
  * Disallow `new Array()`.
8043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
8044
8149
  */
8045
8150
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
8046
8151
  /**
8047
8152
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
8048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
8049
8154
  */
8050
8155
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
8051
8156
  /**
8052
8157
  * Disallow non-function values with function-style verb prefixes.
8053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
8158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
8054
8159
  */
8055
8160
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
8056
8161
  /**
8057
8162
  * Disallow non-standard properties on built-in objects.
8058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
8059
8164
  */
8060
8165
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
8061
8166
  /**
8062
8167
  * Disallow the use of the `null` literal.
8063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
8064
8169
  */
8065
8170
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
8066
8171
  /**
8067
8172
  * Disallow the use of objects as default parameters.
8068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
8069
8174
  */
8070
8175
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
8071
8176
  /**
8072
8177
  * Disallow `Object` methods with `Map` or `Set`.
8073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
8074
8179
  */
8075
8180
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
8076
8181
  /**
8077
8182
  * Disallow optional chaining on undeclared variables.
8078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8079
8184
  */
8080
8185
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
8186
+ /**
8187
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
8189
+ */
8190
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
8081
8191
  /**
8082
8192
  * Disallow `process.exit()`.
8083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
8084
8194
  */
8085
8195
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
8086
8196
  /**
8087
8197
  * Disallow comparisons made redundant by an equality check in the same logical AND.
8088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
8089
8199
  */
8090
8200
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
8091
8201
  /**
8092
- * Disallow nested style rules that do not modify the parent selector.
8093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
8202
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
8204
+ * @deprecated
8094
8205
  */
8095
8206
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
8096
8207
  /**
8097
8208
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
8098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
8209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
8099
8210
  */
8100
8211
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
8101
8212
  /**
8102
8213
  * Disallow selector syntax in DOM names.
8103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
8214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
8104
8215
  */
8105
8216
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
8106
8217
  /**
8107
8218
  * Disallow shorthand properties that override related longhand properties.
8108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
8219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
8109
8220
  */
8110
8221
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
8111
8222
  /**
8112
8223
  * Disallow passing single-element arrays to `Promise` methods.
8113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
8224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
8114
8225
  */
8115
8226
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
8116
8227
  /**
8117
8228
  * Disallow classes that only have static members.
8118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
8229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
8119
8230
  */
8120
8231
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
8121
8232
  /**
8122
8233
  * Prefer comparing values directly over subtracting and comparing to `0`.
8123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
8234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
8124
8235
  */
8125
8236
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
8126
8237
  /**
8127
8238
  * Disallow `then` property.
8128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
8239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
8129
8240
  */
8130
8241
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
8131
8242
  /**
8132
8243
  * Disallow assigning `this` to a variable.
8133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
8244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
8134
8245
  */
8135
8246
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
8136
8247
  /**
8137
8248
  * Disallow `this` outside of classes.
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
8249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
8139
8250
  */
8140
8251
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8141
8252
  /**
8142
8253
  * Disallow assigning to top-level variables from inside functions.
8143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
8254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
8144
8255
  */
8145
8256
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8146
8257
  /**
8147
8258
  * Disallow top-level side effects in exported modules.
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
8259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
8149
8260
  */
8150
8261
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
8151
8262
  /**
8152
8263
  * Disallow `all` as a transition property.
8153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
8264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
8154
8265
  */
8155
8266
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8156
8267
  /**
8157
8268
  * Disallow comparing `undefined` using `typeof`.
8158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
8269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
8159
8270
  */
8160
8271
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8161
8272
  /**
8162
8273
  * Disallow referencing methods without calling them.
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
8274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
8164
8275
  */
8165
8276
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8166
8277
  /**
8167
8278
  * Require class members to be declared.
8168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
8279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
8169
8280
  */
8170
8281
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8171
8282
  /**
8172
- * Disallow unknown and noncanonical CSS annotations.
8173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
8283
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
8284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
8285
+ * @deprecated
8174
8286
  */
8175
8287
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
8176
8288
  /**
8177
- * Disallow unknown pseudo-class and pseudo-element selectors.
8178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
8289
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
8290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
8291
+ * @deprecated
8179
8292
  */
8180
- 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
8293
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
8181
8294
  /**
8182
8295
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8184
8297
  */
8185
8298
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8186
8299
  /**
8187
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
8188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
8300
+ * Disallow unnecessary use of `Array#flatMap()`.
8301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
8189
8302
  */
8190
8303
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8191
8304
  /**
8192
8305
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
8306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
8194
8307
  */
8195
8308
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8196
8309
  /**
8197
8310
  * Disallow awaiting non-promise values.
8198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
8311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
8199
8312
  */
8200
8313
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8201
8314
  /**
8202
8315
  * Disallow unnecessary comparisons against boolean literals.
8203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8204
8317
  */
8205
8318
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8206
8319
  /**
8207
8320
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
8321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
8209
8322
  */
8210
8323
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8211
8324
  /**
8212
8325
  * Disallow unnecessary `globalThis` references.
8213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
8326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
8214
8327
  */
8215
8328
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8216
8329
  /**
8217
8330
  * Disallow unnecessary nested ternary expressions.
8218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
8331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
8219
8332
  */
8220
8333
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8334
+ /**
8335
+ * Disallow parameters that receive the same value at every call.
8336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
8337
+ */
8338
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
8221
8339
  /**
8222
8340
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
8341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
8224
8342
  */
8225
8343
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8226
8344
  /**
8227
8345
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
8346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
8229
8347
  */
8230
8348
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8231
8349
  /**
8232
8350
  * Disallow `Array#splice()` when simpler alternatives exist.
8233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
8351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
8234
8352
  */
8235
8353
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8236
8354
  /**
8237
8355
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
8356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
8239
8357
  */
8240
8358
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8241
8359
  /**
8242
8360
  * Disallow unreadable array destructuring.
8243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
8361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
8244
8362
  */
8245
8363
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8246
8364
  /**
8247
8365
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
8366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
8249
8367
  */
8250
8368
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8251
8369
  /**
8252
8370
  * Disallow unreadable IIFEs.
8253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
8371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
8254
8372
  */
8255
8373
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8256
8374
  /**
8257
8375
  * Disallow unreadable `new` expressions.
8258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
8376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
8259
8377
  */
8260
8378
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8261
8379
  /**
8262
8380
  * Disallow unreadable object destructuring.
8263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
8381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
8264
8382
  */
8265
8383
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8266
8384
  /**
8267
8385
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
8386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
8269
8387
  */
8270
8388
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8271
8389
  /**
8272
8390
  * Disallow unsafe DOM HTML APIs.
8273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
8391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
8274
8392
  */
8275
8393
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8394
+ /**
8395
+ * Disallow known values that JSON serialization cannot represent faithfully.
8396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
8397
+ */
8398
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
8276
8399
  /**
8277
8400
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8279
8402
  */
8280
8403
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8281
8404
  /**
8282
8405
  * Disallow unsafe values as property keys.
8283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
8406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
8284
8407
  */
8285
8408
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8286
8409
  /**
8287
8410
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8289
8412
  */
8290
8413
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8291
8414
  /**
8292
8415
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
8416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
8294
8417
  */
8295
8418
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8296
8419
  /**
8297
- * Disallow unscoped CSS nesting selectors.
8298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
8420
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
8421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
8422
+ * @deprecated
8299
8423
  */
8300
- 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
8424
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
8301
8425
  /**
8302
8426
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
8303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8304
8428
  * @deprecated
8305
8429
  */
8306
8430
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8307
8431
  /**
8308
8432
  * Disallow ignoring the return value of selected built-in methods.
8309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
8310
8434
  */
8311
8435
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
8312
8436
  /**
8313
8437
  * Disallow discarding lazy iterator helpers.
8314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
8315
8439
  */
8316
8440
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
8317
8441
  /**
8318
8442
  * Disallow unused object properties.
8319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
8320
8444
  */
8321
8445
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8446
+ /**
8447
+ * Disallow passing full URLs to `URLSearchParams`.
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
8449
+ */
8450
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
8322
8451
  /**
8323
8452
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
8325
8454
  */
8326
8455
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8327
8456
  /**
8328
8457
  * Disallow useless type coercions of values that are already of the target type.
8329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
8330
8459
  */
8331
8460
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8332
8461
  /**
8333
8462
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
8463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
8335
8464
  */
8336
8465
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8337
8466
  /**
8338
8467
  * Disallow useless compound assignments such as `x += 0`.
8339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
8468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
8340
8469
  */
8341
8470
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8342
8471
  /**
8343
8472
  * Disallow useless concatenation of literals.
8344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
8473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
8345
8474
  */
8346
8475
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8347
8476
  /**
8348
8477
  * Disallow useless `continue` statements.
8349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
8478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
8350
8479
  */
8351
8480
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8352
8481
  /**
8353
8482
  * Disallow unnecessary existence checks before deletion.
8354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
8483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
8355
8484
  */
8356
8485
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8357
8486
  /**
8358
8487
  * Disallow `else` after a statement that exits.
8359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
8488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
8360
8489
  */
8361
8490
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8362
8491
  /**
8363
8492
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8365
8494
  */
8366
8495
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8367
8496
  /**
8368
8497
  * Disallow useless fallback when spreading in object literals.
8369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
8498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
8370
8499
  */
8371
8500
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8372
8501
  /**
8373
8502
  * Disallow unnecessary `.toArray()` on iterators.
8374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
8503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
8375
8504
  */
8376
8505
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8377
8506
  /**
8378
8507
  * Disallow useless array length check.
8379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
8508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
8380
8509
  */
8381
8510
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8382
8511
  /**
8383
8512
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
8513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
8385
8514
  */
8386
8515
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8387
8516
  /**
8388
8517
  * Disallow useless overrides of class methods.
8389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
8518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
8390
8519
  */
8391
8520
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8392
8521
  /**
8393
8522
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
8523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
8395
8524
  */
8396
8525
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8397
8526
  /**
8398
8527
  * Disallow redundant re-exports.
8399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
8528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
8400
8529
  */
8401
8530
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8402
8531
  /**
8403
8532
  * Disallow simple recursive function calls that can be replaced with a loop.
8404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
8533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
8405
8534
  */
8406
8535
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8407
8536
  /**
8408
8537
  * Disallow unnecessary `Set` construction around `Set` methods.
8409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
8538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
8410
8539
  */
8411
8540
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
8412
8541
  /**
8413
8542
  * Disallow unnecessary spread.
8414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
8543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
8415
8544
  */
8416
8545
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8417
8546
  /**
8418
8547
  * Disallow useless case in switch statements.
8419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
8548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
8420
8549
  */
8421
8550
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8422
8551
  /**
8423
8552
  * Disallow useless template literal expressions.
8424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
8553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
8425
8554
  */
8426
8555
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8427
8556
  /**
8428
8557
  * Disallow useless `undefined`.
8429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
8558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
8430
8559
  */
8431
8560
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8432
8561
  /**
8433
8562
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
8434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
8563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
8435
8564
  */
8436
8565
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
8437
8566
  /**
8438
8567
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
8568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
8440
8569
  */
8441
8570
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8442
8571
  /**
8443
- * Disallow number literals with zero fractions or dangling dots.
8444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
8572
+ * Require consistent decimal numbers without redundant zeros.
8573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
8445
8574
  */
8446
8575
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8447
8576
  /**
8448
8577
  * Enforce proper case for numeric literals.
8449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
8578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
8450
8579
  */
8451
8580
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8452
8581
  /**
8453
8582
  * Enforce the style of numeric separators by correctly grouping digits.
8454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
8583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
8455
8584
  */
8456
8585
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8457
8586
  /**
8458
8587
  * Require assignment operator shorthand where possible.
8459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
8588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
8460
8589
  */
8461
8590
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8462
8591
  /**
8463
8592
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
8593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
8465
8594
  */
8466
8595
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8467
8596
  /**
8468
8597
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
8598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
8470
8599
  */
8471
8600
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8472
8601
  /**
8473
8602
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
8603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
8475
8604
  */
8476
8605
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8477
8606
  /**
8478
8607
  * Prefer an options object over a boolean in `.addEventListener()`.
8479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
8608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
8480
8609
  */
8481
8610
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8482
8611
  /**
8483
8612
  * Prefer `AggregateError` when throwing collected errors.
8484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
8613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
8485
8614
  */
8486
8615
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8487
8616
  /**
8488
8617
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
8618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
8490
8619
  */
8491
8620
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8492
8621
  /**
8493
8622
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
8623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
8495
8624
  */
8496
8625
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8497
8626
  /**
8498
8627
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
8628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
8500
8629
  */
8501
8630
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8502
8631
  /**
8503
8632
  * Prefer `Array.fromAsync()` over array accumulation loops.
8504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
8633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
8505
8634
  */
8506
8635
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8507
8636
  /**
8508
8637
  * Prefer using the `Array.from()` mapping function argument.
8509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
8638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
8510
8639
  */
8511
8640
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8512
8641
  /**
8513
8642
  * Prefer `Array.from({length}, …)` when creating range arrays.
8514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
8643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
8515
8644
  */
8516
8645
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8517
8646
  /**
8518
8647
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
8648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
8520
8649
  */
8521
8650
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8522
8651
  /**
8523
8652
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
8653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
8525
8654
  */
8526
8655
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8527
8656
  /**
8528
8657
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
8658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
8530
8659
  */
8531
8660
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8532
8661
  /**
8533
8662
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
8663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
8535
8664
  */
8536
8665
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8537
8666
  /**
8538
8667
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
8668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
8540
8669
  */
8541
8670
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8542
8671
  /**
8543
8672
  * Prefer `.at()` method for index access and `String#charAt()`.
8544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
8673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
8545
8674
  */
8546
8675
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8547
8676
  /**
8548
8677
  * Prefer `await` over promise chaining.
8549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
8678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
8550
8679
  */
8551
8680
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8552
8681
  /**
8553
8682
  * Prefer `BigInt` literals over the constructor.
8554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
8683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
8555
8684
  */
8556
8685
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8557
8686
  /**
8558
8687
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
8688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
8560
8689
  */
8561
8690
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8562
8691
  /**
8563
8692
  * Prefer block statements over IIFEs used only for scoping.
8564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
8693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
8565
8694
  */
8566
8695
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8567
8696
  /**
8568
8697
  * Prefer directly returning boolean expressions over `if` statements.
8569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
8698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
8570
8699
  */
8571
8700
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8572
8701
  /**
8573
8702
  * Prefer class field declarations over `this` assignments in constructors.
8574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
8703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
8575
8704
  */
8576
8705
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8577
8706
  /**
8578
8707
  * Prefer using `Element#classList.toggle()` to toggle class names.
8579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
8708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
8580
8709
  */
8581
8710
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8582
8711
  /**
8583
8712
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
8713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
8585
8714
  */
8586
8715
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8587
8716
  /**
8588
8717
  * Prefer combining consecutive guards with identical exit statements.
8589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
8718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
8590
8719
  */
8591
8720
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
8592
8721
  /**
8593
8722
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
8594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
8723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
8595
8724
  */
8596
8725
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8597
8726
  /**
8598
8727
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
8728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
8600
8729
  */
8601
8730
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8602
8731
  /**
8603
- * Prefer default parameters over reassignment.
8604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
8732
+ * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
8733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
8605
8734
  */
8606
8735
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8607
8736
  /**
8608
8737
  * Prefer direct iteration over default iterator method calls.
8609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
8738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
8610
8739
  */
8611
8740
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8612
8741
  /**
8613
8742
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
8743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
8615
8744
  */
8616
8745
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8617
8746
  /**
8618
8747
  * Prefer `Element#append()` over `Node#appendChild()`.
8619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
8748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
8620
8749
  */
8621
8750
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8622
8751
  /**
8623
8752
  * Renamed to `unicorn/dom-node-dataset`.
8624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8625
8754
  * @deprecated
8626
8755
  */
8627
8756
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8628
8757
  /**
8629
8758
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
8759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
8631
8760
  */
8632
8761
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8633
8762
  /**
8634
8763
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
8764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
8636
8765
  */
8637
8766
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8638
8767
  /**
8639
8768
  * Prefer `.replaceChildren()` when replacing DOM children.
8640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
8769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
8641
8770
  */
8642
8771
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8643
8772
  /**
8644
8773
  * Prefer `.textContent` over `.innerText`.
8645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
8774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
8646
8775
  */
8647
8776
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8648
8777
  /**
8649
8778
  * Prefer early returns over conditionals wrapping the remainder of the function body.
8650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
8779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
8651
8780
  */
8652
8781
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8653
8782
  /**
8654
8783
  * Prefer `else if` over adjacent `if` statements with related conditions.
8655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
8784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
8656
8785
  */
8657
8786
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8658
8787
  /**
8659
8788
  * Prefer `Error.isError()` when checking for errors.
8660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
8789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
8661
8790
  */
8662
8791
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8792
+ /**
8793
+ * Prefer escape sequences for irregular whitespace characters.
8794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8795
+ */
8796
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
8663
8797
  /**
8664
8798
  * Prefer `EventTarget` over `EventEmitter`.
8665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
8799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
8666
8800
  */
8667
8801
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8668
8802
  /**
8669
- * Prefer explicit viewport units.
8670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
8803
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
8804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8805
+ * @deprecated
8671
8806
  */
8672
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8807
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
8673
8808
  /**
8674
8809
  * Prefer `export…from` when re-exporting.
8675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
8810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
8676
8811
  */
8677
8812
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8678
8813
  /**
8679
8814
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
8815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
8681
8816
  */
8682
8817
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8683
8818
  /**
8684
8819
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
8820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
8686
8821
  */
8687
8822
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8688
8823
  /**
8689
8824
  * Prefer global numeric constants over `Number` static properties.
8690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
8825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
8691
8826
  */
8692
8827
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8693
8828
  /**
8694
8829
  * Prefer `globalThis` over `window`, `self`, and `global`.
8695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
8830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
8696
8831
  */
8697
8832
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8698
8833
  /**
8699
8834
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
8700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
8835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
8701
8836
  */
8702
8837
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8703
8838
  /**
8704
8839
  * Prefer `.has()` when checking existence.
8705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
8840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
8706
8841
  */
8707
8842
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8708
8843
  /**
8709
8844
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
8845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
8711
8846
  */
8712
8847
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8713
8848
  /**
8714
8849
  * Prefer HTTPS over HTTP.
8715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
8850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
8716
8851
  */
8717
8852
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8718
8853
  /**
8719
8854
  * Prefer identifiers over string literals in import and export specifiers.
8720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8721
8856
  */
8722
8857
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8723
8858
  /**
8724
8859
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
8860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
8726
8861
  */
8727
8862
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8728
8863
  /**
8729
8864
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
8865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
8731
8866
  */
8732
8867
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8733
8868
  /**
8734
8869
  * Prefer `.includes()` over repeated equality comparisons.
8735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8736
8871
  */
8737
8872
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8738
8873
  /**
8739
8874
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
8875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
8741
8876
  */
8742
8877
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8743
8878
  /**
8744
8879
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
8880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
8746
8881
  */
8747
8882
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8748
8883
  /**
8749
8884
  * Prefer iterator helpers over temporary arrays from iterators.
8750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
8885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
8751
8886
  */
8752
8887
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8753
8888
  /**
8754
8889
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
8890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
8756
8891
  */
8757
8892
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8758
8893
  /**
8759
8894
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8761
8896
  */
8762
8897
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8763
8898
  /**
8764
8899
  * Prefer `Iterator.zip()` over parallel-array indexing.
8765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
8900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
8766
8901
  */
8767
8902
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
8768
8903
  /**
8769
8904
  * Prefer JSON imports over reading and parsing JSON files.
8770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
8905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
8771
8906
  */
8772
8907
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
8773
8908
  /**
8774
8909
  * Renamed to `unicorn/consistent-json-file-read`.
8775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8776
8911
  * @deprecated
8777
8912
  */
8778
8913
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8779
8914
  /**
8780
8915
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
8916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
8782
8917
  */
8783
8918
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8919
+ /**
8920
+ * Prefer literal printable ASCII characters over escape sequences.
8921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
8922
+ */
8923
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
8784
8924
  /**
8785
8925
  * Prefer `location.assign()` over assigning to `location.href`.
8786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
8926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
8787
8927
  */
8788
8928
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8789
8929
  /**
8790
8930
  * Prefer using a logical operator over a ternary.
8791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8792
8932
  */
8793
8933
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8794
8934
  /**
8795
8935
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
8936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
8797
8937
  */
8798
8938
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8799
8939
  /**
8800
8940
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
8941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
8802
8942
  */
8803
8943
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8804
8944
  /**
8805
8945
  * Prefer `Math` constants over their approximate numeric values.
8806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
8946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
8807
8947
  */
8808
8948
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8809
8949
  /**
8810
8950
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
8951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
8812
8952
  */
8813
8953
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8814
8954
  /**
8815
8955
  * Prefer `Math.trunc()` for truncating numbers.
8816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
8956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
8817
8957
  */
8818
8958
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8819
8959
  /**
8820
- * Prefer modern media feature range syntax.
8821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
8960
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
8961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
8962
+ * @deprecated
8822
8963
  */
8823
8964
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
8824
8965
  /**
8825
8966
  * Prefer moving ternaries into the minimal varying part of an expression.
8826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
8967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
8827
8968
  */
8828
8969
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8829
8970
  /**
8830
8971
  * Prefer modern DOM APIs.
8831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
8972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
8832
8973
  */
8833
8974
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8834
8975
  /**
8835
8976
  * Prefer modern `Math` APIs over legacy patterns.
8836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
8977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
8837
8978
  */
8838
8979
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8839
8980
  /**
8840
8981
  * Prefer JavaScript modules (ESM) over CommonJS.
8841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
8982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
8842
8983
  */
8843
8984
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8844
8985
  /**
8845
8986
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
8987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
8847
8988
  */
8848
8989
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8849
8990
  /**
8850
8991
  * Prefer negative index over `.length - index` when possible.
8851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
8992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
8852
8993
  */
8853
8994
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8854
8995
  /**
8855
8996
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
8997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
8857
8998
  */
8858
8999
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8859
9000
  /**
8860
9001
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
9002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
8862
9003
  */
8863
9004
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8864
9005
  /**
8865
9006
  * Prefer `Number.isSafeInteger()` over integer checks.
8866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
9007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
8867
9008
  */
8868
9009
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8869
9010
  /**
8870
9011
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
9012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
8872
9013
  */
8873
9014
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8874
9015
  /**
8875
9016
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
9017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
8877
9018
  */
8878
9019
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8879
9020
  /**
8880
9021
  * Prefer object destructuring defaults over default object literals with spread.
8881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
9022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
8882
9023
  */
8883
9024
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8884
9025
  /**
8885
9026
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
9027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
8887
9028
  */
8888
9029
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8889
9030
  /**
8890
9031
  * Prefer the most specific `Object` iterable method.
8891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
9032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
8892
9033
  */
8893
9034
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8894
9035
  /**
8895
9036
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
9037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
8897
9038
  */
8898
9039
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8899
9040
  /**
8900
9041
  * Prefer omitting the `catch` binding parameter.
8901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
9042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
8902
9043
  */
8903
9044
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8904
9045
  /**
8905
9046
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
9047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
8907
9048
  */
8908
9049
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8909
9050
  /**
8910
9051
  * Prefer private class fields over the underscore-prefix convention.
8911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
9052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
8912
9053
  */
8913
9054
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
9055
+ /**
9056
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
9057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
9058
+ */
9059
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
8914
9060
  /**
8915
9061
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
9062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
8917
9063
  */
8918
9064
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8919
9065
  /**
8920
9066
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
9067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
8922
9068
  */
8923
9069
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8924
9070
  /**
8925
9071
  * Prefer borrowing methods from the prototype instead of the instance.
8926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
9072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
8927
9073
  */
8928
9074
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8929
9075
  /**
8930
9076
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
9077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
8932
9078
  */
8933
9079
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8934
9080
  /**
8935
9081
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
9082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
8937
9083
  */
8938
9084
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8939
9085
  /**
8940
9086
  * Prefer `Reflect.apply()` over `Function#apply()`.
8941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
9087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
8942
9088
  */
8943
9089
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8944
9090
  /**
8945
9091
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
9092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
8947
9093
  */
8948
9094
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8949
9095
  /**
8950
9096
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
9097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
8952
9098
  */
8953
9099
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8954
9100
  /**
8955
9101
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
9102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
8957
9103
  */
8958
9104
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8959
9105
  /**
8960
9106
  * Prefer `:scope` when using element query selector methods.
8961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
9107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
8962
9108
  */
8963
9109
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8964
9110
  /**
8965
9111
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
9112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
8967
9113
  */
8968
9114
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8969
9115
  /**
8970
9116
  * Prefer `Set` methods for Set operations.
8971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
9117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
8972
9118
  */
8973
9119
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8974
9120
  /**
8975
9121
  * Prefer using `Set#size` instead of `Array#length`.
8976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
9122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
8977
9123
  */
8978
9124
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8979
9125
  /**
8980
9126
  * Prefer arrow function properties over methods with a single return.
8981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
9127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
8982
9128
  */
8983
9129
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
9130
+ /**
9131
+ * Prefer shorter alternatives to Unicode escape sequences.
9132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
9133
+ */
9134
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
8984
9135
  /**
8985
9136
  * Prefer simple conditions first in logical expressions.
8986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
9137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
8987
9138
  */
8988
9139
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8989
9140
  /**
8990
9141
  * Prefer a simple comparison function for `Array#sort()`.
8991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
9142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
8992
9143
  */
8993
9144
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8994
9145
  /**
8995
9146
  * Prefer simplified conditions.
8996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
9147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
8997
9148
  */
8998
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
9149
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
8999
9150
  /**
9000
9151
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
9001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
9152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
9002
9153
  */
9003
9154
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
9004
9155
  /**
9005
9156
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
9006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
9157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
9007
9158
  */
9008
9159
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
9009
9160
  /**
9010
9161
  * Prefer a single object destructuring declaration per local const source.
9011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
9162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
9012
9163
  */
9013
9164
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
9014
9165
  /**
9015
9166
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
9016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
9167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
9017
9168
  */
9018
9169
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
9019
9170
  /**
9020
9171
  * Prefer declaring variables in the smallest possible scope.
9021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
9172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
9022
9173
  */
9023
9174
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
9024
9175
  /**
9025
9176
  * Prefer `String#split()` with a limit.
9026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
9177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
9027
9178
  */
9028
9179
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
9029
9180
  /**
9030
9181
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
9031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
9182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
9032
9183
  */
9033
9184
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
9034
9185
  /**
9035
9186
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
9036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
9187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
9037
9188
  */
9038
9189
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
9039
9190
  /**
9040
9191
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
9041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
9192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
9042
9193
  */
9043
9194
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
9044
9195
  /**
9045
9196
  * Prefer using the `String.raw` tag to avoid escaping `\`.
9046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
9197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
9047
9198
  */
9048
9199
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
9049
9200
  /**
9050
9201
  * Prefer `String#repeat()` for repeated whitespace.
9051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
9202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
9052
9203
  */
9053
9204
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
9054
9205
  /**
9055
9206
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
9056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
9207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
9057
9208
  */
9058
9209
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
9059
9210
  /**
9060
9211
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
9061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
9212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
9062
9213
  */
9063
9214
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
9064
9215
  /**
9065
9216
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
9066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
9217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
9067
9218
  */
9068
9219
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
9069
9220
  /**
9070
9221
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
9071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
9222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
9072
9223
  */
9073
9224
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
9074
9225
  /**
9075
9226
  * Prefer using `structuredClone` to create a deep clone.
9076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
9227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
9077
9228
  */
9078
9229
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
9079
9230
  /**
9080
9231
  * Prefer `switch` over multiple `else-if`.
9081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
9232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
9082
9233
  */
9083
9234
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
9084
9235
  /**
9085
9236
  * Prefer `Temporal` over `Date`.
9086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
9237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
9087
9238
  */
9088
9239
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
9089
9240
  /**
9090
9241
  * Prefer direct Temporal conversion methods.
9091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
9242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
9092
9243
  */
9093
9244
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
9094
9245
  /**
9095
9246
  * Prefer ternary expressions over simple `if` statements that return or assign values.
9096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
9247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
9097
9248
  */
9098
9249
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
9099
9250
  /**
9100
9251
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
9101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
9252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
9102
9253
  */
9103
9254
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
9104
9255
  /**
9105
9256
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
9106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
9257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
9107
9258
  */
9108
9259
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
9109
9260
  /**
9110
9261
  * Prefer top-level await over top-level promises and async function calls.
9111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
9262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
9112
9263
  */
9113
9264
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
9114
9265
  /**
9115
9266
  * Enforce throwing `TypeError` in type checking conditions.
9116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
9267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
9117
9268
  */
9118
9269
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
9119
9270
  /**
9120
9271
  * Require type literals to be last in union types.
9121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
9272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
9122
9273
  */
9123
9274
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
9124
9275
  /**
9125
9276
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
9126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
9277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
9127
9278
  */
9128
9279
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
9129
9280
  /**
9130
9281
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
9131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
9282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
9132
9283
  */
9133
9284
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
9134
9285
  /**
9135
9286
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
9136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
9287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
9137
9288
  */
9138
9289
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
9139
9290
  /**
9140
9291
  * Prefer Unicode code point escapes over legacy escape sequences.
9141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9142
9293
  */
9143
9294
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
9144
9295
  /**
9145
9296
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
9146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
9297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
9147
9298
  */
9148
9299
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
9149
9300
  /**
9150
9301
  * Prefer `URL#href` over stringifying a `URL`.
9151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
9302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
9152
9303
  */
9153
9304
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
9154
9305
  /**
9155
9306
  * Prefer `URLSearchParams` over manually splitting query strings.
9156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
9307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
9157
9308
  */
9158
9309
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
9159
9310
  /**
9160
9311
  * Prefer putting the condition in the while statement.
9161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
9312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
9162
9313
  */
9163
9314
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
9164
9315
  /**
9165
9316
  * Renamed to `unicorn/name-replacements`.
9166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9167
9318
  * @deprecated
9168
9319
  */
9169
9320
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
9170
9321
  /**
9171
9322
  * Enforce consistent relative URL style.
9172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
9323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
9173
9324
  */
9174
9325
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
9175
9326
  /**
9176
9327
  * Enforce using the separator argument with `Array#join()`.
9177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
9328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
9178
9329
  */
9179
9330
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
9180
9331
  /**
9181
9332
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
9182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
9333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
9183
9334
  */
9184
9335
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
9185
9336
  /**
9186
9337
  * Require `CSS.escape()` for interpolated values in CSS selectors.
9187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
9338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
9188
9339
  */
9189
9340
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
9190
9341
  /**
9191
9342
  * Require configured YAML frontmatter fields.
9192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
9343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
9193
9344
  */
9194
9345
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
9195
9346
  /**
9196
9347
  * Require non-empty module attributes for imports and exports
9197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
9348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
9198
9349
  */
9199
9350
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
9200
9351
  /**
9201
9352
  * Require non-empty specifier list in import and export statements.
9202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
9353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
9203
9354
  */
9204
9355
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9205
9356
  /**
9206
9357
  * Enforce using the digits argument with `Number#toFixed()`.
9207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9208
9359
  */
9209
9360
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9210
9361
  /**
9211
9362
  * Require passive event listeners for high-frequency events.
9212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
9363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
9213
9364
  */
9214
9365
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9215
9366
  /**
9216
9367
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
9368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
9218
9369
  */
9219
9370
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9220
9371
  /**
9221
9372
  * Require boolean-returning Proxy traps to return booleans.
9222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
9373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
9223
9374
  */
9224
9375
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9376
+ /**
9377
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
9378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
9379
+ */
9380
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
9225
9381
  /**
9226
9382
  * Enforce a consistent style for single-line block comments.
9227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
9383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
9228
9384
  */
9229
9385
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9230
9386
  /**
9231
9387
  * Enforce better string content.
9232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
9388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
9233
9389
  */
9234
9390
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9235
9391
  /**
9236
9392
  * Enforce consistent brace style for `case` clauses.
9237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
9393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
9238
9394
  */
9239
9395
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9240
9396
  /**
9241
9397
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
9398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
9243
9399
  */
9244
9400
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9245
9401
  /**
9246
9402
  * Fix whitespace-insensitive template indentation.
9247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
9403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
9248
9404
  */
9249
9405
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9250
9406
  /**
9251
9407
  * Enforce consistent case for text encoding identifiers.
9252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
9408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
9253
9409
  */
9254
9410
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9255
9411
  /**
9256
9412
  * Require `new` when creating an error.
9257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
9413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
9258
9414
  */
9259
9415
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9260
9416
  /**
9261
9417
  * Limit the complexity of `try` blocks.
9262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
9418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
9263
9419
  */
9264
9420
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9265
9421
  /**
@@ -9981,12 +10137,6 @@ Backward pagination arguments
9981
10137
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-schema-with-is-optional.md
9982
10138
  */
9983
10139
  'zod/no-schema-with-is-optional'?: Linter.RuleEntry<[]>;
9984
- /**
9985
- * Disallow usage of `z.string().uuid()` in favor of the dedicated `z.uuid()` schema
9986
- * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-string-schema-with-uuid.md
9987
- * @deprecated
9988
- */
9989
- 'zod/no-string-schema-with-uuid'?: Linter.RuleEntry<[]>;
9990
10140
  /**
9991
10141
  * Disallow throwing errors directly inside Zod refine callbacks
9992
10142
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-throw-in-refine.md
@@ -10170,6 +10320,10 @@ type ArrowSpacing = [] | [{
10170
10320
  }];
10171
10321
  // ----- block-spacing -----
10172
10322
  type BlockSpacing = [] | [("always" | "never")];
10323
+ // ----- boolean/no-negated-disjunction -----
10324
+ type BooleanNoNegatedDisjunction = [] | [{
10325
+ enforceForMixedOperators?: boolean;
10326
+ }];
10173
10327
  // ----- brace-style -----
10174
10328
  type BraceStyle = [] | [("1tbs" | "stroustrup" | "allman")] | [("1tbs" | "stroustrup" | "allman"), {
10175
10329
  allowSingleLine?: boolean;
@@ -11265,6 +11419,7 @@ type JsdocCheckExamples = [] | [{
11265
11419
  // ----- jsdoc/check-indentation -----
11266
11420
  type JsdocCheckIndentation = [] | [{
11267
11421
  allowIndentedSections?: boolean;
11422
+ allowNoSpaceAfterAsterisk?: boolean;
11268
11423
  excludeTags?: string[];
11269
11424
  }];
11270
11425
  // ----- jsdoc/check-line-alignment -----
@@ -11684,7 +11839,6 @@ type JsdocRequireTags = [] | [{
11684
11839
  tags?: (string | {
11685
11840
  context?: string;
11686
11841
  tag?: string;
11687
- [k: string]: unknown | undefined;
11688
11842
  })[];
11689
11843
  }];
11690
11844
  // ----- jsdoc/require-template -----
@@ -16567,6 +16721,11 @@ interface _UnicornImportStyle_ModuleStyles {
16567
16721
  interface _UnicornImportStyle_BooleanObject {
16568
16722
  [k: string]: boolean | undefined;
16569
16723
  }
16724
+ // ----- unicorn/indent -----
16725
+ type UnicornIndent = [] | [{
16726
+ indent?: ("tab" | number);
16727
+ tabWidth?: number;
16728
+ }];
16570
16729
  // ----- unicorn/isolated-functions -----
16571
16730
  type UnicornIsolatedFunctions = [] | [{
16572
16731
  overrideGlobals?: {
@@ -16578,6 +16737,15 @@ type UnicornIsolatedFunctions = [] | [{
16578
16737
  }];
16579
16738
  // ----- unicorn/iteration-fallback-style -----
16580
16739
  type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
16740
+ // ----- unicorn/key-name-casing -----
16741
+ type UnicornKeyNameCasing = [] | [{
16742
+ camelCase?: boolean;
16743
+ PascalCase?: boolean;
16744
+ SCREAMING_SNAKE_CASE?: boolean;
16745
+ "kebab-case"?: boolean;
16746
+ snake_case?: boolean;
16747
+ ignore?: string[];
16748
+ }];
16581
16749
  // ----- unicorn/logical-assignment-operators -----
16582
16750
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
16583
16751
  enforceForIfStatements?: boolean;
@@ -16632,10 +16800,6 @@ type UnicornNoArraySort = [] | [{
16632
16800
  type UnicornNoBreakInNestedLoop = [] | [{
16633
16801
  checkContinue?: boolean;
16634
16802
  }];
16635
- // ----- unicorn/no-deprecated-css-features -----
16636
- type UnicornNoDeprecatedCssFeatures = [] | [{
16637
- allow?: string[];
16638
- }];
16639
16803
  // ----- unicorn/no-empty-file -----
16640
16804
  type UnicornNoEmptyFile = [] | [{
16641
16805
  allowComments?: boolean;
@@ -16684,9 +16848,9 @@ type UnicornNoNull = [] | [{
16684
16848
  type UnicornNoTypeofUndefined = [] | [{
16685
16849
  checkGlobalVariables?: boolean;
16686
16850
  }];
16687
- // ----- unicorn/no-unknown-pseudo-selectors -----
16688
- type UnicornNoUnknownPseudoSelectors = [] | [{
16689
- allow?: string[];
16851
+ // ----- unicorn/no-unnecessary-parameters -----
16852
+ type UnicornNoUnnecessaryParameters = [] | [{
16853
+ minimumCallCount?: number;
16690
16854
  }];
16691
16855
  // ----- unicorn/no-unnecessary-polyfills -----
16692
16856
  type UnicornNoUnnecessaryPolyfills = [] | [{
@@ -16698,10 +16862,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
16698
16862
  type UnicornNoUnreadableArrayDestructuring = [] | [{
16699
16863
  maximumIgnoredElements?: number;
16700
16864
  }];
16701
- // ----- unicorn/no-unscoped-css-nesting-selector -----
16702
- type UnicornNoUnscopedCssNestingSelector = [] | [{
16703
- scopingRootAtRules?: string[];
16704
- }];
16705
16865
  // ----- unicorn/no-useless-undefined -----
16706
16866
  type UnicornNoUselessUndefined = [] | [{
16707
16867
  checkArguments?: boolean;
@@ -16758,6 +16918,7 @@ type UnicornPreferAt = [] | [{
16758
16918
  // ----- unicorn/prefer-combined-guards -----
16759
16919
  type UnicornPreferCombinedGuards = [] | [{
16760
16920
  checkCompoundConditions?: boolean;
16921
+ checkMultiStatementBodies?: boolean;
16761
16922
  }];
16762
16923
  // ----- unicorn/prefer-continue -----
16763
16924
  type UnicornPreferContinue = [] | [{
@@ -16774,10 +16935,6 @@ type UnicornPreferEarlyReturn = [] | [{
16774
16935
  maximumStatements?: number;
16775
16936
  checkShortBodies?: boolean;
16776
16937
  }];
16777
- // ----- unicorn/prefer-explicit-viewport-units -----
16778
- type UnicornPreferExplicitViewportUnits = [] | [{
16779
- unit?: ("dvh" | "svh" | "lvh");
16780
- }];
16781
16938
  // ----- unicorn/prefer-export-from -----
16782
16939
  type UnicornPreferExportFrom = [] | [{
16783
16940
  checkUsedVariables?: boolean;
@@ -16821,6 +16978,10 @@ type UnicornPreferSetHas = [] | [{
16821
16978
  }];
16822
16979
  // ----- unicorn/prefer-short-arrow-method -----
16823
16980
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
16981
+ // ----- unicorn/prefer-simplified-conditions -----
16982
+ type UnicornPreferSimplifiedConditions = [] | [{
16983
+ negatedConditions?: ("simplify" | "expand");
16984
+ }];
16824
16985
  // ----- unicorn/prefer-single-call -----
16825
16986
  type UnicornPreferSingleCall = [] | [{
16826
16987
  ignore?: string[];