@2digits/eslint-config 5.8.0 → 5.8.1

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
@@ -1377,6 +1377,11 @@ Backward pagination arguments
1377
1377
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
1378
1378
  */
1379
1379
  'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
1380
+ /**
1381
+ * Disallows (or requires descriptions for) `@ts-<directive>` comments, mirroring `@typescript-eslint/ban-ts-comment`.
1382
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-ban-ts-comment.md#repos-sticky-header
1383
+ */
1384
+ 'jsdoc/ts-ban-ts-comment'?: Linter.RuleEntry<JsdocTsBanTsComment>;
1380
1385
  /**
1381
1386
  * Prefers either function properties or method signatures
1382
1387
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
@@ -4428,6 +4433,11 @@ Backward pagination arguments
4428
4433
  * @see https://sonarsource.github.io/rspec/#/rspec/S8780/javascript
4429
4434
  */
4430
4435
  'sonar/async-test-assertions'?: Linter.RuleEntry<[]>;
4436
+ /**
4437
+ * Nested properties of Lodash and Underscore.js clone results should not be mutated
4438
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9135/javascript
4439
+ */
4440
+ 'sonar/avoid-mutating-nested-properties-of-shallow-clones'?: Linter.RuleEntry<[]>;
4431
4441
  /**
4432
4442
  * AWS API Gateway should require authentication
4433
4443
  * @see https://sonarsource.github.io/rspec/#/rspec/S6333/javascript
@@ -4573,6 +4583,11 @@ Backward pagination arguments
4573
4583
  * @see https://sonarsource.github.io/rspec/#/rspec/S124/javascript
4574
4584
  */
4575
4585
  'sonar/comment-regex'?: Linter.RuleEntry<SonarCommentRegex>;
4586
+ /**
4587
+ * Composite assertions should be split
4588
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9073/javascript
4589
+ */
4590
+ 'sonar/composite-assertions'?: Linter.RuleEntry<[]>;
4576
4591
  /**
4577
4592
  * Regular expression quantifiers and character classes should be used concisely
4578
4593
  * @see https://sonarsource.github.io/rspec/#/rspec/S6353/javascript
@@ -4952,6 +4967,11 @@ Backward pagination arguments
4952
4967
  * @see https://sonarsource.github.io/rspec/#/rspec/S1854/javascript
4953
4968
  */
4954
4969
  'sonar/no-dead-store'?: Linter.RuleEntry<[]>;
4970
+ /**
4971
+ * Lodash and Underscore.js debounced or throttled functions should not be recreated on every React render
4972
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9114/javascript
4973
+ */
4974
+ 'sonar/no-debounce-throttle-in-render'?: Linter.RuleEntry<[]>;
4955
4975
  /**
4956
4976
  * UI test debug commands should not be committed to version control
4957
4977
  * @see https://sonarsource.github.io/rspec/#/rspec/S8959/javascript
@@ -4972,6 +4992,11 @@ Backward pagination arguments
4972
4992
  * @see https://sonarsource.github.io/rspec/#/rspec/S4621/javascript
4973
4993
  */
4974
4994
  'sonar/no-duplicate-in-composite'?: Linter.RuleEntry<[]>;
4995
+ /**
4996
+ * Parameterized tests should not contain duplicate test cases
4997
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9078/javascript
4998
+ */
4999
+ 'sonar/no-duplicate-parameterized-test-case'?: Linter.RuleEntry<[]>;
4975
5000
  /**
4976
5001
  * String literals should not be duplicated
4977
5002
  * @see https://sonarsource.github.io/rspec/#/rspec/S1192/javascript
@@ -5017,6 +5042,11 @@ Backward pagination arguments
5017
5042
  * @see https://sonarsource.github.io/rspec/#/rspec/S6331/javascript
5018
5043
  */
5019
5044
  'sonar/no-empty-group'?: Linter.RuleEntry<[]>;
5045
+ /**
5046
+ * Parameterized tests should not have empty datasets
5047
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8998/javascript
5048
+ */
5049
+ 'sonar/no-empty-parameterized-test-dataset'?: Linter.RuleEntry<[]>;
5020
5050
  /**
5021
5051
  * Test files should contain at least one test case
5022
5052
  * @see https://sonarsource.github.io/rspec/#/rspec/S2187/javascript
@@ -5240,6 +5270,11 @@ Backward pagination arguments
5240
5270
  * @deprecated
5241
5271
  */
5242
5272
  'sonar/no-mixed-content'?: Linter.RuleEntry<[]>;
5273
+ /**
5274
+ * Reactive state should not be unconditionally mutated inside Vue's "updated" lifecycle hook
5275
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9163/javascript
5276
+ */
5277
+ 'sonar/no-mutate-reactive-state-in-updated-hook'?: Linter.RuleEntry<[]>;
5243
5278
  /**
5244
5279
  * Assignments should not be made from within sub-expressions
5245
5280
  * @see https://sonarsource.github.io/rspec/#/rspec/S1121/javascript
@@ -5270,6 +5305,11 @@ Backward pagination arguments
5270
5305
  * @see https://sonarsource.github.io/rspec/#/rspec/S4624/javascript
5271
5306
  */
5272
5307
  'sonar/no-nested-template-literals'?: Linter.RuleEntry<[]>;
5308
+ /**
5309
+ * Playwright "networkidle" waits should not be used
5310
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9332/javascript
5311
+ */
5312
+ 'sonar/no-networkidle-wait'?: Linter.RuleEntry<[]>;
5273
5313
  /**
5274
5314
  * OS commands should not rely on PATH resolution
5275
5315
  * @see https://sonarsource.github.io/rspec/#/rspec/S4036/javascript
@@ -5306,7 +5346,7 @@ Backward pagination arguments
5306
5346
  */
5307
5347
  'sonar/no-redundant-optional'?: Linter.RuleEntry<[]>;
5308
5348
  /**
5309
- * Unnecessary parentheses should be removed
5349
+ * Redundant pairs of parentheses should be removed
5310
5350
  * @see https://sonarsource.github.io/rspec/#/rspec/S1110/javascript
5311
5351
  * @deprecated
5312
5352
  */
@@ -5468,6 +5508,16 @@ Backward pagination arguments
5468
5508
  * @see https://sonarsource.github.io/rspec/#/rspec/S1526/javascript
5469
5509
  */
5470
5510
  'sonar/no-variable-usage-before-declaration'?: Linter.RuleEntry<[]>;
5511
+ /**
5512
+ * Vue components should not use the deprecated "vue-class-component" or "vue-property-decorator" libraries
5513
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9145/javascript
5514
+ */
5515
+ 'sonar/no-vue-class-component'?: Linter.RuleEntry<[]>;
5516
+ /**
5517
+ * Vue components should not use mixins
5518
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9150/javascript
5519
+ */
5520
+ 'sonar/no-vue-mixins'?: Linter.RuleEntry<[]>;
5471
5521
  /**
5472
5522
  * Cipher algorithms should be robust
5473
5523
  * @see https://sonarsource.github.io/rspec/#/rspec/S5547/javascript
@@ -5524,6 +5574,11 @@ Backward pagination arguments
5524
5574
  * @see https://sonarsource.github.io/rspec/#/rspec/S2819/javascript
5525
5575
  */
5526
5576
  'sonar/post-message'?: Linter.RuleEntry<[]>;
5577
+ /**
5578
+ * Cypress assertions should be retryable
5579
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9162/javascript
5580
+ */
5581
+ 'sonar/prefer-cypress-should'?: Linter.RuleEntry<[]>;
5527
5582
  /**
5528
5583
  * "default" clauses should be last
5529
5584
  * @see https://sonarsource.github.io/rspec/#/rspec/S4524/javascript
@@ -5534,6 +5589,16 @@ Backward pagination arguments
5534
5589
  * @see https://sonarsource.github.io/rspec/#/rspec/S1488/javascript
5535
5590
  */
5536
5591
  'sonar/prefer-immediate-return'?: Linter.RuleEntry<[]>;
5592
+ /**
5593
+ * Native APIs should be preferred over Axios utility methods
5594
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9339/javascript
5595
+ */
5596
+ 'sonar/prefer-native-axios-alternative'?: Linter.RuleEntry<[]>;
5597
+ /**
5598
+ * Native APIs should be preferred over jQuery utility methods
5599
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9144/javascript
5600
+ */
5601
+ 'sonar/prefer-native-jquery-alternative'?: Linter.RuleEntry<[]>;
5537
5602
  /**
5538
5603
  * Native APIs should be preferred over Lodash and Underscore.js methods
5539
5604
  * @see https://sonarsource.github.io/rspec/#/rspec/S8907/javascript
@@ -5674,6 +5739,11 @@ Backward pagination arguments
5674
5739
  * @see https://sonarsource.github.io/rspec/#/rspec/S8786/javascript
5675
5740
  */
5676
5741
  'sonar/super-linear-regex'?: Linter.RuleEntry<[]>;
5742
+ /**
5743
+ * Synchronous exception assertions should receive synchronous callbacks
5744
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9072/javascript
5745
+ */
5746
+ 'sonar/synchronous-exception-assertions'?: Linter.RuleEntry<[]>;
5677
5747
  /**
5678
5748
  * Tests should not be registered asynchronously in suite callbacks
5679
5749
  * @see https://sonarsource.github.io/rspec/#/rspec/S8785/javascript
@@ -5694,6 +5764,16 @@ Backward pagination arguments
5694
5764
  * @see https://sonarsource.github.io/rspec/#/rspec/S5958/javascript
5695
5765
  */
5696
5766
  'sonar/test-check-exception'?: Linter.RuleEntry<[]>;
5767
+ /**
5768
+ * Testing Library disappearance waits should use non-throwing queries
5769
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9153/javascript
5770
+ */
5771
+ 'sonar/testing-library-prefer-query-by-disappearance'?: Linter.RuleEntry<[]>;
5772
+ /**
5773
+ * Testing Library queries should match presence assertions
5774
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9027/javascript
5775
+ */
5776
+ 'sonar/testing-library-query-assertion'?: Linter.RuleEntry<[]>;
5697
5777
  /**
5698
5778
  * Track uses of "TODO" tags
5699
5779
  * @see https://sonarsource.github.io/rspec/#/rspec/S1135/javascript
@@ -5760,6 +5840,11 @@ Backward pagination arguments
5760
5840
  * @see https://sonarsource.github.io/rspec/#/rspec/S117/javascript
5761
5841
  */
5762
5842
  'sonar/variable-name'?: Linter.RuleEntry<SonarVariableName>;
5843
+ /**
5844
+ * vi.mock should be declared at module scope
5845
+ * @see https://sonarsource.github.io/rspec/#/rspec/S9169/javascript
5846
+ */
5847
+ 'sonar/vitest-mock-at-module-scope'?: Linter.RuleEntry<[]>;
5763
5848
  /**
5764
5849
  * "void" should not be used
5765
5850
  * @see https://sonarsource.github.io/rspec/#/rspec/S3735/javascript
@@ -7340,1740 +7425,1841 @@ Backward pagination arguments
7340
7425
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7341
7426
  /**
7342
7427
  * Prefer better DOM traversal APIs.
7343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
7428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
7344
7429
  */
7345
7430
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7346
7431
  /**
7347
7432
  * Removed. Prefer `eslint-plugin-regexp`
7348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7349
7434
  * @deprecated
7350
7435
  */
7351
7436
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7352
7437
  /**
7353
7438
  * Enforce a specific parameter name in catch clauses.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
7439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
7355
7440
  */
7356
7441
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7357
7442
  /**
7358
7443
  * Enforce consistent class references in static methods.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
7444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
7360
7445
  */
7361
7446
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7362
7447
  /**
7363
7448
  * Enforce better comment content.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
7449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
7365
7450
  */
7366
7451
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7367
7452
  /**
7368
7453
  * Enforce a consistent return style for multiline arrow function bodies.
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
7454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
7370
7455
  */
7371
7456
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7372
7457
  /**
7373
7458
  * Enforce consistent assertion style with `node:assert`.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
7459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
7375
7460
  */
7376
7461
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7377
7462
  /**
7378
7463
  * Enforce consistent naming for boolean names.
7379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
7464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
7380
7465
  */
7381
7466
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7382
7467
  /**
7383
7468
  * Enforce consistent class member order.
7384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
7469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
7385
7470
  */
7386
7471
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7387
7472
  /**
7388
7473
  * Enforce consistent spelling of compound words in identifiers.
7389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
7474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
7390
7475
  */
7391
7476
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7392
7477
  /**
7393
7478
  * Enforce consistent conditional object spread style.
7394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
7479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
7395
7480
  */
7396
7481
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7397
7482
  /**
7398
7483
  * Prefer passing `Date` directly to the constructor when cloning.
7399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
7484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
7400
7485
  */
7401
7486
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7402
7487
  /**
7403
7488
  * Use destructured variables over properties.
7404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
7489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
7405
7490
  */
7406
7491
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7407
7492
  /**
7408
7493
  * Prefer consistent types when spreading a ternary in an array literal.
7409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
7494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
7410
7495
  */
7411
7496
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7412
7497
  /**
7413
7498
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
7499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
7415
7500
  */
7416
7501
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7417
7502
  /**
7418
7503
  * Enforce consistent decorator position on exported classes.
7419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
7504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
7420
7505
  */
7421
7506
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7422
7507
  /**
7423
7508
  * Move function definitions to the highest possible scope.
7424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
7509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
7425
7510
  */
7426
7511
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7427
7512
  /**
7428
7513
  * Enforce function syntax by role.
7429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
7514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
7430
7515
  */
7431
7516
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7432
7517
  /**
7433
7518
  * Enforce consistent JSON file reads before `JSON.parse()`.
7434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
7435
7520
  */
7436
7521
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7437
7522
  /**
7438
7523
  * Enforce consistent optional chaining for same-base member access.
7439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
7440
7525
  */
7441
7526
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7442
7527
  /**
7443
7528
  * Enforce consistent style for escaping `${` in template literals.
7444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
7445
7530
  */
7446
7531
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7447
7532
  /**
7448
7533
  * Enforce consistent labels on tuple type elements.
7449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
7450
7535
  */
7451
7536
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7452
7537
  /**
7453
7538
  * Enforce correct `Error` subclassing.
7454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
7455
7540
  */
7456
7541
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7457
7542
  /**
7458
7543
  * Enforce consistent default export declarations.
7459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
7460
7545
  */
7461
7546
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7462
7547
  /**
7463
7548
  * Enforce consistent style for DOM element dataset access.
7464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
7465
7550
  */
7466
7551
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7467
7552
  /**
7468
7553
  * Enforce no spaces between braces.
7469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
7470
7555
  */
7471
7556
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7472
7557
  /**
7473
7558
  * Enforce passing a `message` value when creating a built-in error.
7474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
7475
7560
  */
7476
7561
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7477
7562
  /**
7478
7563
  * Require escape sequences to use uppercase or lowercase values.
7479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
7480
7565
  */
7481
7566
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7482
7567
  /**
7483
7568
  * Add expiration conditions to TODO comments.
7484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
7485
7570
  */
7486
7571
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7487
7572
  /**
7488
7573
  * Enforce explicitly comparing the `length` or `size` property of a value.
7489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
7490
7575
  */
7491
7576
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7492
7577
  /**
7493
7578
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
7495
7580
  */
7496
7581
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7497
7582
  /**
7498
7583
  * Enforce a case style for filenames and directory names.
7499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
7500
7585
  */
7501
7586
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7502
7587
  /**
7503
7588
  * Require identifiers to match a specified regular expression.
7504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
7589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
7505
7590
  */
7506
7591
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7507
7592
  /**
7508
7593
  * Enforce specific import styles per module.
7509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
7594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
7510
7595
  */
7511
7596
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7512
7597
  /**
7513
7598
  * Prevent usage of variables from outside the scope of isolated functions.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
7599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
7515
7600
  */
7516
7601
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7517
7602
  /**
7518
7603
  * Enforce a consistent style for optional loop sources.
7519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
7604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
7520
7605
  */
7521
7606
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7522
7607
  /**
7523
7608
  * Require or disallow logical assignment operator shorthand
7524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
7609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
7525
7610
  */
7526
7611
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7527
7612
  /**
7528
7613
  * Limit the depth of nested calls.
7529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
7614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
7530
7615
  */
7531
7616
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7532
7617
  /**
7533
7618
  * Enforce replacements for variable, property, and filenames.
7534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
7619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
7535
7620
  */
7536
7621
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7537
7622
  /**
7538
7623
  * Enforce correct use of `new` for builtin constructors.
7539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
7624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
7540
7625
  */
7541
7626
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7542
7627
  /**
7543
7628
  * Enforce specifying rules to disable in `eslint-disable` comments.
7544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
7629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
7545
7630
  */
7546
7631
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7547
7632
  /**
7548
7633
  * Disallow recursive access to `this` within getters and setters.
7549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
7634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
7550
7635
  */
7551
7636
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7552
7637
  /**
7553
7638
  * Disallow bitwise operators where a logical operator was likely intended.
7554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
7639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
7555
7640
  */
7556
7641
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7557
7642
  /**
7558
7643
  * Disallow anonymous functions and classes as the default export.
7559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
7644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
7560
7645
  */
7561
7646
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7562
7647
  /**
7563
7648
  * Prevent passing a function reference directly to iterator methods.
7564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
7649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
7565
7650
  */
7566
7651
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7567
7652
  /**
7568
7653
  * Disallow array accumulation with `Array#concat()` in loops.
7569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
7654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
7570
7655
  */
7571
7656
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7572
7657
  /**
7573
7658
  * Disallow using reference values as `Array#fill()` values.
7574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
7659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
7575
7660
  */
7576
7661
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7577
7662
  /**
7578
7663
  * Disallow `.fill()` after `Array.from({length: …})`.
7579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
7664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
7580
7665
  */
7581
7666
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7582
7667
  /**
7583
7668
  * Disallow front-of-array mutation.
7584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
7669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
7585
7670
  */
7586
7671
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7587
7672
  /**
7588
7673
  * Disallow using the `this` argument in array methods.
7589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
7674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
7590
7675
  */
7591
7676
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7592
7677
  /**
7593
7678
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7595
7680
  * @deprecated
7596
7681
  */
7597
7682
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7598
7683
  /**
7599
7684
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
7685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
7601
7686
  */
7602
7687
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7603
7688
  /**
7604
7689
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
7690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
7606
7691
  */
7607
7692
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7608
7693
  /**
7609
7694
  * Prefer `Array#toSorted()` over `Array#sort()`.
7610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
7695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
7611
7696
  */
7612
7697
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7613
7698
  /**
7614
7699
  * Disallow sorting arrays to get the minimum or maximum value.
7615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
7700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
7616
7701
  */
7617
7702
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7618
7703
  /**
7619
7704
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
7705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
7621
7706
  */
7622
7707
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7623
7708
  /**
7624
7709
  * Disallow asterisk prefixes in documentation comments.
7625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7626
7711
  */
7627
7712
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7713
+ /**
7714
+ * 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
7716
+ */
7717
+ 'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
7628
7718
  /**
7629
7719
  * Disallow async functions as `Promise#finally()` callbacks.
7630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
7720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
7631
7721
  */
7632
7722
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7633
7723
  /**
7634
7724
  * Disallow member access from await expression.
7635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
7725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
7636
7726
  */
7637
7727
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7638
7728
  /**
7639
7729
  * Disallow using `await` in `Promise` method parameters.
7640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
7730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
7641
7731
  */
7642
7732
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7643
7733
  /**
7644
7734
  * Disallow barrel files.
7645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
7646
7736
  */
7647
7737
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7648
7738
  /**
7649
7739
  * Disallow unnecessary `Blob` to `File` conversion.
7650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
7740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
7651
7741
  */
7652
7742
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7653
7743
  /**
7654
7744
  * Disallow boolean-returning sort comparators.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
7745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
7656
7746
  */
7657
7747
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7658
7748
  /**
7659
- * Disallow `break` and `continue` in nested loops and switches inside loops.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
7749
+ * 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
7661
7751
  */
7662
- 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7752
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7663
7753
  /**
7664
7754
  * Prefer drawing canvases directly instead of converting them to images.
7665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
7755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
7666
7756
  */
7667
7757
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7668
7758
  /**
7669
7759
  * Disallow chained comparisons such as `a < b < c`.
7670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
7760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
7671
7761
  */
7672
7762
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7673
7763
  /**
7674
7764
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
7765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
7676
7766
  */
7677
7767
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7678
7768
  /**
7679
7769
  * Disallow dynamic object property existence checks.
7680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
7770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
7681
7771
  */
7682
7772
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7683
7773
  /**
7684
7774
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
7775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
7686
7776
  */
7687
7777
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7688
7778
  /**
7689
7779
  * Disallow confusing uses of `Array#with()`.
7690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
7780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
7691
7781
  */
7692
7782
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7693
7783
  /**
7694
7784
  * Do not use leading/trailing space between `console.log` parameters.
7695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
7785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
7696
7786
  */
7697
7787
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7698
7788
  /**
7699
7789
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
7790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
7701
7791
  */
7702
7792
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7703
7793
  /**
7704
7794
  * Disallow declarations before conditional early exits when they are only used after the exit.
7705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
7795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
7706
7796
  */
7707
7797
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7798
+ /**
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
7801
+ */
7802
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
7708
7803
  /**
7709
7804
  * Do not use `document.cookie` directly.
7710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
7805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
7711
7806
  */
7712
7807
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7713
7808
  /**
7714
7809
  * Disallow two comparisons of the same operands that can be combined into one.
7715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
7810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
7716
7811
  */
7717
7812
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7813
+ /**
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
7816
+ */
7817
+ 'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
7818
+ /**
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
7821
+ */
7822
+ 'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
7718
7823
  /**
7719
7824
  * Disallow duplicate adjacent branches in if chains.
7720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
7825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
7721
7826
  */
7722
7827
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7723
7828
  /**
7724
7829
  * Disallow adjacent duplicate operands in logical expressions.
7725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
7830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
7726
7831
  */
7727
7832
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7728
7833
  /**
7729
7834
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
7835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
7731
7836
  */
7732
7837
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7733
7838
  /**
7734
7839
  * Disallow duplicate values in `Set` constructor array literals.
7735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
7840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
7736
7841
  */
7737
7842
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7738
7843
  /**
7739
7844
  * Disallow empty files.
7740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
7845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
7741
7846
  */
7742
7847
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7743
7848
  /**
7744
7849
  * Disallow assigning to built-in error properties.
7745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
7850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
7746
7851
  */
7747
7852
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7748
7853
  /**
7749
7854
  * Disallow exports in scripts.
7750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
7855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
7751
7856
  */
7752
7857
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7753
7858
  /**
7754
7859
  * Prefer `for…of` over the `forEach` method.
7755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
7860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
7756
7861
  */
7757
7862
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7758
7863
  /**
7759
7864
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
7865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
7761
7866
  */
7762
7867
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7763
7868
  /**
7764
7869
  * Disallow assigning properties on the global object.
7765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
7870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
7766
7871
  */
7767
7872
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7768
7873
  /**
7769
7874
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7771
7876
  * @deprecated
7772
7877
  */
7773
7878
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7774
7879
  /**
7775
7880
  * Disallow immediate mutation after variable assignment.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
7881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
7777
7882
  */
7778
- 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7883
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
7779
7884
  /**
7780
7885
  * Disallow impossible comparisons against `.length` or `.size`.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
7886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
7782
7887
  */
7783
7888
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7784
7889
  /**
7785
7890
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
7891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
7787
7892
  */
7788
7893
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7789
7894
  /**
7790
7895
  * Disallow incorrect template literal interpolation syntax.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7792
7897
  */
7793
7898
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7794
7899
  /**
7795
7900
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7797
7902
  * @deprecated
7798
7903
  */
7799
7904
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7800
7905
  /**
7801
7906
  * Disallow `instanceof` with built-in objects
7802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
7907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
7803
7908
  */
7804
7909
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7805
7910
  /**
7806
7911
  * Disallow calling functions and constructors with an invalid number of arguments.
7807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
7912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
7808
7913
  */
7809
7914
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7810
7915
  /**
7811
7916
  * Disallow comparing a single character from a string to a multi-character string.
7812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
7917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
7813
7918
  */
7814
7919
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7815
7920
  /**
7816
7921
  * Disallow invalid options in `fetch()` and `new Request()`.
7817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
7922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
7818
7923
  */
7819
7924
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7820
7925
  /**
7821
7926
  * Disallow invalid `accept` values on file inputs.
7822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
7927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
7823
7928
  */
7824
7929
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7930
+ /**
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
7933
+ */
7934
+ 'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
7825
7935
  /**
7826
7936
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
7937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
7828
7938
  */
7829
7939
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7830
7940
  /**
7831
7941
  * Disallow invalid implementations of well-known symbol methods.
7832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7833
7943
  */
7834
7944
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7835
7945
  /**
7836
7946
  * Disallow identifiers starting with `new` or `class`.
7837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
7947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
7838
7948
  */
7839
7949
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7840
7950
  /**
7841
7951
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
7952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
7843
7953
  */
7844
7954
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7845
7955
  /**
7846
7956
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
7957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
7848
7958
  */
7849
7959
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7850
7960
  /**
7851
7961
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7853
7963
  * @deprecated
7854
7964
  */
7855
7965
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7856
7966
  /**
7857
7967
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
7968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
7859
7969
  */
7860
7970
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7861
7971
  /**
7862
7972
  * Disallow mutating a loop iterable during iteration.
7863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
7973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
7864
7974
  */
7865
7975
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7866
7976
  /**
7867
7977
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
7978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
7869
7979
  */
7870
7980
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7871
7981
  /**
7872
7982
  * Disallow manually wrapped comments.
7873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
7983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
7874
7984
  */
7875
7985
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7876
7986
  /**
7877
7987
  * Disallow checking a Map key before accessing a different key.
7878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
7988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
7879
7989
  */
7880
7990
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7881
7991
  /**
7882
7992
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
7993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
7884
7994
  */
7885
7995
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7886
7996
  /**
7887
7997
  * Disallow references to missing local resources.
7888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
7998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
7889
7999
  */
7890
8000
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7891
8001
  /**
7892
8002
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7894
8004
  */
7895
8005
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7896
8006
  /**
7897
8007
  * Disallow named usage of default import and export.
7898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
8008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
7899
8009
  */
7900
8010
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7901
8011
  /**
7902
8012
  * Disallow negated array predicate calls.
7903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
8013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
7904
8014
  */
7905
8015
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7906
8016
  /**
7907
8017
  * Disallow negated comparisons.
7908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
8018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
7909
8019
  */
7910
8020
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7911
8021
  /**
7912
8022
  * Disallow negated conditions.
7913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
8023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
7914
8024
  */
7915
8025
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7916
8026
  /**
7917
8027
  * Disallow negated expression in equality check.
7918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
8028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
7919
8029
  */
7920
8030
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7921
8031
  /**
7922
8032
  * Disallow nested ternary expressions.
7923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
8033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
7924
8034
  */
7925
8035
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
8036
+ /**
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
8039
+ */
8040
+ 'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
7926
8041
  /**
7927
8042
  * Disallow `new Array()`.
7928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
8043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
7929
8044
  */
7930
8045
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7931
8046
  /**
7932
8047
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
8048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
7934
8049
  */
7935
8050
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7936
8051
  /**
7937
8052
  * Disallow non-function values with function-style verb prefixes.
7938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
8053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
7939
8054
  */
7940
8055
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7941
8056
  /**
7942
8057
  * Disallow non-standard properties on built-in objects.
7943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
8058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
7944
8059
  */
7945
8060
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7946
8061
  /**
7947
8062
  * Disallow the use of the `null` literal.
7948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
8063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
7949
8064
  */
7950
8065
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7951
8066
  /**
7952
8067
  * Disallow the use of objects as default parameters.
7953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
8068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
7954
8069
  */
7955
8070
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7956
8071
  /**
7957
8072
  * Disallow `Object` methods with `Map` or `Set`.
7958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
8073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
7959
8074
  */
7960
8075
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7961
8076
  /**
7962
8077
  * Disallow optional chaining on undeclared variables.
7963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7964
8079
  */
7965
8080
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7966
8081
  /**
7967
8082
  * Disallow `process.exit()`.
7968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
8083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
7969
8084
  */
7970
8085
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7971
8086
  /**
7972
8087
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
8088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
7974
8089
  */
7975
8090
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
8091
+ /**
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
8094
+ */
8095
+ 'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
7976
8096
  /**
7977
8097
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
8098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
7979
8099
  */
7980
8100
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7981
8101
  /**
7982
8102
  * Disallow selector syntax in DOM names.
7983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
8103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
7984
8104
  */
7985
8105
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7986
8106
  /**
7987
8107
  * Disallow shorthand properties that override related longhand properties.
7988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
8108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
7989
8109
  */
7990
8110
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7991
8111
  /**
7992
8112
  * Disallow passing single-element arrays to `Promise` methods.
7993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
8113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
7994
8114
  */
7995
8115
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7996
8116
  /**
7997
8117
  * Disallow classes that only have static members.
7998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
8118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
7999
8119
  */
8000
8120
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
8001
8121
  /**
8002
8122
  * Prefer comparing values directly over subtracting and comparing to `0`.
8003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
8123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
8004
8124
  */
8005
8125
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
8006
8126
  /**
8007
8127
  * Disallow `then` property.
8008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
8128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
8009
8129
  */
8010
8130
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
8011
8131
  /**
8012
8132
  * Disallow assigning `this` to a variable.
8013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
8133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
8014
8134
  */
8015
8135
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
8016
8136
  /**
8017
8137
  * Disallow `this` outside of classes.
8018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
8138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
8019
8139
  */
8020
8140
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8021
8141
  /**
8022
8142
  * Disallow assigning to top-level variables from inside functions.
8023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
8143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
8024
8144
  */
8025
8145
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8026
8146
  /**
8027
8147
  * Disallow top-level side effects in exported modules.
8028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
8029
8149
  */
8030
8150
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
8031
8151
  /**
8032
8152
  * Disallow `all` as a transition property.
8033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
8034
8154
  */
8035
8155
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8036
8156
  /**
8037
8157
  * Disallow comparing `undefined` using `typeof`.
8038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
8158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
8039
8159
  */
8040
8160
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8041
8161
  /**
8042
8162
  * Disallow referencing methods without calling them.
8043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
8044
8164
  */
8045
8165
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8046
8166
  /**
8047
8167
  * Require class members to be declared.
8048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
8049
8169
  */
8050
8170
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8171
+ /**
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
8174
+ */
8175
+ 'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
8176
+ /**
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
8179
+ */
8180
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
8051
8181
  /**
8052
8182
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8054
8184
  */
8055
8185
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8056
8186
  /**
8057
8187
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
8058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
8059
8189
  */
8060
8190
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8061
8191
  /**
8062
8192
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
8064
8194
  */
8065
8195
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8066
8196
  /**
8067
8197
  * Disallow awaiting non-promise values.
8068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
8069
8199
  */
8070
8200
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8071
8201
  /**
8072
8202
  * Disallow unnecessary comparisons against boolean literals.
8073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8074
8204
  */
8075
8205
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8076
8206
  /**
8077
8207
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
8079
8209
  */
8080
8210
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8081
8211
  /**
8082
8212
  * Disallow unnecessary `globalThis` references.
8083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
8084
8214
  */
8085
8215
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8086
8216
  /**
8087
8217
  * Disallow unnecessary nested ternary expressions.
8088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
8089
8219
  */
8090
8220
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8091
8221
  /**
8092
8222
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
8094
8224
  */
8095
8225
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8096
8226
  /**
8097
8227
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
8099
8229
  */
8100
8230
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8101
8231
  /**
8102
8232
  * Disallow `Array#splice()` when simpler alternatives exist.
8103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
8104
8234
  */
8105
8235
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8106
8236
  /**
8107
8237
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
8109
8239
  */
8110
8240
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8111
8241
  /**
8112
8242
  * Disallow unreadable array destructuring.
8113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
8114
8244
  */
8115
8245
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8116
8246
  /**
8117
8247
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
8119
8249
  */
8120
8250
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8121
8251
  /**
8122
8252
  * Disallow unreadable IIFEs.
8123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
8124
8254
  */
8125
8255
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8126
8256
  /**
8127
8257
  * Disallow unreadable `new` expressions.
8128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
8129
8259
  */
8130
8260
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8131
8261
  /**
8132
8262
  * Disallow unreadable object destructuring.
8133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
8263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
8134
8264
  */
8135
8265
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8136
8266
  /**
8137
8267
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
8268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
8139
8269
  */
8140
8270
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8141
8271
  /**
8142
8272
  * Disallow unsafe DOM HTML APIs.
8143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
8273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
8144
8274
  */
8145
8275
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8146
8276
  /**
8147
8277
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8149
8279
  */
8150
8280
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8151
8281
  /**
8152
8282
  * Disallow unsafe values as property keys.
8153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
8283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
8154
8284
  */
8155
8285
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8156
8286
  /**
8157
8287
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8159
8289
  */
8160
8290
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8161
8291
  /**
8162
8292
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
8164
8294
  */
8165
8295
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8166
8296
  /**
8167
- * Disallow ignoring the return value of selected array methods.
8168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
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
8299
+ */
8300
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
8301
+ /**
8302
+ * 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
8304
+ * @deprecated
8169
8305
  */
8170
8306
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8307
+ /**
8308
+ * 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
8310
+ */
8311
+ 'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
8312
+ /**
8313
+ * 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
8315
+ */
8316
+ 'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
8171
8317
  /**
8172
8318
  * Disallow unused object properties.
8173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
8319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
8174
8320
  */
8175
8321
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8176
8322
  /**
8177
8323
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
8324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
8179
8325
  */
8180
8326
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8181
8327
  /**
8182
8328
  * Disallow useless type coercions of values that are already of the target type.
8183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
8329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
8184
8330
  */
8185
8331
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8186
8332
  /**
8187
8333
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
8334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
8189
8335
  */
8190
8336
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8191
8337
  /**
8192
8338
  * Disallow useless compound assignments such as `x += 0`.
8193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
8339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
8194
8340
  */
8195
8341
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8196
8342
  /**
8197
8343
  * Disallow useless concatenation of literals.
8198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
8344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
8199
8345
  */
8200
8346
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8201
8347
  /**
8202
8348
  * Disallow useless `continue` statements.
8203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
8349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
8204
8350
  */
8205
8351
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8206
8352
  /**
8207
8353
  * Disallow unnecessary existence checks before deletion.
8208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
8354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
8209
8355
  */
8210
8356
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8211
8357
  /**
8212
8358
  * Disallow `else` after a statement that exits.
8213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
8359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
8214
8360
  */
8215
8361
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8216
8362
  /**
8217
8363
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8219
8365
  */
8220
8366
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8221
8367
  /**
8222
8368
  * Disallow useless fallback when spreading in object literals.
8223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
8369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
8224
8370
  */
8225
8371
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8226
8372
  /**
8227
8373
  * Disallow unnecessary `.toArray()` on iterators.
8228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
8374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
8229
8375
  */
8230
8376
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8231
8377
  /**
8232
8378
  * Disallow useless array length check.
8233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
8379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
8234
8380
  */
8235
8381
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8236
8382
  /**
8237
8383
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
8384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
8239
8385
  */
8240
8386
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8241
8387
  /**
8242
8388
  * Disallow useless overrides of class methods.
8243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
8389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
8244
8390
  */
8245
8391
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8246
8392
  /**
8247
8393
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
8394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
8249
8395
  */
8250
8396
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8251
8397
  /**
8252
8398
  * Disallow redundant re-exports.
8253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
8399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
8254
8400
  */
8255
8401
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8256
8402
  /**
8257
8403
  * Disallow simple recursive function calls that can be replaced with a loop.
8258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
8404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
8259
8405
  */
8260
8406
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8407
+ /**
8408
+ * 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
8410
+ */
8411
+ 'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
8261
8412
  /**
8262
8413
  * Disallow unnecessary spread.
8263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
8414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
8264
8415
  */
8265
8416
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8266
8417
  /**
8267
8418
  * Disallow useless case in switch statements.
8268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
8419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
8269
8420
  */
8270
8421
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8271
8422
  /**
8272
8423
  * Disallow useless template literal expressions.
8273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
8424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
8274
8425
  */
8275
8426
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8276
8427
  /**
8277
8428
  * Disallow useless `undefined`.
8278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
8429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
8279
8430
  */
8280
8431
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8432
+ /**
8433
+ * 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
8435
+ */
8436
+ 'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
8281
8437
  /**
8282
8438
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
8439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
8284
8440
  */
8285
8441
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8286
8442
  /**
8287
8443
  * Disallow number literals with zero fractions or dangling dots.
8288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
8444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
8289
8445
  */
8290
8446
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8291
8447
  /**
8292
8448
  * Enforce proper case for numeric literals.
8293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
8449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
8294
8450
  */
8295
8451
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8296
8452
  /**
8297
8453
  * Enforce the style of numeric separators by correctly grouping digits.
8298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
8454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
8299
8455
  */
8300
8456
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8301
8457
  /**
8302
8458
  * Require assignment operator shorthand where possible.
8303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
8459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
8304
8460
  */
8305
8461
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8306
8462
  /**
8307
8463
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
8464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
8309
8465
  */
8310
8466
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8311
8467
  /**
8312
8468
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
8469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
8314
8470
  */
8315
8471
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8316
8472
  /**
8317
8473
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
8474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
8319
8475
  */
8320
8476
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8321
8477
  /**
8322
8478
  * Prefer an options object over a boolean in `.addEventListener()`.
8323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
8479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
8324
8480
  */
8325
8481
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8326
8482
  /**
8327
8483
  * Prefer `AggregateError` when throwing collected errors.
8328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
8484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
8329
8485
  */
8330
8486
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8331
8487
  /**
8332
8488
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
8489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
8334
8490
  */
8335
8491
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8336
8492
  /**
8337
8493
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
8494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
8339
8495
  */
8340
8496
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8341
8497
  /**
8342
8498
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
8499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
8344
8500
  */
8345
8501
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8346
8502
  /**
8347
- * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
8503
+ * 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
8349
8505
  */
8350
8506
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8351
8507
  /**
8352
8508
  * Prefer using the `Array.from()` mapping function argument.
8353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
8509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
8354
8510
  */
8355
8511
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8356
8512
  /**
8357
8513
  * Prefer `Array.from({length}, …)` when creating range arrays.
8358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
8514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
8359
8515
  */
8360
8516
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8361
8517
  /**
8362
8518
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
8519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
8364
8520
  */
8365
8521
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8366
8522
  /**
8367
8523
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
8524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
8369
8525
  */
8370
8526
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8371
8527
  /**
8372
8528
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
8529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
8374
8530
  */
8375
8531
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8376
8532
  /**
8377
8533
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
8534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
8379
8535
  */
8380
8536
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8381
8537
  /**
8382
8538
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
8539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
8384
8540
  */
8385
8541
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8386
8542
  /**
8387
8543
  * Prefer `.at()` method for index access and `String#charAt()`.
8388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
8544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
8389
8545
  */
8390
8546
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8391
8547
  /**
8392
8548
  * Prefer `await` over promise chaining.
8393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
8549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
8394
8550
  */
8395
8551
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8396
8552
  /**
8397
8553
  * Prefer `BigInt` literals over the constructor.
8398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
8554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
8399
8555
  */
8400
8556
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8401
8557
  /**
8402
8558
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
8559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
8404
8560
  */
8405
8561
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8406
8562
  /**
8407
8563
  * Prefer block statements over IIFEs used only for scoping.
8408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
8564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
8409
8565
  */
8410
8566
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8411
8567
  /**
8412
8568
  * Prefer directly returning boolean expressions over `if` statements.
8413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
8569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
8414
8570
  */
8415
8571
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8416
8572
  /**
8417
8573
  * Prefer class field declarations over `this` assignments in constructors.
8418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
8574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
8419
8575
  */
8420
8576
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8421
8577
  /**
8422
8578
  * Prefer using `Element#classList.toggle()` to toggle class names.
8423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
8579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
8424
8580
  */
8425
8581
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8426
8582
  /**
8427
8583
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
8584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
8429
8585
  */
8430
8586
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8431
8587
  /**
8432
- * Prefer early continues over whole-loop conditional wrapping.
8433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
8588
+ * 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
8590
+ */
8591
+ 'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
8592
+ /**
8593
+ * 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
8434
8595
  */
8435
8596
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8436
8597
  /**
8437
8598
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
8599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
8439
8600
  */
8440
8601
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8441
8602
  /**
8442
8603
  * Prefer default parameters over reassignment.
8443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
8604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
8444
8605
  */
8445
8606
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8446
8607
  /**
8447
8608
  * Prefer direct iteration over default iterator method calls.
8448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
8609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
8449
8610
  */
8450
8611
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8451
8612
  /**
8452
8613
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
8614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
8454
8615
  */
8455
8616
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8456
8617
  /**
8457
8618
  * Prefer `Element#append()` over `Node#appendChild()`.
8458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
8619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
8459
8620
  */
8460
8621
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8461
8622
  /**
8462
8623
  * Renamed to `unicorn/dom-node-dataset`.
8463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-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
8464
8625
  * @deprecated
8465
8626
  */
8466
8627
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8467
8628
  /**
8468
8629
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
8470
8631
  */
8471
8632
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8472
8633
  /**
8473
8634
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
8475
8636
  */
8476
8637
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8477
8638
  /**
8478
- * Prefer `.replaceChildren()` when emptying DOM children.
8479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
8639
+ * 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
8480
8641
  */
8481
8642
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8482
8643
  /**
8483
8644
  * Prefer `.textContent` over `.innerText`.
8484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
8645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
8485
8646
  */
8486
8647
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8487
8648
  /**
8488
- * Prefer early returns over full-function conditional wrapping.
8489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
8649
+ * 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
8490
8651
  */
8491
8652
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8492
8653
  /**
8493
8654
  * Prefer `else if` over adjacent `if` statements with related conditions.
8494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
8655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
8495
8656
  */
8496
8657
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8497
8658
  /**
8498
8659
  * Prefer `Error.isError()` when checking for errors.
8499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
8660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
8500
8661
  */
8501
8662
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8502
8663
  /**
8503
8664
  * Prefer `EventTarget` over `EventEmitter`.
8504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
8665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
8505
8666
  */
8506
8667
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8507
8668
  /**
8508
8669
  * Prefer explicit viewport units.
8509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
8670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
8510
8671
  */
8511
8672
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8512
8673
  /**
8513
8674
  * Prefer `export…from` when re-exporting.
8514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
8675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
8515
8676
  */
8516
8677
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8517
8678
  /**
8518
8679
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
8680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
8520
8681
  */
8521
8682
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8522
8683
  /**
8523
8684
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
8685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
8525
8686
  */
8526
8687
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8527
8688
  /**
8528
8689
  * Prefer global numeric constants over `Number` static properties.
8529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
8690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
8530
8691
  */
8531
8692
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8532
8693
  /**
8533
8694
  * Prefer `globalThis` over `window`, `self`, and `global`.
8534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
8695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
8535
8696
  */
8536
8697
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8537
8698
  /**
8538
- * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
8699
+ * 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
8540
8701
  */
8541
8702
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8542
8703
  /**
8543
8704
  * Prefer `.has()` when checking existence.
8544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
8705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
8545
8706
  */
8546
8707
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8547
8708
  /**
8548
8709
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
8710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
8550
8711
  */
8551
8712
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8552
8713
  /**
8553
8714
  * Prefer HTTPS over HTTP.
8554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
8715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
8555
8716
  */
8556
8717
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8557
8718
  /**
8558
8719
  * Prefer identifiers over string literals in import and export specifiers.
8559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8560
8721
  */
8561
8722
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8562
8723
  /**
8563
8724
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
8725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
8565
8726
  */
8566
8727
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8567
8728
  /**
8568
8729
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
8730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
8570
8731
  */
8571
8732
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8572
8733
  /**
8573
8734
  * Prefer `.includes()` over repeated equality comparisons.
8574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8575
8736
  */
8576
8737
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8577
8738
  /**
8578
8739
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
8740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
8580
8741
  */
8581
8742
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8582
8743
  /**
8583
8744
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
8745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
8585
8746
  */
8586
8747
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8587
8748
  /**
8588
8749
  * Prefer iterator helpers over temporary arrays from iterators.
8589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
8750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
8590
8751
  */
8591
8752
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8592
8753
  /**
8593
8754
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
8755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
8595
8756
  */
8596
8757
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8597
8758
  /**
8598
8759
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8600
8761
  */
8601
8762
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8763
+ /**
8764
+ * 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
8766
+ */
8767
+ 'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
8768
+ /**
8769
+ * 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
8771
+ */
8772
+ 'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
8602
8773
  /**
8603
8774
  * Renamed to `unicorn/consistent-json-file-read`.
8604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8605
8776
  * @deprecated
8606
8777
  */
8607
8778
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8608
8779
  /**
8609
8780
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
8781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
8611
8782
  */
8612
8783
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8613
8784
  /**
8614
8785
  * Prefer `location.assign()` over assigning to `location.href`.
8615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
8786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
8616
8787
  */
8617
8788
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8618
8789
  /**
8619
8790
  * Prefer using a logical operator over a ternary.
8620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8621
8792
  */
8622
8793
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8623
8794
  /**
8624
8795
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
8796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
8626
8797
  */
8627
8798
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8628
8799
  /**
8629
8800
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
8801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
8631
8802
  */
8632
8803
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8633
8804
  /**
8634
8805
  * Prefer `Math` constants over their approximate numeric values.
8635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
8806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
8636
8807
  */
8637
8808
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8638
8809
  /**
8639
8810
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
8811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
8641
8812
  */
8642
8813
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8643
8814
  /**
8644
8815
  * Prefer `Math.trunc()` for truncating numbers.
8645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
8816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
8646
8817
  */
8647
8818
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8819
+ /**
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
8822
+ */
8823
+ 'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
8648
8824
  /**
8649
8825
  * Prefer moving ternaries into the minimal varying part of an expression.
8650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
8826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
8651
8827
  */
8652
8828
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8653
8829
  /**
8654
8830
  * Prefer modern DOM APIs.
8655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
8831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
8656
8832
  */
8657
8833
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8658
8834
  /**
8659
8835
  * Prefer modern `Math` APIs over legacy patterns.
8660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
8836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
8661
8837
  */
8662
8838
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8663
8839
  /**
8664
8840
  * Prefer JavaScript modules (ESM) over CommonJS.
8665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
8841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
8666
8842
  */
8667
8843
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8668
8844
  /**
8669
8845
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
8846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
8671
8847
  */
8672
8848
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8673
8849
  /**
8674
8850
  * Prefer negative index over `.length - index` when possible.
8675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
8851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
8676
8852
  */
8677
8853
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8678
8854
  /**
8679
8855
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
8856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
8681
8857
  */
8682
8858
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8683
8859
  /**
8684
8860
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
8861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
8686
8862
  */
8687
8863
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8688
8864
  /**
8689
8865
  * Prefer `Number.isSafeInteger()` over integer checks.
8690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
8866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
8691
8867
  */
