@2digits/eslint-config 5.7.4 → 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
@@ -6855,6 +6940,11 @@ Backward pagination arguments
6855
6940
  * @see https://typescript-eslint.io/rules/no-for-in-array
6856
6941
  */
6857
6942
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>;
6943
+ /**
6944
+ * Disallow type operations that resolve to the "empty object" type
6945
+ * @see https://typescript-eslint.io/rules/no-generated-empty-object-type
6946
+ */
6947
+ 'ts/no-generated-empty-object-type'?: Linter.RuleEntry<[]>;
6858
6948
  /**
6859
6949
  * Disallow the use of `eval()`-like functions
6860
6950
  * @see https://typescript-eslint.io/rules/no-implied-eval
@@ -7335,1740 +7425,1841 @@ Backward pagination arguments
7335
7425
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7336
7426
  /**
7337
7427
  * Prefer better DOM traversal APIs.
7338
- * @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
7339
7429
  */
7340
7430
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7341
7431
  /**
7342
7432
  * Removed. Prefer `eslint-plugin-regexp`
7343
- * @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
7344
7434
  * @deprecated
7345
7435
  */
7346
7436
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7347
7437
  /**
7348
7438
  * Enforce a specific parameter name in catch clauses.
7349
- * @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
7350
7440
  */
7351
7441
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7352
7442
  /**
7353
7443
  * Enforce consistent class references in static methods.
7354
- * @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
7355
7445
  */
7356
7446
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7357
7447
  /**
7358
7448
  * Enforce better comment content.
7359
- * @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
7360
7450
  */
7361
7451
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7362
7452
  /**
7363
7453
  * Enforce a consistent return style for multiline arrow function bodies.
7364
- * @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
7365
7455
  */
7366
7456
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7367
7457
  /**
7368
7458
  * Enforce consistent assertion style with `node:assert`.
7369
- * @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
7370
7460
  */
7371
7461
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7372
7462
  /**
7373
7463
  * Enforce consistent naming for boolean names.
7374
- * @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
7375
7465
  */
7376
7466
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7377
7467
  /**
7378
7468
  * Enforce consistent class member order.
7379
- * @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
7380
7470
  */
7381
7471
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7382
7472
  /**
7383
7473
  * Enforce consistent spelling of compound words in identifiers.
7384
- * @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
7385
7475
  */
7386
7476
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7387
7477
  /**
7388
7478
  * Enforce consistent conditional object spread style.
7389
- * @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
7390
7480
  */
7391
7481
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7392
7482
  /**
7393
7483
  * Prefer passing `Date` directly to the constructor when cloning.
7394
- * @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
7395
7485
  */
7396
7486
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7397
7487
  /**
7398
7488
  * Use destructured variables over properties.
7399
- * @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
7400
7490
  */
7401
7491
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7402
7492
  /**
7403
7493
  * Prefer consistent types when spreading a ternary in an array literal.
7404
- * @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
7405
7495
  */
7406
7496
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7407
7497
  /**
7408
7498
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7409
- * @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
7410
7500
  */
7411
7501
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7412
7502
  /**
7413
7503
  * Enforce consistent decorator position on exported classes.
7414
- * @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
7415
7505
  */
7416
7506
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7417
7507
  /**
7418
7508
  * Move function definitions to the highest possible scope.
7419
- * @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
7420
7510
  */
7421
7511
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7422
7512
  /**
7423
7513
  * Enforce function syntax by role.
7424
- * @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
7425
7515
  */
7426
7516
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7427
7517
  /**
7428
7518
  * Enforce consistent JSON file reads before `JSON.parse()`.
7429
- * @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
7430
7520
  */
7431
7521
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7432
7522
  /**
7433
7523
  * Enforce consistent optional chaining for same-base member access.
7434
- * @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
7435
7525
  */
7436
7526
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7437
7527
  /**
7438
7528
  * Enforce consistent style for escaping `${` in template literals.
7439
- * @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
7440
7530
  */
7441
7531
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7442
7532
  /**
7443
7533
  * Enforce consistent labels on tuple type elements.
7444
- * @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
7445
7535
  */
7446
7536
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7447
7537
  /**
7448
7538
  * Enforce correct `Error` subclassing.
7449
- * @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
7450
7540
  */
7451
7541
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7452
7542
  /**
7453
7543
  * Enforce consistent default export declarations.
7454
- * @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
7455
7545
  */
7456
7546
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7457
7547
  /**
7458
7548
  * Enforce consistent style for DOM element dataset access.
7459
- * @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
7460
7550
  */
7461
7551
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7462
7552
  /**
7463
7553
  * Enforce no spaces between braces.
7464
- * @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
7465
7555
  */
7466
7556
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7467
7557
  /**
7468
7558
  * Enforce passing a `message` value when creating a built-in error.
7469
- * @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
7470
7560
  */
7471
7561
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7472
7562
  /**
7473
7563
  * Require escape sequences to use uppercase or lowercase values.
7474
- * @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
7475
7565
  */
7476
7566
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7477
7567
  /**
7478
7568
  * Add expiration conditions to TODO comments.
7479
- * @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
7480
7570
  */
7481
7571
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7482
7572
  /**
7483
7573
  * Enforce explicitly comparing the `length` or `size` property of a value.
7484
- * @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
7485
7575
  */
7486
7576
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7487
7577
  /**
7488
7578
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7489
- * @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
7490
7580
  */
7491
7581
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7492
7582
  /**
7493
7583
  * Enforce a case style for filenames and directory names.
7494
- * @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
7495
7585
  */
7496
7586
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7497
7587
  /**
7498
7588
  * Require identifiers to match a specified regular expression.
7499
- * @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
7500
7590
  */
7501
7591
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7502
7592
  /**
7503
7593
  * Enforce specific import styles per module.
7504
- * @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
7505
7595
  */
7506
7596
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7507
7597
  /**
7508
7598
  * Prevent usage of variables from outside the scope of isolated functions.
7509
- * @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
7510
7600
  */
7511
7601
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7512
7602
  /**
7513
7603
  * Enforce a consistent style for optional loop sources.
7514
- * @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
7515
7605
  */
7516
7606
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7517
7607
  /**
7518
7608
  * Require or disallow logical assignment operator shorthand
7519
- * @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
7520
7610
  */
7521
7611
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7522
7612
  /**
7523
7613
  * Limit the depth of nested calls.
7524
- * @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
7525
7615
  */
7526
7616
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7527
7617
  /**
7528
7618
  * Enforce replacements for variable, property, and filenames.
7529
- * @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
7530
7620
  */
7531
7621
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7532
7622
  /**
7533
7623
  * Enforce correct use of `new` for builtin constructors.
7534
- * @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
7535
7625
  */
7536
7626
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7537
7627
  /**
7538
7628
  * Enforce specifying rules to disable in `eslint-disable` comments.
7539
- * @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
7540
7630
  */
7541
7631
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7542
7632
  /**
7543
7633
  * Disallow recursive access to `this` within getters and setters.
7544
- * @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
7545
7635
  */
7546
7636
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7547
7637
  /**
7548
7638
  * Disallow bitwise operators where a logical operator was likely intended.
7549
- * @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
7550
7640
  */
7551
7641
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7552
7642
  /**
7553
7643
  * Disallow anonymous functions and classes as the default export.
7554
- * @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
7555
7645
  */
7556
7646
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7557
7647
  /**
7558
7648
  * Prevent passing a function reference directly to iterator methods.
7559
- * @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
7560
7650
  */
7561
7651
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7562
7652
  /**
7563
7653
  * Disallow array accumulation with `Array#concat()` in loops.
7564
- * @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
7565
7655
  */
7566
7656
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7567
7657
  /**
7568
7658
  * Disallow using reference values as `Array#fill()` values.
7569
- * @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
7570
7660
  */
7571
7661
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7572
7662
  /**
7573
7663
  * Disallow `.fill()` after `Array.from({length: …})`.
7574
- * @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
7575
7665
  */
7576
7666
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7577
7667
  /**
7578
7668
  * Disallow front-of-array mutation.
7579
- * @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
7580
7670
  */
7581
7671
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7582
7672
  /**
7583
7673
  * Disallow using the `this` argument in array methods.
7584
- * @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
7585
7675
  */
7586
7676
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7587
7677
  /**
7588
7678
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7589
- * @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
7590
7680
  * @deprecated
7591
7681
  */
7592
7682
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7593
7683
  /**
7594
7684
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7595
- * @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
7596
7686
  */
7597
7687
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7598
7688
  /**
7599
7689
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7600
- * @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
7601
7691
  */
7602
7692
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7603
7693
  /**
7604
7694
  * Prefer `Array#toSorted()` over `Array#sort()`.
7605
- * @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
7606
7696
  */
7607
7697
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7608
7698
  /**
7609
7699
  * Disallow sorting arrays to get the minimum or maximum value.
7610
- * @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
7611
7701
  */
7612
7702
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7613
7703
  /**
7614
7704
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7615
- * @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
7616
7706
  */
7617
7707
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7618
7708
  /**
7619
7709
  * Disallow asterisk prefixes in documentation comments.
7620
- * @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
7621
7711
  */
7622
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<[]>;
7623
7718
  /**
7624
7719
  * Disallow async functions as `Promise#finally()` callbacks.
7625
- * @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
7626
7721
  */
7627
7722
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7628
7723
  /**
7629
7724
  * Disallow member access from await expression.
7630
- * @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
7631
7726
  */
7632
7727
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7633
7728
  /**
7634
7729
  * Disallow using `await` in `Promise` method parameters.
7635
- * @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
7636
7731
  */
7637
7732
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7638
7733
  /**
7639
7734
  * Disallow barrel files.
7640
- * @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
7641
7736
  */
7642
7737
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7643
7738
  /**
7644
7739
  * Disallow unnecessary `Blob` to `File` conversion.
7645
- * @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
7646
7741
  */
7647
7742
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7648
7743
  /**
7649
7744
  * Disallow boolean-returning sort comparators.
7650
- * @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
7651
7746
  */
7652
7747
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7653
7748
  /**
7654
- * Disallow `break` and `continue` in nested loops and switches inside loops.
7655
- * @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
7656
7751
  */
7657
- 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7752
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7658
7753
  /**
7659
7754
  * Prefer drawing canvases directly instead of converting them to images.
7660
- * @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
7661
7756
  */
7662
7757
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7663
7758
  /**
7664
7759
  * Disallow chained comparisons such as `a < b < c`.
7665
- * @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
7666
7761
  */
7667
7762
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7668
7763
  /**
7669
7764
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7670
- * @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
7671
7766
  */
7672
7767
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7673
7768
  /**
7674
7769
  * Disallow dynamic object property existence checks.
7675
- * @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
7676
7771
  */
7677
7772
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7678
7773
  /**
7679
7774
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7680
- * @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
7681
7776
  */
7682
7777
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7683
7778
  /**
7684
7779
  * Disallow confusing uses of `Array#with()`.
7685
- * @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
7686
7781
  */
7687
7782
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7688
7783
  /**
7689
7784
  * Do not use leading/trailing space between `console.log` parameters.
7690
- * @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
7691
7786
  */
7692
7787
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7693
7788
  /**
7694
7789
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7695
- * @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
7696
7791
  */
7697
7792
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7698
7793
  /**
7699
7794
  * Disallow declarations before conditional early exits when they are only used after the exit.
7700
- * @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
7701
7796
  */
7702
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>;
7703
7803
  /**
7704
7804
  * Do not use `document.cookie` directly.
7705
- * @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
7706
7806
  */
7707
7807
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7708
7808
  /**
7709
7809
  * Disallow two comparisons of the same operands that can be combined into one.
7710
- * @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
7711
7811
  */
7712
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<[]>;
7713
7823
  /**
7714
7824
  * Disallow duplicate adjacent branches in if chains.
7715
- * @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
7716
7826
  */
7717
7827
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7718
7828
  /**
7719
7829
  * Disallow adjacent duplicate operands in logical expressions.
7720
- * @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
7721
7831
  */
7722
7832
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7723
7833
  /**
7724
7834
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7725
- * @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
7726
7836
  */
7727
7837
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7728
7838
  /**
7729
7839
  * Disallow duplicate values in `Set` constructor array literals.
7730
- * @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
7731
7841
  */
7732
7842
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7733
7843
  /**
7734
7844
  * Disallow empty files.
7735
- * @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
7736
7846
  */
7737
7847
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7738
7848
  /**
7739
7849
  * Disallow assigning to built-in error properties.
7740
- * @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
7741
7851
  */
7742
7852
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7743
7853
  /**
7744
7854
  * Disallow exports in scripts.
7745
- * @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
7746
7856
  */
7747
7857
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7748
7858
  /**
7749
7859
  * Prefer `for…of` over the `forEach` method.
7750
- * @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
7751
7861
  */
7752
7862
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7753
7863
  /**
7754
7864
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7755
- * @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
7756
7866
  */
7757
7867
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7758
7868
  /**
7759
7869
  * Disallow assigning properties on the global object.
7760
- * @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
7761
7871
  */
7762
7872
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7763
7873
  /**
7764
7874
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7765
- * @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
7766
7876
  * @deprecated
7767
7877
  */
7768
7878
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7769
7879
  /**
7770
7880
  * Disallow immediate mutation after variable assignment.
7771
- * @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
7772
7882
  */
7773
- 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7883
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
7774
7884
  /**
7775
7885
  * Disallow impossible comparisons against `.length` or `.size`.
7776
- * @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
7777
7887
  */
7778
7888
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7779
7889
  /**
7780
7890
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7781
- * @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
7782
7892
  */
7783
7893
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7784
7894
  /**
7785
7895
  * Disallow incorrect template literal interpolation syntax.
7786
- * @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
7787
7897
  */
7788
7898
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7789
7899
  /**
7790
7900
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7791
- * @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
7792
7902
  * @deprecated
7793
7903
  */
7794
7904
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7795
7905
  /**
7796
7906
  * Disallow `instanceof` with built-in objects
7797
- * @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
7798
7908
  */
7799
7909
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7800
7910
  /**
7801
7911
  * Disallow calling functions and constructors with an invalid number of arguments.
7802
- * @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
7803
7913
  */
7804
7914
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7805
7915
  /**
7806
7916
  * Disallow comparing a single character from a string to a multi-character string.
7807
- * @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
7808
7918
  */
7809
7919
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7810
7920
  /**
7811
7921
  * Disallow invalid options in `fetch()` and `new Request()`.
7812
- * @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
7813
7923
  */
7814
7924
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7815
7925
  /**
7816
7926
  * Disallow invalid `accept` values on file inputs.
7817
- * @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
7818
7928
  */
7819
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<[]>;
7820
7935
  /**
7821
7936
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7822
- * @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
7823
7938
  */
7824
7939
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7825
7940
  /**
7826
7941
  * Disallow invalid implementations of well-known symbol methods.
7827
- * @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
7828
7943
  */
7829
7944
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7830
7945
  /**
7831
7946
  * Disallow identifiers starting with `new` or `class`.
7832
- * @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
7833
7948
  */
7834
7949
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7835
7950
  /**
7836
7951
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7837
- * @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
7838
7953
  */
7839
7954
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7840
7955
  /**
7841
7956
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7842
- * @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
7843
7958
  */
7844
7959
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7845
7960
  /**
7846
7961
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7847
- * @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
7848
7963
  * @deprecated
7849
7964
  */
7850
7965
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7851
7966
  /**
7852
7967
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7853
- * @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
7854
7969
  */
7855
7970
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7856
7971
  /**
7857
7972
  * Disallow mutating a loop iterable during iteration.
7858
- * @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
7859
7974
  */
7860
7975
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7861
7976
  /**
7862
7977
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7863
- * @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
7864
7979
  */
7865
7980
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7866
7981
  /**
7867
7982
  * Disallow manually wrapped comments.
7868
- * @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
7869
7984
  */
7870
7985
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7871
7986
  /**
7872
7987
  * Disallow checking a Map key before accessing a different key.
7873
- * @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
7874
7989
  */
7875
7990
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7876
7991
  /**
7877
7992
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7878
- * @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
7879
7994
  */
7880
7995
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7881
7996
  /**
7882
7997
  * Disallow references to missing local resources.
7883
- * @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
7884
7999
  */
7885
8000
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7886
8001
  /**
7887
8002
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7888
- * @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
7889
8004
  */
7890
8005
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7891
8006
  /**
7892
8007
  * Disallow named usage of default import and export.
7893
- * @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
7894
8009
  */
7895
8010
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7896
8011
  /**
7897
8012
  * Disallow negated array predicate calls.
7898
- * @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
7899
8014
  */
7900
8015
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7901
8016
  /**
7902
8017
  * Disallow negated comparisons.
7903
- * @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
7904
8019
  */
7905
8020
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7906
8021
  /**
7907
8022
  * Disallow negated conditions.
7908
- * @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
7909
8024
  */
7910
8025
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7911
8026
  /**
7912
8027
  * Disallow negated expression in equality check.
7913
- * @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
7914
8029
  */
7915
8030
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7916
8031
  /**
7917
8032
  * Disallow nested ternary expressions.
7918
- * @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
7919
8034
  */
7920
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<[]>;
7921
8041
  /**
7922
8042
  * Disallow `new Array()`.
7923
- * @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
7924
8044
  */
7925
8045
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7926
8046
  /**
7927
8047
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7928
- * @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
7929
8049
  */
7930
8050
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7931
8051
  /**
7932
8052
  * Disallow non-function values with function-style verb prefixes.
7933
- * @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
7934
8054
  */
7935
8055
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7936
8056
  /**
7937
8057
  * Disallow non-standard properties on built-in objects.
7938
- * @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
7939
8059
  */
7940
8060
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7941
8061
  /**
7942
8062
  * Disallow the use of the `null` literal.
7943
- * @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
7944
8064
  */
7945
8065
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7946
8066
  /**
7947
8067
  * Disallow the use of objects as default parameters.
7948
- * @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
7949
8069
  */
7950
8070
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7951
8071
  /**
7952
8072
  * Disallow `Object` methods with `Map` or `Set`.
7953
- * @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
7954
8074
  */
7955
8075
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7956
8076
  /**
7957
8077
  * Disallow optional chaining on undeclared variables.
7958
- * @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
7959
8079
  */
7960
8080
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7961
8081
  /**
7962
8082
  * Disallow `process.exit()`.
7963
- * @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
7964
8084
  */
7965
8085
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7966
8086
  /**
7967
8087
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7968
- * @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
7969
8089
  */
7970
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<[]>;
7971
8096
  /**
7972
8097
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7973
- * @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
7974
8099
  */
7975
8100
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7976
8101
  /**
7977
8102
  * Disallow selector syntax in DOM names.
7978
- * @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
7979
8104
  */
7980
8105
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7981
8106
  /**
7982
8107
  * Disallow shorthand properties that override related longhand properties.
7983
- * @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
7984
8109
  */
7985
8110
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7986
8111
  /**
7987
8112
  * Disallow passing single-element arrays to `Promise` methods.
7988
- * @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
7989
8114
  */
7990
8115
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7991
8116
  /**
7992
8117
  * Disallow classes that only have static members.
7993
- * @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
7994
8119
  */
7995
8120
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7996
8121
  /**
7997
8122
  * Prefer comparing values directly over subtracting and comparing to `0`.
7998
- * @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
7999
8124
  */
8000
8125
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
8001
8126
  /**
8002
8127
  * Disallow `then` property.
8003
- * @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
8004
8129
  */
8005
8130
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
8006
8131
  /**
8007
8132
  * Disallow assigning `this` to a variable.
8008
- * @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
8009
8134
  */
8010
8135
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
8011
8136
  /**
8012
8137
  * Disallow `this` outside of classes.
8013
- * @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
8014
8139
  */
8015
8140
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8016
8141
  /**
8017
8142
  * Disallow assigning to top-level variables from inside functions.
8018
- * @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
8019
8144
  */
8020
8145
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8021
8146
  /**
8022
8147
  * Disallow top-level side effects in exported modules.
8023
- * @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
8024
8149
  */
8025
8150
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
8026
8151
  /**
8027
8152
  * Disallow `all` as a transition property.
8028
- * @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
8029
8154
  */
8030
8155
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8031
8156
  /**
8032
8157
  * Disallow comparing `undefined` using `typeof`.
8033
- * @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
8034
8159
  */
8035
8160
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8036
8161
  /**
8037
8162
  * Disallow referencing methods without calling them.
8038
- * @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
8039
8164
  */
8040
8165
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8041
8166
  /**
8042
8167
  * Require class members to be declared.
8043
- * @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
8044
8169
  */
8045
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>;
8046
8181
  /**
8047
8182
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8048
- * @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
8049
8184
  */
8050
8185
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8051
8186
  /**
8052
8187
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
8053
- * @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
8054
8189
  */
8055
8190
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8056
8191
  /**
8057
8192
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8058
- * @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
8059
8194
  */
8060
8195
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8061
8196
  /**
8062
8197
  * Disallow awaiting non-promise values.
8063
- * @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
8064
8199
  */
8065
8200
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8066
8201
  /**
8067
8202
  * Disallow unnecessary comparisons against boolean literals.
8068
- * @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
8069
8204
  */
8070
8205
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8071
8206
  /**
8072
8207
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8073
- * @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
8074
8209
  */
8075
8210
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8076
8211
  /**
8077
8212
  * Disallow unnecessary `globalThis` references.
8078
- * @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
8079
8214
  */
8080
8215
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8081
8216
  /**
8082
8217
  * Disallow unnecessary nested ternary expressions.
8083
- * @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
8084
8219
  */
8085
8220
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8086
8221
  /**
8087
8222
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8088
- * @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
8089
8224
  */
8090
8225
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8091
8226
  /**
8092
8227
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8093
- * @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
8094
8229
  */
8095
8230
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8096
8231
  /**
8097
8232
  * Disallow `Array#splice()` when simpler alternatives exist.
8098
- * @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
8099
8234
  */
8100
8235
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8101
8236
  /**
8102
8237
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8103
- * @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
8104
8239
  */
8105
8240
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8106
8241
  /**
8107
8242
  * Disallow unreadable array destructuring.
8108
- * @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
8109
8244
  */
8110
8245
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8111
8246
  /**
8112
8247
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8113
- * @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
8114
8249
  */
8115
8250
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8116
8251
  /**
8117
8252
  * Disallow unreadable IIFEs.
8118
- * @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
8119
8254
  */
8120
8255
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8121
8256
  /**
8122
8257
  * Disallow unreadable `new` expressions.
8123
- * @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
8124
8259
  */
8125
8260
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8126
8261
  /**
8127
8262
  * Disallow unreadable object destructuring.
8128
- * @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
8129
8264
  */
8130
8265
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8131
8266
  /**
8132
8267
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8133
- * @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
8134
8269
  */
8135
8270
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8136
8271
  /**
8137
8272
  * Disallow unsafe DOM HTML APIs.
8138
- * @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
8139
8274
  */
8140
8275
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8141
8276
  /**
8142
8277
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8143
- * @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
8144
8279
  */
8145
8280
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8146
8281
  /**
8147
8282
  * Disallow unsafe values as property keys.
8148
- * @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
8149
8284
  */
8150
8285
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8151
8286
  /**
8152
8287
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8153
- * @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
8154
8289
  */
8155
8290
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8156
8291
  /**
8157
8292
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8158
- * @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
8159
8294
  */
8160
8295
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8161
8296
  /**
8162
- * Disallow ignoring the return value of selected array methods.
8163
- * @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
8164
8305
  */
8165
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<[]>;
8166
8317
  /**
8167
8318
  * Disallow unused object properties.
8168
- * @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
8169
8320
  */
8170
8321
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8171
8322
  /**
8172
8323
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8173
- * @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
8174
8325
  */
8175
8326
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8176
8327
  /**
8177
8328
  * Disallow useless type coercions of values that are already of the target type.
8178
- * @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
8179
8330
  */
8180
8331
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8181
8332
  /**
8182
8333
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8183
- * @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
8184
8335
  */
8185
8336
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8186
8337
  /**
8187
8338
  * Disallow useless compound assignments such as `x += 0`.
8188
- * @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
8189
8340
  */
8190
8341
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8191
8342
  /**
8192
8343
  * Disallow useless concatenation of literals.
8193
- * @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
8194
8345
  */
8195
8346
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8196
8347
  /**
8197
8348
  * Disallow useless `continue` statements.
8198
- * @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
8199
8350
  */
8200
8351
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8201
8352
  /**
8202
8353
  * Disallow unnecessary existence checks before deletion.
8203
- * @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
8204
8355
  */
8205
8356
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8206
8357
  /**
8207
8358
  * Disallow `else` after a statement that exits.
8208
- * @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
8209
8360
  */
8210
8361
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8211
8362
  /**
8212
8363
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8213
- * @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
8214
8365
  */
8215
8366
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8216
8367
  /**
8217
8368
  * Disallow useless fallback when spreading in object literals.
8218
- * @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
8219
8370
  */
8220
8371
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8221
8372
  /**
8222
8373
  * Disallow unnecessary `.toArray()` on iterators.
8223
- * @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
8224
8375
  */
8225
8376
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8226
8377
  /**
8227
8378
  * Disallow useless array length check.
8228
- * @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
8229
8380
  */
8230
8381
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8231
8382
  /**
8232
8383
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8233
- * @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
8234
8385
  */
8235
8386
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8236
8387
  /**
8237
8388
  * Disallow useless overrides of class methods.
8238
- * @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
8239
8390
  */
8240
8391
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8241
8392
  /**
8242
8393
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8243
- * @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
8244
8395
  */
8245
8396
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8246
8397
  /**
8247
8398
  * Disallow redundant re-exports.
8248
- * @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
8249
8400
  */
8250
8401
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8251
8402
  /**
8252
8403
  * Disallow simple recursive function calls that can be replaced with a loop.
8253
- * @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
8254
8405
  */
8255
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<[]>;
8256
8412
  /**
8257
8413
  * Disallow unnecessary spread.
8258
- * @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
8259
8415
  */
8260
8416
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8261
8417
  /**
8262
8418
  * Disallow useless case in switch statements.
8263
- * @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
8264
8420
  */
8265
8421
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8266
8422
  /**
8267
8423
  * Disallow useless template literal expressions.
8268
- * @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
8269
8425
  */
8270
8426
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8271
8427
  /**
8272
8428
  * Disallow useless `undefined`.
8273
- * @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
8274
8430
  */
8275
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<[]>;
8276
8437
  /**
8277
8438
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8278
- * @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
8279
8440
  */
8280
8441
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8281
8442
  /**
8282
8443
  * Disallow number literals with zero fractions or dangling dots.
8283
- * @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
8284
8445
  */
8285
8446
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8286
8447
  /**
8287
8448
  * Enforce proper case for numeric literals.
8288
- * @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
8289
8450
  */
8290
8451
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8291
8452
  /**
8292
8453
  * Enforce the style of numeric separators by correctly grouping digits.
8293
- * @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
8294
8455
  */
8295
8456
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8296
8457
  /**
8297
8458
  * Require assignment operator shorthand where possible.
8298
- * @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
8299
8460
  */
8300
8461
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8301
8462
  /**
8302
8463
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8303
- * @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
8304
8465
  */
8305
8466
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8306
8467
  /**
8307
8468
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8308
- * @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
8309
8470
  */
8310
8471
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8311
8472
  /**
8312
8473
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8313
- * @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
8314
8475
  */
8315
8476
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8316
8477
  /**
8317
8478
  * Prefer an options object over a boolean in `.addEventListener()`.
8318
- * @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
8319
8480
  */
8320
8481
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8321
8482
  /**
8322
8483
  * Prefer `AggregateError` when throwing collected errors.
8323
- * @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
8324
8485
  */
8325
8486
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8326
8487
  /**
8327
8488
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8328
- * @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
8329
8490
  */
8330
8491
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8331
8492
  /**
8332
8493
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8333
- * @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
8334
8495
  */
8335
8496
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8336
8497
  /**
8337
8498
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8338
- * @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
8339
8500
  */
8340
8501
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8341
8502
  /**
8342
- * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8343
- * @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
8344
8505
  */
8345
8506
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8346
8507
  /**
8347
8508
  * Prefer using the `Array.from()` mapping function argument.
8348
- * @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
8349
8510
  */
8350
8511
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8351
8512
  /**
8352
8513
  * Prefer `Array.from({length}, …)` when creating range arrays.
8353
- * @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
8354
8515
  */
8355
8516
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8356
8517
  /**
8357
8518
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8358
- * @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
8359
8520
  */
8360
8521
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8361
8522
  /**
8362
8523
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8363
- * @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
8364
8525
  */
8365
8526
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8366
8527
  /**
8367
8528
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8368
- * @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
8369
8530
  */
8370
8531
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8371
8532
  /**
8372
8533
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8373
- * @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
8374
8535
  */
8375
8536
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8376
8537
  /**
8377
8538
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8378
- * @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
8379
8540
  */
8380
8541
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8381
8542
  /**
8382
8543
  * Prefer `.at()` method for index access and `String#charAt()`.
8383
- * @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
8384
8545
  */
8385
8546
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8386
8547
  /**
8387
8548
  * Prefer `await` over promise chaining.
8388
- * @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
8389
8550
  */
8390
8551
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8391
8552
  /**
8392
8553
  * Prefer `BigInt` literals over the constructor.
8393
- * @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
8394
8555
  */
8395
8556
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8396
8557
  /**
8397
8558
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8398
- * @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
8399
8560
  */
8400
8561
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8401
8562
  /**
8402
8563
  * Prefer block statements over IIFEs used only for scoping.
8403
- * @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
8404
8565
  */
8405
8566
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8406
8567
  /**
8407
8568
  * Prefer directly returning boolean expressions over `if` statements.
8408
- * @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
8409
8570
  */
8410
8571
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8411
8572
  /**
8412
8573
  * Prefer class field declarations over `this` assignments in constructors.
8413
- * @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
8414
8575
  */
8415
8576
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8416
8577
  /**
8417
8578
  * Prefer using `Element#classList.toggle()` to toggle class names.
8418
- * @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
8419
8580
  */
8420
8581
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8421
8582
  /**
8422
8583
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8423
- * @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
8424
8585
  */
8425
8586
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8426
8587
  /**
8427
- * Prefer early continues over whole-loop conditional wrapping.
8428
- * @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
8429
8595
  */
8430
8596
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8431
8597
  /**
8432
8598
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8433
- * @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
8434
8600
  */
8435
8601
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8436
8602
  /**
8437
8603
  * Prefer default parameters over reassignment.
8438
- * @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
8439
8605
  */
8440
8606
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8441
8607
  /**
8442
8608
  * Prefer direct iteration over default iterator method calls.
8443
- * @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
8444
8610
  */
8445
8611
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8446
8612
  /**
8447
8613
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8448
- * @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
8449
8615
  */
8450
8616
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8451
8617
  /**
8452
8618
  * Prefer `Element#append()` over `Node#appendChild()`.
8453
- * @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
8454
8620
  */
8455
8621
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8456
8622
  /**
8457
8623
  * Renamed to `unicorn/dom-node-dataset`.
8458
- * @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
8459
8625
  * @deprecated
8460
8626
  */
8461
8627
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8462
8628
  /**
8463
8629
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8464
- * @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
8465
8631
  */
8466
8632
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8467
8633
  /**
8468
8634
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8469
- * @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
8470
8636
  */
8471
8637
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8472
8638
  /**
8473
- * Prefer `.replaceChildren()` when emptying DOM children.
8474
- * @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
8475
8641
  */
8476
8642
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8477
8643
  /**
8478
8644
  * Prefer `.textContent` over `.innerText`.
8479
- * @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
8480
8646
  */
8481
8647
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8482
8648
  /**
8483
- * Prefer early returns over full-function conditional wrapping.
8484
- * @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
8485
8651
  */
8486
8652
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8487
8653
  /**
8488
8654
  * Prefer `else if` over adjacent `if` statements with related conditions.
8489
- * @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
8490
8656
  */
8491
8657
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8492
8658
  /**
8493
8659
  * Prefer `Error.isError()` when checking for errors.
8494
- * @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
8495
8661
  */
8496
8662
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8497
8663
  /**
8498
8664
  * Prefer `EventTarget` over `EventEmitter`.
8499
- * @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
8500
8666
  */
8501
8667
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8502
8668
  /**
8503
8669
  * Prefer explicit viewport units.
8504
- * @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
8505
8671
  */
8506
8672
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8507
8673
  /**
8508
8674
  * Prefer `export…from` when re-exporting.
8509
- * @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
8510
8676
  */
8511
8677
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8512
8678
  /**
8513
8679
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8514
- * @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
8515
8681
  */
8516
8682
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8517
8683
  /**
8518
8684
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8519
- * @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
8520
8686
  */
8521
8687
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8522
8688
  /**
8523
8689
  * Prefer global numeric constants over `Number` static properties.
8524
- * @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
8525
8691
  */
8526
8692
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8527
8693
  /**
8528
8694
  * Prefer `globalThis` over `window`, `self`, and `global`.
8529
- * @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
8530
8696
  */
8531
8697
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8532
8698
  /**
8533
- * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8534
- * @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
8535
8701
  */
8536
8702
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8537
8703
  /**
8538
8704
  * Prefer `.has()` when checking existence.
8539
- * @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
8540
8706
  */
8541
8707
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8542
8708
  /**
8543
8709
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8544
- * @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
8545
8711
  */
8546
8712
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8547
8713
  /**
8548
8714
  * Prefer HTTPS over HTTP.
8549
- * @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
8550
8716
  */
8551
8717
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8552
8718
  /**
8553
8719
  * Prefer identifiers over string literals in import and export specifiers.
8554
- * @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
8555
8721
  */
8556
8722
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8557
8723
  /**
8558
8724
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8559
- * @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
8560
8726
  */
8561
8727
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8562
8728
  /**
8563
8729
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8564
- * @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
8565
8731
  */
8566
8732
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8567
8733
  /**
8568
8734
  * Prefer `.includes()` over repeated equality comparisons.
8569
- * @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
8570
8736
  */
8571
8737
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8572
8738
  /**
8573
8739
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8574
- * @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
8575
8741
  */
8576
8742
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8577
8743
  /**
8578
8744
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8579
- * @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
8580
8746
  */
8581
8747
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8582
8748
  /**
8583
8749
  * Prefer iterator helpers over temporary arrays from iterators.
8584
- * @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
8585
8751
  */
8586
8752
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8587
8753
  /**
8588
8754
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8589
- * @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
8590
8756
  */
8591
8757
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8592
8758
  /**
8593
8759
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8594
- * @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
8595
8761
  */
8596
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<[]>;
8597
8773
  /**
8598
8774
  * Renamed to `unicorn/consistent-json-file-read`.
8599
- * @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
8600
8776
  * @deprecated
8601
8777
  */
8602
8778
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8603
8779
  /**
8604
8780
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8605
- * @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
8606
8782
  */
8607
8783
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8608
8784
  /**
8609
8785
  * Prefer `location.assign()` over assigning to `location.href`.
8610
- * @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
8611
8787
  */
8612
8788
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8613
8789
  /**
8614
8790
  * Prefer using a logical operator over a ternary.
8615
- * @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
8616
8792
  */
8617
8793
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8618
8794
  /**
8619
8795
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8620
- * @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
8621
8797
  */
8622
8798
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8623
8799
  /**
8624
8800
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8625
- * @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
8626
8802
  */
8627
8803
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8628
8804
  /**
8629
8805
  * Prefer `Math` constants over their approximate numeric values.
8630
- * @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
8631
8807
  */
8632
8808
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8633
8809
  /**
8634
8810
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8635
- * @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
8636
8812
  */
8637
8813
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8638
8814
  /**
8639
8815
  * Prefer `Math.trunc()` for truncating numbers.
8640
- * @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
8641
8817
  */
8642
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<[]>;
8643
8824
  /**
8644
8825
  * Prefer moving ternaries into the minimal varying part of an expression.
8645
- * @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
8646
8827
  */
8647
8828
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8648
8829
  /**
8649
8830
  * Prefer modern DOM APIs.
8650
- * @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
8651
8832
  */
8652
8833
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8653
8834
  /**
8654
8835
  * Prefer modern `Math` APIs over legacy patterns.
8655
- * @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
8656
8837
  */
8657
8838
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8658
8839
  /**
8659
8840
  * Prefer JavaScript modules (ESM) over CommonJS.
8660
- * @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
8661
8842
  */
8662
8843
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8663
8844
  /**
8664
8845
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8665
- * @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
8666
8847
  */
8667
8848
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8668
8849
  /**
8669
8850
  * Prefer negative index over `.length - index` when possible.
8670
- * @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
8671
8852
  */
8672
8853
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8673
8854
  /**
8674
8855
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8675
- * @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
8676
8857
  */
8677
8858
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8678
8859
  /**
8679
8860
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8680
- * @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
8681
8862
  */
8682
8863
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8683
8864
  /**
8684
8865
  * Prefer `Number.isSafeInteger()` over integer checks.
8685
- * @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
8686
8867
  */
8687
8868
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8688
8869
  /**
8689
8870
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8690
- * @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
8691
8872
  */
8692
8873
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8693
8874
  /**
8694
8875
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8695
- * @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
8696
8877
  */
8697
8878
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8698
8879
  /**
8699
8880
  * Prefer object destructuring defaults over default object literals with spread.
8700
- * @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
8701
8882
  */
8702
8883
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8703
8884
  /**
8704
8885
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8705
- * @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
8706
8887
  */
8707
8888
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8708
8889
  /**
8709
8890
  * Prefer the most specific `Object` iterable method.
8710
- * @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
8711
8892
  */
8712
8893
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8713
8894
  /**
8714
8895
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8715
- * @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
8716
8897
  */
8717
8898
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8718
8899
  /**
8719
8900
  * Prefer omitting the `catch` binding parameter.
8720
- * @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
8721
8902
  */
8722
8903
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8723
8904
  /**
8724
8905
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8725
- * @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
8726
8907
  */
8727
8908
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8728
8909
  /**
8729
8910
  * Prefer private class fields over the underscore-prefix convention.
8730
- * @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
8731
8912
  */
8732
8913
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8733
8914
  /**
8734
8915
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8735
- * @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
8736
8917
  */
8737
8918
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8738
8919
  /**
8739
8920
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8740
- * @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
8741
8922
  */
8742
8923
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8743
8924
  /**
8744
8925
  * Prefer borrowing methods from the prototype instead of the instance.
8745
- * @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
8746
8927
  */
8747
8928
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8748
8929
  /**
8749
8930
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8750
- * @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
8751
8932
  */
8752
8933
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8753
8934
  /**
8754
8935
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8755
- * @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
8756
8937
  */
8757
8938
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8758
8939
  /**
8759
8940
  * Prefer `Reflect.apply()` over `Function#apply()`.
8760
- * @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
8761
8942
  */
8762
8943
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8763
8944
  /**
8764
8945
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8765
- * @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
8766
8947
  */
8767
8948
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8768
8949
  /**
8769
8950
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8770
- * @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
8771
8952
  */
8772
8953
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8773
8954
  /**
8774
8955
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8775
- * @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
8776
8957
  */
8777
8958
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8778
8959
  /**
8779
8960
  * Prefer `:scope` when using element query selector methods.
8780
- * @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
8781
8962
  */
8782
8963
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8783
8964
  /**
8784
8965
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8785
- * @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
8786
8967
  */
8787
8968
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8788
8969
  /**
8789
8970
  * Prefer `Set` methods for Set operations.
8790
- * @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
8791
8972
  */
8792
8973
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8793
8974
  /**
8794
8975
  * Prefer using `Set#size` instead of `Array#length`.
8795
- * @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
8796
8977
  */
8797
8978
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8798
8979
  /**
8799
8980
  * Prefer arrow function properties over methods with a single return.
8800
- * @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
8801
8982
  */
8802
8983
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8803
8984
  /**
8804
8985
  * Prefer simple conditions first in logical expressions.
8805
- * @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
8806
8987
  */
8807
8988
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8808
8989
  /**
8809
8990
  * Prefer a simple comparison function for `Array#sort()`.
8810
- * @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
8811
8992
  */
8812
8993
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8813
8994
  /**
8814
8995
  * Prefer simplified conditions.
8815
- * @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
8816
8997
  */
8817
8998
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8818
8999
  /**
8819
9000
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8820
- * @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
8821
9002
  */
8822
9003
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8823
9004
  /**
8824
9005
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8825
- * @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
8826
9007
  */
8827
9008
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8828
9009
  /**
8829
9010
  * Prefer a single object destructuring declaration per local const source.
8830
- * @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
8831
9012
  */
8832
9013
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8833
9014
  /**
8834
9015
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8835
- * @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
8836
9017
  */
8837
9018
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8838
9019
  /**
8839
9020
  * Prefer declaring variables in the smallest possible scope.
8840
- * @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
8841
9022
  */
8842
9023
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8843
9024
  /**
8844
9025
  * Prefer `String#split()` with a limit.
8845
- * @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
8846
9027
  */
8847
9028
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8848
9029
  /**
8849
9030
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8850
- * @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
8851
9032
  */
8852
9033
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8853
9034
  /**
8854
9035
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8855
- * @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
8856
9037
  */
8857
9038
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8858
9039
  /**
8859
9040
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8860
- * @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
8861
9042
  */
8862
9043
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8863
9044
  /**
8864
9045
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8865
- * @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
8866
9047
  */
8867
9048
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8868
9049
  /**
8869
9050
  * Prefer `String#repeat()` for repeated whitespace.
8870
- * @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
8871
9052
  */
8872
9053
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8873
9054
  /**
8874
9055
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8875
- * @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
8876
9057
  */
8877
9058
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8878
9059
  /**
8879
9060
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8880
- * @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
8881
9062
  */
8882
9063
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8883
9064
  /**
8884
9065
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8885
- * @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
8886
9067
  */
8887
9068
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8888
9069
  /**
8889
9070
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8890
- * @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
8891
9072
  */
8892
9073
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8893
9074
  /**
8894
9075
  * Prefer using `structuredClone` to create a deep clone.
8895
- * @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
8896
9077
  */
8897
9078
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8898
9079
  /**
8899
9080
  * Prefer `switch` over multiple `else-if`.
8900
- * @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
8901
9082
  */
8902
9083
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8903
9084
  /**
8904
9085
  * Prefer `Temporal` over `Date`.
8905
- * @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
8906
9087
  */
8907
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<[]>;
8908
9094
  /**
8909
9095
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8910
- * @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
8911
9097
  */
8912
9098
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8913
9099
  /**
8914
9100
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8915
- * @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
8916
9102
  */
8917
9103
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8918
9104
  /**
8919
9105
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8920
- * @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
8921
9107
  */
8922
9108
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8923
9109
  /**
8924
9110
  * Prefer top-level await over top-level promises and async function calls.
8925
- * @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
8926
9112
  */
8927
9113
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8928
9114
  /**
8929
9115
  * Enforce throwing `TypeError` in type checking conditions.
8930
- * @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
8931
9117
  */
8932
9118
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8933
9119
  /**
8934
9120
  * Require type literals to be last in union types.
8935
- * @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
8936
9122
  */
8937
9123
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8938
9124
  /**
8939
- * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8940
- * @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
8941
9127
  */
8942
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<[]>;
8943
9134
  /**
8944
9135
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8945
- * @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
8946
9137
  */
8947
9138
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8948
9139
  /**
8949
9140
  * Prefer Unicode code point escapes over legacy escape sequences.
8950
- * @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
8951
9142
  */
8952
9143
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8953
9144
  /**
8954
9145
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8955
- * @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
8956
9147
  */
8957
9148
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8958
9149
  /**
8959
9150
  * Prefer `URL#href` over stringifying a `URL`.
8960
- * @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
8961
9152
  */
8962
9153
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8963
9154
  /**
8964
9155
  * Prefer `URLSearchParams` over manually splitting query strings.
8965
- * @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
8966
9157
  */
8967
9158
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8968
9159
  /**
8969
9160
  * Prefer putting the condition in the while statement.
8970
- * @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
8971
9162
  */
8972
9163
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8973
9164
  /**
8974
9165
  * Renamed to `unicorn/name-replacements`.
8975
- * @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
8976
9167
  * @deprecated
8977
9168
  */
8978
9169
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8979
9170
  /**
8980
9171
  * Enforce consistent relative URL style.
8981
- * @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
8982
9173
  */
8983
9174
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8984
9175
  /**
8985
9176
  * Enforce using the separator argument with `Array#join()`.
8986
- * @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
8987
9178
  */
8988
9179
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8989
9180
  /**
8990
9181
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8991
- * @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
8992
9183
  */
8993
9184
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8994
9185
  /**
8995
9186
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8996
- * @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
8997
9188
  */
8998
9189
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8999
9190
  /**
9000
9191
  * Require configured YAML frontmatter fields.
9001
- * @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
9002
9193
  */
9003
9194
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
9004
9195
  /**
9005
9196
  * Require non-empty module attributes for imports and exports
9006
- * @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
9007
9198
  */
9008
9199
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
9009
9200
  /**
9010
9201
  * Require non-empty specifier list in import and export statements.
9011
- * @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
9012
9203
  */
9013
9204
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9014
9205
  /**
9015
9206
  * Enforce using the digits argument with `Number#toFixed()`.
9016
- * @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
9017
9208
  */
9018
9209
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9019
9210
  /**
9020
9211
  * Require passive event listeners for high-frequency events.
9021
- * @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
9022
9213
  */
9023
9214
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9024
9215
  /**
9025
9216
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9026
- * @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
9027
9218
  */
9028
9219
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9029
9220
  /**
9030
9221
  * Require boolean-returning Proxy traps to return booleans.
9031
- * @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
9032
9223
  */
9033
9224
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9034
9225
  /**
9035
9226
  * Enforce a consistent style for single-line block comments.
9036
- * @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
9037
9228
  */
9038
9229
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9039
9230
  /**
9040
9231
  * Enforce better string content.
9041
- * @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
9042
9233
  */
9043
9234
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9044
9235
  /**
9045
9236
  * Enforce consistent brace style for `case` clauses.
9046
- * @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
9047
9238
  */
9048
9239
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9049
9240
  /**
9050
9241
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9051
- * @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
9052
9243
  */
9053
9244
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9054
9245
  /**
9055
9246
  * Fix whitespace-insensitive template indentation.
9056
- * @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
9057
9248
  */
9058
9249
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9059
9250
  /**
9060
9251
  * Enforce consistent case for text encoding identifiers.
9061
- * @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
9062
9253
  */
9063
9254
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9064
9255
  /**
9065
9256
  * Require `new` when creating an error.
9066
- * @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
9067
9258
  */
9068
9259
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9069
9260
  /**
9070
9261
  * Limit the complexity of `try` blocks.
9071
- * @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
9072
9263
  */
9073
9264
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9074
9265
  /**
@@ -9720,11 +9911,21 @@ Backward pagination arguments
9720
9911
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-duplicate-schema-methods.md
9721
9912
  */
9722
9913
  'zod/no-duplicate-schema-methods'?: Linter.RuleEntry<[]>;
9914
+ /**
9915
+ * Disallow non-static values passed as arguments in a Zod schema expression
9916
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-dynamic-schema-value.md
9917
+ */
9918
+ 'zod/no-dynamic-schema-value'?: Linter.RuleEntry<[]>;
9723
9919
  /**
9724
9920
  * Disallow usage of `z.custom()` without arguments
9725
9921
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-empty-custom-schema.md
9726
9922
  */
9727
9923
  'zod/no-empty-custom-schema'?: Linter.RuleEntry<[]>;
9924
+ /**
9925
+ * Disallow constructing a Zod schema inside a function body
9926
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-function-scoped-schema.md
9927
+ */
9928
+ 'zod/no-function-scoped-schema'?: Linter.RuleEntry<[]>;
9728
9929
  /**
9729
9930
  * Disallow deprecated `z.nativeEnum()` in favor of `z.enum()`.
9730
9931
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-native-enum.md
@@ -9866,6 +10067,11 @@ Backward pagination arguments
9866
10067
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-tuple-over-array-length.md
9867
10068
  */
9868
10069
  'zod/prefer-tuple-over-array-length'?: Linter.RuleEntry<[]>;
10070
+ /**
10071
+ * Prefer boolean validation when only the success of parsing is used
10072
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-validate.md
10073
+ */
10074
+ 'zod/prefer-validate'?: Linter.RuleEntry<[]>;
9869
10075
  /**
9870
10076
  * Require type parameter on `.brand()` functions
9871
10077
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/require-brand-type-parameter.md
@@ -10031,10 +10237,12 @@ type CommentsDisableEnablePair = [] | [{
10031
10237
  type CommentsNoRestrictedDisable = string[];
10032
10238
  // ----- comments/no-use -----
10033
10239
  type CommentsNoUse = [] | [{
10034
- allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
10240
+ additionalDirectives?: string[];
10241
+ allow?: string[];
10035
10242
  }];
10036
10243
  // ----- comments/require-description -----
10037
10244
  type CommentsRequireDescription = [] | [{
10245
+ additionalDirectives?: string[];
10038
10246
  ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
10039
10247
  }];
10040
10248
  // ----- complexity -----
@@ -11547,6 +11755,22 @@ type JsdocTextEscaping = [] | [{
11547
11755
  escapeHTML?: boolean;
11548
11756
  escapeMarkdown?: boolean;
11549
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
+ }];
11550
11774
  // ----- jsdoc/ts-method-signature-style -----
11551
11775
  type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
11552
11776
  enableFixer?: boolean;
@@ -16299,6 +16523,9 @@ type UnicornFilenameCase = [] | [({
16299
16523
  })[];
16300
16524
  multipleFileExtensions?: boolean;
16301
16525
  checkDirectories?: boolean;
16526
+ directoryRoots?: (string | {
16527
+ [k: string]: unknown | undefined;
16528
+ })[];
16302
16529
  } | {
16303
16530
  cases?: {
16304
16531
  camelCase?: boolean;
@@ -16312,6 +16539,9 @@ type UnicornFilenameCase = [] | [({
16312
16539
  })[];
16313
16540
  multipleFileExtensions?: boolean;
16314
16541
  checkDirectories?: boolean;
16542
+ directoryRoots?: (string | {
16543
+ [k: string]: unknown | undefined;
16544
+ })[];
16315
16545
  })];
16316
16546
  // ----- unicorn/id-match -----
16317
16547
  type UnicornIdMatch = [] | [string] | [string, {
@@ -16398,10 +16628,22 @@ type UnicornNoArrayReverse = [] | [{
16398
16628
  type UnicornNoArraySort = [] | [{
16399
16629
  allowExpressionStatement?: boolean;
16400
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
+ }];
16401
16639
  // ----- unicorn/no-empty-file -----
16402
16640
  type UnicornNoEmptyFile = [] | [{
16403
16641
  allowComments?: boolean;
16404
16642
  }];
16643
+ // ----- unicorn/no-immediate-mutation -----
16644
+ type UnicornNoImmediateMutation = [] | [{
16645
+ checkConditionals?: boolean;
16646
+ }];
16405
16647
  // ----- unicorn/no-instanceof-builtins -----
16406
16648
  type UnicornNoInstanceofBuiltins = [] | [{
16407
16649
  useErrorIsError?: boolean;
@@ -16442,6 +16684,10 @@ type UnicornNoNull = [] | [{
16442
16684
  type UnicornNoTypeofUndefined = [] | [{
16443
16685
  checkGlobalVariables?: boolean;
16444
16686
  }];
16687
+ // ----- unicorn/no-unknown-pseudo-selectors -----
16688
+ type UnicornNoUnknownPseudoSelectors = [] | [{
16689
+ allow?: string[];
16690
+ }];
16445
16691
  // ----- unicorn/no-unnecessary-polyfills -----
16446
16692
  type UnicornNoUnnecessaryPolyfills = [] | [{
16447
16693
  targets?: (string | string[] | {
@@ -16452,6 +16698,10 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
16452
16698
  type UnicornNoUnreadableArrayDestructuring = [] | [{
16453
16699
  maximumIgnoredElements?: number;
16454
16700
  }];
16701
+ // ----- unicorn/no-unscoped-css-nesting-selector -----
16702
+ type UnicornNoUnscopedCssNestingSelector = [] | [{
16703
+ scopingRootAtRules?: string[];
16704
+ }];
16455
16705
  // ----- unicorn/no-useless-undefined -----
16456
16706
  type UnicornNoUselessUndefined = [] | [{
16457
16707
  checkArguments?: boolean;
@@ -16505,9 +16755,14 @@ type UnicornPreferAt = [] | [{
16505
16755
  getLastElementFunctions?: string[];
16506
16756
  checkAllIndexAccess?: boolean;
16507
16757
  }];
16758
+ // ----- unicorn/prefer-combined-guards -----
16759
+ type UnicornPreferCombinedGuards = [] | [{
16760
+ checkCompoundConditions?: boolean;
16761
+ }];
16508
16762
  // ----- unicorn/prefer-continue -----
16509
16763
  type UnicornPreferContinue = [] | [{
16510
16764
  maximumStatements?: number;
16765
+ checkShortBodies?: boolean;
16511
16766
  }];
16512
16767
  // ----- unicorn/prefer-dom-node-html-methods -----
16513
16768
  type UnicornPreferDomNodeHtmlMethods = [] | [{
@@ -16517,6 +16772,7 @@ type UnicornPreferDomNodeHtmlMethods = [] | [{
16517
16772
  // ----- unicorn/prefer-early-return -----
16518
16773
  type UnicornPreferEarlyReturn = [] | [{
16519
16774
  maximumStatements?: number;
16775
+ checkShortBodies?: boolean;
16520
16776
  }];
16521
16777
  // ----- unicorn/prefer-explicit-viewport-units -----
16522
16778
  type UnicornPreferExplicitViewportUnits = [] | [{
@@ -17169,6 +17425,6 @@ interface ESLint2DigitsOptions {
17169
17425
  depend?: SharedOptions | boolean;
17170
17426
  zod?: SharedOptions | boolean;
17171
17427
  }
17172
- declare function twoDigits(options?: ESLint2DigitsOptions, ...userConfig: Array<TypedFlatConfigItem>): Promise<Array<TypedFlatConfigItem>>;
17428
+ export declare function twoDigits(options?: ESLint2DigitsOptions, ...userConfig: Array<TypedFlatConfigItem>): Promise<Array<TypedFlatConfigItem>>;
17173
17429
  //#endregion
17174
- export { type ConfigNames, type OptionsCss, type OptionsOverrides, type OptionsTypeScriptWithTypes, type OptionsWithDrizzle, type OptionsWithFiles, type OptionsWithIgnores, type OptionsWithReact, type OptionsWithStorybook, type OptionsWithVitest, type Rules, type TypedFlatConfigItem, twoDigits as default, twoDigits };
17430
+ export { type ConfigNames, type OptionsCss, type OptionsOverrides, type OptionsTypeScriptWithTypes, type OptionsWithDrizzle, type OptionsWithFiles, type OptionsWithIgnores, type OptionsWithReact, type OptionsWithStorybook, type OptionsWithVitest, type Rules, type TypedFlatConfigItem, twoDigits as default };