@2digits/eslint-config 5.5.8 → 5.5.10

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
@@ -3270,7 +3270,7 @@ interface RuleOptions {
3270
3270
  */
3271
3271
  'react-extra/globals'?: Linter.RuleEntry<[]>;
3272
3272
  /**
3273
- * Validates against mutating props, state, and other values that are immutable.
3273
+ * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
3274
3274
  * @see https://eslint-react.xyz/docs/rules/immutability
3275
3275
  */
3276
3276
  'react-extra/immutability'?: Linter.RuleEntry<[]>;
@@ -3629,7 +3629,7 @@ interface RuleOptions {
3629
3629
  */
3630
3630
  'react-extra/x-globals'?: Linter.RuleEntry<[]>;
3631
3631
  /**
3632
- * Validates against mutating props, state, and other values that are immutable.
3632
+ * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
3633
3633
  * @see https://eslint-react.xyz/docs/rules/immutability
3634
3634
  */
3635
3635
  'react-extra/x-immutability'?: Linter.RuleEntry<[]>;
@@ -4367,6 +4367,11 @@ interface RuleOptions {
4367
4367
  * @see https://sonarsource.github.io/rspec/#/rspec/S3524/javascript
4368
4368
  */
4369
4369
  'sonar/arrow-function-convention'?: Linter.RuleEntry<SonarArrowFunctionConvention>;
4370
+ /**
4371
+ * Assertions should be placed inside test cases or hooks
4372
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8784/javascript
4373
+ */
4374
+ 'sonar/assertions-in-test-cases'?: Linter.RuleEntry<[]>;
4370
4375
  /**
4371
4376
  * Tests should include assertions
4372
4377
  * @see https://sonarsource.github.io/rspec/#/rspec/S2699/javascript
@@ -4644,6 +4649,11 @@ interface RuleOptions {
4644
4649
  * @see https://sonarsource.github.io/rspec/#/rspec/S6328/javascript
4645
4650
  */
4646
4651
  'sonar/existing-groups'?: Linter.RuleEntry<[]>;
4652
+ /**
4653
+ * Tests should be skipped explicitly
4654
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8968/javascript
4655
+ */
4656
+ 'sonar/explicit-test-skip'?: Linter.RuleEntry<[]>;
4647
4657
  /**
4648
4658
  * Expressions should not be too complex
4649
4659
  * @see https://sonarsource.github.io/rspec/#/rspec/S1067/javascript
@@ -4801,6 +4811,11 @@ interface RuleOptions {
4801
4811
  * @see https://sonarsource.github.io/rspec/#/rspec/S4622/javascript
4802
4812
  */
4803
4813
  'sonar/max-union-size'?: Linter.RuleEntry<SonarMaxUnionSize>;
4814
+ /**
4815
+ * Lodash and Underscore.js `memoize` calls on functions with multiple parameters should use an explicit cache key function
4816
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8932/javascript
4817
+ */
4818
+ 'sonar/memoize-cache-key'?: Linter.RuleEntry<[]>;
4804
4819
  /**
4805
4820
  * "for" loop increment clauses should modify the loops' counters
4806
4821
  * @see https://sonarsource.github.io/rspec/#/rspec/S1994/javascript
@@ -4891,6 +4906,16 @@ interface RuleOptions {
4891
4906
  * @see https://sonarsource.github.io/rspec/#/rspec/S1854/javascript
4892
4907
  */
4893
4908
  'sonar/no-dead-store'?: Linter.RuleEntry<[]>;
4909
+ /**
4910
+ * UI test debug commands should not be committed to version control
4911
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8959/javascript
4912
+ */
4913
+ 'sonar/no-debug-commands-in-ui-tests'?: Linter.RuleEntry<[]>;
4914
+ /**
4915
+ * Default imports from modular utility libraries should not be used
4916
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8927/javascript
4917
+ */
4918
+ 'sonar/no-default-utility-imports'?: Linter.RuleEntry<[]>;
4894
4919
  /**
4895
4920
  * "delete" should be used only with object properties
4896
4921
  * @see https://sonarsource.github.io/rspec/#/rspec/S3001/javascript
@@ -4976,6 +5001,11 @@ interface RuleOptions {
4976
5001
  * @see https://sonarsource.github.io/rspec/#/rspec/S128/javascript
4977
5002
  */
4978
5003
  'sonar/no-fallthrough'?: Linter.RuleEntry<[]>;
5004
+ /**
5005
+ * Fixed waits should not be used in tests
5006
+ * @see https://sonarsource.github.io/rspec/#/rspec/S2925/javascript
5007
+ */
5008
+ 'sonar/no-fixed-wait-in-tests'?: Linter.RuleEntry<[]>;
4979
5009
  /**
4980
5010
  * Floating point numbers should not be tested for equality
4981
5011
  * @see https://sonarsource.github.io/rspec/#/rspec/S1244/javascript
@@ -5096,6 +5126,11 @@ interface RuleOptions {
5096
5126
  * @see https://sonarsource.github.io/rspec/#/rspec/S6627/javascript
5097
5127
  */
5098
5128
  'sonar/no-internal-api-use'?: Linter.RuleEntry<[]>;
5129
+ /**
5130
+ * Inline snapshots should not contain interpolations
5131
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8967/javascript
5132
+ */
5133
+ 'sonar/no-interpolation-in-inline-snapshots'?: Linter.RuleEntry<[]>;
5099
5134
  /**
5100
5135
  * Sensitive permissions should not be requested unnecessarily
5101
5136
  * @see https://sonarsource.github.io/rspec/#/rspec/S5604/javascript
@@ -5148,6 +5183,11 @@ interface RuleOptions {
5148
5183
  * @see https://sonarsource.github.io/rspec/#/rspec/S5868/javascript
5149
5184
  */
5150
5185
  'sonar/no-misleading-character-class'?: Linter.RuleEntry<[]>;
5186
+ /**
5187
+ * Test and hook callbacks should use a single completion style
5188
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8960/javascript
5189
+ */
5190
+ 'sonar/no-mixed-completion-style'?: Linter.RuleEntry<[]>;
5151
5191
  /**
5152
5192
  * Content Security Policy should block mixed-content
5153
5193
  * @see https://sonarsource.github.io/rspec/#/rspec/S5730/javascript
@@ -5220,7 +5260,7 @@ interface RuleOptions {
5220
5260
  */
5221
5261
  'sonar/no-redundant-optional'?: Linter.RuleEntry<[]>;
5222
5262
  /**
5223
- * Redundant pairs of parentheses should be removed
5263
+ * Unnecessary parentheses should be removed
5224
5264
  * @see https://sonarsource.github.io/rspec/#/rspec/S1110/javascript
5225
5265
  * @deprecated
5226
5266
  */
@@ -5297,7 +5337,7 @@ interface RuleOptions {
5297
5337
  */
5298
5338
  'sonar/no-table-as-layout'?: Linter.RuleEntry<[]>;
5299
5339
  /**
5300
- * Assertions should not fail or succeed unconditionally
5340
+ * Assertions should not be trivially true
5301
5341
  * @see https://sonarsource.github.io/rspec/#/rspec/S5914/javascript
5302
5342
  */
5303
5343
  'sonar/no-trivial-assertions'?: Linter.RuleEntry<[]>;
@@ -5428,6 +5468,11 @@ interface RuleOptions {
5428
5468
  * @deprecated
5429
5469
  */
5430
5470
  'sonar/os-command'?: Linter.RuleEntry<[]>;
5471
+ /**
5472
+ * Similar tests should be grouped in a single Parameterized test
5473
+ * @see https://sonarsource.github.io/rspec/#/rspec/S5976/javascript
5474
+ */
5475
+ 'sonar/parameterized-tests'?: Linter.RuleEntry<[]>;
5431
5476
  /**
5432
5477
  * Origins should be verified during cross-origin communications
5433
5478
  * @see https://sonarsource.github.io/rspec/#/rspec/S2819/javascript
@@ -5443,6 +5488,11 @@ interface RuleOptions {
5443
5488
  * @see https://sonarsource.github.io/rspec/#/rspec/S1488/javascript
5444
5489
  */
5445
5490
  'sonar/prefer-immediate-return'?: Linter.RuleEntry<[]>;
5491
+ /**
5492
+ * Native APIs should be preferred over Lodash and Underscore.js methods
5493
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8907/javascript
5494
+ */
5495
+ 'sonar/prefer-native-lodash-alternative'?: Linter.RuleEntry<[]>;
5446
5496
  /**
5447
5497
  * Object literal syntax should be used
5448
5498
  * @see https://sonarsource.github.io/rspec/#/rspec/S2428/javascript
@@ -5578,6 +5628,11 @@ interface RuleOptions {
5578
5628
  * @see https://sonarsource.github.io/rspec/#/rspec/S8786/javascript
5579
5629
  */
5580
5630
  'sonar/super-linear-regex'?: Linter.RuleEntry<[]>;
5631
+ /**
5632
+ * Tests should not be registered asynchronously in suite callbacks
5633
+ * @see https://sonarsource.github.io/rspec/#/rspec/S8785/javascript
5634
+ */
5635
+ 'sonar/synchronous-suite-callback'?: Linter.RuleEntry<[]>;
5581
5636
  /**
5582
5637
  * Tables should have headers
5583
5638
  * @see https://sonarsource.github.io/rspec/#/rspec/S5256/javascript
@@ -6782,6 +6837,7 @@ interface RuleOptions {
6782
6837
  /**
6783
6838
  * Disallow function declarations that contain unsafe references inside loop statements
6784
6839
  * @see https://typescript-eslint.io/rules/no-loop-func
6840
+ * @deprecated
6785
6841
  */
6786
6842
  'ts/no-loop-func'?: Linter.RuleEntry<[]>;
6787
6843
  /**
@@ -7232,1670 +7288,1715 @@ interface RuleOptions {
7232
7288
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7233
7289
  /**
7234
7290
  * Prefer better DOM traversal APIs.
7235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/better-dom-traversing.md
7291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
7236
7292
  */
7237
7293
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7238
7294
  /**
7239
7295
  * Removed. Prefer `eslint-plugin-regexp`
7240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7241
7297
  * @deprecated
7242
7298
  */
7243
7299
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7244
7300
  /**
7245
7301
  * Enforce a specific parameter name in catch clauses.
7246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/catch-error-name.md
7302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
7247
7303
  */
7248
7304
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7249
7305
  /**
7250
7306
  * Enforce consistent class references in static methods.
7251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/class-reference-in-static-methods.md
7307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
7252
7308
  */
7253
7309
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7254
7310
  /**
7255
7311
  * Enforce better comment content.
7256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/comment-content.md
7312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
7257
7313
  */
7258
7314
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7259
7315
  /**
7260
7316
  * Enforce consistent assertion style with `node:assert`.
7261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-assert.md
7317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
7262
7318
  */
7263
7319
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7264
7320
  /**
7265
7321
  * Enforce consistent naming for boolean names.
7266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-boolean-name.md
7322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
7267
7323
  */
7268
7324
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7269
7325
  /**
7270
7326
  * Enforce consistent class member order.
7271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-class-member-order.md
7327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
7272
7328
  */
7273
7329
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7274
7330
  /**
7275
7331
  * Enforce consistent spelling of compound words in identifiers.
7276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-compound-words.md
7332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
7277
7333
  */
7278
7334
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7279
7335
  /**
7280
7336
  * Enforce consistent conditional object spread style.
7281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-conditional-object-spread.md
7337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
7282
7338
  */
7283
7339
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7284
7340
  /**
7285
7341
  * Prefer passing `Date` directly to the constructor when cloning.
7286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-date-clone.md
7342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
7287
7343
  */
7288
7344
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7289
7345
  /**
7290
7346
  * Use destructured variables over properties.
7291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-destructuring.md
7347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
7292
7348
  */
7293
7349
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7294
7350
  /**
7295
7351
  * Prefer consistent types when spreading a ternary in an array literal.
7296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-empty-array-spread.md
7352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
7297
7353
  */
7298
7354
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7299
7355
  /**
7300
7356
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-existence-index-check.md
7357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
7302
7358
  */
7303
7359
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7304
7360
  /**
7305
7361
  * Enforce consistent decorator position on exported classes.
7306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-export-decorator-position.md
7362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
7307
7363
  */
7308
7364
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7309
7365
  /**
7310
7366
  * Move function definitions to the highest possible scope.
7311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-scoping.md
7367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
7312
7368
  */
7313
7369
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7314
7370
  /**
7315
7371
  * Enforce function syntax by role.
7316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-style.md
7372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
7317
7373
  */
7318
7374
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7319
7375
  /**
7320
7376
  * Enforce consistent JSON file reads before `JSON.parse()`.
7321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-json-file-read.md
7377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
7322
7378
  */
7323
7379
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7324
7380
  /**
7325
7381
  * Enforce consistent optional chaining for same-base member access.
7326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-optional-chaining.md
7382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
7327
7383
  */
7328
7384
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7329
7385
  /**
7330
7386
  * Enforce consistent style for escaping `${` in template literals.
7331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-template-literal-escape.md
7387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
7332
7388
  */
7333
7389
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7334
7390
  /**
7335
7391
  * Enforce consistent labels on tuple type elements.
7336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-tuple-labels.md
7392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
7337
7393
  */
7338
7394
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7339
7395
  /**
7340
7396
  * Enforce correct `Error` subclassing.
7341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/custom-error-definition.md
7397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
7342
7398
  */
7343
7399
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7344
7400
  /**
7345
7401
  * Enforce consistent default export declarations.
7346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/default-export-style.md
7402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
7347
7403
  */
7348
7404
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7349
7405
  /**
7350
7406
  * Enforce consistent style for DOM element dataset access.
7351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/dom-node-dataset.md
7407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
7352
7408
  */
7353
7409
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7354
7410
  /**
7355
7411
  * Enforce no spaces between braces.
7356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/empty-brace-spaces.md
7412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
7357
7413
  */
7358
7414
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7359
7415
  /**
7360
7416
  * Enforce passing a `message` value when creating a built-in error.
7361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/error-message.md
7417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
7362
7418
  */
7363
7419
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7364
7420
  /**
7365
7421
  * Require escape sequences to use uppercase or lowercase values.
7366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/escape-case.md
7422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
7367
7423
  */
7368
7424
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7369
7425
  /**
7370
7426
  * Add expiration conditions to TODO comments.
7371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/expiring-todo-comments.md
7427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
7372
7428
  */
7373
7429
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7374
7430
  /**
7375
7431
  * Enforce explicitly comparing the `length` or `size` property of a value.
7376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-length-check.md
7432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
7377
7433
  */
7378
7434
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7379
7435
  /**
7380
7436
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-timer-delay.md
7437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
7382
7438
  */
7383
7439
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7384
7440
  /**
7385
7441
  * Enforce a case style for filenames and directory names.
7386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/filename-case.md
7442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
7387
7443
  */
7388
7444
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7389
7445
  /**
7390
7446
  * Require identifiers to match a specified regular expression.
7391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/id-match.md
7447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
7392
7448
  */
7393
7449
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7394
7450
  /**
7395
7451
  * Enforce specific import styles per module.
7396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/import-style.md
7452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
7397
7453
  */
7398
7454
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7399
7455
  /**
7400
7456
  * Prevent usage of variables from outside the scope of isolated functions.
7401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/isolated-functions.md
7457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
7402
7458
  */
7403
7459
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7404
7460
  /**
7405
7461
  * Require or disallow logical assignment operator shorthand
7406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/logical-assignment-operators.md
7462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
7407
7463
  */
7408
7464
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7409
7465
  /**
7410
7466
  * Limit the depth of nested calls.
7411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/max-nested-calls.md
7467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
7412
7468
  */
7413
7469
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7414
7470
  /**
7415
7471
  * Enforce replacements for variable, property, and filenames.
7416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/name-replacements.md
7472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
7417
7473
  */
7418
7474
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7419
7475
  /**
7420
7476
  * Enforce correct use of `new` for builtin constructors.
7421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/new-for-builtins.md
7477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
7422
7478
  */
7423
7479
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7424
7480
  /**
7425
7481
  * Enforce specifying rules to disable in `eslint-disable` comments.
7426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-abusive-eslint-disable.md
7482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
7427
7483
  */
7428
7484
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7429
7485
  /**
7430
7486
  * Disallow recursive access to `this` within getters and setters.
7431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accessor-recursion.md
7487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
7432
7488
  */
7433
7489
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7434
7490
  /**
7435
7491
  * Disallow bitwise operators where a logical operator was likely intended.
7436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accidental-bitwise-operator.md
7492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
7437
7493
  */
7438
7494
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7439
7495
  /**
7440
7496
  * Disallow anonymous functions and classes as the default export.
7441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-anonymous-default-export.md
7497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
7442
7498
  */
7443
7499
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7444
7500
  /**
7445
7501
  * Prevent passing a function reference directly to iterator methods.
7446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-callback-reference.md
7502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
7447
7503
  */
7448
7504
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7449
7505
  /**
7450
7506
  * Disallow array accumulation with `Array#concat()` in loops.
7451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-concat-in-loop.md
7507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
7452
7508
  */
7453
7509
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7454
7510
  /**
7455
7511
  * Disallow using reference values as `Array#fill()` values.
7456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-fill-with-reference-type.md
7512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
7457
7513
  */
7458
7514
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7459
7515
  /**
7460
7516
  * Disallow `.fill()` after `Array.from({length: …})`.
7461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-from-fill.md
7517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
7462
7518
  */
7463
7519
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7464
7520
  /**
7465
7521
  * Disallow front-of-array mutation.
7466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-front-mutation.md
7522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
7467
7523
  */
7468
7524
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7469
7525
  /**
7470
7526
  * Disallow using the `this` argument in array methods.
7471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-method-this-argument.md
7527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
7472
7528
  */
7473
7529
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7474
7530
  /**
7475
7531
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7477
7533
  * @deprecated
7478
7534
  */
7479
7535
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7480
7536
  /**
7481
7537
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reduce.md
7538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
7483
7539
  */
7484
7540
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7485
7541
  /**
7486
7542
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reverse.md
7543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
7488
7544
  */
7489
7545
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7490
7546
  /**
7491
7547
  * Prefer `Array#toSorted()` over `Array#sort()`.
7492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort.md
7548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
7493
7549
  */
7494
7550
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7495
7551
  /**
7496
7552
  * Disallow sorting arrays to get the minimum or maximum value.
7497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort-for-min-max.md
7553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
7498
7554
  */
7499
7555
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7500
7556
  /**
7501
7557
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-splice.md
7558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
7503
7559
  */
7504
7560
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7505
7561
  /**
7506
7562
  * Disallow asterisk prefixes in documentation comments.
7507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7508
7564
  */
7509
7565
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7510
7566
  /**
7511
7567
  * Disallow async functions as `Promise#finally()` callbacks.
7512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-async-promise-finally.md
7568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
7513
7569
  */
7514
7570
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7515
7571
  /**
7516
7572
  * Disallow member access from await expression.
7517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-expression-member.md
7573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
7518
7574
  */
7519
7575
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7520
7576
  /**
7521
7577
  * Disallow using `await` in `Promise` method parameters.
7522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-in-promise-methods.md
7578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
7523
7579
  */
7524
7580
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7525
7581
  /**
7526
7582
  * Disallow unnecessary `Blob` to `File` conversion.
7527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-blob-to-file.md
7583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
7528
7584
  */
7529
7585
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7530
7586
  /**
7531
7587
  * Disallow boolean-returning sort comparators.
7532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-boolean-sort-comparator.md
7588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
7533
7589
  */
7534
7590
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7535
7591
  /**
7536
7592
  * Disallow `break` and `continue` in nested loops and switches inside loops.
7537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-break-in-nested-loop.md
7593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
7538
7594
  */
7539
7595
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7540
7596
  /**
7541
7597
  * Prefer drawing canvases directly instead of converting them to images.
7542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-canvas-to-image.md
7598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
7543
7599
  */
7544
7600
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7545
7601
  /**
7546
7602
  * Disallow chained comparisons such as `a < b < c`.
7547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-chained-comparison.md
7603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
7548
7604
  */
7549
7605
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7550
7606
  /**
7551
7607
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-collection-bracket-access.md
7608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
7553
7609
  */
7554
7610
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7555
7611
  /**
7556
7612
  * Disallow dynamic object property existence checks.
7557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-computed-property-existence-check.md
7613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
7558
7614
  */
7559
7615
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7560
7616
  /**
7561
7617
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-splice.md
7618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
7563
7619
  */
7564
7620
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7565
7621
  /**
7566
7622
  * Disallow confusing uses of `Array#with()`.
7567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-with.md
7623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
7568
7624
  */
7569
7625
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7570
7626
  /**
7571
7627
  * Do not use leading/trailing space between `console.log` parameters.
7572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-console-spaces.md
7628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
7573
7629
  */
7574
7630
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7575
7631
  /**
7576
7632
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-constant-zero-expression.md
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
7578
7634
  */
7579
7635
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7580
7636
  /**
7581
7637
  * Disallow declarations before conditional early exits when they are only used after the exit.
7582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-declarations-before-early-exit.md
7638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
7583
7639
  */
7584
7640
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7585
7641
  /**
7586
7642
  * Do not use `document.cookie` directly.
7587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-document-cookie.md
7643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
7588
7644
  */
7589
7645
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7590
7646
  /**
7591
7647
  * Disallow two comparisons of the same operands that can be combined into one.
7592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-double-comparison.md
7648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
7593
7649
  */
7594
7650
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7595
7651
  /**
7596
7652
  * Disallow duplicate adjacent branches in if chains.
7597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-if-branches.md
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
7598
7654
  */
7599
7655
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7600
7656
  /**
7601
7657
  * Disallow adjacent duplicate operands in logical expressions.
7602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-logical-operands.md
7658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
7603
7659
  */
7604
7660
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7605
7661
  /**
7606
7662
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-loops.md
7663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
7608
7664
  */
7609
7665
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7610
7666
  /**
7611
7667
  * Disallow duplicate values in `Set` constructor array literals.
7612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-set-values.md
7668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
7613
7669
  */
7614
7670
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7615
7671
  /**
7616
7672
  * Disallow empty files.
7617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-empty-file.md
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
7618
7674
  */
7619
7675
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7620
7676
  /**
7621
7677
  * Disallow assigning to built-in error properties.
7622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-error-property-assignment.md
7678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
7623
7679
  */
7624
7680
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7625
7681
  /**
7626
7682
  * Disallow exports in scripts.
7627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-exports-in-scripts.md
7683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
7628
7684
  */
7629
7685
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7630
7686
  /**
7631
7687
  * Prefer `for…of` over the `forEach` method.
7632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-each.md
7688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
7633
7689
  */
7634
7690
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7635
7691
  /**
7636
7692
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-loop.md
7693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
7638
7694
  */
7639
7695
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7640
7696
  /**
7641
7697
  * Disallow assigning properties on the global object.
7642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-global-object-property-assignment.md
7698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
7643
7699
  */
7644
7700
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7645
7701
  /**
7646
7702
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7648
7704
  * @deprecated
7649
7705
  */
7650
7706
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7651
7707
  /**
7652
7708
  * Disallow immediate mutation after variable assignment.
7653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-immediate-mutation.md
7709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
7654
7710
  */
7655
7711
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7656
7712
  /**
7657
7713
  * Disallow impossible comparisons against `.length` or `.size`.
7658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-impossible-length-comparison.md
7714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
7659
7715
  */
7660
7716
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7661
7717
  /**
7662
7718
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-query-selector.md
7719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
7664
7720
  */
7665
7721
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7666
7722
  /**
7667
7723
  * Disallow incorrect template literal interpolation syntax.
7668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7669
7725
  */
7670
7726
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7671
7727
  /**
7672
7728
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7674
7730
  * @deprecated
7675
7731
  */
7676
7732
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7677
7733
  /**
7678
7734
  * Disallow `instanceof` with built-in objects
7679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-instanceof-builtins.md
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
7680
7736
  */
7681
7737
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7682
7738
  /**
7683
7739
  * Disallow calling functions and constructors with an invalid number of arguments.
7684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-argument-count.md
7740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
7685
7741
  */
7686
7742
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7687
7743
  /**
7688
7744
  * Disallow comparing a single character from a string to a multi-character string.
7689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-character-comparison.md
7745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
7690
7746
  */
7691
7747
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7692
7748
  /**
7693
7749
  * Disallow invalid options in `fetch()` and `new Request()`.
7694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-fetch-options.md
7750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
7695
7751
  */
7696
7752
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7697
7753
  /**
7698
7754
  * Disallow invalid `accept` values on file inputs.
7699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-file-input-accept.md
7755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
7700
7756
  */
7701
7757
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7702
7758
  /**
7703
7759
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-remove-event-listener.md
7760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
7705
7761
  */
7706
7762
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7707
7763
  /**
7708
7764
  * Disallow invalid implementations of well-known symbol methods.
7709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7710
7766
  */
7711
7767
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7712
7768
  /**
7713
7769
  * Disallow identifiers starting with `new` or `class`.
7714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-keyword-prefix.md
7770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
7715
7771
  */
7716
7772
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7717
7773
  /**
7718
7774
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-current-target-access.md
7775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
7720
7776
  */
7721
7777
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7722
7778
  /**
7723
7779
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-event-control.md
7780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
7725
7781
  */
7726
7782
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7727
7783
  /**
7728
7784
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7730
7786
  * @deprecated
7731
7787
  */
7732
7788
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7733
7789
  /**
7734
7790
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-lonely-if.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
7736
7792
  */
7737
7793
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7738
7794
  /**
7739
7795
  * Disallow mutating a loop iterable during iteration.
7740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-loop-iterable-mutation.md
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
7741
7797
  */
7742
7798
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7743
7799
  /**
7744
7800
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-magic-array-flat-depth.md
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
7746
7802
  */
7747
7803
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7748
7804
  /**
7749
7805
  * Disallow manually wrapped comments.
7750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-manually-wrapped-comments.md
7806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
7751
7807
  */
7752
7808
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7753
7809
  /**
7754
7810
  * Disallow checking a Map key before accessing a different key.
7755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-mismatched-map-key.md
7811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
7756
7812
  */
7757
7813
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7758
7814
  /**
7759
7815
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-misrefactored-assignment.md
7816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
7761
7817
  */
7762
7818
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7819
+ /**
7820
+ * Disallow references to missing local resources.
7821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
7822
+ */
7823
+ 'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7824
+ /**
7825
+ * Disallow calling Promise executor resolver functions more than once on the same execution path.
7826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7827
+ */
7828
+ 'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7763
7829
  /**
7764
7830
  * Disallow named usage of default import and export.
7765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-named-default.md
7831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
7766
7832
  */
7767
7833
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7768
7834
  /**
7769
7835
  * Disallow negated array predicate calls.
7770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-array-predicate.md
7836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
7771
7837
  */
7772
7838
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7773
7839
  /**
7774
7840
  * Disallow negated comparisons.
7775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-comparison.md
7841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
7776
7842
  */
7777
7843
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7778
7844
  /**
7779
7845
  * Disallow negated conditions.
7780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-condition.md
7846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
7781
7847
  */
7782
7848
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7783
7849
  /**
7784
7850
  * Disallow negated expression in equality check.
7785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negation-in-equality-check.md
7851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
7786
7852
  */
7787
7853
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7788
7854
  /**
7789
7855
  * Disallow nested ternary expressions.
7790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nested-ternary.md
7856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
7791
7857
  */
7792
7858
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7793
7859
  /**
7794
7860
  * Disallow `new Array()`.
7795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-array.md
7861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
7796
7862
  */
7797
7863
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7798
7864
  /**
7799
7865
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-buffer.md
7866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
7801
7867
  */
7802
7868
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7803
7869
  /**
7804
7870
  * Disallow non-function values with function-style verb prefixes.
7805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-non-function-verb-prefix.md
7871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
7806
7872
  */
7807
7873
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7808
7874
  /**
7809
7875
  * Disallow non-standard properties on built-in objects.
7810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nonstandard-builtin-properties.md
7876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
7811
7877
  */
7812
7878
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7813
7879
  /**
7814
7880
  * Disallow the use of the `null` literal.
7815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-null.md
7881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
7816
7882
  */
7817
7883
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7818
7884
  /**
7819
7885
  * Disallow the use of objects as default parameters.
7820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-as-default-parameter.md
7886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
7821
7887
  */
7822
7888
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7823
7889
  /**
7824
7890
  * Disallow `Object` methods with `Map` or `Set`.
7825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-methods-with-collections.md
7891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
7826
7892
  */
7827
7893
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7828
7894
  /**
7829
7895
  * Disallow optional chaining on undeclared variables.
7830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7831
7897
  */
7832
7898
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7833
7899
  /**
7834
7900
  * Disallow `process.exit()`.
7835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-process-exit.md
7901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
7836
7902
  */
7837
7903
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7838
7904
  /**
7839
7905
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-redundant-comparison.md
7906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
7841
7907
  */
7842
7908
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7843
7909
  /**
7844
7910
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-return-array-push.md
7911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
7846
7912
  */
7847
7913
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7848
7914
  /**
7849
7915
  * Disallow selector syntax in DOM names.
7850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-selector-as-dom-name.md
7916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
7851
7917
  */
7852
7918
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7919
+ /**
7920
+ * Disallow shorthand properties that override related longhand properties.
7921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
7922
+ */
7923
+ 'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7853
7924
  /**
7854
7925
  * Disallow passing single-element arrays to `Promise` methods.
7855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-single-promise-in-promise-methods.md
7926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
7856
7927
  */
7857
7928
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7858
7929
  /**
7859
7930
  * Disallow classes that only have static members.
7860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-static-only-class.md
7931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
7861
7932
  */
7862
7933
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7863
7934
  /**
7864
7935
  * Prefer comparing values directly over subtracting and comparing to `0`.
7865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-subtraction-comparison.md
7936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
7866
7937
  */
7867
7938
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7868
7939
  /**
7869
7940
  * Disallow `then` property.
7870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-thenable.md
7941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
7871
7942
  */
7872
7943
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7873
7944
  /**
7874
7945
  * Disallow assigning `this` to a variable.
7875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-assignment.md
7946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
7876
7947
  */
7877
7948
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7878
7949
  /**
7879
7950
  * Disallow `this` outside of classes.
7880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-outside-of-class.md
7951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
7881
7952
  */
7882
7953
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7883
7954
  /**
7884
7955
  * Disallow assigning to top-level variables from inside functions.
7885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-assignment-in-function.md
7956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
7886
7957
  */
7887
7958
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7888
7959
  /**
7889
7960
  * Disallow top-level side effects in exported modules.
7890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-side-effects.md
7961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
7891
7962
  */
7892
7963
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7964
+ /**
7965
+ * Disallow `all` as a transition property.
7966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
7967
+ */
7968
+ 'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7893
7969
  /**
7894
7970
  * Disallow comparing `undefined` using `typeof`.
7895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-typeof-undefined.md
7971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
7896
7972
  */
7897
7973
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7898
7974
  /**
7899
7975
  * Disallow referencing methods without calling them.
7900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-uncalled-method.md
7976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
7901
7977
  */
7902
7978
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7903
7979
  /**
7904
7980
  * Require class members to be declared.
7905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-undeclared-class-members.md
7981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
7906
7982
  */
7907
7983
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7908
7984
  /**
7909
7985
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7911
7987
  */
7912
7988
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7913
7989
  /**
7914
7990
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-map.md
7991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
7916
7992
  */
7917
7993
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7918
7994
  /**
7919
7995
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-splice-count.md
7996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
7921
7997
  */
7922
7998
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7923
7999
  /**
7924
8000
  * Disallow awaiting non-promise values.
7925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-await.md
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
7926
8002
  */
7927
8003
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7928
8004
  /**
7929
8005
  * Disallow unnecessary comparisons against boolean literals.
7930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7931
8007
  */
7932
8008
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7933
8009
  /**
7934
8010
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-fetch-options.md
8011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
7936
8012
  */
7937
8013
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7938
8014
  /**
7939
8015
  * Disallow unnecessary `globalThis` references.
7940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-global-this.md
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
7941
8017
  */
7942
8018
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7943
8019
  /**
7944
8020
  * Disallow unnecessary nested ternary expressions.
7945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-nested-ternary.md
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
7946
8022
  */
7947
8023
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7948
8024
  /**
7949
8025
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-polyfills.md
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
7951
8027
  */
7952
8028
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7953
8029
  /**
7954
8030
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-slice-end.md
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
7956
8032
  */
7957
8033
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7958
8034
  /**
7959
8035
  * Disallow `Array#splice()` when simpler alternatives exist.
7960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-splice.md
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
7961
8037
  */
7962
8038
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8039
+ /**
8040
+ * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
8042
+ */
8043
+ 'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7963
8044
  /**
7964
8045
  * Disallow unreadable array destructuring.
7965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-array-destructuring.md
8046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
7966
8047
  */
7967
8048
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7968
8049
  /**
7969
8050
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-for-of-expression.md
8051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
7971
8052
  */
7972
8053
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7973
8054
  /**
7974
8055
  * Disallow unreadable IIFEs.
7975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-iife.md
8056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
7976
8057
  */
7977
8058
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7978
8059
  /**
7979
8060
  * Disallow unreadable `new` expressions.
7980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-new-expression.md
8061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
7981
8062
  */
7982
8063
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7983
8064
  /**
7984
8065
  * Disallow unreadable object destructuring.
7985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-object-destructuring.md
8066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
7986
8067
  */
7987
8068
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7988
8069
  /**
7989
8070
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-buffer-conversion.md
8071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
7991
8072
  */
7992
8073
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7993
8074
  /**
7994
8075
  * Disallow unsafe DOM HTML APIs.
7995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-dom-html.md
8076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
7996
8077
  */
7997
8078
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7998
8079
  /**
7999
8080
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8001
8082
  */
8002
8083
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8003
8084
  /**
8004
8085
  * Disallow unsafe values as property keys.
8005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-property-key.md
8086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
8006
8087
  */
8007
8088
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8008
8089
  /**
8009
8090
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-string-replacement.md
8091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
8011
8092
  */
8012
8093
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8013
8094
  /**
8014
8095
  * Disallow ignoring the return value of selected array methods.
8015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-array-method-return.md
8096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
8016
8097
  */
8017
8098
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8018
8099
  /**
8019
8100
  * Disallow unused object properties.
8020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-properties.md
8101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
8021
8102
  */
8022
8103
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8023
8104
  /**
8024
8105
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-boolean-cast.md
8106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
8026
8107
  */
8027
8108
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8028
8109
  /**
8029
8110
  * Disallow useless type coercions of values that are already of the target type.
8030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-coercion.md
8111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
8031
8112
  */
8032
8113
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8033
8114
  /**
8034
8115
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-collection-argument.md
8116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
8036
8117
  */
8037
8118
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8038
8119
  /**
8039
8120
  * Disallow useless compound assignments such as `x += 0`.
8040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-compound-assignment.md
8121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
8041
8122
  */
8042
8123
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8043
8124
  /**
8044
8125
  * Disallow useless concatenation of literals.
8045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-concat.md
8126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
8046
8127
  */
8047
8128
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8048
8129
  /**
8049
8130
  * Disallow useless `continue` statements.
8050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-continue.md
8131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
8051
8132
  */
8052
8133
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8053
8134
  /**
8054
8135
  * Disallow unnecessary existence checks before deletion.
8055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-delete-check.md
8136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
8056
8137
  */
8057
8138
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8058
8139
  /**
8059
8140
  * Disallow `else` after a statement that exits.
8060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-else.md
8141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
8061
8142
  */
8062
8143
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8063
8144
  /**
8064
8145
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8066
8147
  */
8067
8148
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8068
8149
  /**
8069
8150
  * Disallow useless fallback when spreading in object literals.
8070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-fallback-in-spread.md
8151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
8071
8152
  */
8072
8153
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8073
8154
  /**
8074
8155
  * Disallow unnecessary `.toArray()` on iterators.
8075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-iterator-to-array.md
8156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
8076
8157
  */
8077
8158
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8078
8159
  /**
8079
8160
  * Disallow useless array length check.
8080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-length-check.md
8161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
8081
8162
  */
8082
8163
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8083
8164
  /**
8084
8165
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-logical-operand.md
8166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
8086
8167
  */
8087
8168
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8088
8169
  /**
8089
8170
  * Disallow useless overrides of class methods.
8090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-override.md
8171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
8091
8172
  */
8092
8173
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8093
8174
  /**
8094
8175
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-promise-resolve-reject.md
8176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
8096
8177
  */
8097
8178
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8179
+ /**
8180
+ * Disallow redundant re-exports.
8181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
8182
+ */
8183
+ 'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8098
8184
  /**
8099
8185
  * Disallow simple recursive function calls that can be replaced with a loop.
8100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-recursion.md
8186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
8101
8187
  */
8102
8188
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8103
8189
  /**
8104
8190
  * Disallow unnecessary spread.
8105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-spread.md
8191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
8106
8192
  */
8107
8193
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8108
8194
  /**
8109
8195
  * Disallow useless case in switch statements.
8110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-switch-case.md
8196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
8111
8197
  */
8112
8198
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8113
8199
  /**
8114
8200
  * Disallow useless template literal expressions.
8115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-template-literals.md
8201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
8116
8202
  */
8117
8203
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8118
8204
  /**
8119
8205
  * Disallow useless `undefined`.
8120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-undefined.md
8206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
8121
8207
  */
8122
8208
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8123
8209
  /**
8124
8210
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-xor-as-exponentiation.md
8211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
8126
8212
  */
8127
8213
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8128
8214
  /**
8129
8215
  * Disallow number literals with zero fractions or dangling dots.
8130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-zero-fractions.md
8216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
8131
8217
  */
8132
8218
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8133
8219
  /**
8134
8220
  * Enforce proper case for numeric literals.
8135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/number-literal-case.md
8221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
8136
8222
  */
8137
8223
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8138
8224
  /**
8139
8225
  * Enforce the style of numeric separators by correctly grouping digits.
8140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/numeric-separators-style.md
8226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
8141
8227
  */
8142
8228
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8143
8229
  /**
8144
8230
  * Require assignment operator shorthand where possible.
8145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/operator-assignment.md
8231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
8146
8232
  */
8147
8233
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8148
8234
  /**
8149
8235
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-any.md
8236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
8151
8237
  */
8152
8238
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8153
8239
  /**
8154
8240
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-timeout.md
8241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
8156
8242
  */
8157
8243
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8158
8244
  /**
8159
8245
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener.md
8246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
8161
8247
  */
8162
8248
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8163
8249
  /**
8164
8250
  * Prefer an options object over a boolean in `.addEventListener()`.
8165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener-options.md
8251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
8166
8252
  */
8167
8253
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8168
8254
  /**
8169
8255
  * Prefer `AggregateError` when throwing collected errors.
8170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-aggregate-error.md
8256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
8171
8257
  */
8172
8258
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8173
8259
  /**
8174
8260
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-find.md
8261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
8176
8262
  */
8177
8263
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8178
8264
  /**
8179
8265
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat.md
8266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
8181
8267
  */
8182
8268
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8183
8269
  /**
8184
8270
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat-map.md
8271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
8186
8272
  */
8187
8273
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8188
8274
  /**
8189
8275
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-async.md
8276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
8191
8277
  */
8192
8278
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8193
8279
  /**
8194
8280
  * Prefer using the `Array.from()` mapping function argument.
8195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-map.md
8281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
8196
8282
  */
8197
8283
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8198
8284
  /**
8199
8285
  * Prefer `Array.from({length}, …)` when creating range arrays.
8200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-range.md
8286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
8201
8287
  */
8202
8288
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8203
8289
  /**
8204
8290
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-index-of.md
8291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
8206
8292
  */
8207
8293
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8208
8294
  /**
8209
8295
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-iterable-methods.md
8296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
8211
8297
  */
8212
8298
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8213
8299
  /**
8214
8300
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-last-methods.md
8301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
8216
8302
  */
8217
8303
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8218
8304
  /**
8219
8305
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-slice.md
8306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
8221
8307
  */
8222
8308
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8223
8309
  /**
8224
8310
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-some.md
8311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
8226
8312
  */
8227
8313
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8228
8314
  /**
8229
8315
  * Prefer `.at()` method for index access and `String#charAt()`.
8230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-at.md
8316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
8231
8317
  */
8232
8318
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8233
8319
  /**
8234
8320
  * Prefer `await` over promise chaining.
8235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-await.md
8321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
8236
8322
  */
8237
8323
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8238
8324
  /**
8239
8325
  * Prefer `BigInt` literals over the constructor.
8240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-bigint-literals.md
8326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
8241
8327
  */
8242
8328
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8243
8329
  /**
8244
8330
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-blob-reading-methods.md
8331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
8246
8332
  */
8247
8333
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8248
8334
  /**
8249
8335
  * Prefer block statements over IIFEs used only for scoping.
8250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-block-statement-over-iife.md
8336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
8251
8337
  */
8252
8338
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8253
8339
  /**
8254
8340
  * Prefer directly returning boolean expressions over `if` statements.
8255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-boolean-return.md
8341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
8256
8342
  */
8257
8343
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8258
8344
  /**
8259
8345
  * Prefer class field declarations over `this` assignments in constructors.
8260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-class-fields.md
8346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
8261
8347
  */
8262
8348
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8263
8349
  /**
8264
8350
  * Prefer using `Element#classList.toggle()` to toggle class names.
8265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-classlist-toggle.md
8351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
8266
8352
  */
8267
8353
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8268
8354
  /**
8269
8355
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-code-point.md
8356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
8271
8357
  */
8272
8358
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8273
8359
  /**
8274
8360
  * Prefer early continues over whole-loop conditional wrapping.
8275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-continue.md
8361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
8276
8362
  */
8277
8363
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8278
8364
  /**
8279
8365
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-date-now.md
8366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
8281
8367
  */
8282
8368
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8283
8369
  /**
8284
8370
  * Prefer default parameters over reassignment.
8285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-default-parameters.md
8371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
8286
8372
  */
8287
8373
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8288
8374
  /**
8289
8375
  * Prefer direct iteration over default iterator method calls.
8290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-direct-iteration.md
8376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
8291
8377
  */
8292
8378
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8293
8379
  /**
8294
8380
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dispose.md
8381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
8296
8382
  */
8297
8383
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8298
8384
  /**
8299
8385
  * Prefer `Element#append()` over `Node#appendChild()`.
8300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-append.md
8386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
8301
8387
  */
8302
8388
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8303
8389
  /**
8304
8390
  * Renamed to `unicorn/dom-node-dataset`.
8305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8306
8392
  * @deprecated
8307
8393
  */
8308
8394
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8309
8395
  /**
8310
8396
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-html-methods.md
8397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
8312
8398
  */
8313
- 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
8399
+ 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8314
8400
  /**
8315
8401
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-remove.md
8402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
8317
8403
  */
8318
8404
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8319
8405
  /**
8320
8406
  * Prefer `.replaceChildren()` when emptying DOM children.
8321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-replace-children.md
8407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
8322
8408
  */
8323
8409
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8324
8410
  /**
8325
8411
  * Prefer `.textContent` over `.innerText`.
8326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-text-content.md
8412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
8327
8413
  */
8328
8414
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8329
8415
  /**
8330
8416
  * Prefer early returns over full-function conditional wrapping.
8331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-early-return.md
8417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
8332
8418
  */
8333
8419
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8334
8420
  /**
8335
8421
  * Prefer `else if` over adjacent `if` statements with related conditions.
8336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-else-if.md
8422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
8337
8423
  */
8338
8424
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8339
8425
  /**
8340
8426
  * Prefer `Error.isError()` when checking for errors.
8341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-error-is-error.md
8427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
8342
8428
  */
8343
8429
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8344
8430
  /**
8345
8431
  * Prefer `EventTarget` over `EventEmitter`.
8346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-event-target.md
8432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
8347
8433
  */
8348
8434
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8435
+ /**
8436
+ * Prefer explicit viewport units.
8437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
8438
+ */
8439
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8349
8440
  /**
8350
8441
  * Prefer `export…from` when re-exporting.
8351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-export-from.md
8442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
8352
8443
  */
8353
8444
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8354
8445
  /**
8355
8446
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-flat-math-min-max.md
8447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
8357
8448
  */
8358
8449
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8359
8450
  /**
8360
8451
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-get-or-insert-computed.md
8452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
8362
8453
  */
8363
8454
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8364
8455
  /**
8365
8456
  * Prefer global numeric constants over `Number` static properties.
8366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-number-constants.md
8457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
8367
8458
  */
8368
8459
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8369
8460
  /**
8370
8461
  * Prefer `globalThis` over `window`, `self`, and `global`.
8371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-this.md
8462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
8372
8463
  */
8373
8464
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8374
8465
  /**
8375
8466
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-group-by.md
8467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
8377
8468
  */
8378
8469
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8379
8470
  /**
8380
8471
  * Prefer `.has()` when checking existence.
8381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-has-check.md
8472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
8382
8473
  */
8383
8474
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8384
8475
  /**
8385
8476
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-hoisting-branch-code.md
8477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
8387
8478
  */
8388
8479
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8389
8480
  /**
8390
8481
  * Prefer HTTPS over HTTP.
8391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-https.md
8482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
8392
8483
  */
8393
8484
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
8394
8485
  /**
8395
8486
  * Prefer identifiers over string literals in import and export specifiers.
8396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8397
8488
  */
8398
8489
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8399
8490
  /**
8400
8491
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-import-meta-properties.md
8492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
8402
8493
  */
8403
8494
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8404
8495
  /**
8405
8496
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes.md
8497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
8407
8498
  */
8408
8499
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8409
8500
  /**
8410
8501
  * Prefer `.includes()` over repeated equality comparisons.
8411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8412
8503
  */
8413
8504
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8414
8505
  /**
8415
8506
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterable-in-constructor.md
8507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
8417
8508
  */
8418
8509
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8419
8510
  /**
8420
8511
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-concat.md
8512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
8422
8513
  */
8423
8514
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8424
8515
  /**
8425
8516
  * Prefer iterator helpers over temporary arrays from iterators.
8426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-helpers.md
8517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
8427
8518
  */
8428
8519
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8429
8520
  /**
8430
8521
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array.md
8522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
8432
8523
  */
8433
8524
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8434
8525
  /**
8435
8526
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8437
8528
  */
8438
8529
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8439
8530
  /**
8440
8531
  * Renamed to `unicorn/consistent-json-file-read`.
8441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8442
8533
  * @deprecated
8443
8534
  */
8444
8535
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8445
8536
  /**
8446
8537
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-keyboard-event-key.md
8538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
8448
8539
  */
8449
8540
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8450
8541
  /**
8451
8542
  * Prefer `location.assign()` over assigning to `location.href`.
8452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-location-assign.md
8543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
8453
8544
  */
8454
8545
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8455
8546
  /**
8456
8547
  * Prefer using a logical operator over a ternary.
8457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8458
8549
  */
8459
8550
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8460
8551
  /**
8461
8552
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-map-from-entries.md
8553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
8463
8554
  */
8464
8555
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8465
8556
  /**
8466
8557
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-abs.md
8558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
8468
8559
  */
8469
8560
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8470
8561
  /**
8471
8562
  * Prefer `Math` constants over their approximate numeric values.
8472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-constants.md
8563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
8473
8564
  */
8474
8565
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8475
8566
  /**
8476
8567
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-min-max.md
8568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
8478
8569
  */
8479
8570
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8480
8571
  /**
8481
8572
  * Prefer `Math.trunc()` for truncating numbers.
8482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-trunc.md
8573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
8483
8574
  */
8484
8575
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8485
8576
  /**
8486
8577
  * Prefer moving ternaries into the minimal varying part of an expression.
8487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-minimal-ternary.md
8578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
8488
8579
  */
8489
8580
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8490
8581
  /**
8491
8582
  * Prefer modern DOM APIs.
8492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-dom-apis.md
8583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
8493
8584
  */
8494
8585
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8495
8586
  /**
8496
8587
  * Prefer modern `Math` APIs over legacy patterns.
8497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-math-apis.md
8588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
8498
8589
  */
8499
8590
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8500
8591
  /**
8501
8592
  * Prefer JavaScript modules (ESM) over CommonJS.
8502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-module.md
8593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
8503
8594
  */
8504
8595
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8505
8596
  /**
8506
8597
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-native-coercion-functions.md
8598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
8508
8599
  */
8509
8600
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8510
8601
  /**
8511
8602
  * Prefer negative index over `.length - index` when possible.
8512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-negative-index.md
8603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
8513
8604
  */
8514
8605
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8515
8606
  /**
8516
8607
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-node-protocol.md
8608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
8518
8609
  */
8519
8610
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8520
8611
  /**
8521
8612
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-coercion.md
8613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
8523
8614
  */
8524
8615
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8525
8616
  /**
8526
8617
  * Prefer `Number.isSafeInteger()` over integer checks.
8527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-is-safe-integer.md
8618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
8528
8619
  */
8529
8620
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8530
8621
  /**
8531
8622
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-properties.md
8623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
8533
8624
  */
8534
8625
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8535
8626
  /**
8536
8627
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-define-properties.md
8628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
8538
8629
  */
8539
8630
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8540
8631
  /**
8541
8632
  * Prefer object destructuring defaults over default object literals with spread.
8542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-destructuring-defaults.md
8633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
8543
8634
  */
8544
8635
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8545
8636
  /**
8546
8637
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-from-entries.md
8638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
8548
8639
  */
8549
8640
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8550
8641
  /**
8551
8642
  * Prefer the most specific `Object` iterable method.
8552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-iterable-methods.md
8643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
8553
8644
  */
8554
8645
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8555
8646
  /**
8556
8647
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-observer-apis.md
8648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
8558
8649
  */
8559
8650
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8560
8651
  /**
8561
8652
  * Prefer omitting the `catch` binding parameter.
8562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-optional-catch-binding.md
8653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
8563
8654
  */
8564
8655
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8565
8656
  /**
8566
8657
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-path2d.md
8658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
8568
8659
  */
8569
8660
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8570
8661
  /**
8571
8662
  * Prefer private class fields over the underscore-prefix convention.
8572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-private-class-fields.md
8663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
8573
8664
  */
8574
8665
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8575
8666
  /**
8576
8667
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-try.md
8668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
8578
8669
  */
8579
8670
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8580
8671
  /**
8581
8672
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-with-resolvers.md
8673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
8583
8674
  */
8584
8675
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8585
8676
  /**
8586
8677
  * Prefer borrowing methods from the prototype instead of the instance.
8587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-prototype-methods.md
8678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
8588
8679
  */
8589
8680
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8590
8681
  /**
8591
8682
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-query-selector.md
8683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
8593
8684
  */
8594
8685
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8595
8686
  /**
8596
8687
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-queue-microtask.md
8688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
8598
8689
  */
8599
8690
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8600
8691
  /**
8601
8692
  * Prefer `Reflect.apply()` over `Function#apply()`.
8602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-reflect-apply.md
8693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
8603
8694
  */
8604
8695
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8605
8696
  /**
8606
8697
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-escape.md
8698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
8608
8699
  */
8609
8700
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8610
8701
  /**
8611
8702
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-test.md
8703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
8613
8704
  */
8614
8705
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8615
8706
  /**
8616
8707
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-response-static-json.md
8708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
8618
8709
  */
8619
8710
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8620
8711
  /**
8621
8712
  * Prefer `:scope` when using element query selector methods.
8622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-scoped-selector.md
8713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
8623
8714
  */
8624
8715
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8625
8716
  /**
8626
8717
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-has.md
8718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
8628
8719
  */
8629
8720
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8630
8721
  /**
8631
8722
  * Prefer `Set` methods for Set operations.
8632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-methods.md
8723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
8633
8724
  */
8634
8725
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8635
8726
  /**
8636
8727
  * Prefer using `Set#size` instead of `Array#length`.
8637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-size.md
8728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
8638
8729
  */
8639
8730
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8640
8731
  /**
8641
8732
  * Prefer arrow function properties over methods with a single return.
8642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-short-arrow-method.md
8733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
8643
8734
  */
8644
- 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
8735
+ 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8645
8736
  /**
8646
8737
  * Prefer simple conditions first in logical expressions.
8647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-condition-first.md
8738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
8648
8739
  */
8649
8740
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8650
8741
  /**
8651
8742
  * Prefer a simple comparison function for `Array#sort()`.
8652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-sort-comparator.md
8743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
8653
8744
  */
8654
8745
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8655
8746
  /**
8656
8747
  * Prefer simplified conditions.
8657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simplified-conditions.md
8748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
8658
8749
  */
8659
8750
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8660
8751
  /**
8661
8752
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-array-predicate.md
8753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
8663
8754
  */
8664
8755
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8665
8756
  /**
8666
8757
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-call.md
8758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
8668
8759
  */
8669
8760
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8670
8761
  /**
8671
8762
  * Prefer a single object destructuring declaration per local const source.
8672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-object-destructuring.md
8763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
8673
8764
  */
8674
8765
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8675
8766
  /**
8676
8767
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-replace.md
8768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
8678
8769
  */
8679
8770
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8680
8771
  /**
8681
8772
  * Prefer declaring variables in the smallest possible scope.
8682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-smaller-scope.md
8773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
8683
8774
  */
8684
8775
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8685
8776
  /**
8686
8777
  * Prefer `String#split()` with a limit.
8687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-split-limit.md
8778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
8688
8779
  */
8689
8780
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8690
8781
  /**
8691
8782
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-spread.md
8783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
8693
8784
  */
8694
8785
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8695
8786
  /**
8696
8787
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-match-all.md
8788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
8698
8789
  */
8699
8790
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8700
8791
  /**
8701
8792
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-pad-start-end.md
8793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
8703
8794
  */
8704
8795
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8705
8796
  /**
8706
8797
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-raw.md
8798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
8708
8799
  */
8709
8800
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8710
8801
  /**
8711
8802
  * Prefer `String#repeat()` for repeated whitespace.
8712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-repeat.md
8803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
8713
8804
  */
8714
8805
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8715
8806
  /**
8716
8807
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-replace-all.md
8808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
8718
8809
  */
8719
8810
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8720
8811
  /**
8721
8812
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-slice.md
8813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
8723
8814
  */
8724
8815
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8725
8816
  /**
8726
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
8727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-starts-ends-with.md
8817
+ * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
8728
8819
  */
8729
8820
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8730
8821
  /**
8731
8822
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-trim-start-end.md
8823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
8733
8824
  */
8734
8825
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8735
8826
  /**
8736
8827
  * Prefer using `structuredClone` to create a deep clone.
8737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-structured-clone.md
8828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
8738
8829
  */
8739
8830
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8740
8831
  /**
8741
8832
  * Prefer `switch` over multiple `else-if`.
8742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-switch.md
8833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
8743
8834
  */
8744
8835
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8745
8836
  /**
8746
8837
  * Prefer `Temporal` over `Date`.
8747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-temporal.md
8838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
8748
8839
  */
8749
8840
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8750
8841
  /**
8751
8842
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-ternary.md
8843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
8753
8844
  */
8754
8845
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8846
+ /**
8847
+ * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
8849
+ */
8850
+ 'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8755
8851
  /**
8756
8852
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-toggle-attribute.md
8853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
8758
8854
  */
8759
8855
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8760
8856
  /**
8761
8857
  * Prefer top-level await over top-level promises and async function calls.
8762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-top-level-await.md
8858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
8763
8859
  */
8764
8860
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8765
8861
  /**
8766
8862
  * Enforce throwing `TypeError` in type checking conditions.
8767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-error.md
8863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
8768
8864
  */
8769
8865
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8770
8866
  /**
8771
8867
  * Require type literals to be last in union types.
8772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-literal-last.md
8868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
8773
8869
  */
8774
8870
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8775
8871
  /**
8776
8872
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-uint8array-base64.md
8873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
8778
8874
  */
8779
8875
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8780
8876
  /**
8781
8877
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unary-minus.md
8878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
8783
8879
  */
8784
8880
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8785
8881
  /**
8786
8882
  * Prefer Unicode code point escapes over legacy escape sequences.
8787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8788
8884
  */
8789
8885
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8790
8886
  /**
8791
8887
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-can-parse.md
8888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
8793
8889
  */
8794
8890
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8795
8891
  /**
8796
8892
  * Prefer `URL#href` over stringifying a `URL`.
8797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-href.md
8893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
8798
8894
  */
8799
8895
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8800
8896
  /**
8801
8897
  * Prefer `URLSearchParams` over manually splitting query strings.
8802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-search-parameters.md
8898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
8803
8899
  */
8804
8900
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8805
8901
  /**
8806
8902
  * Prefer putting the condition in the while statement.
8807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-while-loop-condition.md
8903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
8808
8904
  */
8809
8905
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8810
8906
  /**
8811
8907
  * Renamed to `unicorn/name-replacements`.
8812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8813
8909
  * @deprecated
8814
8910
  */
8815
8911
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8816
8912
  /**
8817
8913
  * Enforce consistent relative URL style.
8818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/relative-url-style.md
8914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
8819
8915
  */
8820
8916
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8821
8917
  /**
8822
8918
  * Enforce using the separator argument with `Array#join()`.
8823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-join-separator.md
8919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
8824
8920
  */
8825
8921
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8826
8922
  /**
8827
8923
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-sort-compare.md
8924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
8829
8925
  */
8830
8926
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8831
8927
  /**
8832
8928
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-css-escape.md
8929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
8834
8930
  */
8835
8931
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8932
+ /**
8933
+ * Require configured YAML frontmatter fields.
8934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
8935
+ */
8936
+ 'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8836
8937
  /**
8837
8938
  * Require non-empty module attributes for imports and exports
8838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-attributes.md
8939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
8839
8940
  */
8840
8941
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8841
8942
  /**
8842
8943
  * Require non-empty specifier list in import and export statements.
8843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-specifiers.md
8944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
8844
8945
  */
8845
8946
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8846
8947
  /**
8847
8948
  * Enforce using the digits argument with `Number#toFixed()`.
8848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8849
8950
  */
8850
8951
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8851
8952
  /**
8852
8953
  * Require passive event listeners for high-frequency events.
8853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-passive-events.md
8954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
8854
8955
  */
8855
8956
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8856
8957
  /**
8857
8958
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-post-message-target-origin.md
8959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
8859
8960
  */
8860
8961
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8861
8962
  /**
8862
8963
  * Require boolean-returning Proxy traps to return booleans.
8863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-proxy-trap-boolean-return.md
8964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
8864
8965
  */
8865
8966
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8866
8967
  /**
8867
8968
  * Enforce better string content.
8868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/string-content.md
8969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
8869
8970
  */
8870
8971
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8871
8972
  /**
8872
8973
  * Enforce consistent brace style for `case` clauses.
8873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-braces.md
8974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
8874
8975
  */
8875
8976
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8876
8977
  /**
8877
8978
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-break-position.md
8979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
8879
8980
  */
8880
8981
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8881
8982
  /**
8882
8983
  * Fix whitespace-insensitive template indentation.
8883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/template-indent.md
8984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
8884
8985
  */
8885
8986
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8886
8987
  /**
8887
8988
  * Enforce consistent case for text encoding identifiers.
8888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/text-encoding-identifier-case.md
8989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
8889
8990
  */
8890
8991
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8891
8992
  /**
8892
8993
  * Require `new` when creating an error.
8893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/throw-new-error.md
8994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
8894
8995
  */
8895
8996
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8896
8997
  /**
8897
8998
  * Limit the complexity of `try` blocks.
8898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/try-complexity.md
8999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
8899
9000
  */
8900
9001
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8901
9002
  /**
@@ -9532,6 +9633,11 @@ interface RuleOptions {
9532
9633
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-coerce-boolean.md
9533
9634
  */
9534
9635
  'zod/no-coerce-boolean'?: Linter.RuleEntry<[]>;
9636
+ /**
9637
+ * Disallow check combinations that can never match, are redundant, or do not apply to the schema type
9638
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-conflicting-checks.md
9639
+ */
9640
+ 'zod/no-conflicting-checks'?: Linter.RuleEntry<ZodNoConflictingChecks>;
9535
9641
  /**
9536
9642
  * Disallow calling the same schema method more than once in a single chain
9537
9643
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-duplicate-schema-methods.md
@@ -9618,6 +9724,11 @@ interface RuleOptions {
9618
9724
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-unknown-schema.md
9619
9725
  */
9620
9726
  'zod/no-unknown-schema'?: Linter.RuleEntry<[]>;
9727
+ /**
9728
+ * Disallow `.readonly()` on schemas whose output is already immutable
9729
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/no-unnecessary-readonly.md
9730
+ */
9731
+ 'zod/no-unnecessary-readonly'?: Linter.RuleEntry<[]>;
9621
9732
  /**
9622
9733
  * Prefer `z.enum()` over `z.union()` when all members are string literals.
9623
9734
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-enum-over-literal-union.md
@@ -9658,6 +9769,11 @@ interface RuleOptions {
9658
9769
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-trim-before-string-length-checks.md
9659
9770
  */
9660
9771
  'zod/prefer-trim-before-string-length-checks'?: Linter.RuleEntry<[]>;
9772
+ /**
9773
+ * Prefer `z.tuple()` over a length-constrained `z.array()` so the length is preserved in the inferred type.
9774
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-tuple-over-array-length.md
9775
+ */
9776
+ 'zod/prefer-tuple-over-array-length'?: Linter.RuleEntry<[]>;
9661
9777
  /**
9662
9778
  * Require type parameter on `.brand()` functions
9663
9779
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/require-brand-type-parameter.md
@@ -11262,11 +11378,13 @@ type JsoncSortArrayValues = [{
11262
11378
  type?: ("asc" | "desc");
11263
11379
  caseSensitive?: boolean;
11264
11380
  natural?: boolean;
11381
+ key?: string;
11265
11382
  };
11266
11383
  })[] | {
11267
11384
  type?: ("asc" | "desc");
11268
11385
  caseSensitive?: boolean;
11269
11386
  natural?: boolean;
11387
+ key?: string;
11270
11388
  });
11271
11389
  minValues?: number;
11272
11390
  }, ...({
@@ -11277,11 +11395,13 @@ type JsoncSortArrayValues = [{
11277
11395
  type?: ("asc" | "desc");
11278
11396
  caseSensitive?: boolean;
11279
11397
  natural?: boolean;
11398
+ key?: string;
11280
11399
  };
11281
11400
  })[] | {
11282
11401
  type?: ("asc" | "desc");
11283
11402
  caseSensitive?: boolean;
11284
11403
  natural?: boolean;
11404
+ key?: string;
11285
11405
  });
11286
11406
  minValues?: number;
11287
11407
  })[]]; // ----- jsonc/sort-keys -----
@@ -11847,6 +11967,7 @@ type MaxLinesPerFunction = [] | [({
11847
11967
  type MaxNestedCallbacks = [] | [(number | {
11848
11968
  maximum?: number;
11849
11969
  max?: number;
11970
+ checkConstructorCallCallbacks?: boolean;
11850
11971
  })]; // ----- max-params -----
11851
11972
  type MaxParams = [] | [(number | {
11852
11973
  maximum?: number;
@@ -12606,6 +12727,10 @@ type PreferRegexLiterals = [] | [{
12606
12727
  }]; // ----- preserve-caught-error -----
12607
12728
  type PreserveCaughtError = [] | [{
12608
12729
  requireCatchParameter?: boolean;
12730
+ errorClassNames?: (string | {
12731
+ name: string;
12732
+ argumentPosition: number;
12733
+ })[];
12609
12734
  }]; // ----- quote-props -----
12610
12735
  type QuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
12611
12736
  keywords?: boolean;
@@ -15440,9 +15565,16 @@ type UnicornPreferAt = [] | [{
15440
15565
  }]; // ----- unicorn/prefer-continue -----
15441
15566
  type UnicornPreferContinue = [] | [{
15442
15567
  maximumStatements?: number;
15568
+ }]; // ----- unicorn/prefer-dom-node-html-methods -----
15569
+ type UnicornPreferDomNodeHtmlMethods = [] | [{
15570
+ checkGetHTML?: boolean;
15571
+ checkSetHTML?: boolean;
15443
15572
  }]; // ----- unicorn/prefer-early-return -----
15444
15573
  type UnicornPreferEarlyReturn = [] | [{
15445
15574
  maximumStatements?: number;
15575
+ }]; // ----- unicorn/prefer-explicit-viewport-units -----
15576
+ type UnicornPreferExplicitViewportUnits = [] | [{
15577
+ unit?: ("dvh" | "svh" | "lvh");
15446
15578
  }]; // ----- unicorn/prefer-export-from -----
15447
15579
  type UnicornPreferExportFrom = [] | [{
15448
15580
  checkUsedVariables?: boolean;
@@ -15451,7 +15583,7 @@ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
15451
15583
  minimumComparisons?: number;
15452
15584
  }]; // ----- unicorn/prefer-minimal-ternary -----
15453
15585
  type UnicornPreferMinimalTernary = [] | [{
15454
- checkVaryingCallee?: boolean;
15586
+ checkVaryingBase?: boolean;
15455
15587
  checkComputedMemberAccess?: boolean;
15456
15588
  }]; // ----- unicorn/prefer-number-properties -----
15457
15589
  type UnicornPreferNumberProperties = [] | [{
@@ -15470,7 +15602,8 @@ type UnicornPreferQueueMicrotask = [] | [{
15470
15602
  }]; // ----- unicorn/prefer-set-has -----
15471
15603
  type UnicornPreferSetHas = [] | [{
15472
15604
  minimumItems?: number;
15473
- }]; // ----- unicorn/prefer-single-call -----
15605
+ }]; // ----- unicorn/prefer-short-arrow-method -----
15606
+ type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")]; // ----- unicorn/prefer-single-call -----
15474
15607
  type UnicornPreferSingleCall = [] | [{
15475
15608
  ignore?: unknown[];
15476
15609
  }]; // ----- unicorn/prefer-string-repeat -----
@@ -15493,6 +15626,9 @@ type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- uni
15493
15626
  type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/require-css-escape -----
15494
15627
  type UnicornRequireCssEscape = [] | [{
15495
15628
  checkAllSelectors?: boolean;
15629
+ }]; // ----- unicorn/require-frontmatter-fields -----
15630
+ type UnicornRequireFrontmatterFields = [] | [{
15631
+ fields?: string[];
15496
15632
  }]; // ----- unicorn/string-content -----
15497
15633
  type UnicornStringContent = [] | [{
15498
15634
  patterns?: {
@@ -15582,6 +15718,7 @@ type VitestPreferExpectAssertions = [] | [{
15582
15718
  onlyFunctionsWithAsyncKeyword?: boolean;
15583
15719
  onlyFunctionsWithExpectInLoop?: boolean;
15584
15720
  onlyFunctionsWithExpectInCallback?: boolean;
15721
+ disallowHasAssertions?: boolean;
15585
15722
  }]; // ----- vitest/prefer-import-in-mock -----
15586
15723
  type VitestPreferImportInMock = [] | [{
15587
15724
  fixable?: boolean;
@@ -15792,11 +15929,13 @@ type YmlSortSequenceValues = [{
15792
15929
  type?: ("asc" | "desc");
15793
15930
  caseSensitive?: boolean;
15794
15931
  natural?: boolean;
15932
+ key?: string;
15795
15933
  };
15796
15934
  })[] | {
15797
15935
  type?: ("asc" | "desc");
15798
15936
  caseSensitive?: boolean;
15799
15937
  natural?: boolean;
15938
+ key?: string;
15800
15939
  });
15801
15940
  minValues?: number;
15802
15941
  }, ...({
@@ -15807,11 +15946,13 @@ type YmlSortSequenceValues = [{
15807
15946
  type?: ("asc" | "desc");
15808
15947
  caseSensitive?: boolean;
15809
15948
  natural?: boolean;
15949
+ key?: string;
15810
15950
  };
15811
15951
  })[] | {
15812
15952
  type?: ("asc" | "desc");
15813
15953
  caseSensitive?: boolean;
15814
15954
  natural?: boolean;
15955
+ key?: string;
15815
15956
  });
15816
15957
  minValues?: number;
15817
15958
  })[]]; // ----- yml/spaced-comment -----
@@ -15841,6 +15982,11 @@ type ZodConsistentSchemaOutputTypeStyle = [] | [{
15841
15982
  type ZodConsistentSchemaVarName = [] | [{
15842
15983
  before?: string;
15843
15984
  after?: string;
15985
+ }]; // ----- zod/no-conflicting-checks -----
15986
+ type ZodNoConflictingChecks = [] | [{
15987
+ checkImpossibleCases?: boolean;
15988
+ checkConfusingCases?: boolean;
15989
+ checkInapplicableChecks?: boolean;
15844
15990
  }]; // ----- zod/no-optional-and-default-together -----
15845
15991
  type ZodNoOptionalAndDefaultTogether = [] | [{
15846
15992
  preferredMethod?: ("none" | "default" | "optional");