8692
8868
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8693
8869
  /**
8694
8870
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
8871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
8696
8872
  */
8697
8873
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8698
8874
  /**
8699
8875
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
8876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
8701
8877
  */
8702
8878
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8703
8879
  /**
8704
8880
  * Prefer object destructuring defaults over default object literals with spread.
8705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
8881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
8706
8882
  */
8707
8883
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8708
8884
  /**
8709
8885
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
8886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
8711
8887
  */
8712
8888
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8713
8889
  /**
8714
8890
  * Prefer the most specific `Object` iterable method.
8715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
8891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
8716
8892
  */
8717
8893
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8718
8894
  /**
8719
8895
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
8896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
8721
8897
  */
8722
8898
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8723
8899
  /**
8724
8900
  * Prefer omitting the `catch` binding parameter.
8725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
8901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
8726
8902
  */
8727
8903
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8728
8904
  /**
8729
8905
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
8906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
8731
8907
  */
8732
8908
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8733
8909
  /**
8734
8910
  * Prefer private class fields over the underscore-prefix convention.
8735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
8911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
8736
8912
  */
8737
8913
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8738
8914
  /**
8739
8915
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
8916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
8741
8917
  */
8742
8918
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8743
8919
  /**
8744
8920
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
8921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
8746
8922
  */
8747
8923
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8748
8924
  /**
8749
8925
  * Prefer borrowing methods from the prototype instead of the instance.
8750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
8926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
8751
8927
  */
8752
8928
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8753
8929
  /**
8754
8930
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
8931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
8756
8932
  */
8757
8933
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8758
8934
  /**
8759
8935
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
8936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
8761
8937
  */
8762
8938
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8763
8939
  /**
8764
8940
  * Prefer `Reflect.apply()` over `Function#apply()`.
8765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
8941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
8766
8942
  */
8767
8943
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8768
8944
  /**
8769
8945
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
8946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
8771
8947
  */
8772
8948
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8773
8949
  /**
8774
8950
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
8951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
8776
8952
  */
8777
8953
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8778
8954
  /**
8779
8955
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
8956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
8781
8957
  */
8782
8958
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8783
8959
  /**
8784
8960
  * Prefer `:scope` when using element query selector methods.
8785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
8961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
8786
8962
  */
8787
8963
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8788
8964
  /**
8789
8965
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
8966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
8791
8967
  */
8792
8968
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8793
8969
  /**
8794
8970
  * Prefer `Set` methods for Set operations.
8795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
8971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
8796
8972
  */
8797
8973
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8798
8974
  /**
8799
8975
  * Prefer using `Set#size` instead of `Array#length`.
8800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
8976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
8801
8977
  */
8802
8978
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8803
8979
  /**
8804
8980
  * Prefer arrow function properties over methods with a single return.
8805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
8981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
8806
8982
  */
8807
8983
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8808
8984
  /**
8809
8985
  * Prefer simple conditions first in logical expressions.
8810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
8986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
8811
8987
  */
8812
8988
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8813
8989
  /**
8814
8990
  * Prefer a simple comparison function for `Array#sort()`.
8815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
8991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
8816
8992
  */
8817
8993
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8818
8994
  /**
8819
8995
  * Prefer simplified conditions.
8820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
8996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
8821
8997
  */
8822
8998
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8823
8999
  /**
8824
9000
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
9001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
8826
9002
  */
8827
9003
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8828
9004
  /**
8829
9005
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
9006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
8831
9007
  */
8832
9008
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8833
9009
  /**
8834
9010
  * Prefer a single object destructuring declaration per local const source.
8835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
9011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
8836
9012
  */
8837
9013
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8838
9014
  /**
8839
9015
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
9016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
8841
9017
  */
8842
9018
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8843
9019
  /**
8844
9020
  * Prefer declaring variables in the smallest possible scope.
8845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
9021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
8846
9022
  */
8847
9023
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8848
9024
  /**
8849
9025
  * Prefer `String#split()` with a limit.
8850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
9026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
8851
9027
  */
8852
9028
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8853
9029
  /**
8854
9030
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
9031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
8856
9032
  */
8857
9033
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8858
9034
  /**
8859
9035
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
9036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
8861
9037
  */
8862
9038
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8863
9039
  /**
8864
9040
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
9041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
8866
9042
  */
8867
9043
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8868
9044
  /**
8869
9045
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
9046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
8871
9047
  */
8872
9048
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8873
9049
  /**
8874
9050
  * Prefer `String#repeat()` for repeated whitespace.
8875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
9051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
8876
9052
  */
8877
9053
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8878
9054
  /**
8879
9055
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
9056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
8881
9057
  */
8882
9058
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8883
9059
  /**
8884
9060
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
9061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
8886
9062
  */
8887
9063
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8888
9064
  /**
8889
9065
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
9066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
8891
9067
  */
8892
9068
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8893
9069
  /**
8894
9070
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
9071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
8896
9072
  */
8897
9073
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8898
9074
  /**
8899
9075
  * Prefer using `structuredClone` to create a deep clone.
8900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
9076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
8901
9077
  */
8902
9078
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8903
9079
  /**
8904
9080
  * Prefer `switch` over multiple `else-if`.
8905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
9081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
8906
9082
  */
8907
9083
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8908
9084
  /**
8909
9085
  * Prefer `Temporal` over `Date`.
8910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
9086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
8911
9087
  */
8912
9088
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
9089
+ /**
9090
+ * Prefer direct Temporal conversion methods.
9091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
9092
+ */
9093
+ 'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
8913
9094
  /**
8914
9095
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
9096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
8916
9097
  */
8917
9098
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8918
9099
  /**
8919
9100
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
9101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
8921
9102
  */
8922
9103
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8923
9104
  /**
8924
9105
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
9106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
8926
9107
  */
8927
9108
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8928
9109
  /**
8929
9110
  * Prefer top-level await over top-level promises and async function calls.
8930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
9111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
8931
9112
  */
8932
9113
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8933
9114
  /**
8934
9115
  * Enforce throwing `TypeError` in type checking conditions.
8935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
9116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
8936
9117
  */
8937
9118
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8938
9119
  /**
8939
9120
  * Require type literals to be last in union types.
8940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
9121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
8941
9122
  */
8942
9123
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8943
9124
  /**
8944
- * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
9125
+ * 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
8946
9127
  */
8947
9128
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
9129
+ /**
9130
+ * 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
9132
+ */
9133
+ 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
8948
9134
  /**
8949
9135
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
9136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
8951
9137
  */
8952
9138
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8953
9139
  /**
8954
9140
  * Prefer Unicode code point escapes over legacy escape sequences.
8955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8956
9142
  */
8957
9143
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8958
9144
  /**
8959
9145
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
9146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
8961
9147
  */
8962
9148
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8963
9149
  /**
8964
9150
  * Prefer `URL#href` over stringifying a `URL`.
8965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
9151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
8966
9152
  */
8967
9153
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8968
9154
  /**
8969
9155
  * Prefer `URLSearchParams` over manually splitting query strings.
8970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
9156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
8971
9157
  */
8972
9158
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8973
9159
  /**
8974
9160
  * Prefer putting the condition in the while statement.
8975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
9161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
8976
9162
  */
8977
9163
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8978
9164
  /**
8979
9165
  * Renamed to `unicorn/name-replacements`.
8980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8981
9167
  * @deprecated
8982
9168
  */
8983
9169
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8984
9170
  /**
8985
9171
  * Enforce consistent relative URL style.
8986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
9172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
8987
9173
  */
8988
9174
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8989
9175
  /**
8990
9176
  * Enforce using the separator argument with `Array#join()`.
8991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
9177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
8992
9178
  */
8993
9179
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8994
9180
  /**
8995
9181
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
9182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
8997
9183
  */
8998
9184
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8999
9185
  /**
9000
9186
  * Require `CSS.escape()` for interpolated values in CSS selectors.
9001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
9187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
9002
9188
  */
9003
9189
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
9004
9190
  /**
9005
9191
  * Require configured YAML frontmatter fields.
9006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
9192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
9007
9193
  */
9008
9194
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
9009
9195
  /**
9010
9196
  * Require non-empty module attributes for imports and exports
9011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
9197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
9012
9198
  */
9013
9199
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
9014
9200
  /**
9015
9201
  * Require non-empty specifier list in import and export statements.
9016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
9202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
9017
9203
  */
9018
9204
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9019
9205
  /**
9020
9206
  * Enforce using the digits argument with `Number#toFixed()`.
9021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9022
9208
  */
9023
9209
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9024
9210
  /**
9025
9211
  * Require passive event listeners for high-frequency events.
9026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
9212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
9027
9213
  */
9028
9214
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9029
9215
  /**
9030
9216
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
9217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
9032
9218
  */
9033
9219
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9034
9220
  /**
9035
9221
  * Require boolean-returning Proxy traps to return booleans.
9036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
9222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
9037
9223
  */
9038
9224
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9039
9225
  /**
9040
9226
  * Enforce a consistent style for single-line block comments.
9041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
9227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
9042
9228
  */
9043
9229
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9044
9230
  /**
9045
9231
  * Enforce better string content.
9046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
9232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
9047
9233
  */
9048
9234
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9049
9235
  /**
9050
9236
  * Enforce consistent brace style for `case` clauses.
9051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
9237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
9052
9238
  */
9053
9239
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9054
9240
  /**
9055
9241
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
9242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
9057
9243
  */
9058
9244
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9059
9245
  /**
9060
9246
  * Fix whitespace-insensitive template indentation.
9061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
9247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
9062
9248
  */
9063
9249
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9064
9250
  /**
9065
9251
  * Enforce consistent case for text encoding identifiers.
9066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
9252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
9067
9253
  */
9068
9254
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9069
9255
  /**
9070
9256
  * Require `new` when creating an error.
9071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
9257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
9072
9258
  */
9073
9259
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9074
9260
  /**
9075
9261
  * Limit the complexity of `try` blocks.
9076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
9262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
9077
9263
  */
9078
9264
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9079
9265
  /**
@@ -11569,6 +11755,22 @@ type JsdocTextEscaping = [] | [{
11569
11755
  escapeHTML?: boolean;
11570
11756
  escapeMarkdown?: boolean;
11571
11757
  }];
11758
+ // ----- jsdoc/ts-ban-ts-comment -----
11759
+ type JsdocTsBanTsComment = [] | [{
11760
+ minimumDescriptionLength?: number;
11761
+ "ts-check"?: (boolean | "allow-with-description" | {
11762
+ descriptionFormat?: string;
11763
+ });
11764
+ "ts-expect-error"?: (boolean | "allow-with-description" | {
11765
+ descriptionFormat?: string;
11766
+ });
11767
+ "ts-ignore"?: (boolean | "allow-with-description" | {
11768
+ descriptionFormat?: string;
11769
+ });
11770
+ "ts-nocheck"?: (boolean | "allow-with-description" | {
11771
+ descriptionFormat?: string;
11772
+ });
11773
+ }];
11572
11774
  // ----- jsdoc/ts-method-signature-style -----
11573
11775
  type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
11574
11776
  enableFixer?: boolean;
@@ -16321,6 +16523,9 @@ type UnicornFilenameCase = [] | [({
16321
16523
  })[];
16322
16524
  multipleFileExtensions?: boolean;
16323
16525
  checkDirectories?: boolean;
16526
+ directoryRoots?: (string | {
16527
+ [k: string]: unknown | undefined;
16528
+ })[];
16324
16529
  } | {
16325
16530
  cases?: {
16326
16531
  camelCase?: boolean;
@@ -16334,6 +16539,9 @@ type UnicornFilenameCase = [] | [({
16334
16539
  })[];
16335
16540
  multipleFileExtensions?: boolean;
16336
16541
  checkDirectories?: boolean;
16542
+ directoryRoots?: (string | {
16543
+ [k: string]: unknown | undefined;
16544
+ })[];
16337
16545
  })];
16338
16546
  // ----- unicorn/id-match -----
16339
16547
  type UnicornIdMatch = [] | [string] | [string, {
@@ -16420,10 +16628,22 @@ type UnicornNoArrayReverse = [] | [{
16420
16628
  type UnicornNoArraySort = [] | [{
16421
16629
  allowExpressionStatement?: boolean;
16422
16630
  }];
16631
+ // ----- unicorn/no-break-in-nested-loop -----
16632
+ type UnicornNoBreakInNestedLoop = [] | [{
16633
+ checkContinue?: boolean;
16634
+ }];
16635
+ // ----- unicorn/no-deprecated-css-features -----
16636
+ type UnicornNoDeprecatedCssFeatures = [] | [{
16637
+ allow?: string[];
16638
+ }];
16423
16639
  // ----- unicorn/no-empty-file -----
16424
16640
  type UnicornNoEmptyFile = [] | [{
16425
16641
  allowComments?: boolean;
16426
16642
  }];
16643
+ // ----- unicorn/no-immediate-mutation -----
16644
+ type UnicornNoImmediateMutation = [] | [{
16645
+ checkConditionals?: boolean;
16646
+ }];
16427
16647
  // ----- unicorn/no-instanceof-builtins -----
16428
16648
  type UnicornNoInstanceofBuiltins = [] | [{
16429
16649
  useErrorIsError?: boolean;
@@ -16464,6 +16684,10 @@ type UnicornNoNull = [] | [{
16464
16684
  type UnicornNoTypeofUndefined = [] | [{
16465
16685
  checkGlobalVariables?: boolean;
16466
16686
  }];
16687
+ // ----- unicorn/no-unknown-pseudo-selectors -----
16688
+ type UnicornNoUnknownPseudoSelectors = [] | [{
16689
+ allow?: string[];
16690
+ }];
16467
16691
  // ----- unicorn/no-unnecessary-polyfills -----
16468
16692
  type UnicornNoUnnecessaryPolyfills = [] | [{
16469
16693
  targets?: (string | string[] | {
@@ -16474,6 +16698,10 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
16474
16698
  type UnicornNoUnreadableArrayDestructuring = [] | [{
16475
16699
  maximumIgnoredElements?: number;
16476
16700
  }];
16701
+ // ----- unicorn/no-unscoped-css-nesting-selector -----
16702
+ type UnicornNoUnscopedCssNestingSelector = [] | [{
16703
+ scopingRootAtRules?: string[];
16704
+ }];
16477
16705
  // ----- unicorn/no-useless-undefined -----
16478
16706
  type UnicornNoUselessUndefined = [] | [{
16479
16707
  checkArguments?: boolean;
@@ -16527,9 +16755,14 @@ type UnicornPreferAt = [] | [{
16527
16755
  getLastElementFunctions?: string[];
16528
16756
  checkAllIndexAccess?: boolean;
16529
16757
  }];
16758
+ // ----- unicorn/prefer-combined-guards -----
16759
+ type UnicornPreferCombinedGuards = [] | [{
16760
+ checkCompoundConditions?: boolean;
16761
+ }];
16530
16762
  // ----- unicorn/prefer-continue -----
16531
16763
  type UnicornPreferContinue = [] | [{
16532
16764
  maximumStatements?: number;
16765
+ checkShortBodies?: boolean;
16533
16766
  }];
16534
16767
  // ----- unicorn/prefer-dom-node-html-methods -----
16535
16768
  type UnicornPreferDomNodeHtmlMethods = [] | [{
@@ -16539,6 +16772,7 @@ type UnicornPreferDomNodeHtmlMethods = [] | [{
16539
16772
  // ----- unicorn/prefer-early-return -----
16540
16773
  type UnicornPreferEarlyReturn = [] | [{
16541
16774
  maximumStatements?: number;
16775
+ checkShortBodies?: boolean;
16542
16776
  }];
16543
16777
  // ----- unicorn/prefer-explicit-viewport-units -----
16544
16778
  type UnicornPreferExplicitViewportUnits = [] | [{