@jsse/eslint-config 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import pluginE18e from "@e18e/eslint-plugin";
1
2
  import pluginEslintComments from "@eslint-community/eslint-plugin-eslint-comments";
2
3
  import pluginTs from "@typescript-eslint/eslint-plugin";
3
4
  import * as parserTs from "@typescript-eslint/parser";
@@ -15,7 +16,7 @@ import { Linter } from "eslint";
15
16
  import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
16
17
 
17
18
  //#region src/_generated/version.d.ts
18
- declare const VERSION = "0.8.2";
19
+ declare const VERSION = "0.8.4";
19
20
  //#endregion
20
21
  //#region src/_generated/dts/builtins.d.ts
21
22
  interface BuiltinsRuleOptions {
@@ -526,7 +527,7 @@ interface BuiltinsRuleOptions {
526
527
  * Disallow expressions where the operation doesn't affect the value
527
528
  * @see https://eslint.org/docs/latest/rules/no-constant-binary-expression
528
529
  */
529
- "no-constant-binary-expression"?: Linter.RuleEntry<[]>;
530
+ "no-constant-binary-expression"?: Linter.RuleEntry<NoConstantBinaryExpression>;
530
531
  /**
531
532
  * Disallow constant expressions in conditions
532
533
  * @see https://eslint.org/docs/latest/rules/no-constant-condition
@@ -2330,6 +2331,9 @@ type NoConfusingArrow = [] | [{
2330
2331
  }]; // ----- no-console -----
2331
2332
  type NoConsole = [] | [{
2332
2333
  allow?: [string, ...string[]];
2334
+ }]; // ----- no-constant-binary-expression -----
2335
+ type NoConstantBinaryExpression = [] | [{
2336
+ checkRelationalComparisons?: boolean;
2333
2337
  }]; // ----- no-constant-condition -----
2334
2338
  type NoConstantCondition = [] | [{
2335
2339
  checkLoops?: "all" | "allExceptWhileTrue" | "none" | true | false;
@@ -2993,6 +2997,125 @@ interface DeMorganRuleOptions {
2993
2997
  "de-morgan/no-negated-disjunction"?: Linter.RuleEntry<[]>;
2994
2998
  }
2995
2999
  //#endregion
3000
+ //#region src/_generated/dts/e18e.d.ts
3001
+ interface E18eRuleOptions {
3002
+ /**
3003
+ * Disallow dependencies in favor of more performant or secure alternatives
3004
+ */
3005
+ "e18e/ban-dependencies"?: Linter.RuleEntry<E18EBanDependencies>;
3006
+ /**
3007
+ * Disallow `delete` on properties — V8 deoptimizes the object to dictionary mode
3008
+ */
3009
+ "e18e/no-delete-property"?: Linter.RuleEntry<[]>;
3010
+ /**
3011
+ * Prefer optimized alternatives to `indexOf()` equality checks
3012
+ */
3013
+ "e18e/no-indexof-equality"?: Linter.RuleEntry<[]>;
3014
+ /**
3015
+ * Disallow spreading the accumulator inside a `reduce` callback (O(N²) growth)
3016
+ */
3017
+ "e18e/no-spread-in-reduce"?: Linter.RuleEntry<[]>;
3018
+ /**
3019
+ * Prefer Array.prototype.at() over length-based indexing
3020
+ */
3021
+ "e18e/prefer-array-at"?: Linter.RuleEntry<[]>;
3022
+ /**
3023
+ * Prefer Array.prototype.fill() over Array.from or map with constant values
3024
+ */
3025
+ "e18e/prefer-array-fill"?: Linter.RuleEntry<[]>;
3026
+ /**
3027
+ * Prefer Array.from(iterable, mapper) over [...iterable].map(mapper) to avoid intermediate array allocation
3028
+ */
3029
+ "e18e/prefer-array-from-map"?: Linter.RuleEntry<[]>;
3030
+ /**
3031
+ * Prefer Array.some() over Array.find() and Array.filter().length checks when checking for element existence
3032
+ */
3033
+ "e18e/prefer-array-some"?: Linter.RuleEntry<[]>;
3034
+ /**
3035
+ * Prefer Array.prototype.toReversed() over copying and reversing arrays
3036
+ */
3037
+ "e18e/prefer-array-to-reversed"?: Linter.RuleEntry<[]>;
3038
+ /**
3039
+ * Prefer Array.prototype.toSorted() over copying and sorting arrays
3040
+ */
3041
+ "e18e/prefer-array-to-sorted"?: Linter.RuleEntry<[]>;
3042
+ /**
3043
+ * Prefer Array.prototype.toSpliced() over copying and splicing arrays
3044
+ */
3045
+ "e18e/prefer-array-to-spliced"?: Linter.RuleEntry<[]>;
3046
+ /**
3047
+ * Prefer Date.now() over new Date().getTime() and +new Date()
3048
+ */
3049
+ "e18e/prefer-date-now"?: Linter.RuleEntry<[]>;
3050
+ /**
3051
+ * Prefer the exponentiation operator ** over Math.pow()
3052
+ */
3053
+ "e18e/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
3054
+ /**
3055
+ * Prefer Array.prototype.flatMap() over .map(fn).flat() to avoid the intermediate array
3056
+ */
3057
+ "e18e/prefer-flatmap-over-map-flat"?: Linter.RuleEntry<[]>;
3058
+ /**
3059
+ * Prefer `Map.prototype.getOrInsert()` over reading an entry with a default and writing it back
3060
+ */
3061
+ "e18e/prefer-get-or-insert"?: Linter.RuleEntry<[]>;
3062
+ /**
3063
+ * Prefer .includes() over indexOf() comparisons for arrays and strings
3064
+ */
3065
+ "e18e/prefer-includes"?: Linter.RuleEntry<[]>;
3066
+ /**
3067
+ * Prefer String.prototype.{includes,startsWith,endsWith} over equivalent regex.test() calls
3068
+ */
3069
+ "e18e/prefer-includes-over-regex-test"?: Linter.RuleEntry<[]>;
3070
+ /**
3071
+ * Prefer inline equality checks over temporary object creation for simple comparisons
3072
+ */
3073
+ "e18e/prefer-inline-equality"?: Linter.RuleEntry<[]>;
3074
+ /**
3075
+ * Prefer nullish coalescing operator (?? and ??=) over verbose null checks
3076
+ */
3077
+ "e18e/prefer-nullish-coalescing"?: Linter.RuleEntry<[]>;
3078
+ /**
3079
+ * Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call() and obj.hasOwnProperty()
3080
+ */
3081
+ "e18e/prefer-object-has-own"?: Linter.RuleEntry<[]>;
3082
+ /**
3083
+ * prefer `RegExp.test()` over `String.match()` and `RegExp.exec()` when only checking for match existence
3084
+ */
3085
+ "e18e/prefer-regex-test"?: Linter.RuleEntry<[]>;
3086
+ /**
3087
+ * Prefer spread syntax over Array.concat(), Array.from(), Object.assign({}, ...), and Function.apply()
3088
+ */
3089
+ "e18e/prefer-spread-syntax"?: Linter.RuleEntry<[]>;
3090
+ /**
3091
+ * Prefer hoisting an `Intl.Collator` instance over calling localeCompare in a sort callback
3092
+ */
3093
+ "e18e/prefer-static-collator"?: Linter.RuleEntry<[]>;
3094
+ /**
3095
+ * Prefer defining regular expressions at module scope to avoid re-compilation on every function call
3096
+ */
3097
+ "e18e/prefer-static-regex"?: Linter.RuleEntry<[]>;
3098
+ /**
3099
+ * Prefer String.fromCharCode() over String.fromCodePoint() for code points below 0x10000
3100
+ */
3101
+ "e18e/prefer-string-fromcharcode"?: Linter.RuleEntry<[]>;
3102
+ /**
3103
+ * Prefer passing function and arguments directly to setTimeout/setInterval instead of wrapping in an arrow function or using bind
3104
+ */
3105
+ "e18e/prefer-timer-args"?: Linter.RuleEntry<[]>;
3106
+ /**
3107
+ * Prefer URL.canParse() over try-catch blocks for URL validation
3108
+ */
3109
+ "e18e/prefer-url-canparse"?: Linter.RuleEntry<[]>;
3110
+ }
3111
+ /* ======= Declarations ======= */
3112
+ // ----- e18e/ban-dependencies -----
3113
+ type E18EBanDependencies = [] | [{
3114
+ presets?: string[];
3115
+ modules?: string[];
3116
+ allowed?: string[];
3117
+ }];
3118
+ //#endregion
2996
3119
  //#region src/_generated/dts/eslint-comments.d.ts
2997
3120
  interface EslintCommentsRuleOptions {
2998
3121
  /**
@@ -13247,1560 +13370,1620 @@ type ImportPreferDefaultExport = [] | [{
13247
13370
  interface UnicornRuleOptions {
13248
13371
  /**
13249
13372
  * Prefer better DOM traversal APIs.
13250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/better-dom-traversing.md
13373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/better-dom-traversing.md
13251
13374
  */
13252
13375
  "unicorn/better-dom-traversing"?: Linter.RuleEntry<[]>;
13253
13376
  /**
13254
13377
  * Removed. Prefer `eslint-plugin-regexp`
13255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#better-regex
13378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
13256
13379
  * @deprecated
13257
13380
  */
13258
13381
  "unicorn/better-regex"?: Linter.RuleEntry<[]>;
13259
13382
  /**
13260
13383
  * Enforce a specific parameter name in catch clauses.
13261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/catch-error-name.md
13384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/catch-error-name.md
13262
13385
  */
13263
13386
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
13264
13387
  /**
13265
13388
  * Enforce consistent class references in static methods.
13266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/class-reference-in-static-methods.md
13389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/class-reference-in-static-methods.md
13267
13390
  */
13268
13391
  "unicorn/class-reference-in-static-methods"?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
13269
13392
  /**
13270
13393
  * Enforce better comment content.
13271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/comment-content.md
13394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
13272
13395
  */
13273
13396
  "unicorn/comment-content"?: Linter.RuleEntry<UnicornCommentContent>;
13274
13397
  /**
13275
13398
  * Enforce consistent assertion style with `node:assert`.
13276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-assert.md
13399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
13277
13400
  */
13278
13401
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
13279
13402
  /**
13280
13403
  * Enforce consistent naming for boolean names.
13281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-boolean-name.md
13404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
13282
13405
  */
13283
13406
  "unicorn/consistent-boolean-name"?: Linter.RuleEntry<UnicornConsistentBooleanName>;
13284
13407
  /**
13285
13408
  * Enforce consistent class member order.
13286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-class-member-order.md
13409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
13287
13410
  */
13288
13411
  "unicorn/consistent-class-member-order"?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
13289
13412
  /**
13290
13413
  * Enforce consistent spelling of compound words in identifiers.
13291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-compound-words.md
13414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
13292
13415
  */
13293
13416
  "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
13294
13417
  /**
13295
13418
  * Enforce consistent conditional object spread style.
13296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-conditional-object-spread.md
13419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
13297
13420
  */
13298
13421
  "unicorn/consistent-conditional-object-spread"?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
13299
13422
  /**
13300
13423
  * Prefer passing `Date` directly to the constructor when cloning.
13301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-date-clone.md
13424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
13302
13425
  */
13303
13426
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
13304
13427
  /**
13305
13428
  * Use destructured variables over properties.
13306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-destructuring.md
13429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
13307
13430
  */
13308
13431
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
13309
13432
  /**
13310
13433
  * Prefer consistent types when spreading a ternary in an array literal.
13311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-empty-array-spread.md
13434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
13312
13435
  */
13313
13436
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
13314
13437
  /**
13315
13438
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
13316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-existence-index-check.md
13439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
13317
13440
  */
13318
13441
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
13319
13442
  /**
13320
13443
  * Enforce consistent decorator position on exported classes.
13321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-export-decorator-position.md
13444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
13322
13445
  */
13323
13446
  "unicorn/consistent-export-decorator-position"?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
13324
13447
  /**
13325
13448
  * Move function definitions to the highest possible scope.
13326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-scoping.md
13449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
13327
13450
  */
13328
13451
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
13329
13452
  /**
13330
13453
  * Enforce function syntax by role.
13331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-style.md
13454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
13332
13455
  */
13333
13456
  "unicorn/consistent-function-style"?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
13334
13457
  /**
13335
13458
  * Enforce consistent JSON file reads before `JSON.parse()`.
13336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-json-file-read.md
13459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
13337
13460
  */
13338
13461
  "unicorn/consistent-json-file-read"?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
13339
13462
  /**
13340
13463
  * Enforce consistent optional chaining for same-base member access.
13341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-optional-chaining.md
13464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
13342
13465
  */
13343
13466
  "unicorn/consistent-optional-chaining"?: Linter.RuleEntry<[]>;
13344
13467
  /**
13345
13468
  * Enforce consistent style for escaping `${` in template literals.
13346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-template-literal-escape.md
13469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
13347
13470
  */
13348
13471
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
13472
+ /**
13473
+ * Enforce consistent labels on tuple type elements.
13474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
13475
+ */
13476
+ "unicorn/consistent-tuple-labels"?: Linter.RuleEntry<[]>;
13349
13477
  /**
13350
13478
  * Enforce correct `Error` subclassing.
13351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/custom-error-definition.md
13479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
13352
13480
  */
13353
13481
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
13354
13482
  /**
13355
13483
  * Enforce consistent default export declarations.
13356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/default-export-style.md
13484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
13357
13485
  */
13358
13486
  "unicorn/default-export-style"?: Linter.RuleEntry<UnicornDefaultExportStyle>;
13359
13487
  /**
13360
13488
  * Enforce consistent style for DOM element dataset access.
13361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/dom-node-dataset.md
13489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
13362
13490
  */
13363
13491
  "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
13364
13492
  /**
13365
13493
  * Enforce no spaces between braces.
13366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/empty-brace-spaces.md
13494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
13367
13495
  */
13368
13496
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
13369
13497
  /**
13370
13498
  * Enforce passing a `message` value when creating a built-in error.
13371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/error-message.md
13499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
13372
13500
  */
13373
13501
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
13374
13502
  /**
13375
13503
  * Require escape sequences to use uppercase or lowercase values.
13376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/escape-case.md
13504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
13377
13505
  */
13378
13506
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
13379
13507
  /**
13380
13508
  * Add expiration conditions to TODO comments.
13381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/expiring-todo-comments.md
13509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
13382
13510
  */
13383
13511
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
13384
13512
  /**
13385
13513
  * Enforce explicitly comparing the `length` or `size` property of a value.
13386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-length-check.md
13514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
13387
13515
  */
13388
13516
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
13389
13517
  /**
13390
13518
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
13391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-timer-delay.md
13519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
13392
13520
  */
13393
13521
  "unicorn/explicit-timer-delay"?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
13394
13522
  /**
13395
13523
  * Enforce a case style for filenames and directory names.
13396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/filename-case.md
13524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
13397
13525
  */
13398
13526
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
13399
13527
  /**
13400
13528
  * Require identifiers to match a specified regular expression.
13401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/id-match.md
13529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
13402
13530
  */
13403
13531
  "unicorn/id-match"?: Linter.RuleEntry<UnicornIdMatch>;
13404
13532
  /**
13405
13533
  * Enforce specific import styles per module.
13406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/import-style.md
13534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
13407
13535
  */
13408
13536
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
13409
13537
  /**
13410
13538
  * Prevent usage of variables from outside the scope of isolated functions.
13411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/isolated-functions.md
13539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
13412
13540
  */
13413
13541
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
13414
13542
  /**
13415
13543
  * Require or disallow logical assignment operator shorthand
13416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/logical-assignment-operators.md
13544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
13417
13545
  */
13418
13546
  "unicorn/logical-assignment-operators"?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
13419
13547
  /**
13420
13548
  * Limit the depth of nested calls.
13421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/max-nested-calls.md
13549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
13422
13550
  */
13423
13551
  "unicorn/max-nested-calls"?: Linter.RuleEntry<UnicornMaxNestedCalls>;
13424
13552
  /**
13425
13553
  * Enforce replacements for variable, property, and filenames.
13426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/name-replacements.md
13554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
13427
13555
  */
13428
13556
  "unicorn/name-replacements"?: Linter.RuleEntry<UnicornNameReplacements>;
13429
13557
  /**
13430
13558
  * Enforce correct use of `new` for builtin constructors.
13431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/new-for-builtins.md
13559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
13432
13560
  */
13433
13561
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
13434
13562
  /**
13435
13563
  * Enforce specifying rules to disable in `eslint-disable` comments.
13436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-abusive-eslint-disable.md
13564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
13437
13565
  */
13438
13566
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
13439
13567
  /**
13440
13568
  * Disallow recursive access to `this` within getters and setters.
13441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-accessor-recursion.md
13569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
13442
13570
  */
13443
13571
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
13444
13572
  /**
13445
13573
  * Disallow bitwise operators where a logical operator was likely intended.
13446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-accidental-bitwise-operator.md
13574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
13447
13575
  */
13448
13576
  "unicorn/no-accidental-bitwise-operator"?: Linter.RuleEntry<[]>;
13449
13577
  /**
13450
13578
  * Disallow anonymous functions and classes as the default export.
13451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-anonymous-default-export.md
13579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
13452
13580
  */
13453
13581
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
13454
13582
  /**
13455
13583
  * Prevent passing a function reference directly to iterator methods.
13456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-callback-reference.md
13584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
13457
13585
  */
13458
13586
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
13459
13587
  /**
13460
13588
  * Disallow array accumulation with `Array#concat()` in loops.
13461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-concat-in-loop.md
13589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
13462
13590
  */
13463
13591
  "unicorn/no-array-concat-in-loop"?: Linter.RuleEntry<[]>;
13464
13592
  /**
13465
13593
  * Disallow using reference values as `Array#fill()` values.
13466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-fill-with-reference-type.md
13594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
13467
13595
  */
13468
13596
  "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
13469
13597
  /**
13470
13598
  * Disallow `.fill()` after `Array.from({length: …})`.
13471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-from-fill.md
13599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
13472
13600
  */
13473
13601
  "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
13474
13602
  /**
13475
13603
  * Disallow front-of-array mutation.
13476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-front-mutation.md
13604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
13477
13605
  */
13478
13606
  "unicorn/no-array-front-mutation"?: Linter.RuleEntry<[]>;
13479
13607
  /**
13480
13608
  * Disallow using the `this` argument in array methods.
13481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-method-this-argument.md
13609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
13482
13610
  */
13483
13611
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
13484
13612
  /**
13485
13613
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
13486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13487
13615
  * @deprecated
13488
13616
  */
13489
13617
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
13490
13618
  /**
13491
13619
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
13492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reduce.md
13620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
13493
13621
  */
13494
13622
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
13495
13623
  /**
13496
13624
  * Prefer `Array#toReversed()` over `Array#reverse()`.
13497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reverse.md
13625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
13498
13626
  */
13499
13627
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
13500
13628
  /**
13501
13629
  * Prefer `Array#toSorted()` over `Array#sort()`.
13502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-sort.md
13630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
13503
13631
  */
13504
13632
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
13505
13633
  /**
13506
13634
  * Disallow sorting arrays to get the minimum or maximum value.
13507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-sort-for-min-max.md
13635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
13508
13636
  */
13509
13637
  "unicorn/no-array-sort-for-min-max"?: Linter.RuleEntry<[]>;
13510
13638
  /**
13511
13639
  * Prefer `Array#toSpliced()` over `Array#splice()`.
13512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-splice.md
13640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
13513
13641
  */
13514
13642
  "unicorn/no-array-splice"?: Linter.RuleEntry<[]>;
13515
13643
  /**
13516
13644
  * Disallow asterisk prefixes in documentation comments.
13517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
13645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
13518
13646
  */
13519
13647
  "unicorn/no-asterisk-prefix-in-documentation-comments"?: Linter.RuleEntry<[]>;
13520
13648
  /**
13521
13649
  * Disallow member access from await expression.
13522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-expression-member.md
13650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
13523
13651
  */
13524
13652
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
13525
13653
  /**
13526
13654
  * Disallow using `await` in `Promise` method parameters.
13527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-in-promise-methods.md
13655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
13528
13656
  */
13529
13657
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
13530
13658
  /**
13531
13659
  * Disallow unnecessary `Blob` to `File` conversion.
13532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-blob-to-file.md
13660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
13533
13661
  */
13534
13662
  "unicorn/no-blob-to-file"?: Linter.RuleEntry<[]>;
13535
13663
  /**
13536
13664
  * Disallow boolean-returning sort comparators.
13537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-boolean-sort-comparator.md
13665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
13538
13666
  */
13539
13667
  "unicorn/no-boolean-sort-comparator"?: Linter.RuleEntry<[]>;
13540
13668
  /**
13541
13669
  * Disallow `break` and `continue` in nested loops and switches inside loops.
13542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-break-in-nested-loop.md
13670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
13543
13671
  */
13544
13672
  "unicorn/no-break-in-nested-loop"?: Linter.RuleEntry<[]>;
13545
13673
  /**
13546
13674
  * Prefer drawing canvases directly instead of converting them to images.
13547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-canvas-to-image.md
13675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
13548
13676
  */
13549
13677
  "unicorn/no-canvas-to-image"?: Linter.RuleEntry<[]>;
13550
13678
  /**
13551
13679
  * Disallow chained comparisons such as `a < b < c`.
13552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-chained-comparison.md
13680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
13553
13681
  */
13554
13682
  "unicorn/no-chained-comparison"?: Linter.RuleEntry<[]>;
13555
13683
  /**
13556
13684
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
13557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-collection-bracket-access.md
13685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
13558
13686
  */
13559
13687
  "unicorn/no-collection-bracket-access"?: Linter.RuleEntry<[]>;
13560
13688
  /**
13561
13689
  * Disallow dynamic object property existence checks.
13562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-computed-property-existence-check.md
13690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
13563
13691
  */
13564
13692
  "unicorn/no-computed-property-existence-check"?: Linter.RuleEntry<[]>;
13565
13693
  /**
13566
13694
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
13567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-splice.md
13695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
13568
13696
  */
13569
13697
  "unicorn/no-confusing-array-splice"?: Linter.RuleEntry<[]>;
13570
13698
  /**
13571
13699
  * Disallow confusing uses of `Array#with()`.
13572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-with.md
13700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
13573
13701
  */
13574
13702
  "unicorn/no-confusing-array-with"?: Linter.RuleEntry<[]>;
13575
13703
  /**
13576
13704
  * Do not use leading/trailing space between `console.log` parameters.
13577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-console-spaces.md
13705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
13578
13706
  */
13579
13707
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
13580
13708
  /**
13581
13709
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
13582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-constant-zero-expression.md
13710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
13583
13711
  */
13584
13712
  "unicorn/no-constant-zero-expression"?: Linter.RuleEntry<[]>;
13585
13713
  /**
13586
13714
  * Disallow declarations before conditional early exits when they are only used after the exit.
13587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-declarations-before-early-exit.md
13715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
13588
13716
  */
13589
13717
  "unicorn/no-declarations-before-early-exit"?: Linter.RuleEntry<[]>;
13590
13718
  /**
13591
13719
  * Do not use `document.cookie` directly.
13592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-document-cookie.md
13720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
13593
13721
  */
13594
13722
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
13595
13723
  /**
13596
13724
  * Disallow two comparisons of the same operands that can be combined into one.
13597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-double-comparison.md
13725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
13598
13726
  */
13599
13727
  "unicorn/no-double-comparison"?: Linter.RuleEntry<[]>;
13600
13728
  /**
13601
13729
  * Disallow duplicate adjacent branches in if chains.
13602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-if-branches.md
13730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
13603
13731
  */
13604
13732
  "unicorn/no-duplicate-if-branches"?: Linter.RuleEntry<[]>;
13605
13733
  /**
13606
13734
  * Disallow adjacent duplicate operands in logical expressions.
13607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-logical-operands.md
13735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
13608
13736
  */
13609
13737
  "unicorn/no-duplicate-logical-operands"?: Linter.RuleEntry<[]>;
13610
13738
  /**
13611
13739
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
13612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-loops.md
13740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
13613
13741
  */
13614
13742
  "unicorn/no-duplicate-loops"?: Linter.RuleEntry<[]>;
13615
13743
  /**
13616
13744
  * Disallow duplicate values in `Set` constructor array literals.
13617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-set-values.md
13745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
13618
13746
  */
13619
13747
  "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
13620
13748
  /**
13621
13749
  * Disallow empty files.
13622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-empty-file.md
13750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
13623
13751
  */
13624
13752
  "unicorn/no-empty-file"?: Linter.RuleEntry<UnicornNoEmptyFile>;
13625
13753
  /**
13626
13754
  * Disallow assigning to built-in error properties.
13627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-error-property-assignment.md
13755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
13628
13756
  */
13629
13757
  "unicorn/no-error-property-assignment"?: Linter.RuleEntry<[]>;
13630
13758
  /**
13631
13759
  * Disallow exports in scripts.
13632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-exports-in-scripts.md
13760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
13633
13761
  */
13634
13762
  "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
13635
13763
  /**
13636
13764
  * Prefer `for…of` over the `forEach` method.
13637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-each.md
13765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
13638
13766
  */
13639
13767
  "unicorn/no-for-each"?: Linter.RuleEntry<[]>;
13640
13768
  /**
13641
13769
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
13642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-loop.md
13770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
13643
13771
  */
13644
13772
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
13645
13773
  /**
13646
13774
  * Disallow assigning properties on the global object.
13647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-global-object-property-assignment.md
13775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
13648
13776
  */
13649
13777
  "unicorn/no-global-object-property-assignment"?: Linter.RuleEntry<[]>;
13650
13778
  /**
13651
13779
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
13652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13653
13781
  * @deprecated
13654
13782
  */
13655
13783
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
13656
13784
  /**
13657
13785
  * Disallow immediate mutation after variable assignment.
13658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-immediate-mutation.md
13786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
13659
13787
  */
13660
13788
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
13661
13789
  /**
13662
13790
  * Disallow impossible comparisons against `.length` or `.size`.
13663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-impossible-length-comparison.md
13791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
13664
13792
  */
13665
13793
  "unicorn/no-impossible-length-comparison"?: Linter.RuleEntry<[]>;
13666
13794
  /**
13667
13795
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
13668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-query-selector.md
13796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
13669
13797
  */
13670
13798
  "unicorn/no-incorrect-query-selector"?: Linter.RuleEntry<[]>;
13671
13799
  /**
13672
13800
  * Disallow incorrect template literal interpolation syntax.
13673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13674
13802
  */
13675
13803
  "unicorn/no-incorrect-template-string-interpolation"?: Linter.RuleEntry<[]>;
13676
13804
  /**
13677
13805
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
13678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13679
13807
  * @deprecated
13680
13808
  */
13681
13809
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
13682
13810
  /**
13683
13811
  * Disallow `instanceof` with built-in objects
13684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-instanceof-builtins.md
13812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
13685
13813
  */
13686
13814
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
13687
13815
  /**
13688
13816
  * Disallow calling functions and constructors with an invalid number of arguments.
13689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-argument-count.md
13817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
13690
13818
  */
13691
13819
  "unicorn/no-invalid-argument-count"?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
13692
13820
  /**
13693
13821
  * Disallow comparing a single character from a string to a multi-character string.
13694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-character-comparison.md
13822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
13695
13823
  */
13696
13824
  "unicorn/no-invalid-character-comparison"?: Linter.RuleEntry<[]>;
13697
13825
  /**
13698
13826
  * Disallow invalid options in `fetch()` and `new Request()`.
13699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-fetch-options.md
13827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
13700
13828
  */
13701
13829
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
13702
13830
  /**
13703
13831
  * Disallow invalid `accept` values on file inputs.
13704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-file-input-accept.md
13832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
13705
13833
  */
13706
13834
  "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
13707
13835
  /**
13708
13836
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
13709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-remove-event-listener.md
13837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
13710
13838
  */
13711
13839
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
13840
+ /**
13841
+ * Disallow invalid implementations of well-known symbol methods.
13842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
13843
+ */
13844
+ "unicorn/no-invalid-well-known-symbol-methods"?: Linter.RuleEntry<[]>;
13712
13845
  /**
13713
13846
  * Disallow identifiers starting with `new` or `class`.
13714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-keyword-prefix.md
13847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
13715
13848
  */
13716
13849
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
13717
13850
  /**
13718
13851
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
13719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-late-current-target-access.md
13852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
13720
13853
  */
13721
13854
  "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
13855
+ /**
13856
+ * Disallow event-control method calls after the synchronous event dispatch has finished.
13857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
13858
+ */
13859
+ "unicorn/no-late-event-control"?: Linter.RuleEntry<[]>;
13722
13860
  /**
13723
13861
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
13724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13725
13863
  * @deprecated
13726
13864
  */
13727
13865
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
13728
13866
  /**
13729
13867
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
13730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-lonely-if.md
13868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
13731
13869
  */
13732
13870
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
13733
13871
  /**
13734
13872
  * Disallow mutating a loop iterable during iteration.
13735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-loop-iterable-mutation.md
13873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
13736
13874
  */
13737
13875
  "unicorn/no-loop-iterable-mutation"?: Linter.RuleEntry<[]>;
13738
13876
  /**
13739
13877
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
13740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-magic-array-flat-depth.md
13878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
13741
13879
  */
13742
13880
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
13743
13881
  /**
13744
13882
  * Disallow manually wrapped comments.
13745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-manually-wrapped-comments.md
13883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
13746
13884
  */
13747
13885
  "unicorn/no-manually-wrapped-comments"?: Linter.RuleEntry<[]>;
13748
13886
  /**
13749
13887
  * Disallow checking a Map key before accessing a different key.
13750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-mismatched-map-key.md
13888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
13751
13889
  */
13752
13890
  "unicorn/no-mismatched-map-key"?: Linter.RuleEntry<[]>;
13753
13891
  /**
13754
13892
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
13755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-misrefactored-assignment.md
13893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
13756
13894
  */
13757
13895
  "unicorn/no-misrefactored-assignment"?: Linter.RuleEntry<[]>;
13758
13896
  /**
13759
13897
  * Disallow named usage of default import and export.
13760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-named-default.md
13898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
13761
13899
  */
13762
13900
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
13763
13901
  /**
13764
13902
  * Disallow negated array predicate calls.
13765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-array-predicate.md
13903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
13766
13904
  */
13767
13905
  "unicorn/no-negated-array-predicate"?: Linter.RuleEntry<[]>;
13768
13906
  /**
13769
13907
  * Disallow negated comparisons.
13770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-comparison.md
13908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
13771
13909
  */
13772
13910
  "unicorn/no-negated-comparison"?: Linter.RuleEntry<UnicornNoNegatedComparison>;
13773
13911
  /**
13774
13912
  * Disallow negated conditions.
13775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-condition.md
13913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
13776
13914
  */
13777
13915
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
13778
13916
  /**
13779
13917
  * Disallow negated expression in equality check.
13780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negation-in-equality-check.md
13918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
13781
13919
  */
13782
13920
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
13783
13921
  /**
13784
13922
  * Disallow nested ternary expressions.
13785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nested-ternary.md
13923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
13786
13924
  */
13787
13925
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
13788
13926
  /**
13789
13927
  * Disallow `new Array()`.
13790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-array.md
13928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
13791
13929
  */
13792
13930
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
13793
13931
  /**
13794
13932
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
13795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-buffer.md
13933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
13796
13934
  */
13797
13935
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
13798
13936
  /**
13799
13937
  * Disallow non-function values with function-style verb prefixes.
13800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-non-function-verb-prefix.md
13938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
13801
13939
  */
13802
13940
  "unicorn/no-non-function-verb-prefix"?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
13803
13941
  /**
13804
13942
  * Disallow non-standard properties on built-in objects.
13805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nonstandard-builtin-properties.md
13943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
13806
13944
  */
13807
13945
  "unicorn/no-nonstandard-builtin-properties"?: Linter.RuleEntry<[]>;
13808
13946
  /**
13809
13947
  * Disallow the use of the `null` literal.
13810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-null.md
13948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
13811
13949
  */
13812
13950
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
13813
13951
  /**
13814
13952
  * Disallow the use of objects as default parameters.
13815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-as-default-parameter.md
13953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
13816
13954
  */
13817
13955
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
13818
13956
  /**
13819
13957
  * Disallow `Object` methods with `Map` or `Set`.
13820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-methods-with-collections.md
13958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
13821
13959
  */
13822
13960
  "unicorn/no-object-methods-with-collections"?: Linter.RuleEntry<[]>;
13823
13961
  /**
13824
13962
  * Disallow optional chaining on undeclared variables.
13825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13826
13964
  */
13827
13965
  "unicorn/no-optional-chaining-on-undeclared-variable"?: Linter.RuleEntry<[]>;
13828
13966
  /**
13829
13967
  * Disallow `process.exit()`.
13830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-process-exit.md
13968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
13831
13969
  */
13832
13970
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
13833
13971
  /**
13834
13972
  * Disallow comparisons made redundant by an equality check in the same logical AND.
13835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-redundant-comparison.md
13973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
13836
13974
  */
13837
13975
  "unicorn/no-redundant-comparison"?: Linter.RuleEntry<[]>;
13838
13976
  /**
13839
13977
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
13840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-return-array-push.md
13978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
13841
13979
  */
13842
13980
  "unicorn/no-return-array-push"?: Linter.RuleEntry<[]>;
13843
13981
  /**
13844
13982
  * Disallow selector syntax in DOM names.
13845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-selector-as-dom-name.md
13983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
13846
13984
  */
13847
13985
  "unicorn/no-selector-as-dom-name"?: Linter.RuleEntry<[]>;
13848
13986
  /**
13849
13987
  * Disallow passing single-element arrays to `Promise` methods.
13850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-single-promise-in-promise-methods.md
13988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
13851
13989
  */
13852
13990
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
13853
13991
  /**
13854
13992
  * Disallow classes that only have static members.
13855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-static-only-class.md
13993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
13856
13994
  */
13857
13995
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
13858
13996
  /**
13859
13997
  * Prefer comparing values directly over subtracting and comparing to `0`.
13860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-subtraction-comparison.md
13998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
13861
13999
  */
13862
14000
  "unicorn/no-subtraction-comparison"?: Linter.RuleEntry<[]>;
13863
14001
  /**
13864
14002
  * Disallow `then` property.
13865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-thenable.md
14003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
13866
14004
  */
13867
14005
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
13868
14006
  /**
13869
14007
  * Disallow assigning `this` to a variable.
13870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-assignment.md
14008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
13871
14009
  */
13872
14010
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
13873
14011
  /**
13874
14012
  * Disallow `this` outside of classes.
13875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-outside-of-class.md
14013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
13876
14014
  */
13877
14015
  "unicorn/no-this-outside-of-class"?: Linter.RuleEntry<[]>;
13878
14016
  /**
13879
14017
  * Disallow assigning to top-level variables from inside functions.
13880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-top-level-assignment-in-function.md
14018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
13881
14019
  */
13882
14020
  "unicorn/no-top-level-assignment-in-function"?: Linter.RuleEntry<[]>;
13883
14021
  /**
13884
14022
  * Disallow top-level side effects in exported modules.
13885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-top-level-side-effects.md
14023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
13886
14024
  */
13887
14025
  "unicorn/no-top-level-side-effects"?: Linter.RuleEntry<[]>;
13888
14026
  /**
13889
14027
  * Disallow comparing `undefined` using `typeof`.
13890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-typeof-undefined.md
14028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
13891
14029
  */
13892
14030
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
13893
14031
  /**
13894
14032
  * Disallow referencing methods without calling them.
13895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-uncalled-method.md
14033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
13896
14034
  */
13897
14035
  "unicorn/no-uncalled-method"?: Linter.RuleEntry<[]>;
13898
14036
  /**
13899
14037
  * Require class members to be declared.
13900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-undeclared-class-members.md
14038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
13901
14039
  */
13902
14040
  "unicorn/no-undeclared-class-members"?: Linter.RuleEntry<[]>;
13903
14041
  /**
13904
14042
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
13905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-flat-depth.md
14043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13906
14044
  */
13907
14045
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
13908
14046
  /**
13909
14047
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
13910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-splice-count.md
14048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
13911
14049
  */
13912
14050
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
13913
14051
  /**
13914
14052
  * Disallow awaiting non-promise values.
13915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-await.md
14053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
13916
14054
  */
13917
14055
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
13918
14056
  /**
13919
14057
  * Disallow unnecessary comparisons against boolean literals.
13920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-boolean-comparison.md
14058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
13921
14059
  */
13922
14060
  "unicorn/no-unnecessary-boolean-comparison"?: Linter.RuleEntry<[]>;
13923
14061
  /**
13924
14062
  * Disallow unnecessary `globalThis` references.
13925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-global-this.md
14063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
13926
14064
  */
13927
14065
  "unicorn/no-unnecessary-global-this"?: Linter.RuleEntry<[]>;
13928
14066
  /**
13929
14067
  * Disallow unnecessary nested ternary expressions.
13930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-nested-ternary.md
14068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
13931
14069
  */
13932
14070
  "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
13933
14071
  /**
13934
14072
  * Enforce the use of built-in methods instead of unnecessary polyfills.
13935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-polyfills.md
14073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
13936
14074
  */
13937
14075
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
13938
14076
  /**
13939
14077
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
13940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-slice-end.md
14078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
13941
14079
  */
13942
14080
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
13943
14081
  /**
13944
14082
  * Disallow `Array#splice()` when simpler alternatives exist.
13945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-splice.md
14083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
13946
14084
  */
13947
14085
  "unicorn/no-unnecessary-splice"?: Linter.RuleEntry<[]>;
13948
14086
  /**
13949
14087
  * Disallow unreadable array destructuring.
13950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-array-destructuring.md
14088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
13951
14089
  */
13952
14090
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
13953
14091
  /**
13954
14092
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
13955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-for-of-expression.md
14093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
13956
14094
  */
13957
14095
  "unicorn/no-unreadable-for-of-expression"?: Linter.RuleEntry<[]>;
13958
14096
  /**
13959
14097
  * Disallow unreadable IIFEs.
13960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-iife.md
14098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
13961
14099
  */
13962
14100
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
13963
14101
  /**
13964
14102
  * Disallow unreadable `new` expressions.
13965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-new-expression.md
14103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
13966
14104
  */
13967
14105
  "unicorn/no-unreadable-new-expression"?: Linter.RuleEntry<[]>;
13968
14106
  /**
13969
14107
  * Disallow unreadable object destructuring.
13970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-object-destructuring.md
14108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
13971
14109
  */
13972
14110
  "unicorn/no-unreadable-object-destructuring"?: Linter.RuleEntry<[]>;
13973
14111
  /**
13974
14112
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
13975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-buffer-conversion.md
14113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
13976
14114
  */
13977
14115
  "unicorn/no-unsafe-buffer-conversion"?: Linter.RuleEntry<[]>;
13978
14116
  /**
13979
14117
  * Disallow unsafe DOM HTML APIs.
13980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-dom-html.md
14118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
13981
14119
  */
13982
14120
  "unicorn/no-unsafe-dom-html"?: Linter.RuleEntry<[]>;
13983
14121
  /**
13984
14122
  * Disallow unsafe values as property keys.
13985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-property-key.md
14123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
13986
14124
  */
13987
14125
  "unicorn/no-unsafe-property-key"?: Linter.RuleEntry<[]>;
13988
14126
  /**
13989
14127
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
13990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-string-replacement.md
14128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
13991
14129
  */
13992
14130
  "unicorn/no-unsafe-string-replacement"?: Linter.RuleEntry<[]>;
13993
14131
  /**
13994
14132
  * Disallow ignoring the return value of selected array methods.
13995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-array-method-return.md
14133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
13996
14134
  */
13997
14135
  "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
13998
14136
  /**
13999
14137
  * Disallow unused object properties.
14000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-properties.md
14138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
14001
14139
  */
14002
14140
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
14003
14141
  /**
14004
14142
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
14005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-boolean-cast.md
14143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
14006
14144
  */
14007
14145
  "unicorn/no-useless-boolean-cast"?: Linter.RuleEntry<[]>;
14008
14146
  /**
14009
14147
  * Disallow useless type coercions of values that are already of the target type.
14010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-coercion.md
14148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
14011
14149
  */
14012
14150
  "unicorn/no-useless-coercion"?: Linter.RuleEntry<[]>;
14013
14151
  /**
14014
14152
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
14015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-collection-argument.md
14153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
14016
14154
  */
14017
14155
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
14018
14156
  /**
14019
14157
  * Disallow useless compound assignments such as `x += 0`.
14020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-compound-assignment.md
14158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
14021
14159
  */
14022
14160
  "unicorn/no-useless-compound-assignment"?: Linter.RuleEntry<[]>;
14023
14161
  /**
14024
14162
  * Disallow useless concatenation of literals.
14025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-concat.md
14163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
14026
14164
  */
14027
14165
  "unicorn/no-useless-concat"?: Linter.RuleEntry<[]>;
14028
14166
  /**
14029
14167
  * Disallow useless `continue` statements.
14030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-continue.md
14168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
14031
14169
  */
14032
14170
  "unicorn/no-useless-continue"?: Linter.RuleEntry<[]>;
14033
14171
  /**
14034
14172
  * Disallow unnecessary existence checks before deletion.
14035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-delete-check.md
14173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
14036
14174
  */
14037
14175
  "unicorn/no-useless-delete-check"?: Linter.RuleEntry<[]>;
14038
14176
  /**
14039
14177
  * Disallow `else` after a statement that exits.
14040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-else.md
14178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
14041
14179
  */
14042
14180
  "unicorn/no-useless-else"?: Linter.RuleEntry<[]>;
14043
14181
  /**
14044
14182
  * Disallow unnecessary `Error.captureStackTrace(…)`.
14045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-error-capture-stack-trace.md
14183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
14046
14184
  */
14047
14185
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
14048
14186
  /**
14049
14187
  * Disallow useless fallback when spreading in object literals.
14050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-fallback-in-spread.md
14188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
14051
14189
  */
14052
14190
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
14053
14191
  /**
14054
14192
  * Disallow unnecessary `.toArray()` on iterators.
14055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-iterator-to-array.md
14193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
14056
14194
  */
14057
14195
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
14058
14196
  /**
14059
14197
  * Disallow useless array length check.
14060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-length-check.md
14198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
14061
14199
  */
14062
14200
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
14063
14201
  /**
14064
14202
  * Disallow unnecessary operands in logical expressions involving boolean literals.
14065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-logical-operand.md
14203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
14066
14204
  */
14067
14205
  "unicorn/no-useless-logical-operand"?: Linter.RuleEntry<[]>;
14068
14206
  /**
14069
14207
  * Disallow useless overrides of class methods.
14070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-override.md
14208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
14071
14209
  */
14072
14210
  "unicorn/no-useless-override"?: Linter.RuleEntry<[]>;
14073
14211
  /**
14074
14212
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
14075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-promise-resolve-reject.md
14213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
14076
14214
  */
14077
14215
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
14078
14216
  /**
14079
14217
  * Disallow simple recursive function calls that can be replaced with a loop.
14080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-recursion.md
14218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
14081
14219
  */
14082
14220
  "unicorn/no-useless-recursion"?: Linter.RuleEntry<[]>;
14083
14221
  /**
14084
14222
  * Disallow unnecessary spread.
14085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-spread.md
14223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
14086
14224
  */
14087
14225
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
14088
14226
  /**
14089
14227
  * Disallow useless case in switch statements.
14090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-switch-case.md
14228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
14091
14229
  */
14092
14230
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
14093
14231
  /**
14094
14232
  * Disallow useless template literal expressions.
14095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-template-literals.md
14233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
14096
14234
  */
14097
14235
  "unicorn/no-useless-template-literals"?: Linter.RuleEntry<[]>;
14098
14236
  /**
14099
14237
  * Disallow useless `undefined`.
14100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-undefined.md
14238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
14101
14239
  */
14102
14240
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
14103
14241
  /**
14104
14242
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
14105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-xor-as-exponentiation.md
14243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
14106
14244
  */
14107
14245
  "unicorn/no-xor-as-exponentiation"?: Linter.RuleEntry<[]>;
14108
14246
  /**
14109
14247
  * Disallow number literals with zero fractions or dangling dots.
14110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-zero-fractions.md
14248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
14111
14249
  */
14112
14250
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
14113
14251
  /**
14114
14252
  * Enforce proper case for numeric literals.
14115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/number-literal-case.md
14253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
14116
14254
  */
14117
14255
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
14118
14256
  /**
14119
14257
  * Enforce the style of numeric separators by correctly grouping digits.
14120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/numeric-separators-style.md
14258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
14121
14259
  */
14122
14260
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
14123
14261
  /**
14124
14262
  * Require assignment operator shorthand where possible.
14125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/operator-assignment.md
14263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
14126
14264
  */
14127
14265
  "unicorn/operator-assignment"?: Linter.RuleEntry<UnicornOperatorAssignment>;
14266
+ /**
14267
+ * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
14268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
14269
+ */
14270
+ "unicorn/prefer-abort-signal-timeout"?: Linter.RuleEntry<[]>;
14128
14271
  /**
14129
14272
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
14130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener.md
14273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
14131
14274
  */
14132
14275
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
14133
14276
  /**
14134
14277
  * Prefer an options object over a boolean in `.addEventListener()`.
14135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener-options.md
14278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
14136
14279
  */
14137
14280
  "unicorn/prefer-add-event-listener-options"?: Linter.RuleEntry<[]>;
14281
+ /**
14282
+ * Prefer `AggregateError` when throwing collected errors.
14283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
14284
+ */
14285
+ "unicorn/prefer-aggregate-error"?: Linter.RuleEntry<[]>;
14138
14286
  /**
14139
14287
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
14140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-find.md
14288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
14141
14289
  */
14142
14290
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
14143
14291
  /**
14144
14292
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
14145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat.md
14293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
14146
14294
  */
14147
14295
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
14148
14296
  /**
14149
14297
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
14150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat-map.md
14298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
14151
14299
  */
14152
14300
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
14153
14301
  /**
14154
14302
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
14155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-from-async.md
14303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
14156
14304
  */
14157
14305
  "unicorn/prefer-array-from-async"?: Linter.RuleEntry<[]>;
14158
14306
  /**
14159
14307
  * Prefer using the `Array.from()` mapping function argument.
14160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-from-map.md
14308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
14161
14309
  */
14162
14310
  "unicorn/prefer-array-from-map"?: Linter.RuleEntry<[]>;
14163
14311
  /**
14164
14312
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
14165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-index-of.md
14313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
14166
14314
  */
14167
14315
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
14168
14316
  /**
14169
14317
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
14170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-iterable-methods.md
14318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
14171
14319
  */
14172
14320
  "unicorn/prefer-array-iterable-methods"?: Linter.RuleEntry<[]>;
14173
14321
  /**
14174
14322
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
14175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-last-methods.md
14323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
14176
14324
  */
14177
14325
  "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
14178
14326
  /**
14179
14327
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
14180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-slice.md
14328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
14181
14329
  */
14182
14330
  "unicorn/prefer-array-slice"?: Linter.RuleEntry<[]>;
14183
14331
  /**
14184
14332
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
14185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-some.md
14333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
14186
14334
  */
14187
14335
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
14188
14336
  /**
14189
14337
  * Prefer `.at()` method for index access and `String#charAt()`.
14190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-at.md
14338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
14191
14339
  */
14192
14340
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
14193
14341
  /**
14194
14342
  * Prefer `await` over promise chaining.
14195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-await.md
14343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
14196
14344
  */
14197
14345
  "unicorn/prefer-await"?: Linter.RuleEntry<[]>;
14198
14346
  /**
14199
14347
  * Prefer `BigInt` literals over the constructor.
14200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-bigint-literals.md
14348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
14201
14349
  */
14202
14350
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
14203
14351
  /**
14204
14352
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
14205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-blob-reading-methods.md
14353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
14206
14354
  */
14207
14355
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
14208
14356
  /**
14209
14357
  * Prefer directly returning boolean expressions over `if` statements.
14210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-boolean-return.md
14358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
14211
14359
  */
14212
14360
  "unicorn/prefer-boolean-return"?: Linter.RuleEntry<[]>;
14213
14361
  /**
14214
14362
  * Prefer class field declarations over `this` assignments in constructors.
14215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-class-fields.md
14363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
14216
14364
  */
14217
14365
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
14218
14366
  /**
14219
14367
  * Prefer using `Element#classList.toggle()` to toggle class names.
14220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-classlist-toggle.md
14368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
14221
14369
  */
14222
14370
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
14223
14371
  /**
14224
14372
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
14225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-code-point.md
14373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
14226
14374
  */
14227
14375
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
14228
14376
  /**
14229
14377
  * Prefer early continues over whole-loop conditional wrapping.
14230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-continue.md
14378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
14231
14379
  */
14232
14380
  "unicorn/prefer-continue"?: Linter.RuleEntry<UnicornPreferContinue>;
14233
14381
  /**
14234
14382
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
14235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-date-now.md
14383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
14236
14384
  */
14237
14385
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
14238
14386
  /**
14239
14387
  * Prefer default parameters over reassignment.
14240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-default-parameters.md
14388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
14241
14389
  */
14242
14390
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
14243
14391
  /**
14244
14392
  * Prefer direct iteration over default iterator method calls.
14245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-direct-iteration.md
14393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
14246
14394
  */
14247
14395
  "unicorn/prefer-direct-iteration"?: Linter.RuleEntry<[]>;
14248
14396
  /**
14249
14397
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
14250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dispose.md
14398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
14251
14399
  */
14252
14400
  "unicorn/prefer-dispose"?: Linter.RuleEntry<[]>;
14253
14401
  /**
14254
14402
  * Prefer `Element#append()` over `Node#appendChild()`.
14255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-append.md
14403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
14256
14404
  */
14257
14405
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
14258
14406
  /**
14259
14407
  * Renamed to `unicorn/dom-node-dataset`.
14260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
14408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
14261
14409
  * @deprecated
14262
14410
  */
14263
14411
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
14264
14412
  /**
14265
14413
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
14266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-html-methods.md
14414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
14267
14415
  */
14268
14416
  "unicorn/prefer-dom-node-html-methods"?: Linter.RuleEntry<[]>;
14269
14417
  /**
14270
14418
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
14271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-remove.md
14419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
14272
14420
  */
14273
14421
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
14422
+ /**
14423
+ * Prefer `.replaceChildren()` when emptying DOM children.
14424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
14425
+ */
14426
+ "unicorn/prefer-dom-node-replace-children"?: Linter.RuleEntry<[]>;
14274
14427
  /**
14275
14428
  * Prefer `.textContent` over `.innerText`.
14276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-text-content.md
14429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
14277
14430
  */
14278
14431
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
14279
14432
  /**
14280
14433
  * Prefer early returns over full-function conditional wrapping.
14281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-early-return.md
14434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
14282
14435
  */
14283
14436
  "unicorn/prefer-early-return"?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
14284
14437
  /**
14285
14438
  * Prefer `else if` over adjacent `if` statements with related conditions.
14286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-else-if.md
14439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
14287
14440
  */
14288
14441
  "unicorn/prefer-else-if"?: Linter.RuleEntry<[]>;
14442
+ /**
14443
+ * Prefer `Error.isError()` when checking for errors.
14444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
14445
+ */
14446
+ "unicorn/prefer-error-is-error"?: Linter.RuleEntry<[]>;
14289
14447
  /**
14290
14448
  * Prefer `EventTarget` over `EventEmitter`.
14291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-event-target.md
14449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
14292
14450
  */
14293
14451
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
14294
14452
  /**
14295
14453
  * Prefer `export…from` when re-exporting.
14296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-export-from.md
14454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
14297
14455
  */
14298
14456
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
14299
14457
  /**
14300
14458
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
14301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-flat-math-min-max.md
14459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
14302
14460
  */
14303
14461
  "unicorn/prefer-flat-math-min-max"?: Linter.RuleEntry<[]>;
14304
14462
  /**
14305
14463
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
14306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-get-or-insert-computed.md
14464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
14307
14465
  */
14308
14466
  "unicorn/prefer-get-or-insert-computed"?: Linter.RuleEntry<[]>;
14309
14467
  /**
14310
14468
  * Prefer global numeric constants over `Number` static properties.
14311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-number-constants.md
14469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
14312
14470
  */
14313
14471
  "unicorn/prefer-global-number-constants"?: Linter.RuleEntry<[]>;
14314
14472
  /**
14315
14473
  * Prefer `globalThis` over `window`, `self`, and `global`.
14316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-this.md
14474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
14317
14475
  */
14318
14476
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
14319
14477
  /**
14320
14478
  * Prefer `.has()` when checking existence.
14321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-has-check.md
14479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
14322
14480
  */
14323
14481
  "unicorn/prefer-has-check"?: Linter.RuleEntry<[]>;
14324
14482
  /**
14325
14483
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
14326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-hoisting-branch-code.md
14484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
14327
14485
  */
14328
14486
  "unicorn/prefer-hoisting-branch-code"?: Linter.RuleEntry<[]>;
14329
14487
  /**
14330
14488
  * Prefer HTTPS over HTTP.
14331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-https.md
14489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
14332
14490
  */
14333
14491
  "unicorn/prefer-https"?: Linter.RuleEntry<[]>;
14334
14492
  /**
14335
14493
  * Prefer identifiers over string literals in import and export specifiers.
14336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
14494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
14337
14495
  */
14338
14496
  "unicorn/prefer-identifier-import-export-specifiers"?: Linter.RuleEntry<[]>;
14339
14497
  /**
14340
14498
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
14341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-import-meta-properties.md
14499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
14342
14500
  */
14343
14501
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
14344
14502
  /**
14345
14503
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
14346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes.md
14504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
14347
14505
  */
14348
14506
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
14349
14507
  /**
14350
14508
  * Prefer `.includes()` over repeated equality comparisons.
14351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14352
14510
  */
14353
14511
  "unicorn/prefer-includes-over-repeated-comparisons"?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
14354
14512
  /**
14355
14513
  * Prefer passing iterables directly to constructors instead of filling empty collections.
14356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterable-in-constructor.md
14514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
14357
14515
  */
14358
14516
  "unicorn/prefer-iterable-in-constructor"?: Linter.RuleEntry<[]>;
14359
14517
  /**
14360
14518
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
14361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-concat.md
14519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
14362
14520
  */
14363
14521
  "unicorn/prefer-iterator-concat"?: Linter.RuleEntry<[]>;
14364
14522
  /**
14365
14523
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
14366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array.md
14524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
14367
14525
  */
14368
14526
  "unicorn/prefer-iterator-to-array"?: Linter.RuleEntry<[]>;
14369
14527
  /**
14370
14528
  * Prefer moving `.toArray()` to the end of iterator helper chains.
14371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array-at-end.md
14529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
14372
14530
  */
14373
14531
  "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
14374
14532
  /**
14375
14533
  * Renamed to `unicorn/consistent-json-file-read`.
14376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
14534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
14377
14535
  * @deprecated
14378
14536
  */
14379
14537
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
14380
14538
  /**
14381
14539
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
14382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-keyboard-event-key.md
14540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
14383
14541
  */
14384
14542
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
14385
14543
  /**
14386
14544
  * Prefer `location.assign()` over assigning to `location.href`.
14387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-location-assign.md
14545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
14388
14546
  */
14389
14547
  "unicorn/prefer-location-assign"?: Linter.RuleEntry<[]>;
14390
14548
  /**
14391
14549
  * Prefer using a logical operator over a ternary.
14392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-logical-operator-over-ternary.md
14550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
14393
14551
  */
14394
14552
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
14395
14553
  /**
14396
14554
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
14397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-map-from-entries.md
14555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
14398
14556
  */
14399
14557
  "unicorn/prefer-map-from-entries"?: Linter.RuleEntry<[]>;
14400
14558
  /**
14401
14559
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
14402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-abs.md
14560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
14403
14561
  */
14404
14562
  "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
14405
14563
  /**
14406
14564
  * Prefer `Math` constants over their approximate numeric values.
14407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-constants.md
14565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
14408
14566
  */
14409
14567
  "unicorn/prefer-math-constants"?: Linter.RuleEntry<[]>;
14410
14568
  /**
14411
14569
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
14412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-min-max.md
14570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
14413
14571
  */
14414
14572
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
14415
14573
  /**
14416
14574
  * Prefer `Math.trunc()` for truncating numbers.
14417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-trunc.md
14575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
14418
14576
  */
14419
14577
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
14420
14578
  /**
14421
14579
  * Prefer moving ternaries into the minimal varying part of an expression.
14422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-minimal-ternary.md
14580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
14423
14581
  */
14424
14582
  "unicorn/prefer-minimal-ternary"?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
14425
14583
  /**
14426
14584
  * Prefer modern DOM APIs.
14427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-dom-apis.md
14585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
14428
14586
  */
14429
14587
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
14430
14588
  /**
14431
14589
  * Prefer modern `Math` APIs over legacy patterns.
14432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-math-apis.md
14590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
14433
14591
  */
14434
14592
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
14435
14593
  /**
14436
14594
  * Prefer JavaScript modules (ESM) over CommonJS.
14437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-module.md
14595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
14438
14596
  */
14439
14597
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
14440
14598
  /**
14441
14599
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
14442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-native-coercion-functions.md
14600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
14443
14601
  */
14444
14602
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
14445
14603
  /**
14446
14604
  * Prefer negative index over `.length - index` when possible.
14447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-negative-index.md
14605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
14448
14606
  */
14449
14607
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
14450
14608
  /**
14451
14609
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
14452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-node-protocol.md
14610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
14453
14611
  */
14454
14612
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
14455
14613
  /**
14456
14614
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
14457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-coercion.md
14615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
14458
14616
  */
14459
14617
  "unicorn/prefer-number-coercion"?: Linter.RuleEntry<[]>;
14460
14618
  /**
14461
14619
  * Prefer `Number.isSafeInteger()` over integer checks.
14462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-is-safe-integer.md
14620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
14463
14621
  */
14464
14622
  "unicorn/prefer-number-is-safe-integer"?: Linter.RuleEntry<[]>;
14465
14623
  /**
14466
14624
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
14467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-properties.md
14625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
14468
14626
  */
14469
14627
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
14470
14628
  /**
14471
14629
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
14472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-define-properties.md
14630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
14473
14631
  */
14474
14632
  "unicorn/prefer-object-define-properties"?: Linter.RuleEntry<[]>;
14475
14633
  /**
14476
14634
  * Prefer object destructuring defaults over default object literals with spread.
14477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-destructuring-defaults.md
14635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
14478
14636
  */
14479
14637
  "unicorn/prefer-object-destructuring-defaults"?: Linter.RuleEntry<[]>;
14480
14638
  /**
14481
14639
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
14482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-from-entries.md
14640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
14483
14641
  */
14484
14642
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
14485
14643
  /**
14486
14644
  * Prefer the most specific `Object` iterable method.
14487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-iterable-methods.md
14645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
14488
14646
  */
14489
14647
  "unicorn/prefer-object-iterable-methods"?: Linter.RuleEntry<[]>;
14648
+ /**
14649
+ * Prefer observer APIs over resize and scroll listeners with layout reads.
14650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
14651
+ */
14652
+ "unicorn/prefer-observer-apis"?: Linter.RuleEntry<[]>;
14490
14653
  /**
14491
14654
  * Prefer omitting the `catch` binding parameter.
14492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-optional-catch-binding.md
14655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
14493
14656
  */
14494
14657
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
14495
14658
  /**
14496
14659
  * Prefer `Path2D` for repeatedly drawn canvas paths.
14497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-path2d.md
14660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
14498
14661
  */
14499
14662
  "unicorn/prefer-path2d"?: Linter.RuleEntry<[]>;
14500
14663
  /**
14501
14664
  * Prefer private class fields over the underscore-prefix convention.
14502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-private-class-fields.md
14665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
14503
14666
  */
14504
14667
  "unicorn/prefer-private-class-fields"?: Linter.RuleEntry<[]>;
14668
+ /**
14669
+ * Prefer `Promise.try()` over promise-wrapping boilerplate.
14670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
14671
+ */
14672
+ "unicorn/prefer-promise-try"?: Linter.RuleEntry<[]>;
14505
14673
  /**
14506
14674
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
14507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-promise-with-resolvers.md
14675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
14508
14676
  */
14509
14677
  "unicorn/prefer-promise-with-resolvers"?: Linter.RuleEntry<[]>;
14510
14678
  /**
14511
14679
  * Prefer borrowing methods from the prototype instead of the instance.
14512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-prototype-methods.md
14680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
14513
14681
  */
14514
14682
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
14515
14683
  /**
14516
14684
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
14517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-query-selector.md
14685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
14518
14686
  */
14519
14687
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
14520
14688
  /**
14521
14689
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
14522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-queue-microtask.md
14690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
14523
14691
  */
14524
14692
  "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
14525
14693
  /**
14526
14694
  * Prefer `Reflect.apply()` over `Function#apply()`.
14527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-reflect-apply.md
14695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
14528
14696
  */
14529
14697
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
14530
14698
  /**
14531
14699
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
14532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-regexp-escape.md
14700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
14533
14701
  */
14534
14702
  "unicorn/prefer-regexp-escape"?: Linter.RuleEntry<[]>;
14535
14703
  /**
14536
14704
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
14537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-regexp-test.md
14705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
14538
14706
  */
14539
14707
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
14540
14708
  /**
14541
14709
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
14542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-response-static-json.md
14710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
14543
14711
  */
14544
14712
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
14545
14713
  /**
14546
14714
  * Prefer `:scope` when using element query selector methods.
14547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-scoped-selector.md
14715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
14548
14716
  */
14549
14717
  "unicorn/prefer-scoped-selector"?: Linter.RuleEntry<[]>;
14550
14718
  /**
14551
14719
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
14552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-has.md
14720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
14553
14721
  */
14554
14722
  "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
14723
+ /**
14724
+ * Prefer `Set` methods for Set operations.
14725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
14726
+ */
14727
+ "unicorn/prefer-set-methods"?: Linter.RuleEntry<[]>;
14555
14728
  /**
14556
14729
  * Prefer using `Set#size` instead of `Array#length`.
14557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-size.md
14730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
14558
14731
  */
14559
14732
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
14560
14733
  /**
14561
14734
  * Prefer arrow function properties over methods with a single return.
14562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-short-arrow-method.md
14735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
14563
14736
  */
14564
14737
  "unicorn/prefer-short-arrow-method"?: Linter.RuleEntry<[]>;
14565
14738
  /**
14566
14739
  * Prefer simple conditions first in logical expressions.
14567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-condition-first.md
14740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
14568
14741
  */
14569
14742
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
14570
14743
  /**
14571
14744
  * Prefer a simple comparison function for `Array#sort()`.
14572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-sort-comparator.md
14745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
14573
14746
  */
14574
14747
  "unicorn/prefer-simple-sort-comparator"?: Linter.RuleEntry<[]>;
14575
14748
  /**
14576
14749
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
14577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-array-predicate.md
14750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
14578
14751
  */
14579
14752
  "unicorn/prefer-single-array-predicate"?: Linter.RuleEntry<[]>;
14580
14753
  /**
14581
14754
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
14582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-call.md
14755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
14583
14756
  */
14584
14757
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
14585
14758
  /**
14586
14759
  * Prefer a single object destructuring declaration per local const source.
14587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-object-destructuring.md
14760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
14588
14761
  */
14589
14762
  "unicorn/prefer-single-object-destructuring"?: Linter.RuleEntry<[]>;
14590
14763
  /**
14591
14764
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
14592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-replace.md
14765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
14593
14766
  */
14594
14767
  "unicorn/prefer-single-replace"?: Linter.RuleEntry<[]>;
14595
14768
  /**
14596
14769
  * Prefer declaring variables in the smallest possible scope.
14597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-smaller-scope.md
14770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
14598
14771
  */
14599
14772
  "unicorn/prefer-smaller-scope"?: Linter.RuleEntry<[]>;
14600
14773
  /**
14601
14774
  * Prefer `String#split()` with a limit.
14602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-split-limit.md
14775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
14603
14776
  */
14604
14777
  "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
14605
14778
  /**
14606
14779
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
14607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-spread.md
14780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
14608
14781
  */
14609
14782
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
14610
14783
  /**
14611
14784
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
14612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-match-all.md
14785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
14613
14786
  */
14614
14787
  "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
14615
14788
  /**
14616
14789
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
14617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-pad-start-end.md
14790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
14618
14791
  */
14619
14792
  "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
14620
14793
  /**
14621
14794
  * Prefer using the `String.raw` tag to avoid escaping `\`.
14622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-raw.md
14795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
14623
14796
  */
14624
14797
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
14625
14798
  /**
14626
14799
  * Prefer `String#repeat()` for repeated whitespace.
14627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-repeat.md
14800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
14628
14801
  */
14629
14802
  "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
14630
14803
  /**
14631
14804
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
14632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-replace-all.md
14805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
14633
14806
  */
14634
14807
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
14635
14808
  /**
14636
14809
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
14637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-slice.md
14810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
14638
14811
  */
14639
14812
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
14640
14813
  /**
14641
14814
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
14642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-starts-ends-with.md
14815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
14643
14816
  */
14644
14817
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
14645
14818
  /**
14646
14819
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
14647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-trim-start-end.md
14820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
14648
14821
  */
14649
14822
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
14650
14823
  /**
14651
14824
  * Prefer using `structuredClone` to create a deep clone.
14652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-structured-clone.md
14825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
14653
14826
  */
14654
14827
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
14655
14828
  /**
14656
14829
  * Prefer `switch` over multiple `else-if`.
14657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-switch.md
14830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
14658
14831
  */
14659
14832
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
14660
14833
  /**
14661
14834
  * Prefer `Temporal` over `Date`.
14662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-temporal.md
14835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
14663
14836
  */
14664
14837
  "unicorn/prefer-temporal"?: Linter.RuleEntry<UnicornPreferTemporal>;
14665
14838
  /**
14666
14839
  * Prefer ternary expressions over simple `if` statements that return or assign values.
14667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-ternary.md
14840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
14668
14841
  */
14669
14842
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
14843
+ /**
14844
+ * Prefer using `Element#toggleAttribute()` to toggle attributes.
14845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
14846
+ */
14847
+ "unicorn/prefer-toggle-attribute"?: Linter.RuleEntry<[]>;
14670
14848
  /**
14671
14849
  * Prefer top-level await over top-level promises and async function calls.
14672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-top-level-await.md
14850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
14673
14851
  */
14674
14852
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
14675
14853
  /**
14676
14854
  * Enforce throwing `TypeError` in type checking conditions.
14677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-type-error.md
14855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
14678
14856
  */
14679
14857
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
14680
14858
  /**
14681
14859
  * Require type literals to be last in union types.
14682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-type-literal-last.md
14860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
14683
14861
  */
14684
14862
  "unicorn/prefer-type-literal-last"?: Linter.RuleEntry<[]>;
14685
14863
  /**
14686
14864
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
14687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-uint8array-base64.md
14865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
14688
14866
  */
14689
14867
  "unicorn/prefer-uint8array-base64"?: Linter.RuleEntry<[]>;
14690
14868
  /**
14691
14869
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
14692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-unary-minus.md
14870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
14693
14871
  */
14694
14872
  "unicorn/prefer-unary-minus"?: Linter.RuleEntry<[]>;
14695
14873
  /**
14696
14874
  * Prefer Unicode code point escapes over legacy escape sequences.
14697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-unicode-code-point-escapes.md
14875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
14698
14876
  */
14699
14877
  "unicorn/prefer-unicode-code-point-escapes"?: Linter.RuleEntry<[]>;
14700
14878
  /**
14701
14879
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
14702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-url-can-parse.md
14880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
14703
14881
  */
14704
14882
  "unicorn/prefer-url-can-parse"?: Linter.RuleEntry<[]>;
14705
14883
  /**
14706
14884
  * Prefer `URL#href` over stringifying a `URL`.
14707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-url-href.md
14885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
14708
14886
  */
14709
14887
  "unicorn/prefer-url-href"?: Linter.RuleEntry<[]>;
14888
+ /**
14889
+ * Prefer `URLSearchParams` over manually splitting query strings.
14890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
14891
+ */
14892
+ "unicorn/prefer-url-search-parameters"?: Linter.RuleEntry<[]>;
14710
14893
  /**
14711
14894
  * Prefer putting the condition in the while statement.
14712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-while-loop-condition.md
14895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
14713
14896
  */
14714
14897
  "unicorn/prefer-while-loop-condition"?: Linter.RuleEntry<[]>;
14715
14898
  /**
14716
14899
  * Renamed to `unicorn/name-replacements`.
14717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
14900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
14718
14901
  * @deprecated
14719
14902
  */
14720
14903
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<[]>;
14721
14904
  /**
14722
14905
  * Enforce consistent relative URL style.
14723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/relative-url-style.md
14906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
14724
14907
  */
14725
14908
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
14726
14909
  /**
14727
14910
  * Enforce using the separator argument with `Array#join()`.
14728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-join-separator.md
14911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
14729
14912
  */
14730
14913
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
14731
14914
  /**
14732
14915
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
14733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-sort-compare.md
14916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
14734
14917
  */
14735
14918
  "unicorn/require-array-sort-compare"?: Linter.RuleEntry<[]>;
14736
14919
  /**
14737
14920
  * Require `CSS.escape()` for interpolated values in CSS selectors.
14738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-css-escape.md
14921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
14739
14922
  */
14740
14923
  "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
14741
14924
  /**
14742
14925
  * Require non-empty module attributes for imports and exports
14743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-attributes.md
14926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
14744
14927
  */
14745
14928
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
14746
14929
  /**
14747
14930
  * Require non-empty specifier list in import and export statements.
14748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-specifiers.md
14931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
14749
14932
  */
14750
14933
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
14751
14934
  /**
14752
14935
  * Enforce using the digits argument with `Number#toFixed()`.
14753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-number-to-fixed-digits-argument.md
14936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
14754
14937
  */
14755
14938
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
14756
14939
  /**
14757
14940
  * Require passive event listeners for high-frequency events.
14758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-passive-events.md
14941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
14759
14942
  */
14760
14943
  "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
14761
14944
  /**
14762
14945
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
14763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-post-message-target-origin.md
14946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
14764
14947
  */
14765
14948
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
14766
14949
  /**
14767
14950
  * Require boolean-returning Proxy traps to return booleans.
14768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-proxy-trap-boolean-return.md
14951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
14769
14952
  */
14770
14953
  "unicorn/require-proxy-trap-boolean-return"?: Linter.RuleEntry<[]>;
14771
14954
  /**
14772
14955
  * Enforce better string content.
14773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/string-content.md
14956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
14774
14957
  */
14775
14958
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
14776
14959
  /**
14777
14960
  * Enforce consistent brace style for `case` clauses.
14778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-braces.md
14961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
14779
14962
  */
14780
14963
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
14781
14964
  /**
14782
14965
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
14783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-break-position.md
14966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
14784
14967
  */
14785
14968
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
14786
14969
  /**
14787
14970
  * Fix whitespace-insensitive template indentation.
14788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/template-indent.md
14971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
14789
14972
  */
14790
14973
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
14791
14974
  /**
14792
14975
  * Enforce consistent case for text encoding identifiers.
14793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/text-encoding-identifier-case.md
14976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
14794
14977
  */
14795
14978
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
14796
14979
  /**
14797
14980
  * Require `new` when creating an error.
14798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/throw-new-error.md
14981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
14799
14982
  */
14800
14983
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
14801
14984
  /**
14802
14985
  * Limit the complexity of `try` blocks.
14803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/try-complexity.md
14986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
14804
14987
  */
14805
14988
  "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
14806
14989
  }
@@ -14829,6 +15012,7 @@ type UnicornConsistentBooleanName = [] | [{
14829
15012
  prefixes?: {
14830
15013
  [k: string]: boolean | undefined;
14831
15014
  };
15015
+ ignore?: unknown[];
14832
15016
  }]; // ----- unicorn/consistent-class-member-order -----
14833
15017
  type UnicornConsistentClassMemberOrder = [] | [{
14834
15018
  order?: [("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method")];
@@ -15071,6 +15255,7 @@ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
15071
15255
  minimumComparisons?: number;
15072
15256
  }]; // ----- unicorn/prefer-minimal-ternary -----
15073
15257
  type UnicornPreferMinimalTernary = [] | [{
15258
+ checkVaryingCallee?: boolean;
15074
15259
  checkComputedMemberAccess?: boolean;
15075
15260
  }]; // ----- unicorn/prefer-number-properties -----
15076
15261
  type UnicornPreferNumberProperties = [] | [{
@@ -15994,7 +16179,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
15994
16179
  }];
15995
16180
  //#endregion
15996
16181
  //#region src/_generated/rule-options.d.ts
15997
- type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & EslintReactRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactHooksRuleOptions & RegexpRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
16182
+ type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & E18eRuleOptions & EslintCommentsRuleOptions & EslintReactRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactHooksRuleOptions & RegexpRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
15998
16183
  //#endregion
15999
16184
  //#region src/types.d.ts
16000
16185
  type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
@@ -16137,6 +16322,10 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16137
16322
  * Enable debug mode.
16138
16323
  */
16139
16324
  debug?: boolean;
16325
+ /**
16326
+ * Enable warnings. (default: true)
16327
+ */
16328
+ warnings?: boolean;
16140
16329
  /**
16141
16330
  * Enable reporting of unused disable directives.
16142
16331
  * @default true
@@ -16285,7 +16474,7 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
16285
16474
  yaml?: Config["rules"];
16286
16475
  };
16287
16476
  };
16288
- type RenamePefix<T extends Record<string, unknown>, FromPref extends string, ToPref extends string> = { [K in keyof T as K extends `${FromPref}${infer Rest}` ? `${ToPref}${Rest}` : K]: T[K] };
16477
+ type RenamePrefix<T extends Record<string, unknown>, FromPref extends string, ToPref extends string> = { [K in keyof T as K extends `${FromPref}${infer Rest}` ? `${ToPref}${Rest}` : K]: T[K] };
16289
16478
  //#endregion
16290
16479
  //#region src/const.d.ts
16291
16480
  declare const SLOW_RULES: RuleName[];
@@ -16725,10 +16914,10 @@ declare const parserPlain: {
16725
16914
  };
16726
16915
  };
16727
16916
  };
16728
- declare function turnOffRules(configs: Config[], off: string[]): Config[];
16917
+ declare function turnOffRules(configs: Config[], off: string[], debug?: boolean): Config[];
16729
16918
  declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, level: Linter.RuleSeverity): Linter.RuleEntry<any>;
16730
16919
  declare function error2warn<T extends Config>(configs: T[]): T[];
16731
16920
  declare function warn2error<T extends Config>(configs: T[]): T[];
16732
- declare function replaceTypescriptEslintPrefix<T>(items: Record<string, T>, tsPrefix: string): void;
16921
+ declare function replaceTypescriptEslintPrefixInplace<T>(items: Record<string, T>, tsPrefix: string): void;
16733
16922
  //#endregion
16734
- export { type Awaitable, type Config, type EslintConfigFn, type JavascriptRuleOptions, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type RenamePefix, type RuleName, type RulesRecord, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItemWithId, type TypescriptConfigRules, type UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defaultOptions, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, normalizeOptions, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefix, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
16923
+ export { type Awaitable, type Config, type EslintConfigFn, type JavascriptRuleOptions, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type RenamePrefix, type RuleName, type RulesRecord, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItemWithId, type TypescriptConfigRules, type UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defaultOptions, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, normalizeOptions, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginE18e, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefixInplace, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };