@jsse/eslint-config 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -8,13 +8,14 @@ import pluginImportLite from "eslint-plugin-import-lite";
8
8
  import pluginN from "eslint-plugin-n";
9
9
  import pluginPerfectionist from "eslint-plugin-perfectionist";
10
10
  import pluginPnpm from "eslint-plugin-pnpm";
11
+ import pluginRegexp from "eslint-plugin-regexp";
11
12
  import pluginUnicorn from "eslint-plugin-unicorn";
12
13
  import pluginUnusedImports from "eslint-plugin-unused-imports";
13
14
  import { Linter } from "eslint";
14
15
  import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
15
16
 
16
17
  //#region src/_generated/version.d.ts
17
- declare const VERSION = "0.8.0";
18
+ declare const VERSION = "0.8.1";
18
19
  //#endregion
19
20
  //#region src/_generated/dts/builtins.d.ts
20
21
  interface BuiltinsRuleOptions {
@@ -9181,6 +9182,516 @@ type ReactHooksVoidUseMemo = [] | [{
9181
9182
  [k: string]: unknown | undefined;
9182
9183
  }];
9183
9184
  //#endregion
9185
+ //#region src/_generated/dts/regexp.d.ts
9186
+ interface RegexpRuleOptions {
9187
+ /**
9188
+ * disallow confusing quantifiers
9189
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
9190
+ */
9191
+ "regexp/confusing-quantifier"?: Linter.RuleEntry<[]>;
9192
+ /**
9193
+ * enforce consistent escaping of control characters
9194
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
9195
+ */
9196
+ "regexp/control-character-escape"?: Linter.RuleEntry<[]>;
9197
+ /**
9198
+ * enforce single grapheme in string literal
9199
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
9200
+ */
9201
+ "regexp/grapheme-string-literal"?: Linter.RuleEntry<[]>;
9202
+ /**
9203
+ * enforce consistent usage of hexadecimal escape
9204
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
9205
+ */
9206
+ "regexp/hexadecimal-escape"?: Linter.RuleEntry<RegexpHexadecimalEscape>;
9207
+ /**
9208
+ * enforce into your favorite case
9209
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
9210
+ */
9211
+ "regexp/letter-case"?: Linter.RuleEntry<RegexpLetterCase>;
9212
+ /**
9213
+ * enforce match any character style
9214
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
9215
+ */
9216
+ "regexp/match-any"?: Linter.RuleEntry<RegexpMatchAny>;
9217
+ /**
9218
+ * enforce use of escapes on negation
9219
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
9220
+ */
9221
+ "regexp/negation"?: Linter.RuleEntry<[]>;
9222
+ /**
9223
+ * disallow elements that contradict assertions
9224
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
9225
+ */
9226
+ "regexp/no-contradiction-with-assertion"?: Linter.RuleEntry<[]>;
9227
+ /**
9228
+ * disallow control characters
9229
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
9230
+ */
9231
+ "regexp/no-control-character"?: Linter.RuleEntry<[]>;
9232
+ /**
9233
+ * disallow duplicate characters in the RegExp character class
9234
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
9235
+ */
9236
+ "regexp/no-dupe-characters-character-class"?: Linter.RuleEntry<[]>;
9237
+ /**
9238
+ * disallow duplicate disjunctions
9239
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
9240
+ */
9241
+ "regexp/no-dupe-disjunctions"?: Linter.RuleEntry<RegexpNoDupeDisjunctions>;
9242
+ /**
9243
+ * disallow alternatives without elements
9244
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
9245
+ */
9246
+ "regexp/no-empty-alternative"?: Linter.RuleEntry<[]>;
9247
+ /**
9248
+ * disallow capturing group that captures empty.
9249
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
9250
+ */
9251
+ "regexp/no-empty-capturing-group"?: Linter.RuleEntry<[]>;
9252
+ /**
9253
+ * disallow character classes that match no characters
9254
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
9255
+ */
9256
+ "regexp/no-empty-character-class"?: Linter.RuleEntry<[]>;
9257
+ /**
9258
+ * disallow empty group
9259
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
9260
+ */
9261
+ "regexp/no-empty-group"?: Linter.RuleEntry<[]>;
9262
+ /**
9263
+ * disallow empty lookahead assertion or empty lookbehind assertion
9264
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
9265
+ */
9266
+ "regexp/no-empty-lookarounds-assertion"?: Linter.RuleEntry<[]>;
9267
+ /**
9268
+ * disallow empty string literals in character classes
9269
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
9270
+ */
9271
+ "regexp/no-empty-string-literal"?: Linter.RuleEntry<[]>;
9272
+ /**
9273
+ * disallow escape backspace (`[\b]`)
9274
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
9275
+ */
9276
+ "regexp/no-escape-backspace"?: Linter.RuleEntry<[]>;
9277
+ /**
9278
+ * disallow unnecessary nested lookaround assertions
9279
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
9280
+ */
9281
+ "regexp/no-extra-lookaround-assertions"?: Linter.RuleEntry<[]>;
9282
+ /**
9283
+ * disallow invalid regular expression strings in `RegExp` constructors
9284
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
9285
+ */
9286
+ "regexp/no-invalid-regexp"?: Linter.RuleEntry<[]>;
9287
+ /**
9288
+ * disallow invisible raw character
9289
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
9290
+ */
9291
+ "regexp/no-invisible-character"?: Linter.RuleEntry<[]>;
9292
+ /**
9293
+ * disallow lazy quantifiers at the end of an expression
9294
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
9295
+ */
9296
+ "regexp/no-lazy-ends"?: Linter.RuleEntry<RegexpNoLazyEnds>;
9297
+ /**
9298
+ * disallow legacy RegExp features
9299
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
9300
+ */
9301
+ "regexp/no-legacy-features"?: Linter.RuleEntry<RegexpNoLegacyFeatures>;
9302
+ /**
9303
+ * disallow capturing groups that do not behave as one would expect
9304
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
9305
+ */
9306
+ "regexp/no-misleading-capturing-group"?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>;
9307
+ /**
9308
+ * disallow multi-code-point characters in character classes and quantifiers
9309
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
9310
+ */
9311
+ "regexp/no-misleading-unicode-character"?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>;
9312
+ /**
9313
+ * disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
9314
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
9315
+ */
9316
+ "regexp/no-missing-g-flag"?: Linter.RuleEntry<RegexpNoMissingGFlag>;
9317
+ /**
9318
+ * disallow non-standard flags
9319
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
9320
+ */
9321
+ "regexp/no-non-standard-flag"?: Linter.RuleEntry<[]>;
9322
+ /**
9323
+ * disallow obscure character ranges
9324
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
9325
+ */
9326
+ "regexp/no-obscure-range"?: Linter.RuleEntry<RegexpNoObscureRange>;
9327
+ /**
9328
+ * disallow octal escape sequence
9329
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
9330
+ */
9331
+ "regexp/no-octal"?: Linter.RuleEntry<[]>;
9332
+ /**
9333
+ * disallow optional assertions
9334
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
9335
+ */
9336
+ "regexp/no-optional-assertion"?: Linter.RuleEntry<[]>;
9337
+ /**
9338
+ * disallow backreferences that reference a group that might not be matched
9339
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
9340
+ */
9341
+ "regexp/no-potentially-useless-backreference"?: Linter.RuleEntry<[]>;
9342
+ /**
9343
+ * disallow standalone backslashes (`\`)
9344
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
9345
+ */
9346
+ "regexp/no-standalone-backslash"?: Linter.RuleEntry<[]>;
9347
+ /**
9348
+ * disallow exponential and polynomial backtracking
9349
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
9350
+ */
9351
+ "regexp/no-super-linear-backtracking"?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>;
9352
+ /**
9353
+ * disallow quantifiers that cause quadratic moves
9354
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
9355
+ */
9356
+ "regexp/no-super-linear-move"?: Linter.RuleEntry<RegexpNoSuperLinearMove>;
9357
+ /**
9358
+ * disallow trivially nested assertions
9359
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
9360
+ */
9361
+ "regexp/no-trivially-nested-assertion"?: Linter.RuleEntry<[]>;
9362
+ /**
9363
+ * disallow nested quantifiers that can be rewritten as one quantifier
9364
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
9365
+ */
9366
+ "regexp/no-trivially-nested-quantifier"?: Linter.RuleEntry<[]>;
9367
+ /**
9368
+ * disallow unused capturing group
9369
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
9370
+ */
9371
+ "regexp/no-unused-capturing-group"?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>;
9372
+ /**
9373
+ * disallow assertions that are known to always accept (or reject)
9374
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
9375
+ */
9376
+ "regexp/no-useless-assertions"?: Linter.RuleEntry<[]>;
9377
+ /**
9378
+ * disallow useless backreferences in regular expressions
9379
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
9380
+ */
9381
+ "regexp/no-useless-backreference"?: Linter.RuleEntry<[]>;
9382
+ /**
9383
+ * disallow character class with one character
9384
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
9385
+ */
9386
+ "regexp/no-useless-character-class"?: Linter.RuleEntry<RegexpNoUselessCharacterClass>;
9387
+ /**
9388
+ * disallow useless `$` replacements in replacement string
9389
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
9390
+ */
9391
+ "regexp/no-useless-dollar-replacements"?: Linter.RuleEntry<[]>;
9392
+ /**
9393
+ * disallow unnecessary escape characters in RegExp
9394
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
9395
+ */
9396
+ "regexp/no-useless-escape"?: Linter.RuleEntry<[]>;
9397
+ /**
9398
+ * disallow unnecessary regex flags
9399
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
9400
+ */
9401
+ "regexp/no-useless-flag"?: Linter.RuleEntry<RegexpNoUselessFlag>;
9402
+ /**
9403
+ * disallow unnecessarily non-greedy quantifiers
9404
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
9405
+ */
9406
+ "regexp/no-useless-lazy"?: Linter.RuleEntry<[]>;
9407
+ /**
9408
+ * disallow unnecessary non-capturing group
9409
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
9410
+ */
9411
+ "regexp/no-useless-non-capturing-group"?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>;
9412
+ /**
9413
+ * disallow quantifiers that can be removed
9414
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
9415
+ */
9416
+ "regexp/no-useless-quantifier"?: Linter.RuleEntry<[]>;
9417
+ /**
9418
+ * disallow unnecessary character ranges
9419
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
9420
+ */
9421
+ "regexp/no-useless-range"?: Linter.RuleEntry<[]>;
9422
+ /**
9423
+ * disallow unnecessary elements in expression character classes
9424
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
9425
+ */
9426
+ "regexp/no-useless-set-operand"?: Linter.RuleEntry<[]>;
9427
+ /**
9428
+ * disallow string disjunction of single characters in `\q{...}`
9429
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
9430
+ */
9431
+ "regexp/no-useless-string-literal"?: Linter.RuleEntry<[]>;
9432
+ /**
9433
+ * disallow unnecessary `{n,m}` quantifier
9434
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
9435
+ */
9436
+ "regexp/no-useless-two-nums-quantifier"?: Linter.RuleEntry<[]>;
9437
+ /**
9438
+ * disallow quantifiers with a maximum of zero
9439
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
9440
+ */
9441
+ "regexp/no-zero-quantifier"?: Linter.RuleEntry<[]>;
9442
+ /**
9443
+ * disallow the alternatives of lookarounds that end with a non-constant quantifier
9444
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
9445
+ */
9446
+ "regexp/optimal-lookaround-quantifier"?: Linter.RuleEntry<[]>;
9447
+ /**
9448
+ * require optimal quantifiers for concatenated quantifiers
9449
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
9450
+ */
9451
+ "regexp/optimal-quantifier-concatenation"?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>;
9452
+ /**
9453
+ * enforce using character class
9454
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
9455
+ */
9456
+ "regexp/prefer-character-class"?: Linter.RuleEntry<RegexpPreferCharacterClass>;
9457
+ /**
9458
+ * enforce using `\d`
9459
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
9460
+ */
9461
+ "regexp/prefer-d"?: Linter.RuleEntry<RegexpPreferD>;
9462
+ /**
9463
+ * enforces escape of replacement `$` character (`$$`).
9464
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
9465
+ */
9466
+ "regexp/prefer-escape-replacement-dollar-char"?: Linter.RuleEntry<[]>;
9467
+ /**
9468
+ * prefer lookarounds over capturing group that do not replace
9469
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
9470
+ */
9471
+ "regexp/prefer-lookaround"?: Linter.RuleEntry<RegexpPreferLookaround>;
9472
+ /**
9473
+ * enforce using named backreferences
9474
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
9475
+ */
9476
+ "regexp/prefer-named-backreference"?: Linter.RuleEntry<[]>;
9477
+ /**
9478
+ * enforce using named capture groups
9479
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
9480
+ */
9481
+ "regexp/prefer-named-capture-group"?: Linter.RuleEntry<[]>;
9482
+ /**
9483
+ * enforce using named replacement
9484
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
9485
+ */
9486
+ "regexp/prefer-named-replacement"?: Linter.RuleEntry<RegexpPreferNamedReplacement>;
9487
+ /**
9488
+ * enforce using `+` quantifier
9489
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
9490
+ */
9491
+ "regexp/prefer-plus-quantifier"?: Linter.RuleEntry<[]>;
9492
+ /**
9493
+ * prefer predefined assertion over equivalent lookarounds
9494
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
9495
+ */
9496
+ "regexp/prefer-predefined-assertion"?: Linter.RuleEntry<[]>;
9497
+ /**
9498
+ * enforce using quantifier
9499
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
9500
+ */
9501
+ "regexp/prefer-quantifier"?: Linter.RuleEntry<RegexpPreferQuantifier>;
9502
+ /**
9503
+ * enforce using `?` quantifier
9504
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
9505
+ */
9506
+ "regexp/prefer-question-quantifier"?: Linter.RuleEntry<[]>;
9507
+ /**
9508
+ * enforce using character class range
9509
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
9510
+ */
9511
+ "regexp/prefer-range"?: Linter.RuleEntry<RegexpPreferRange>;
9512
+ /**
9513
+ * enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
9514
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
9515
+ */
9516
+ "regexp/prefer-regexp-exec"?: Linter.RuleEntry<[]>;
9517
+ /**
9518
+ * enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
9519
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
9520
+ */
9521
+ "regexp/prefer-regexp-test"?: Linter.RuleEntry<[]>;
9522
+ /**
9523
+ * enforce using result array `groups`
9524
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
9525
+ */
9526
+ "regexp/prefer-result-array-groups"?: Linter.RuleEntry<RegexpPreferResultArrayGroups>;
9527
+ /**
9528
+ * prefer character class set operations instead of lookarounds
9529
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
9530
+ */
9531
+ "regexp/prefer-set-operation"?: Linter.RuleEntry<[]>;
9532
+ /**
9533
+ * enforce using `*` quantifier
9534
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
9535
+ */
9536
+ "regexp/prefer-star-quantifier"?: Linter.RuleEntry<[]>;
9537
+ /**
9538
+ * enforce use of unicode codepoint escapes
9539
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
9540
+ */
9541
+ "regexp/prefer-unicode-codepoint-escapes"?: Linter.RuleEntry<[]>;
9542
+ /**
9543
+ * enforce using `\w`
9544
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
9545
+ */
9546
+ "regexp/prefer-w"?: Linter.RuleEntry<[]>;
9547
+ /**
9548
+ * enforce the use of the `u` flag
9549
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
9550
+ */
9551
+ "regexp/require-unicode-regexp"?: Linter.RuleEntry<[]>;
9552
+ /**
9553
+ * enforce the use of the `v` flag
9554
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
9555
+ */
9556
+ "regexp/require-unicode-sets-regexp"?: Linter.RuleEntry<[]>;
9557
+ /**
9558
+ * require simplify set operations
9559
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
9560
+ */
9561
+ "regexp/simplify-set-operations"?: Linter.RuleEntry<[]>;
9562
+ /**
9563
+ * sort alternatives if order doesn't matter
9564
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
9565
+ */
9566
+ "regexp/sort-alternatives"?: Linter.RuleEntry<[]>;
9567
+ /**
9568
+ * enforces elements order in character class
9569
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
9570
+ */
9571
+ "regexp/sort-character-class-elements"?: Linter.RuleEntry<RegexpSortCharacterClassElements>;
9572
+ /**
9573
+ * require regex flags to be sorted
9574
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
9575
+ */
9576
+ "regexp/sort-flags"?: Linter.RuleEntry<[]>;
9577
+ /**
9578
+ * disallow not strictly valid regular expressions
9579
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
9580
+ */
9581
+ "regexp/strict"?: Linter.RuleEntry<[]>;
9582
+ /**
9583
+ * enforce consistent usage of unicode escape or unicode codepoint escape
9584
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
9585
+ */
9586
+ "regexp/unicode-escape"?: Linter.RuleEntry<RegexpUnicodeEscape>;
9587
+ /**
9588
+ * enforce consistent naming of unicode properties
9589
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
9590
+ */
9591
+ "regexp/unicode-property"?: Linter.RuleEntry<RegexpUnicodeProperty>;
9592
+ /**
9593
+ * use the `i` flag if it simplifies the pattern
9594
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
9595
+ */
9596
+ "regexp/use-ignore-case"?: Linter.RuleEntry<[]>;
9597
+ }
9598
+ /* ======= Declarations ======= */
9599
+ // ----- regexp/hexadecimal-escape -----
9600
+ type RegexpHexadecimalEscape = [] | ["always" | "never"]; // ----- regexp/letter-case -----
9601
+ type RegexpLetterCase = [] | [{
9602
+ caseInsensitive?: "lowercase" | "uppercase" | "ignore";
9603
+ unicodeEscape?: "lowercase" | "uppercase" | "ignore";
9604
+ hexadecimalEscape?: "lowercase" | "uppercase" | "ignore";
9605
+ controlEscape?: "lowercase" | "uppercase" | "ignore";
9606
+ }]; // ----- regexp/match-any -----
9607
+ type RegexpMatchAny = [] | [{
9608
+ allows?: ["[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll", ...("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll")[]];
9609
+ }]; // ----- regexp/no-dupe-disjunctions -----
9610
+ type RegexpNoDupeDisjunctions = [] | [{
9611
+ report?: "all" | "trivial" | "interesting";
9612
+ reportExponentialBacktracking?: "none" | "certain" | "potential";
9613
+ reportUnreachable?: "certain" | "potential";
9614
+ }]; // ----- regexp/no-lazy-ends -----
9615
+ type RegexpNoLazyEnds = [] | [{
9616
+ ignorePartial?: boolean;
9617
+ }]; // ----- regexp/no-legacy-features -----
9618
+ type RegexpNoLegacyFeatures = [] | [{
9619
+ staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[];
9620
+ prototypeMethods?: "compile"[];
9621
+ }]; // ----- regexp/no-misleading-capturing-group -----
9622
+ type RegexpNoMisleadingCapturingGroup = [] | [{
9623
+ reportBacktrackingEnds?: boolean;
9624
+ }]; // ----- regexp/no-misleading-unicode-character -----
9625
+ type RegexpNoMisleadingUnicodeCharacter = [] | [{
9626
+ fixable?: boolean;
9627
+ }]; // ----- regexp/no-missing-g-flag -----
9628
+ type RegexpNoMissingGFlag = [] | [{
9629
+ strictTypes?: boolean;
9630
+ }]; // ----- regexp/no-obscure-range -----
9631
+ type RegexpNoObscureRange = [] | [{
9632
+ allowed?: ("all" | "alphanumeric") | ["all" | "alphanumeric"] | ["alphanumeric" | string, ...("alphanumeric" | string)[]];
9633
+ }]; // ----- regexp/no-super-linear-backtracking -----
9634
+ type RegexpNoSuperLinearBacktracking = [] | [{
9635
+ report?: "certain" | "potential";
9636
+ }]; // ----- regexp/no-super-linear-move -----
9637
+ type RegexpNoSuperLinearMove = [] | [{
9638
+ report?: "certain" | "potential";
9639
+ ignoreSticky?: boolean;
9640
+ ignorePartial?: boolean;
9641
+ }]; // ----- regexp/no-unused-capturing-group -----
9642
+ type RegexpNoUnusedCapturingGroup = [] | [{
9643
+ fixable?: boolean;
9644
+ allowNamed?: boolean;
9645
+ }]; // ----- regexp/no-useless-character-class -----
9646
+ type RegexpNoUselessCharacterClass = [] | [{
9647
+ ignores?: string[];
9648
+ }]; // ----- regexp/no-useless-flag -----
9649
+ type RegexpNoUselessFlag = [] | [{
9650
+ ignore?: ("i" | "m" | "s" | "g" | "y")[];
9651
+ strictTypes?: boolean;
9652
+ }]; // ----- regexp/no-useless-non-capturing-group -----
9653
+ type RegexpNoUselessNonCapturingGroup = [] | [{
9654
+ allowTop?: boolean | ("always" | "never" | "partial");
9655
+ }]; // ----- regexp/optimal-quantifier-concatenation -----
9656
+ type RegexpOptimalQuantifierConcatenation = [] | [{
9657
+ capturingGroups?: "ignore" | "report";
9658
+ }]; // ----- regexp/prefer-character-class -----
9659
+ type RegexpPreferCharacterClass = [] | [{
9660
+ minAlternatives?: number;
9661
+ }]; // ----- regexp/prefer-d -----
9662
+ type RegexpPreferD = [] | [{
9663
+ insideCharacterClass?: "ignore" | "range" | "d";
9664
+ }]; // ----- regexp/prefer-lookaround -----
9665
+ type RegexpPreferLookaround = [] | [{
9666
+ lookbehind?: boolean;
9667
+ strictTypes?: boolean;
9668
+ }]; // ----- regexp/prefer-named-replacement -----
9669
+ type RegexpPreferNamedReplacement = [] | [{
9670
+ strictTypes?: boolean;
9671
+ }]; // ----- regexp/prefer-quantifier -----
9672
+ type RegexpPreferQuantifier = [] | [{
9673
+ allows?: string[];
9674
+ }]; // ----- regexp/prefer-range -----
9675
+ type RegexpPreferRange = [] | [{
9676
+ target?: ("all" | "alphanumeric") | ["all" | "alphanumeric"] | ["alphanumeric" | string, ...("alphanumeric" | string)[]];
9677
+ }]; // ----- regexp/prefer-result-array-groups -----
9678
+ type RegexpPreferResultArrayGroups = [] | [{
9679
+ strictTypes?: boolean;
9680
+ }]; // ----- regexp/sort-character-class-elements -----
9681
+ type RegexpSortCharacterClassElements = [] | [{
9682
+ order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[];
9683
+ }]; // ----- regexp/unicode-escape -----
9684
+ type RegexpUnicodeEscape = [] | ["unicodeCodePointEscape" | "unicodeEscape"]; // ----- regexp/unicode-property -----
9685
+ type RegexpUnicodeProperty = [] | [{
9686
+ generalCategory?: "always" | "never" | "ignore";
9687
+ key?: "short" | "long" | "ignore";
9688
+ property?: ("short" | "long" | "ignore") | {
9689
+ binary?: "short" | "long" | "ignore";
9690
+ generalCategory?: "short" | "long" | "ignore";
9691
+ script?: "short" | "long" | "ignore";
9692
+ };
9693
+ }];
9694
+ //#endregion
9184
9695
  //#region src/_generated/dts/sort-package-json.d.ts
9185
9696
  interface SortPackageJsonRuleOptions {}
9186
9697
  //#endregion
@@ -12736,1294 +13247,1560 @@ type ImportPreferDefaultExport = [] | [{
12736
13247
  interface UnicornRuleOptions {
12737
13248
  /**
12738
13249
  * Prefer better DOM traversal APIs.
12739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/better-dom-traversing.md
13250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/better-dom-traversing.md
12740
13251
  */
12741
13252
  "unicorn/better-dom-traversing"?: Linter.RuleEntry<[]>;
12742
13253
  /**
12743
13254
  * Removed. Prefer `eslint-plugin-regexp`
12744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#better-regex
13255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#better-regex
12745
13256
  * @deprecated
12746
13257
  */
12747
13258
  "unicorn/better-regex"?: Linter.RuleEntry<[]>;
12748
13259
  /**
12749
13260
  * Enforce a specific parameter name in catch clauses.
12750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/catch-error-name.md
13261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/catch-error-name.md
12751
13262
  */
12752
13263
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
12753
13264
  /**
12754
13265
  * Enforce consistent class references in static methods.
12755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/class-reference-in-static-methods.md
13266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/class-reference-in-static-methods.md
12756
13267
  */
12757
13268
  "unicorn/class-reference-in-static-methods"?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
12758
13269
  /**
12759
13270
  * Enforce better comment content.
12760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/comment-content.md
13271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/comment-content.md
12761
13272
  */
12762
13273
  "unicorn/comment-content"?: Linter.RuleEntry<UnicornCommentContent>;
12763
13274
  /**
12764
13275
  * Enforce consistent assertion style with `node:assert`.
12765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-assert.md
13276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-assert.md
12766
13277
  */
12767
13278
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
13279
+ /**
13280
+ * 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
13282
+ */
13283
+ "unicorn/consistent-boolean-name"?: Linter.RuleEntry<UnicornConsistentBooleanName>;
12768
13284
  /**
12769
13285
  * Enforce consistent class member order.
12770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-class-member-order.md
13286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-class-member-order.md
12771
13287
  */
12772
13288
  "unicorn/consistent-class-member-order"?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
12773
13289
  /**
12774
13290
  * Enforce consistent spelling of compound words in identifiers.
12775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-compound-words.md
13291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-compound-words.md
12776
13292
  */
12777
13293
  "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
13294
+ /**
13295
+ * 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
13297
+ */
13298
+ "unicorn/consistent-conditional-object-spread"?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
12778
13299
  /**
12779
13300
  * Prefer passing `Date` directly to the constructor when cloning.
12780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-date-clone.md
13301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-date-clone.md
12781
13302
  */
12782
13303
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
12783
13304
  /**
12784
13305
  * Use destructured variables over properties.
12785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-destructuring.md
13306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-destructuring.md
12786
13307
  */
12787
13308
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
12788
13309
  /**
12789
13310
  * Prefer consistent types when spreading a ternary in an array literal.
12790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-empty-array-spread.md
13311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-empty-array-spread.md
12791
13312
  */
12792
13313
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
12793
13314
  /**
12794
13315
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
12795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-existence-index-check.md
13316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-existence-index-check.md
12796
13317
  */
12797
13318
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
12798
13319
  /**
12799
13320
  * Enforce consistent decorator position on exported classes.
12800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-export-decorator-position.md
13321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-export-decorator-position.md
12801
13322
  */
12802
13323
  "unicorn/consistent-export-decorator-position"?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
12803
13324
  /**
12804
13325
  * Move function definitions to the highest possible scope.
12805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-function-scoping.md
13326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-scoping.md
12806
13327
  */
12807
13328
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
12808
13329
  /**
12809
13330
  * Enforce function syntax by role.
12810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-function-style.md
13331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-style.md
12811
13332
  */
12812
13333
  "unicorn/consistent-function-style"?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
12813
13334
  /**
12814
13335
  * Enforce consistent JSON file reads before `JSON.parse()`.
12815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-json-file-read.md
13336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-json-file-read.md
12816
13337
  */
12817
13338
  "unicorn/consistent-json-file-read"?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
12818
13339
  /**
12819
13340
  * Enforce consistent optional chaining for same-base member access.
12820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-optional-chaining.md
13341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-optional-chaining.md
12821
13342
  */
12822
13343
  "unicorn/consistent-optional-chaining"?: Linter.RuleEntry<[]>;
12823
13344
  /**
12824
13345
  * Enforce consistent style for escaping `${` in template literals.
12825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-template-literal-escape.md
13346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-template-literal-escape.md
12826
13347
  */
12827
13348
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
12828
13349
  /**
12829
13350
  * Enforce correct `Error` subclassing.
12830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/custom-error-definition.md
13351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/custom-error-definition.md
12831
13352
  */
12832
13353
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
13354
+ /**
13355
+ * Enforce consistent default export declarations.
13356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/default-export-style.md
13357
+ */
13358
+ "unicorn/default-export-style"?: Linter.RuleEntry<UnicornDefaultExportStyle>;
12833
13359
  /**
12834
13360
  * Enforce consistent style for DOM element dataset access.
12835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/dom-node-dataset.md
13361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/dom-node-dataset.md
12836
13362
  */
12837
13363
  "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
12838
13364
  /**
12839
13365
  * Enforce no spaces between braces.
12840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/empty-brace-spaces.md
13366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/empty-brace-spaces.md
12841
13367
  */
12842
13368
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
12843
13369
  /**
12844
13370
  * Enforce passing a `message` value when creating a built-in error.
12845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/error-message.md
13371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/error-message.md
12846
13372
  */
12847
13373
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
12848
13374
  /**
12849
13375
  * Require escape sequences to use uppercase or lowercase values.
12850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/escape-case.md
13376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/escape-case.md
12851
13377
  */
12852
13378
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
12853
13379
  /**
12854
13380
  * Add expiration conditions to TODO comments.
12855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/expiring-todo-comments.md
13381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/expiring-todo-comments.md
12856
13382
  */
12857
13383
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
12858
13384
  /**
12859
13385
  * Enforce explicitly comparing the `length` or `size` property of a value.
12860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/explicit-length-check.md
13386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-length-check.md
12861
13387
  */
12862
13388
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
12863
13389
  /**
12864
13390
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
12865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/explicit-timer-delay.md
13391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-timer-delay.md
12866
13392
  */
12867
13393
  "unicorn/explicit-timer-delay"?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
12868
13394
  /**
12869
13395
  * Enforce a case style for filenames and directory names.
12870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/filename-case.md
13396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/filename-case.md
12871
13397
  */
12872
13398
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
12873
13399
  /**
12874
13400
  * Require identifiers to match a specified regular expression.
12875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/id-match.md
13401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/id-match.md
12876
13402
  */
12877
13403
  "unicorn/id-match"?: Linter.RuleEntry<UnicornIdMatch>;
12878
13404
  /**
12879
13405
  * Enforce specific import styles per module.
12880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/import-style.md
13406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/import-style.md
12881
13407
  */
12882
13408
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
12883
13409
  /**
12884
13410
  * Prevent usage of variables from outside the scope of isolated functions.
12885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/isolated-functions.md
13411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/isolated-functions.md
12886
13412
  */
12887
13413
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
13414
+ /**
13415
+ * 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
13417
+ */
13418
+ "unicorn/logical-assignment-operators"?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
12888
13419
  /**
12889
13420
  * Limit the depth of nested calls.
12890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/max-nested-calls.md
13421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/max-nested-calls.md
12891
13422
  */
12892
13423
  "unicorn/max-nested-calls"?: Linter.RuleEntry<UnicornMaxNestedCalls>;
12893
13424
  /**
12894
- * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
12895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/new-for-builtins.md
13425
+ * 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
13427
+ */
13428
+ "unicorn/name-replacements"?: Linter.RuleEntry<UnicornNameReplacements>;
13429
+ /**
13430
+ * 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
12896
13432
  */
12897
13433
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
12898
13434
  /**
12899
13435
  * Enforce specifying rules to disable in `eslint-disable` comments.
12900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-abusive-eslint-disable.md
13436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-abusive-eslint-disable.md
12901
13437
  */
12902
13438
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
12903
13439
  /**
12904
13440
  * Disallow recursive access to `this` within getters and setters.
12905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-accessor-recursion.md
13441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-accessor-recursion.md
12906
13442
  */
12907
13443
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
13444
+ /**
13445
+ * 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
13447
+ */
13448
+ "unicorn/no-accidental-bitwise-operator"?: Linter.RuleEntry<[]>;
12908
13449
  /**
12909
13450
  * Disallow anonymous functions and classes as the default export.
12910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-anonymous-default-export.md
13451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-anonymous-default-export.md
12911
13452
  */
12912
13453
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
12913
13454
  /**
12914
13455
  * Prevent passing a function reference directly to iterator methods.
12915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-callback-reference.md
13456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-callback-reference.md
12916
13457
  */
12917
13458
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
13459
+ /**
13460
+ * 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
13462
+ */
13463
+ "unicorn/no-array-concat-in-loop"?: Linter.RuleEntry<[]>;
12918
13464
  /**
12919
13465
  * Disallow using reference values as `Array#fill()` values.
12920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-fill-with-reference-type.md
13466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-fill-with-reference-type.md
12921
13467
  */
12922
13468
  "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
12923
13469
  /**
12924
13470
  * Disallow `.fill()` after `Array.from({length: …})`.
12925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-from-fill.md
13471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-from-fill.md
12926
13472
  */
12927
13473
  "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
13474
+ /**
13475
+ * 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
13477
+ */
13478
+ "unicorn/no-array-front-mutation"?: Linter.RuleEntry<[]>;
12928
13479
  /**
12929
13480
  * Disallow using the `this` argument in array methods.
12930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-method-this-argument.md
13481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-method-this-argument.md
12931
13482
  */
12932
13483
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
12933
13484
  /**
12934
13485
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
12935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
12936
13487
  * @deprecated
12937
13488
  */
12938
13489
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
12939
13490
  /**
12940
13491
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
12941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-reduce.md
13492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reduce.md
12942
13493
  */
12943
13494
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
12944
13495
  /**
12945
13496
  * Prefer `Array#toReversed()` over `Array#reverse()`.
12946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-reverse.md
13497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reverse.md
12947
13498
  */
12948
13499
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
12949
13500
  /**
12950
13501
  * Prefer `Array#toSorted()` over `Array#sort()`.
12951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-sort.md
13502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-sort.md
12952
13503
  */
12953
13504
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
13505
+ /**
13506
+ * 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
13508
+ */
13509
+ "unicorn/no-array-sort-for-min-max"?: Linter.RuleEntry<[]>;
13510
+ /**
13511
+ * 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
13513
+ */
13514
+ "unicorn/no-array-splice"?: Linter.RuleEntry<[]>;
12954
13515
  /**
12955
13516
  * Disallow asterisk prefixes in documentation comments.
12956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
13517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
12957
13518
  */
12958
13519
  "unicorn/no-asterisk-prefix-in-documentation-comments"?: Linter.RuleEntry<[]>;
12959
13520
  /**
12960
13521
  * Disallow member access from await expression.
12961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-await-expression-member.md
13522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-expression-member.md
12962
13523
  */
12963
13524
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
12964
13525
  /**
12965
13526
  * Disallow using `await` in `Promise` method parameters.
12966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-await-in-promise-methods.md
13527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-in-promise-methods.md
12967
13528
  */
12968
13529
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
12969
13530
  /**
12970
13531
  * Disallow unnecessary `Blob` to `File` conversion.
12971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-blob-to-file.md
13532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-blob-to-file.md
12972
13533
  */
12973
13534
  "unicorn/no-blob-to-file"?: Linter.RuleEntry<[]>;
13535
+ /**
13536
+ * 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
13538
+ */
13539
+ "unicorn/no-boolean-sort-comparator"?: Linter.RuleEntry<[]>;
12974
13540
  /**
12975
13541
  * Disallow `break` and `continue` in nested loops and switches inside loops.
12976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-break-in-nested-loop.md
13542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-break-in-nested-loop.md
12977
13543
  */
12978
13544
  "unicorn/no-break-in-nested-loop"?: Linter.RuleEntry<[]>;
12979
13545
  /**
12980
13546
  * Prefer drawing canvases directly instead of converting them to images.
12981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-canvas-to-image.md
13547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-canvas-to-image.md
12982
13548
  */
12983
13549
  "unicorn/no-canvas-to-image"?: Linter.RuleEntry<[]>;
13550
+ /**
13551
+ * 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
13553
+ */
13554
+ "unicorn/no-chained-comparison"?: Linter.RuleEntry<[]>;
13555
+ /**
13556
+ * 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
13558
+ */
13559
+ "unicorn/no-collection-bracket-access"?: Linter.RuleEntry<[]>;
12984
13560
  /**
12985
13561
  * Disallow dynamic object property existence checks.
12986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-computed-property-existence-check.md
13562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-computed-property-existence-check.md
12987
13563
  */
12988
13564
  "unicorn/no-computed-property-existence-check"?: Linter.RuleEntry<[]>;
12989
13565
  /**
12990
13566
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
12991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-confusing-array-splice.md
13567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-splice.md
12992
13568
  */
12993
13569
  "unicorn/no-confusing-array-splice"?: Linter.RuleEntry<[]>;
12994
13570
  /**
12995
13571
  * Disallow confusing uses of `Array#with()`.
12996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-confusing-array-with.md
13572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-with.md
12997
13573
  */
12998
13574
  "unicorn/no-confusing-array-with"?: Linter.RuleEntry<[]>;
12999
13575
  /**
13000
13576
  * Do not use leading/trailing space between `console.log` parameters.
13001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-console-spaces.md
13577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-console-spaces.md
13002
13578
  */
13003
13579
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
13580
+ /**
13581
+ * 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
13583
+ */
13584
+ "unicorn/no-constant-zero-expression"?: Linter.RuleEntry<[]>;
13004
13585
  /**
13005
13586
  * Disallow declarations before conditional early exits when they are only used after the exit.
13006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-declarations-before-early-exit.md
13587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-declarations-before-early-exit.md
13007
13588
  */
13008
13589
  "unicorn/no-declarations-before-early-exit"?: Linter.RuleEntry<[]>;
13009
13590
  /**
13010
13591
  * Do not use `document.cookie` directly.
13011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-document-cookie.md
13592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-document-cookie.md
13012
13593
  */
13013
13594
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
13595
+ /**
13596
+ * 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
13598
+ */
13599
+ "unicorn/no-double-comparison"?: Linter.RuleEntry<[]>;
13600
+ /**
13601
+ * 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
13603
+ */
13604
+ "unicorn/no-duplicate-if-branches"?: Linter.RuleEntry<[]>;
13605
+ /**
13606
+ * 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
13608
+ */
13609
+ "unicorn/no-duplicate-logical-operands"?: Linter.RuleEntry<[]>;
13014
13610
  /**
13015
13611
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
13016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-duplicate-loops.md
13612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-loops.md
13017
13613
  */
13018
13614
  "unicorn/no-duplicate-loops"?: Linter.RuleEntry<[]>;
13019
13615
  /**
13020
13616
  * Disallow duplicate values in `Set` constructor array literals.
13021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-duplicate-set-values.md
13617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-set-values.md
13022
13618
  */
13023
13619
  "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
13024
13620
  /**
13025
13621
  * Disallow empty files.
13026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-empty-file.md
13622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-empty-file.md
13027
13623
  */
13028
13624
  "unicorn/no-empty-file"?: Linter.RuleEntry<UnicornNoEmptyFile>;
13029
13625
  /**
13030
13626
  * Disallow assigning to built-in error properties.
13031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-error-property-assignment.md
13627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-error-property-assignment.md
13032
13628
  */
13033
13629
  "unicorn/no-error-property-assignment"?: Linter.RuleEntry<[]>;
13034
13630
  /**
13035
13631
  * Disallow exports in scripts.
13036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-exports-in-scripts.md
13632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-exports-in-scripts.md
13037
13633
  */
13038
13634
  "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
13039
13635
  /**
13040
13636
  * Prefer `for…of` over the `forEach` method.
13041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-for-each.md
13637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-each.md
13042
13638
  */
13043
13639
  "unicorn/no-for-each"?: Linter.RuleEntry<[]>;
13044
13640
  /**
13045
13641
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
13046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-for-loop.md
13642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-loop.md
13047
13643
  */
13048
13644
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
13049
13645
  /**
13050
13646
  * Disallow assigning properties on the global object.
13051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-global-object-property-assignment.md
13647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-global-object-property-assignment.md
13052
13648
  */
13053
13649
  "unicorn/no-global-object-property-assignment"?: Linter.RuleEntry<[]>;
13054
13650
  /**
13055
13651
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
13056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13057
13653
  * @deprecated
13058
13654
  */
13059
13655
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
13060
13656
  /**
13061
13657
  * Disallow immediate mutation after variable assignment.
13062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-immediate-mutation.md
13658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-immediate-mutation.md
13063
13659
  */
13064
13660
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
13661
+ /**
13662
+ * 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
13664
+ */
13665
+ "unicorn/no-impossible-length-comparison"?: Linter.RuleEntry<[]>;
13065
13666
  /**
13066
13667
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
13067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-incorrect-query-selector.md
13668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-query-selector.md
13068
13669
  */
13069
13670
  "unicorn/no-incorrect-query-selector"?: Linter.RuleEntry<[]>;
13070
13671
  /**
13071
13672
  * Disallow incorrect template literal interpolation syntax.
13072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13073
13674
  */
13074
13675
  "unicorn/no-incorrect-template-string-interpolation"?: Linter.RuleEntry<[]>;
13075
13676
  /**
13076
13677
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
13077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13078
13679
  * @deprecated
13079
13680
  */
13080
13681
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
13081
13682
  /**
13082
13683
  * Disallow `instanceof` with built-in objects
13083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-instanceof-builtins.md
13684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-instanceof-builtins.md
13084
13685
  */
13085
13686
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
13086
13687
  /**
13087
- * Disallow calling functions with an invalid number of arguments.
13088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-argument-count.md
13688
+ * 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
13690
+ */
13691
+ "unicorn/no-invalid-argument-count"?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
13692
+ /**
13693
+ * 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
13089
13695
  */
13090
- "unicorn/no-invalid-argument-count"?: Linter.RuleEntry<[]>;
13696
+ "unicorn/no-invalid-character-comparison"?: Linter.RuleEntry<[]>;
13091
13697
  /**
13092
13698
  * Disallow invalid options in `fetch()` and `new Request()`.
13093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-fetch-options.md
13699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-fetch-options.md
13094
13700
  */
13095
13701
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
13096
13702
  /**
13097
13703
  * Disallow invalid `accept` values on file inputs.
13098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-file-input-accept.md
13704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-file-input-accept.md
13099
13705
  */
13100
13706
  "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
13101
13707
  /**
13102
13708
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
13103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-remove-event-listener.md
13709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-remove-event-listener.md
13104
13710
  */
13105
13711
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
13106
13712
  /**
13107
13713
  * Disallow identifiers starting with `new` or `class`.
13108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-keyword-prefix.md
13714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-keyword-prefix.md
13109
13715
  */
13110
13716
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
13111
13717
  /**
13112
13718
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
13113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-late-current-target-access.md
13719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-late-current-target-access.md
13114
13720
  */
13115
13721
  "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
13116
13722
  /**
13117
13723
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
13118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13119
13725
  * @deprecated
13120
13726
  */
13121
13727
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
13122
13728
  /**
13123
13729
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
13124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-lonely-if.md
13730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-lonely-if.md
13125
13731
  */
13126
13732
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
13733
+ /**
13734
+ * 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
13736
+ */
13737
+ "unicorn/no-loop-iterable-mutation"?: Linter.RuleEntry<[]>;
13127
13738
  /**
13128
13739
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
13129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-magic-array-flat-depth.md
13740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-magic-array-flat-depth.md
13130
13741
  */
13131
13742
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
13132
13743
  /**
13133
13744
  * Disallow manually wrapped comments.
13134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-manually-wrapped-comments.md
13745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-manually-wrapped-comments.md
13135
13746
  */
13136
13747
  "unicorn/no-manually-wrapped-comments"?: Linter.RuleEntry<[]>;
13137
13748
  /**
13138
13749
  * Disallow checking a Map key before accessing a different key.
13139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-mismatched-map-key.md
13750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-mismatched-map-key.md
13140
13751
  */
13141
13752
  "unicorn/no-mismatched-map-key"?: Linter.RuleEntry<[]>;
13753
+ /**
13754
+ * 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
13756
+ */
13757
+ "unicorn/no-misrefactored-assignment"?: Linter.RuleEntry<[]>;
13142
13758
  /**
13143
13759
  * Disallow named usage of default import and export.
13144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-named-default.md
13760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-named-default.md
13145
13761
  */
13146
13762
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
13147
13763
  /**
13148
13764
  * Disallow negated array predicate calls.
13149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negated-array-predicate.md
13765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-array-predicate.md
13150
13766
  */
13151
13767
  "unicorn/no-negated-array-predicate"?: Linter.RuleEntry<[]>;
13152
13768
  /**
13153
13769
  * Disallow negated comparisons.
13154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negated-comparison.md
13770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-comparison.md
13155
13771
  */
13156
13772
  "unicorn/no-negated-comparison"?: Linter.RuleEntry<UnicornNoNegatedComparison>;
13157
13773
  /**
13158
13774
  * Disallow negated conditions.
13159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negated-condition.md
13775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-condition.md
13160
13776
  */
13161
13777
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
13162
13778
  /**
13163
13779
  * Disallow negated expression in equality check.
13164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negation-in-equality-check.md
13780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negation-in-equality-check.md
13165
13781
  */
13166
13782
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
13167
13783
  /**
13168
13784
  * Disallow nested ternary expressions.
13169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-nested-ternary.md
13785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nested-ternary.md
13170
13786
  */
13171
13787
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
13172
13788
  /**
13173
13789
  * Disallow `new Array()`.
13174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-new-array.md
13790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-array.md
13175
13791
  */
13176
13792
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
13177
13793
  /**
13178
13794
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
13179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-new-buffer.md
13795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-buffer.md
13180
13796
  */
13181
13797
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
13798
+ /**
13799
+ * 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
13801
+ */
13802
+ "unicorn/no-non-function-verb-prefix"?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
13803
+ /**
13804
+ * 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
13806
+ */
13807
+ "unicorn/no-nonstandard-builtin-properties"?: Linter.RuleEntry<[]>;
13182
13808
  /**
13183
13809
  * Disallow the use of the `null` literal.
13184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-null.md
13810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-null.md
13185
13811
  */
13186
13812
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
13187
13813
  /**
13188
13814
  * Disallow the use of objects as default parameters.
13189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-object-as-default-parameter.md
13815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-as-default-parameter.md
13190
13816
  */
13191
13817
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
13192
13818
  /**
13193
13819
  * Disallow `Object` methods with `Map` or `Set`.
13194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-object-methods-with-collections.md
13820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-methods-with-collections.md
13195
13821
  */
13196
13822
  "unicorn/no-object-methods-with-collections"?: Linter.RuleEntry<[]>;
13197
13823
  /**
13198
13824
  * Disallow optional chaining on undeclared variables.
13199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13200
13826
  */
13201
13827
  "unicorn/no-optional-chaining-on-undeclared-variable"?: Linter.RuleEntry<[]>;
13202
13828
  /**
13203
13829
  * Disallow `process.exit()`.
13204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-process-exit.md
13830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-process-exit.md
13205
13831
  */
13206
13832
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
13207
13833
  /**
13208
13834
  * Disallow comparisons made redundant by an equality check in the same logical AND.
13209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-redundant-comparison.md
13835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-redundant-comparison.md
13210
13836
  */
13211
13837
  "unicorn/no-redundant-comparison"?: Linter.RuleEntry<[]>;
13212
13838
  /**
13213
- * Disallow returning the result of `Array#push()` with arguments.
13214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-return-array-push.md
13839
+ * 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
13215
13841
  */
13216
13842
  "unicorn/no-return-array-push"?: Linter.RuleEntry<[]>;
13843
+ /**
13844
+ * 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
13846
+ */
13847
+ "unicorn/no-selector-as-dom-name"?: Linter.RuleEntry<[]>;
13217
13848
  /**
13218
13849
  * Disallow passing single-element arrays to `Promise` methods.
13219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-single-promise-in-promise-methods.md
13850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-single-promise-in-promise-methods.md
13220
13851
  */
13221
13852
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
13222
13853
  /**
13223
13854
  * Disallow classes that only have static members.
13224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-static-only-class.md
13855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-static-only-class.md
13225
13856
  */
13226
13857
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
13227
13858
  /**
13228
13859
  * Prefer comparing values directly over subtracting and comparing to `0`.
13229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-subtraction-comparison.md
13860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-subtraction-comparison.md
13230
13861
  */
13231
13862
  "unicorn/no-subtraction-comparison"?: Linter.RuleEntry<[]>;
13232
13863
  /**
13233
13864
  * Disallow `then` property.
13234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-thenable.md
13865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-thenable.md
13235
13866
  */
13236
13867
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
13237
13868
  /**
13238
13869
  * Disallow assigning `this` to a variable.
13239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-this-assignment.md
13870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-assignment.md
13240
13871
  */
13241
13872
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
13242
13873
  /**
13243
13874
  * Disallow `this` outside of classes.
13244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-this-outside-of-class.md
13875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-outside-of-class.md
13245
13876
  */
13246
13877
  "unicorn/no-this-outside-of-class"?: Linter.RuleEntry<[]>;
13878
+ /**
13879
+ * 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
13881
+ */
13882
+ "unicorn/no-top-level-assignment-in-function"?: Linter.RuleEntry<[]>;
13247
13883
  /**
13248
13884
  * Disallow top-level side effects in exported modules.
13249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-top-level-side-effects.md
13885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-top-level-side-effects.md
13250
13886
  */
13251
13887
  "unicorn/no-top-level-side-effects"?: Linter.RuleEntry<[]>;
13252
13888
  /**
13253
13889
  * Disallow comparing `undefined` using `typeof`.
13254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-typeof-undefined.md
13890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-typeof-undefined.md
13255
13891
  */
13256
13892
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
13893
+ /**
13894
+ * 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
13896
+ */
13897
+ "unicorn/no-uncalled-method"?: Linter.RuleEntry<[]>;
13257
13898
  /**
13258
13899
  * Require class members to be declared.
13259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-undeclared-class-members.md
13900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-undeclared-class-members.md
13260
13901
  */
13261
13902
  "unicorn/no-undeclared-class-members"?: Linter.RuleEntry<[]>;
13262
13903
  /**
13263
13904
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
13264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13265
13906
  */
13266
13907
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
13267
13908
  /**
13268
13909
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
13269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-array-splice-count.md
13910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-splice-count.md
13270
13911
  */
13271
13912
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
13272
13913
  /**
13273
13914
  * Disallow awaiting non-promise values.
13274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-await.md
13915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-await.md
13275
13916
  */
13276
13917
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
13918
+ /**
13919
+ * 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
13921
+ */
13922
+ "unicorn/no-unnecessary-boolean-comparison"?: Linter.RuleEntry<[]>;
13277
13923
  /**
13278
13924
  * Disallow unnecessary `globalThis` references.
13279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-global-this.md
13925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-global-this.md
13280
13926
  */
13281
13927
  "unicorn/no-unnecessary-global-this"?: Linter.RuleEntry<[]>;
13282
13928
  /**
13283
13929
  * Disallow unnecessary nested ternary expressions.
13284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-nested-ternary.md
13930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-nested-ternary.md
13285
13931
  */
13286
13932
  "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
13287
13933
  /**
13288
13934
  * Enforce the use of built-in methods instead of unnecessary polyfills.
13289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-polyfills.md
13935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-polyfills.md
13290
13936
  */
13291
13937
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
13292
13938
  /**
13293
13939
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
13294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-slice-end.md
13940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-slice-end.md
13295
13941
  */
13296
13942
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
13297
13943
  /**
13298
13944
  * Disallow `Array#splice()` when simpler alternatives exist.
13299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-splice.md
13945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-splice.md
13300
13946
  */
13301
13947
  "unicorn/no-unnecessary-splice"?: Linter.RuleEntry<[]>;
13302
13948
  /**
13303
13949
  * Disallow unreadable array destructuring.
13304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-array-destructuring.md
13950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-array-destructuring.md
13305
13951
  */
13306
13952
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
13953
+ /**
13954
+ * 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
13956
+ */
13957
+ "unicorn/no-unreadable-for-of-expression"?: Linter.RuleEntry<[]>;
13307
13958
  /**
13308
13959
  * Disallow unreadable IIFEs.
13309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-iife.md
13960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-iife.md
13310
13961
  */
13311
13962
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
13312
13963
  /**
13313
13964
  * Disallow unreadable `new` expressions.
13314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-new-expression.md
13965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-new-expression.md
13315
13966
  */
13316
13967
  "unicorn/no-unreadable-new-expression"?: Linter.RuleEntry<[]>;
13317
13968
  /**
13318
13969
  * Disallow unreadable object destructuring.
13319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-object-destructuring.md
13970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-object-destructuring.md
13320
13971
  */
13321
13972
  "unicorn/no-unreadable-object-destructuring"?: Linter.RuleEntry<[]>;
13322
13973
  /**
13323
13974
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
13324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-buffer-conversion.md
13975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-buffer-conversion.md
13325
13976
  */
13326
13977
  "unicorn/no-unsafe-buffer-conversion"?: Linter.RuleEntry<[]>;
13327
13978
  /**
13328
13979
  * Disallow unsafe DOM HTML APIs.
13329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-dom-html.md
13980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-dom-html.md
13330
13981
  */
13331
13982
  "unicorn/no-unsafe-dom-html"?: Linter.RuleEntry<[]>;
13332
13983
  /**
13333
13984
  * Disallow unsafe values as property keys.
13334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-property-key.md
13985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-property-key.md
13335
13986
  */
13336
13987
  "unicorn/no-unsafe-property-key"?: Linter.RuleEntry<[]>;
13337
13988
  /**
13338
13989
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
13339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-string-replacement.md
13990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-string-replacement.md
13340
13991
  */
13341
13992
  "unicorn/no-unsafe-string-replacement"?: Linter.RuleEntry<[]>;
13342
13993
  /**
13343
13994
  * Disallow ignoring the return value of selected array methods.
13344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unused-array-method-return.md
13995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-array-method-return.md
13345
13996
  */
13346
13997
  "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
13347
13998
  /**
13348
13999
  * Disallow unused object properties.
13349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unused-properties.md
14000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-properties.md
13350
14001
  */
13351
14002
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
13352
14003
  /**
13353
14004
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
13354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-boolean-cast.md
14005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-boolean-cast.md
13355
14006
  */
13356
14007
  "unicorn/no-useless-boolean-cast"?: Linter.RuleEntry<[]>;
14008
+ /**
14009
+ * 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
14011
+ */
14012
+ "unicorn/no-useless-coercion"?: Linter.RuleEntry<[]>;
13357
14013
  /**
13358
14014
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
13359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-collection-argument.md
14015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-collection-argument.md
13360
14016
  */
13361
14017
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
14018
+ /**
14019
+ * 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
14021
+ */
14022
+ "unicorn/no-useless-compound-assignment"?: Linter.RuleEntry<[]>;
13362
14023
  /**
13363
14024
  * Disallow useless concatenation of literals.
13364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-concat.md
14025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-concat.md
13365
14026
  */
13366
14027
  "unicorn/no-useless-concat"?: Linter.RuleEntry<[]>;
14028
+ /**
14029
+ * Disallow useless `continue` statements.
14030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-continue.md
14031
+ */
14032
+ "unicorn/no-useless-continue"?: Linter.RuleEntry<[]>;
14033
+ /**
14034
+ * 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
14036
+ */
14037
+ "unicorn/no-useless-delete-check"?: Linter.RuleEntry<[]>;
13367
14038
  /**
13368
14039
  * Disallow `else` after a statement that exits.
13369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-else.md
14040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-else.md
13370
14041
  */
13371
14042
  "unicorn/no-useless-else"?: Linter.RuleEntry<[]>;
13372
14043
  /**
13373
14044
  * Disallow unnecessary `Error.captureStackTrace(…)`.
13374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-error-capture-stack-trace.md
14045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-error-capture-stack-trace.md
13375
14046
  */
13376
14047
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
13377
14048
  /**
13378
14049
  * Disallow useless fallback when spreading in object literals.
13379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-fallback-in-spread.md
14050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-fallback-in-spread.md
13380
14051
  */
13381
14052
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
13382
14053
  /**
13383
14054
  * Disallow unnecessary `.toArray()` on iterators.
13384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-iterator-to-array.md
14055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-iterator-to-array.md
13385
14056
  */
13386
14057
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
13387
14058
  /**
13388
14059
  * Disallow useless array length check.
13389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-length-check.md
14060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-length-check.md
13390
14061
  */
13391
14062
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
14063
+ /**
14064
+ * 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
14066
+ */
14067
+ "unicorn/no-useless-logical-operand"?: Linter.RuleEntry<[]>;
14068
+ /**
14069
+ * 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
14071
+ */
14072
+ "unicorn/no-useless-override"?: Linter.RuleEntry<[]>;
13392
14073
  /**
13393
14074
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
13394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-promise-resolve-reject.md
14075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-promise-resolve-reject.md
13395
14076
  */
13396
14077
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
13397
14078
  /**
13398
14079
  * Disallow simple recursive function calls that can be replaced with a loop.
13399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-recursion.md
14080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-recursion.md
13400
14081
  */
13401
14082
  "unicorn/no-useless-recursion"?: Linter.RuleEntry<[]>;
13402
14083
  /**
13403
14084
  * Disallow unnecessary spread.
13404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-spread.md
14085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-spread.md
13405
14086
  */
13406
14087
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
13407
14088
  /**
13408
14089
  * Disallow useless case in switch statements.
13409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-switch-case.md
14090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-switch-case.md
13410
14091
  */
13411
14092
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
13412
14093
  /**
13413
14094
  * Disallow useless template literal expressions.
13414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-template-literals.md
14095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-template-literals.md
13415
14096
  */
13416
14097
  "unicorn/no-useless-template-literals"?: Linter.RuleEntry<[]>;
13417
14098
  /**
13418
14099
  * Disallow useless `undefined`.
13419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-undefined.md
14100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-undefined.md
13420
14101
  */
13421
14102
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
14103
+ /**
14104
+ * 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
14106
+ */
14107
+ "unicorn/no-xor-as-exponentiation"?: Linter.RuleEntry<[]>;
13422
14108
  /**
13423
14109
  * Disallow number literals with zero fractions or dangling dots.
13424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-zero-fractions.md
14110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-zero-fractions.md
13425
14111
  */
13426
14112
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
13427
14113
  /**
13428
14114
  * Enforce proper case for numeric literals.
13429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/number-literal-case.md
14115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/number-literal-case.md
13430
14116
  */
13431
14117
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
13432
14118
  /**
13433
14119
  * Enforce the style of numeric separators by correctly grouping digits.
13434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/numeric-separators-style.md
14120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/numeric-separators-style.md
13435
14121
  */
13436
14122
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
14123
+ /**
14124
+ * Require assignment operator shorthand where possible.
14125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/operator-assignment.md
14126
+ */
14127
+ "unicorn/operator-assignment"?: Linter.RuleEntry<UnicornOperatorAssignment>;
13437
14128
  /**
13438
14129
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
13439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-add-event-listener.md
14130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener.md
13440
14131
  */
13441
14132
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
13442
14133
  /**
13443
14134
  * Prefer an options object over a boolean in `.addEventListener()`.
13444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-add-event-listener-options.md
14135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener-options.md
13445
14136
  */
13446
14137
  "unicorn/prefer-add-event-listener-options"?: Linter.RuleEntry<[]>;
13447
14138
  /**
13448
14139
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
13449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-find.md
14140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-find.md
13450
14141
  */
13451
14142
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
13452
14143
  /**
13453
14144
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
13454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-flat.md
14145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat.md
13455
14146
  */
13456
14147
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
13457
14148
  /**
13458
14149
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
13459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-flat-map.md
14150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat-map.md
13460
14151
  */
13461
14152
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
14153
+ /**
14154
+ * 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
14156
+ */
14157
+ "unicorn/prefer-array-from-async"?: Linter.RuleEntry<[]>;
13462
14158
  /**
13463
14159
  * Prefer using the `Array.from()` mapping function argument.
13464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-from-map.md
14160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-from-map.md
13465
14161
  */
13466
14162
  "unicorn/prefer-array-from-map"?: Linter.RuleEntry<[]>;
13467
14163
  /**
13468
14164
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
13469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-index-of.md
14165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-index-of.md
13470
14166
  */
13471
14167
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
14168
+ /**
14169
+ * 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
14171
+ */
14172
+ "unicorn/prefer-array-iterable-methods"?: Linter.RuleEntry<[]>;
13472
14173
  /**
13473
14174
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
13474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-last-methods.md
14175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-last-methods.md
13475
14176
  */
13476
14177
  "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
14178
+ /**
14179
+ * 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
14181
+ */
14182
+ "unicorn/prefer-array-slice"?: Linter.RuleEntry<[]>;
13477
14183
  /**
13478
14184
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
13479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-some.md
14185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-some.md
13480
14186
  */
13481
14187
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
13482
14188
  /**
13483
14189
  * Prefer `.at()` method for index access and `String#charAt()`.
13484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-at.md
14190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-at.md
13485
14191
  */
13486
14192
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
13487
14193
  /**
13488
14194
  * Prefer `await` over promise chaining.
13489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-await.md
14195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-await.md
13490
14196
  */
13491
14197
  "unicorn/prefer-await"?: Linter.RuleEntry<[]>;
13492
14198
  /**
13493
14199
  * Prefer `BigInt` literals over the constructor.
13494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-bigint-literals.md
14200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-bigint-literals.md
13495
14201
  */
13496
14202
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
13497
14203
  /**
13498
14204
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
13499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-blob-reading-methods.md
14205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-blob-reading-methods.md
13500
14206
  */
13501
14207
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
14208
+ /**
14209
+ * 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
14211
+ */
14212
+ "unicorn/prefer-boolean-return"?: Linter.RuleEntry<[]>;
13502
14213
  /**
13503
14214
  * Prefer class field declarations over `this` assignments in constructors.
13504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-class-fields.md
14215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-class-fields.md
13505
14216
  */
13506
14217
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
13507
14218
  /**
13508
14219
  * Prefer using `Element#classList.toggle()` to toggle class names.
13509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-classlist-toggle.md
14220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-classlist-toggle.md
13510
14221
  */
13511
14222
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
13512
14223
  /**
13513
14224
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
13514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-code-point.md
14225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-code-point.md
13515
14226
  */
13516
14227
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
14228
+ /**
14229
+ * 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
14231
+ */
14232
+ "unicorn/prefer-continue"?: Linter.RuleEntry<UnicornPreferContinue>;
13517
14233
  /**
13518
14234
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
13519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-date-now.md
14235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-date-now.md
13520
14236
  */
13521
14237
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
13522
14238
  /**
13523
14239
  * Prefer default parameters over reassignment.
13524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-default-parameters.md
14240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-default-parameters.md
13525
14241
  */
13526
14242
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
13527
14243
  /**
13528
14244
  * Prefer direct iteration over default iterator method calls.
13529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-direct-iteration.md
14245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-direct-iteration.md
13530
14246
  */
13531
14247
  "unicorn/prefer-direct-iteration"?: Linter.RuleEntry<[]>;
13532
14248
  /**
13533
14249
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
13534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dispose.md
14250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dispose.md
13535
14251
  */
13536
14252
  "unicorn/prefer-dispose"?: Linter.RuleEntry<[]>;
13537
14253
  /**
13538
14254
  * Prefer `Element#append()` over `Node#appendChild()`.
13539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-append.md
14255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-append.md
13540
14256
  */
13541
14257
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
13542
14258
  /**
13543
14259
  * Renamed to `unicorn/dom-node-dataset`.
13544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#prefer-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
13545
14261
  * @deprecated
13546
14262
  */
13547
14263
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
13548
14264
  /**
13549
14265
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
13550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-html-methods.md
14266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-html-methods.md
13551
14267
  */
13552
14268
  "unicorn/prefer-dom-node-html-methods"?: Linter.RuleEntry<[]>;
13553
14269
  /**
13554
14270
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
13555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-remove.md
14271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-remove.md
13556
14272
  */
13557
14273
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
13558
14274
  /**
13559
14275
  * Prefer `.textContent` over `.innerText`.
13560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-text-content.md
14276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-text-content.md
13561
14277
  */
13562
14278
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
13563
14279
  /**
13564
14280
  * Prefer early returns over full-function conditional wrapping.
13565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-early-return.md
14281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-early-return.md
13566
14282
  */
13567
14283
  "unicorn/prefer-early-return"?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
14284
+ /**
14285
+ * 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
14287
+ */
14288
+ "unicorn/prefer-else-if"?: Linter.RuleEntry<[]>;
13568
14289
  /**
13569
14290
  * Prefer `EventTarget` over `EventEmitter`.
13570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-event-target.md
14291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-event-target.md
13571
14292
  */
13572
14293
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
13573
14294
  /**
13574
14295
  * Prefer `export…from` when re-exporting.
13575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-export-from.md
14296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-export-from.md
13576
14297
  */
13577
14298
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
14299
+ /**
14300
+ * 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
14302
+ */
14303
+ "unicorn/prefer-flat-math-min-max"?: Linter.RuleEntry<[]>;
13578
14304
  /**
13579
14305
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
13580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-get-or-insert-computed.md
14306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-get-or-insert-computed.md
13581
14307
  */
13582
14308
  "unicorn/prefer-get-or-insert-computed"?: Linter.RuleEntry<[]>;
13583
14309
  /**
13584
14310
  * Prefer global numeric constants over `Number` static properties.
13585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-global-number-constants.md
14311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-number-constants.md
13586
14312
  */
13587
14313
  "unicorn/prefer-global-number-constants"?: Linter.RuleEntry<[]>;
13588
14314
  /**
13589
14315
  * Prefer `globalThis` over `window`, `self`, and `global`.
13590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-global-this.md
14316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-this.md
13591
14317
  */
13592
14318
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
14319
+ /**
14320
+ * Prefer `.has()` when checking existence.
14321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-has-check.md
14322
+ */
14323
+ "unicorn/prefer-has-check"?: Linter.RuleEntry<[]>;
14324
+ /**
14325
+ * 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
14327
+ */
14328
+ "unicorn/prefer-hoisting-branch-code"?: Linter.RuleEntry<[]>;
13593
14329
  /**
13594
14330
  * Prefer HTTPS over HTTP.
13595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-https.md
14331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-https.md
13596
14332
  */
13597
14333
  "unicorn/prefer-https"?: Linter.RuleEntry<[]>;
13598
14334
  /**
13599
14335
  * Prefer identifiers over string literals in import and export specifiers.
13600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
14336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
13601
14337
  */
13602
14338
  "unicorn/prefer-identifier-import-export-specifiers"?: Linter.RuleEntry<[]>;
13603
14339
  /**
13604
14340
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
13605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-import-meta-properties.md
14341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-import-meta-properties.md
13606
14342
  */
13607
14343
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
13608
14344
  /**
13609
14345
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
13610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-includes.md
14346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes.md
13611
14347
  */
13612
14348
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
13613
14349
  /**
13614
14350
  * Prefer `.includes()` over repeated equality comparisons.
13615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
13616
14352
  */
13617
14353
  "unicorn/prefer-includes-over-repeated-comparisons"?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
13618
14354
  /**
13619
14355
  * Prefer passing iterables directly to constructors instead of filling empty collections.
13620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterable-in-constructor.md
14356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterable-in-constructor.md
13621
14357
  */
13622
14358
  "unicorn/prefer-iterable-in-constructor"?: Linter.RuleEntry<[]>;
13623
14359
  /**
13624
14360
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
13625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-concat.md
14361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-concat.md
13626
14362
  */
13627
14363
  "unicorn/prefer-iterator-concat"?: Linter.RuleEntry<[]>;
13628
14364
  /**
13629
14365
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
13630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-to-array.md
14366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array.md
13631
14367
  */
13632
14368
  "unicorn/prefer-iterator-to-array"?: Linter.RuleEntry<[]>;
13633
14369
  /**
13634
14370
  * Prefer moving `.toArray()` to the end of iterator helper chains.
13635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-to-array-at-end.md
14371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array-at-end.md
13636
14372
  */
13637
14373
  "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
13638
14374
  /**
13639
14375
  * Renamed to `unicorn/consistent-json-file-read`.
13640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
14376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
13641
14377
  * @deprecated
13642
14378
  */
13643
14379
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
13644
14380
  /**
13645
14381
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
13646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-keyboard-event-key.md
14382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-keyboard-event-key.md
13647
14383
  */
13648
14384
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
13649
14385
  /**
13650
14386
  * Prefer `location.assign()` over assigning to `location.href`.
13651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-location-assign.md
14387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-location-assign.md
13652
14388
  */
13653
14389
  "unicorn/prefer-location-assign"?: Linter.RuleEntry<[]>;
13654
14390
  /**
13655
14391
  * Prefer using a logical operator over a ternary.
13656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-logical-operator-over-ternary.md
14392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-logical-operator-over-ternary.md
13657
14393
  */
13658
14394
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
14395
+ /**
14396
+ * 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
14398
+ */
14399
+ "unicorn/prefer-map-from-entries"?: Linter.RuleEntry<[]>;
13659
14400
  /**
13660
14401
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
13661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-math-abs.md
14402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-abs.md
13662
14403
  */
13663
14404
  "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
14405
+ /**
14406
+ * 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
14408
+ */
14409
+ "unicorn/prefer-math-constants"?: Linter.RuleEntry<[]>;
13664
14410
  /**
13665
14411
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
13666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-math-min-max.md
14412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-min-max.md
13667
14413
  */
13668
14414
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
13669
14415
  /**
13670
14416
  * Prefer `Math.trunc()` for truncating numbers.
13671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-math-trunc.md
14417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-trunc.md
13672
14418
  */
13673
14419
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
13674
14420
  /**
13675
14421
  * Prefer moving ternaries into the minimal varying part of an expression.
13676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-minimal-ternary.md
14422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-minimal-ternary.md
13677
14423
  */
13678
- "unicorn/prefer-minimal-ternary"?: Linter.RuleEntry<[]>;
14424
+ "unicorn/prefer-minimal-ternary"?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
13679
14425
  /**
13680
14426
  * Prefer modern DOM APIs.
13681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-modern-dom-apis.md
14427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-dom-apis.md
13682
14428
  */
13683
14429
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
13684
14430
  /**
13685
14431
  * Prefer modern `Math` APIs over legacy patterns.
13686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-modern-math-apis.md
14432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-math-apis.md
13687
14433
  */
13688
14434
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
13689
14435
  /**
13690
14436
  * Prefer JavaScript modules (ESM) over CommonJS.
13691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-module.md
14437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-module.md
13692
14438
  */
13693
14439
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
13694
14440
  /**
13695
14441
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
13696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-native-coercion-functions.md
14442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-native-coercion-functions.md
13697
14443
  */
13698
14444
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
13699
14445
  /**
13700
14446
  * Prefer negative index over `.length - index` when possible.
13701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-negative-index.md
14447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-negative-index.md
13702
14448
  */
13703
14449
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
13704
14450
  /**
13705
14451
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
13706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-node-protocol.md
14452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-node-protocol.md
13707
14453
  */
13708
14454
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
13709
14455
  /**
13710
14456
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
13711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-number-coercion.md
14457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-coercion.md
13712
14458
  */
13713
14459
  "unicorn/prefer-number-coercion"?: Linter.RuleEntry<[]>;
13714
14460
  /**
13715
14461
  * Prefer `Number.isSafeInteger()` over integer checks.
13716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-number-is-safe-integer.md
14462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-is-safe-integer.md
13717
14463
  */
13718
14464
  "unicorn/prefer-number-is-safe-integer"?: Linter.RuleEntry<[]>;
13719
14465
  /**
13720
14466
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
13721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-number-properties.md
14467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-properties.md
13722
14468
  */
13723
14469
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
13724
14470
  /**
13725
14471
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
13726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-define-properties.md
14472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-define-properties.md
13727
14473
  */
13728
14474
  "unicorn/prefer-object-define-properties"?: Linter.RuleEntry<[]>;
13729
14475
  /**
13730
14476
  * Prefer object destructuring defaults over default object literals with spread.
13731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-destructuring-defaults.md
14477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-destructuring-defaults.md
13732
14478
  */
13733
14479
  "unicorn/prefer-object-destructuring-defaults"?: Linter.RuleEntry<[]>;
13734
14480
  /**
13735
14481
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
13736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-from-entries.md
14482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-from-entries.md
13737
14483
  */
13738
14484
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
13739
14485
  /**
13740
14486
  * Prefer the most specific `Object` iterable method.
13741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-iterable-methods.md
14487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-iterable-methods.md
13742
14488
  */
13743
14489
  "unicorn/prefer-object-iterable-methods"?: Linter.RuleEntry<[]>;
13744
14490
  /**
13745
14491
  * Prefer omitting the `catch` binding parameter.
13746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-optional-catch-binding.md
14492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-optional-catch-binding.md
13747
14493
  */
13748
14494
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
13749
14495
  /**
13750
14496
  * Prefer `Path2D` for repeatedly drawn canvas paths.
13751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-path2d.md
14497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-path2d.md
13752
14498
  */
13753
14499
  "unicorn/prefer-path2d"?: Linter.RuleEntry<[]>;
13754
14500
  /**
13755
14501
  * Prefer private class fields over the underscore-prefix convention.
13756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-private-class-fields.md
14502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-private-class-fields.md
13757
14503
  */
13758
14504
  "unicorn/prefer-private-class-fields"?: Linter.RuleEntry<[]>;
14505
+ /**
14506
+ * 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
14508
+ */
14509
+ "unicorn/prefer-promise-with-resolvers"?: Linter.RuleEntry<[]>;
13759
14510
  /**
13760
14511
  * Prefer borrowing methods from the prototype instead of the instance.
13761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-prototype-methods.md
14512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-prototype-methods.md
13762
14513
  */
13763
14514
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
13764
14515
  /**
13765
14516
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
13766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-query-selector.md
14517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-query-selector.md
13767
14518
  */
13768
14519
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
13769
14520
  /**
13770
14521
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
13771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-queue-microtask.md
14522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-queue-microtask.md
13772
14523
  */
13773
14524
  "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
13774
14525
  /**
13775
14526
  * Prefer `Reflect.apply()` over `Function#apply()`.
13776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-reflect-apply.md
14527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-reflect-apply.md
13777
14528
  */
13778
14529
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
14530
+ /**
14531
+ * 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
14533
+ */
14534
+ "unicorn/prefer-regexp-escape"?: Linter.RuleEntry<[]>;
13779
14535
  /**
13780
14536
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
13781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-regexp-test.md
14537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-regexp-test.md
13782
14538
  */
13783
14539
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
13784
14540
  /**
13785
14541
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
13786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-response-static-json.md
14542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-response-static-json.md
13787
14543
  */
13788
14544
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
13789
14545
  /**
13790
14546
  * Prefer `:scope` when using element query selector methods.
13791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-scoped-selector.md
14547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-scoped-selector.md
13792
14548
  */
13793
14549
  "unicorn/prefer-scoped-selector"?: Linter.RuleEntry<[]>;
13794
14550
  /**
13795
14551
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
13796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-set-has.md
14552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-has.md
13797
14553
  */
13798
14554
  "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
13799
14555
  /**
13800
14556
  * Prefer using `Set#size` instead of `Array#length`.
13801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-set-size.md
14557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-size.md
13802
14558
  */
13803
14559
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
13804
14560
  /**
13805
14561
  * Prefer arrow function properties over methods with a single return.
13806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-short-arrow-method.md
14562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-short-arrow-method.md
13807
14563
  */
13808
14564
  "unicorn/prefer-short-arrow-method"?: Linter.RuleEntry<[]>;
13809
14565
  /**
13810
14566
  * Prefer simple conditions first in logical expressions.
13811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-simple-condition-first.md
14567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-condition-first.md
13812
14568
  */
13813
14569
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
13814
14570
  /**
13815
14571
  * Prefer a simple comparison function for `Array#sort()`.
13816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-simple-sort-comparator.md
14572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-sort-comparator.md
13817
14573
  */
13818
14574
  "unicorn/prefer-simple-sort-comparator"?: Linter.RuleEntry<[]>;
13819
14575
  /**
13820
14576
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
13821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-single-array-predicate.md
14577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-array-predicate.md
13822
14578
  */
13823
14579
  "unicorn/prefer-single-array-predicate"?: Linter.RuleEntry<[]>;
13824
14580
  /**
13825
14581
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-single-call.md
14582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-call.md
13827
14583
  */
13828
14584
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
13829
14585
  /**
13830
14586
  * Prefer a single object destructuring declaration per local const source.
13831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-single-object-destructuring.md
14587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-object-destructuring.md
13832
14588
  */
13833
14589
  "unicorn/prefer-single-object-destructuring"?: Linter.RuleEntry<[]>;
14590
+ /**
14591
+ * 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
14593
+ */
14594
+ "unicorn/prefer-single-replace"?: Linter.RuleEntry<[]>;
13834
14595
  /**
13835
14596
  * Prefer declaring variables in the smallest possible scope.
13836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-smaller-scope.md
14597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-smaller-scope.md
13837
14598
  */
13838
14599
  "unicorn/prefer-smaller-scope"?: Linter.RuleEntry<[]>;
13839
14600
  /**
13840
14601
  * Prefer `String#split()` with a limit.
13841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-split-limit.md
14602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-split-limit.md
13842
14603
  */
13843
14604
  "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
13844
14605
  /**
13845
14606
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
13846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-spread.md
14607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-spread.md
13847
14608
  */
13848
14609
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
13849
14610
  /**
13850
14611
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
13851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-match-all.md
14612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-match-all.md
13852
14613
  */
13853
14614
  "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
13854
14615
  /**
13855
14616
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
13856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-pad-start-end.md
14617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-pad-start-end.md
13857
14618
  */
13858
14619
  "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
13859
14620
  /**
13860
14621
  * Prefer using the `String.raw` tag to avoid escaping `\`.
13861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-raw.md
14622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-raw.md
13862
14623
  */
13863
14624
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
13864
14625
  /**
13865
14626
  * Prefer `String#repeat()` for repeated whitespace.
13866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-repeat.md
14627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-repeat.md
13867
14628
  */
13868
14629
  "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
13869
14630
  /**
13870
14631
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
13871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-replace-all.md
14632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-replace-all.md
13872
14633
  */
13873
14634
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
13874
14635
  /**
13875
14636
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
13876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-slice.md
14637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-slice.md
13877
14638
  */
13878
14639
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
13879
14640
  /**
13880
14641
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
13881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-starts-ends-with.md
14642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-starts-ends-with.md
13882
14643
  */
13883
14644
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
13884
14645
  /**
13885
14646
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
13886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-trim-start-end.md
14647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-trim-start-end.md
13887
14648
  */
13888
14649
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
13889
14650
  /**
13890
14651
  * Prefer using `structuredClone` to create a deep clone.
13891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-structured-clone.md
14652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-structured-clone.md
13892
14653
  */
13893
14654
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13894
14655
  /**
13895
14656
  * Prefer `switch` over multiple `else-if`.
13896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-switch.md
14657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-switch.md
13897
14658
  */
13898
14659
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
13899
14660
  /**
13900
14661
  * Prefer `Temporal` over `Date`.
13901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-temporal.md
14662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-temporal.md
13902
14663
  */
13903
14664
  "unicorn/prefer-temporal"?: Linter.RuleEntry<UnicornPreferTemporal>;
13904
14665
  /**
13905
- * Prefer ternary expressions over simple `if-else` statements that return or assign values.
13906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-ternary.md
14666
+ * 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
13907
14668
  */
13908
14669
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
13909
14670
  /**
13910
14671
  * Prefer top-level await over top-level promises and async function calls.
13911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-top-level-await.md
14672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-top-level-await.md
13912
14673
  */
13913
14674
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
13914
14675
  /**
13915
14676
  * Enforce throwing `TypeError` in type checking conditions.
13916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-type-error.md
14677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-type-error.md
13917
14678
  */
13918
14679
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
13919
14680
  /**
13920
- * Require type literals to be last in union and intersection types.
13921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-type-literal-last.md
14681
+ * 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
13922
14683
  */
13923
14684
  "unicorn/prefer-type-literal-last"?: Linter.RuleEntry<[]>;
13924
14685
  /**
13925
14686
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
13926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-uint8array-base64.md
14687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-uint8array-base64.md
13927
14688
  */
13928
14689
  "unicorn/prefer-uint8array-base64"?: Linter.RuleEntry<[]>;
14690
+ /**
14691
+ * 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
14693
+ */
14694
+ "unicorn/prefer-unary-minus"?: Linter.RuleEntry<[]>;
13929
14695
  /**
13930
14696
  * Prefer Unicode code point escapes over legacy escape sequences.
13931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-unicode-code-point-escapes.md
14697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-unicode-code-point-escapes.md
13932
14698
  */
13933
14699
  "unicorn/prefer-unicode-code-point-escapes"?: Linter.RuleEntry<[]>;
14700
+ /**
14701
+ * 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
14703
+ */
14704
+ "unicorn/prefer-url-can-parse"?: Linter.RuleEntry<[]>;
13934
14705
  /**
13935
14706
  * Prefer `URL#href` over stringifying a `URL`.
13936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-url-href.md
14707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-url-href.md
13937
14708
  */
13938
14709
  "unicorn/prefer-url-href"?: Linter.RuleEntry<[]>;
13939
14710
  /**
13940
- * Prevent abbreviations.
13941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prevent-abbreviations.md
14711
+ * 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
13942
14713
  */
13943
- "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
14714
+ "unicorn/prefer-while-loop-condition"?: Linter.RuleEntry<[]>;
14715
+ /**
14716
+ * 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
14718
+ * @deprecated
14719
+ */
14720
+ "unicorn/prevent-abbreviations"?: Linter.RuleEntry<[]>;
13944
14721
  /**
13945
14722
  * Enforce consistent relative URL style.
13946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/relative-url-style.md
14723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/relative-url-style.md
13947
14724
  */
13948
14725
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13949
14726
  /**
13950
14727
  * Enforce using the separator argument with `Array#join()`.
13951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-array-join-separator.md
14728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-join-separator.md
13952
14729
  */
13953
14730
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
13954
14731
  /**
13955
14732
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
13956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-array-sort-compare.md
14733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-sort-compare.md
13957
14734
  */
13958
14735
  "unicorn/require-array-sort-compare"?: Linter.RuleEntry<[]>;
13959
14736
  /**
13960
14737
  * Require `CSS.escape()` for interpolated values in CSS selectors.
13961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-css-escape.md
14738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-css-escape.md
13962
14739
  */
13963
14740
  "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
13964
14741
  /**
13965
14742
  * Require non-empty module attributes for imports and exports
13966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-module-attributes.md
14743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-attributes.md
13967
14744
  */
13968
14745
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
13969
14746
  /**
13970
14747
  * Require non-empty specifier list in import and export statements.
13971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-module-specifiers.md
14748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-specifiers.md
13972
14749
  */
13973
14750
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
13974
14751
  /**
13975
14752
  * Enforce using the digits argument with `Number#toFixed()`.
13976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-number-to-fixed-digits-argument.md
14753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13977
14754
  */
13978
14755
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
13979
14756
  /**
13980
14757
  * Require passive event listeners for high-frequency events.
13981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-passive-events.md
14758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-passive-events.md
13982
14759
  */
13983
14760
  "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
13984
14761
  /**
13985
14762
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
13986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-post-message-target-origin.md
14763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-post-message-target-origin.md
13987
14764
  */
13988
14765
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
13989
14766
  /**
13990
14767
  * Require boolean-returning Proxy traps to return booleans.
13991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-proxy-trap-boolean-return.md
14768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-proxy-trap-boolean-return.md
13992
14769
  */
13993
14770
  "unicorn/require-proxy-trap-boolean-return"?: Linter.RuleEntry<[]>;
13994
14771
  /**
13995
14772
  * Enforce better string content.
13996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/string-content.md
14773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/string-content.md
13997
14774
  */
13998
14775
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
13999
14776
  /**
14000
14777
  * Enforce consistent brace style for `case` clauses.
14001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/switch-case-braces.md
14778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-braces.md
14002
14779
  */
14003
14780
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
14004
14781
  /**
14005
14782
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
14006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/switch-case-break-position.md
14783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-break-position.md
14007
14784
  */
14008
14785
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
14009
14786
  /**
14010
14787
  * Fix whitespace-insensitive template indentation.
14011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/template-indent.md
14788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/template-indent.md
14012
14789
  */
14013
14790
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
14014
14791
  /**
14015
14792
  * Enforce consistent case for text encoding identifiers.
14016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/text-encoding-identifier-case.md
14793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/text-encoding-identifier-case.md
14017
14794
  */
14018
14795
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
14019
14796
  /**
14020
14797
  * Require `new` when creating an error.
14021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/throw-new-error.md
14798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/throw-new-error.md
14022
14799
  */
14023
14800
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
14024
14801
  /**
14025
14802
  * Limit the complexity of `try` blocks.
14026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/try-complexity.md
14803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/try-complexity.md
14027
14804
  */
14028
14805
  "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
14029
14806
  }
@@ -14038,6 +14815,7 @@ type UnicornClassReferenceInStaticMethods = [] | [{
14038
14815
  preferSuper?: boolean;
14039
14816
  }]; // ----- unicorn/comment-content -----
14040
14817
  type UnicornCommentContent = [] | [{
14818
+ checkUniformCase?: boolean;
14041
14819
  extendDefaultReplacements?: boolean;
14042
14820
  replacements?: {
14043
14821
  [k: string]: (false | string | {
@@ -14045,9 +14823,15 @@ type UnicornCommentContent = [] | [{
14045
14823
  caseSensitive?: boolean;
14046
14824
  }) | undefined;
14047
14825
  };
14826
+ }]; // ----- unicorn/consistent-boolean-name -----
14827
+ type UnicornConsistentBooleanName = [] | [{
14828
+ checkProperties?: boolean;
14829
+ prefixes?: {
14830
+ [k: string]: boolean | undefined;
14831
+ };
14048
14832
  }]; // ----- unicorn/consistent-class-member-order -----
14049
14833
  type UnicornConsistentClassMemberOrder = [] | [{
14050
- order?: [("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method")];
14834
+ 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")];
14051
14835
  }]; // ----- unicorn/consistent-compound-words -----
14052
14836
  type UnicornConsistentCompoundWords = [] | [{
14053
14837
  checkProperties?: boolean;
@@ -14064,7 +14848,8 @@ interface _UnicornConsistentCompoundWords_Replacements {
14064
14848
  }
14065
14849
  interface _UnicornConsistentCompoundWords_TrueObject {
14066
14850
  [k: string]: true | undefined;
14067
- } // ----- unicorn/consistent-export-decorator-position -----
14851
+ } // ----- unicorn/consistent-conditional-object-spread -----
14852
+ type UnicornConsistentConditionalObjectSpread = [] | ["logical" | "ternary"]; // ----- unicorn/consistent-export-decorator-position -----
14068
14853
  type UnicornConsistentExportDecoratorPosition = [] | ["above" | "before" | "after"]; // ----- unicorn/consistent-function-scoping -----
14069
14854
  type UnicornConsistentFunctionScoping = [] | [{
14070
14855
  checkArrowFunctions?: boolean;
@@ -14078,7 +14863,11 @@ type UnicornConsistentFunctionStyle = [] | [{
14078
14863
  reassignedVariables?: "function-expression" | "arrow-function" | "ignore";
14079
14864
  typedVariables?: "function-expression" | "arrow-function" | "ignore";
14080
14865
  }]; // ----- unicorn/consistent-json-file-read -----
14081
- type UnicornConsistentJsonFileRead = [] | ["string" | "buffer"]; // ----- unicorn/dom-node-dataset -----
14866
+ type UnicornConsistentJsonFileRead = [] | ["string" | "buffer"]; // ----- unicorn/default-export-style -----
14867
+ type UnicornDefaultExportStyle = [] | [{
14868
+ functions?: "inline" | "separate" | "ignore";
14869
+ classes?: "inline" | "separate" | "ignore";
14870
+ }]; // ----- unicorn/dom-node-dataset -----
14082
14871
  type UnicornDomNodeDataset = [] | [{
14083
14872
  preferAttributes?: boolean;
14084
14873
  }]; // ----- unicorn/escape-case -----
@@ -14141,10 +14930,36 @@ type UnicornIsolatedFunctions = [] | [{
14141
14930
  functions?: string[];
14142
14931
  selectors?: string[];
14143
14932
  comments?: string[];
14144
- }]; // ----- unicorn/max-nested-calls -----
14933
+ }]; // ----- unicorn/logical-assignment-operators -----
14934
+ type UnicornLogicalAssignmentOperators = ([] | ["always"] | ["always", {
14935
+ enforceForIfStatements?: boolean;
14936
+ }] | ["never"]) & unknown[]; // ----- unicorn/max-nested-calls -----
14145
14937
  type UnicornMaxNestedCalls = [] | [{
14146
14938
  max?: number;
14147
- }]; // ----- unicorn/no-array-callback-reference -----
14939
+ }]; // ----- unicorn/name-replacements -----
14940
+ type UnicornNameReplacements = [] | [{
14941
+ checkProperties?: boolean;
14942
+ checkVariables?: boolean;
14943
+ checkDefaultAndNamespaceImports?: boolean | string;
14944
+ checkShorthandImports?: boolean | string;
14945
+ checkShorthandProperties?: boolean;
14946
+ checkFilenames?: boolean;
14947
+ extendDefaultReplacements?: boolean;
14948
+ replacements?: _UnicornNameReplacements_NameReplacements;
14949
+ extendDefaultAllowList?: boolean;
14950
+ allowList?: _UnicornNameReplacements_BooleanObject;
14951
+ ignore?: unknown[];
14952
+ }];
14953
+ type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
14954
+ interface _UnicornNameReplacements_NameReplacements {
14955
+ [k: string]: _UnicornNameReplacementsReplacements | undefined;
14956
+ }
14957
+ interface _UnicornNameReplacements_BooleanObject {
14958
+ [k: string]: boolean | undefined;
14959
+ }
14960
+ interface _UnicornNameReplacements_BooleanObject {
14961
+ [k: string]: boolean | undefined;
14962
+ } // ----- unicorn/no-array-callback-reference -----
14148
14963
  type UnicornNoArrayCallbackReference = [] | [{
14149
14964
  ignore?: string[];
14150
14965
  }]; // ----- unicorn/no-array-reduce -----
@@ -14165,6 +14980,12 @@ type UnicornNoInstanceofBuiltins = [] | [{
14165
14980
  strategy?: "loose" | "strict";
14166
14981
  include?: string[];
14167
14982
  exclude?: string[];
14983
+ }]; // ----- unicorn/no-invalid-argument-count -----
14984
+ type UnicornNoInvalidArgumentCount = [] | [{
14985
+ [k: string]: (number | [number, ...number[]] | {
14986
+ min?: number;
14987
+ max?: number;
14988
+ }) | undefined;
14168
14989
  }]; // ----- unicorn/no-keyword-prefix -----
14169
14990
  type UnicornNoKeywordPrefix = [] | [{
14170
14991
  disallowedPrefixes?: [] | [string];
@@ -14173,6 +14994,9 @@ type UnicornNoKeywordPrefix = [] | [{
14173
14994
  }]; // ----- unicorn/no-negated-comparison -----
14174
14995
  type UnicornNoNegatedComparison = [] | [{
14175
14996
  checkLogicalExpressions?: boolean;
14997
+ }]; // ----- unicorn/no-non-function-verb-prefix -----
14998
+ type UnicornNoNonFunctionVerbPrefix = [] | [{
14999
+ verbs?: string[];
14176
15000
  }]; // ----- unicorn/no-null -----
14177
15001
  type UnicornNoNull = [] | [{
14178
15002
  checkArguments?: boolean;
@@ -14219,7 +15043,8 @@ type UnicornNumericSeparatorsStyle = [] | [{
14219
15043
  fractionGroupLength?: number;
14220
15044
  };
14221
15045
  onlyIfContainsSeparator?: boolean;
14222
- }]; // ----- unicorn/prefer-add-event-listener -----
15046
+ }]; // ----- unicorn/operator-assignment -----
15047
+ type UnicornOperatorAssignment = [] | ["always" | "never"]; // ----- unicorn/prefer-add-event-listener -----
14223
15048
  type UnicornPreferAddEventListener = [] | [{
14224
15049
  excludedPackages?: string[];
14225
15050
  }]; // ----- unicorn/prefer-array-find -----
@@ -14232,6 +15057,9 @@ type UnicornPreferArrayFlat = [] | [{
14232
15057
  type UnicornPreferAt = [] | [{
14233
15058
  getLastElementFunctions?: unknown[];
14234
15059
  checkAllIndexAccess?: boolean;
15060
+ }]; // ----- unicorn/prefer-continue -----
15061
+ type UnicornPreferContinue = [] | [{
15062
+ maximumStatements?: number;
14235
15063
  }]; // ----- unicorn/prefer-early-return -----
14236
15064
  type UnicornPreferEarlyReturn = [] | [{
14237
15065
  maximumStatements?: number;
@@ -14241,6 +15069,9 @@ type UnicornPreferExportFrom = [] | [{
14241
15069
  }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
14242
15070
  type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
14243
15071
  minimumComparisons?: number;
15072
+ }]; // ----- unicorn/prefer-minimal-ternary -----
15073
+ type UnicornPreferMinimalTernary = [] | [{
15074
+ checkComputedMemberAccess?: boolean;
14244
15075
  }]; // ----- unicorn/prefer-number-properties -----
14245
15076
  type UnicornPreferNumberProperties = [] | [{
14246
15077
  checkInfinity?: boolean;
@@ -14277,30 +15108,7 @@ type UnicornPreferTemporal = [] | [{
14277
15108
  checkReferences?: boolean;
14278
15109
  checkMethods?: boolean;
14279
15110
  }]; // ----- unicorn/prefer-ternary -----
14280
- type UnicornPreferTernary = [] | ["always" | "only-single-line"]; // ----- unicorn/prevent-abbreviations -----
14281
- type UnicornPreventAbbreviations = [] | [{
14282
- checkProperties?: boolean;
14283
- checkVariables?: boolean;
14284
- checkDefaultAndNamespaceImports?: boolean | string;
14285
- checkShorthandImports?: boolean | string;
14286
- checkShorthandProperties?: boolean;
14287
- checkFilenames?: boolean;
14288
- extendDefaultReplacements?: boolean;
14289
- replacements?: _UnicornPreventAbbreviations_Abbreviations;
14290
- extendDefaultAllowList?: boolean;
14291
- allowList?: _UnicornPreventAbbreviations_BooleanObject;
14292
- ignore?: unknown[];
14293
- }];
14294
- type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined;
14295
- interface _UnicornPreventAbbreviations_Abbreviations {
14296
- [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
14297
- }
14298
- interface _UnicornPreventAbbreviations_BooleanObject {
14299
- [k: string]: boolean | undefined;
14300
- }
14301
- interface _UnicornPreventAbbreviations_BooleanObject {
14302
- [k: string]: boolean | undefined;
14303
- } // ----- unicorn/relative-url-style -----
15111
+ type UnicornPreferTernary = [] | ["always" | "only-single-line"]; // ----- unicorn/relative-url-style -----
14304
15112
  type UnicornRelativeUrlStyle = [] | ["never" | "always"]; // ----- unicorn/require-css-escape -----
14305
15113
  type UnicornRequireCssEscape = [] | [{
14306
15114
  checkAllSelectors?: boolean;
@@ -15177,7 +15985,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
15177
15985
  }];
15178
15986
  //#endregion
15179
15987
  //#region src/_generated/rule-options.d.ts
15180
- type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & EslintReactRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
15988
+ 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;
15181
15989
  //#endregion
15182
15990
  //#region src/types.d.ts
15183
15991
  type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
@@ -15413,6 +16221,11 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
15413
16221
  typeAware?: boolean;
15414
16222
  react?: boolean;
15415
16223
  reactRefresh?: boolean;
16224
+ /**
16225
+ * Enable regexp plugin
16226
+ * @default true
16227
+ */
16228
+ regexp?: boolean;
15416
16229
  /**
15417
16230
  * Enable JSX related rules.
15418
16231
  *
@@ -15902,5 +16715,6 @@ declare function turnOffRules(configs: Config[], off: string[]): Config[];
15902
16715
  declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, level: Linter.RuleSeverity): Linter.RuleEntry<any>;
15903
16716
  declare function error2warn<T extends Config>(configs: T[]): T[];
15904
16717
  declare function warn2error<T extends Config>(configs: T[]): T[];
16718
+ declare function replaceTypescriptEslintPrefix<T>(items: Record<string, T>, tsPrefix: string): void;
15905
16719
  //#endregion
15906
- 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, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
16720
+ 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, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginRegexp, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, replaceTypescriptEslintPrefix, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };