@2digits/eslint-config 2.7.7 → 2.9.0

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
@@ -18,6 +18,61 @@ interface RuleOptions {
18
18
  * @see https://eslint.org/docs/latest/rules/accessor-pairs
19
19
  */
20
20
  'accessor-pairs'?: Linter.RuleEntry<AccessorPairs>
21
+ /**
22
+ * Having line breaks styles to object, array and named imports
23
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
24
+ */
25
+ 'antfu/consistent-chaining'?: Linter.RuleEntry<AntfuConsistentChaining>
26
+ /**
27
+ * Having line breaks styles to object, array and named imports
28
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
29
+ */
30
+ 'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>
31
+ /**
32
+ * Enforce Anthony's style of curly bracket
33
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
34
+ */
35
+ 'antfu/curly'?: Linter.RuleEntry<[]>
36
+ /**
37
+ * Newline after if
38
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
39
+ */
40
+ 'antfu/if-newline'?: Linter.RuleEntry<[]>
41
+ /**
42
+ * Fix duplication in imports
43
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
44
+ */
45
+ 'antfu/import-dedupe'?: Linter.RuleEntry<[]>
46
+ /**
47
+ * Enforce consistent indentation in `unindent` template tag
48
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
49
+ */
50
+ 'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>
51
+ /**
52
+ * Prevent importing modules in `dist` folder
53
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.test.ts
54
+ */
55
+ 'antfu/no-import-dist'?: Linter.RuleEntry<[]>
56
+ /**
57
+ * Prevent importing modules in `node_modules` folder by relative or absolute path
58
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
59
+ */
60
+ 'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>
61
+ /**
62
+ * Prevent using top-level await
63
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
64
+ */
65
+ 'antfu/no-top-level-await'?: Linter.RuleEntry<[]>
66
+ /**
67
+ * Do not use `exports =`
68
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
69
+ */
70
+ 'antfu/no-ts-export-equal'?: Linter.RuleEntry<[]>
71
+ /**
72
+ * Enforce top-level functions to be declared with function keyword
73
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
74
+ */
75
+ 'antfu/top-level-function'?: Linter.RuleEntry<[]>
21
76
  /**
22
77
  * Enforce linebreaks after opening and before closing array brackets
23
78
  * @see https://eslint.org/docs/latest/rules/array-bracket-newline
@@ -3313,6 +3368,416 @@ Backward pagination arguments
3313
3368
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/void-dom-elements-no-children.md
3314
3369
  */
3315
3370
  'react/void-dom-elements-no-children'?: Linter.RuleEntry<[]>
3371
+ /**
3372
+ * disallow confusing quantifiers
3373
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
3374
+ */
3375
+ 'regexp/confusing-quantifier'?: Linter.RuleEntry<[]>
3376
+ /**
3377
+ * enforce consistent escaping of control characters
3378
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
3379
+ */
3380
+ 'regexp/control-character-escape'?: Linter.RuleEntry<[]>
3381
+ /**
3382
+ * enforce single grapheme in string literal
3383
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
3384
+ */
3385
+ 'regexp/grapheme-string-literal'?: Linter.RuleEntry<[]>
3386
+ /**
3387
+ * enforce consistent usage of hexadecimal escape
3388
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
3389
+ */
3390
+ 'regexp/hexadecimal-escape'?: Linter.RuleEntry<RegexpHexadecimalEscape>
3391
+ /**
3392
+ * enforce into your favorite case
3393
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
3394
+ */
3395
+ 'regexp/letter-case'?: Linter.RuleEntry<RegexpLetterCase>
3396
+ /**
3397
+ * enforce match any character style
3398
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
3399
+ */
3400
+ 'regexp/match-any'?: Linter.RuleEntry<RegexpMatchAny>
3401
+ /**
3402
+ * enforce use of escapes on negation
3403
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
3404
+ */
3405
+ 'regexp/negation'?: Linter.RuleEntry<[]>
3406
+ /**
3407
+ * disallow elements that contradict assertions
3408
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
3409
+ */
3410
+ 'regexp/no-contradiction-with-assertion'?: Linter.RuleEntry<[]>
3411
+ /**
3412
+ * disallow control characters
3413
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
3414
+ */
3415
+ 'regexp/no-control-character'?: Linter.RuleEntry<[]>
3416
+ /**
3417
+ * disallow duplicate characters in the RegExp character class
3418
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
3419
+ */
3420
+ 'regexp/no-dupe-characters-character-class'?: Linter.RuleEntry<[]>
3421
+ /**
3422
+ * disallow duplicate disjunctions
3423
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
3424
+ */
3425
+ 'regexp/no-dupe-disjunctions'?: Linter.RuleEntry<RegexpNoDupeDisjunctions>
3426
+ /**
3427
+ * disallow alternatives without elements
3428
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
3429
+ */
3430
+ 'regexp/no-empty-alternative'?: Linter.RuleEntry<[]>
3431
+ /**
3432
+ * disallow capturing group that captures empty.
3433
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
3434
+ */
3435
+ 'regexp/no-empty-capturing-group'?: Linter.RuleEntry<[]>
3436
+ /**
3437
+ * disallow character classes that match no characters
3438
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
3439
+ */
3440
+ 'regexp/no-empty-character-class'?: Linter.RuleEntry<[]>
3441
+ /**
3442
+ * disallow empty group
3443
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
3444
+ */
3445
+ 'regexp/no-empty-group'?: Linter.RuleEntry<[]>
3446
+ /**
3447
+ * disallow empty lookahead assertion or empty lookbehind assertion
3448
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
3449
+ */
3450
+ 'regexp/no-empty-lookarounds-assertion'?: Linter.RuleEntry<[]>
3451
+ /**
3452
+ * disallow empty string literals in character classes
3453
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
3454
+ */
3455
+ 'regexp/no-empty-string-literal'?: Linter.RuleEntry<[]>
3456
+ /**
3457
+ * disallow escape backspace (`[\b]`)
3458
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
3459
+ */
3460
+ 'regexp/no-escape-backspace'?: Linter.RuleEntry<[]>
3461
+ /**
3462
+ * disallow unnecessary nested lookaround assertions
3463
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
3464
+ */
3465
+ 'regexp/no-extra-lookaround-assertions'?: Linter.RuleEntry<[]>
3466
+ /**
3467
+ * disallow invalid regular expression strings in `RegExp` constructors
3468
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
3469
+ */
3470
+ 'regexp/no-invalid-regexp'?: Linter.RuleEntry<[]>
3471
+ /**
3472
+ * disallow invisible raw character
3473
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
3474
+ */
3475
+ 'regexp/no-invisible-character'?: Linter.RuleEntry<[]>
3476
+ /**
3477
+ * disallow lazy quantifiers at the end of an expression
3478
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
3479
+ */
3480
+ 'regexp/no-lazy-ends'?: Linter.RuleEntry<RegexpNoLazyEnds>
3481
+ /**
3482
+ * disallow legacy RegExp features
3483
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
3484
+ */
3485
+ 'regexp/no-legacy-features'?: Linter.RuleEntry<RegexpNoLegacyFeatures>
3486
+ /**
3487
+ * disallow capturing groups that do not behave as one would expect
3488
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
3489
+ */
3490
+ 'regexp/no-misleading-capturing-group'?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>
3491
+ /**
3492
+ * disallow multi-code-point characters in character classes and quantifiers
3493
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
3494
+ */
3495
+ 'regexp/no-misleading-unicode-character'?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>
3496
+ /**
3497
+ * disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
3498
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
3499
+ */
3500
+ 'regexp/no-missing-g-flag'?: Linter.RuleEntry<RegexpNoMissingGFlag>
3501
+ /**
3502
+ * disallow non-standard flags
3503
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
3504
+ */
3505
+ 'regexp/no-non-standard-flag'?: Linter.RuleEntry<[]>
3506
+ /**
3507
+ * disallow obscure character ranges
3508
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
3509
+ */
3510
+ 'regexp/no-obscure-range'?: Linter.RuleEntry<RegexpNoObscureRange>
3511
+ /**
3512
+ * disallow octal escape sequence
3513
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
3514
+ */
3515
+ 'regexp/no-octal'?: Linter.RuleEntry<[]>
3516
+ /**
3517
+ * disallow optional assertions
3518
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
3519
+ */
3520
+ 'regexp/no-optional-assertion'?: Linter.RuleEntry<[]>
3521
+ /**
3522
+ * disallow backreferences that reference a group that might not be matched
3523
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
3524
+ */
3525
+ 'regexp/no-potentially-useless-backreference'?: Linter.RuleEntry<[]>
3526
+ /**
3527
+ * disallow standalone backslashes (`\`)
3528
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
3529
+ */
3530
+ 'regexp/no-standalone-backslash'?: Linter.RuleEntry<[]>
3531
+ /**
3532
+ * disallow exponential and polynomial backtracking
3533
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
3534
+ */
3535
+ 'regexp/no-super-linear-backtracking'?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>
3536
+ /**
3537
+ * disallow quantifiers that cause quadratic moves
3538
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
3539
+ */
3540
+ 'regexp/no-super-linear-move'?: Linter.RuleEntry<RegexpNoSuperLinearMove>
3541
+ /**
3542
+ * disallow trivially nested assertions
3543
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
3544
+ */
3545
+ 'regexp/no-trivially-nested-assertion'?: Linter.RuleEntry<[]>
3546
+ /**
3547
+ * disallow nested quantifiers that can be rewritten as one quantifier
3548
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
3549
+ */
3550
+ 'regexp/no-trivially-nested-quantifier'?: Linter.RuleEntry<[]>
3551
+ /**
3552
+ * disallow unused capturing group
3553
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
3554
+ */
3555
+ 'regexp/no-unused-capturing-group'?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>
3556
+ /**
3557
+ * disallow assertions that are known to always accept (or reject)
3558
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
3559
+ */
3560
+ 'regexp/no-useless-assertions'?: Linter.RuleEntry<[]>
3561
+ /**
3562
+ * disallow useless backreferences in regular expressions
3563
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
3564
+ */
3565
+ 'regexp/no-useless-backreference'?: Linter.RuleEntry<[]>
3566
+ /**
3567
+ * disallow character class with one character
3568
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
3569
+ */
3570
+ 'regexp/no-useless-character-class'?: Linter.RuleEntry<RegexpNoUselessCharacterClass>
3571
+ /**
3572
+ * disallow useless `$` replacements in replacement string
3573
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
3574
+ */
3575
+ 'regexp/no-useless-dollar-replacements'?: Linter.RuleEntry<[]>
3576
+ /**
3577
+ * disallow unnecessary escape characters in RegExp
3578
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
3579
+ */
3580
+ 'regexp/no-useless-escape'?: Linter.RuleEntry<[]>
3581
+ /**
3582
+ * disallow unnecessary regex flags
3583
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
3584
+ */
3585
+ 'regexp/no-useless-flag'?: Linter.RuleEntry<RegexpNoUselessFlag>
3586
+ /**
3587
+ * disallow unnecessarily non-greedy quantifiers
3588
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
3589
+ */
3590
+ 'regexp/no-useless-lazy'?: Linter.RuleEntry<[]>
3591
+ /**
3592
+ * disallow unnecessary non-capturing group
3593
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
3594
+ */
3595
+ 'regexp/no-useless-non-capturing-group'?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>
3596
+ /**
3597
+ * disallow quantifiers that can be removed
3598
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
3599
+ */
3600
+ 'regexp/no-useless-quantifier'?: Linter.RuleEntry<[]>
3601
+ /**
3602
+ * disallow unnecessary character ranges
3603
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
3604
+ */
3605
+ 'regexp/no-useless-range'?: Linter.RuleEntry<[]>
3606
+ /**
3607
+ * disallow unnecessary elements in expression character classes
3608
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
3609
+ */
3610
+ 'regexp/no-useless-set-operand'?: Linter.RuleEntry<[]>
3611
+ /**
3612
+ * disallow string disjunction of single characters in `\q{...}`
3613
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
3614
+ */
3615
+ 'regexp/no-useless-string-literal'?: Linter.RuleEntry<[]>
3616
+ /**
3617
+ * disallow unnecessary `{n,m}` quantifier
3618
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
3619
+ */
3620
+ 'regexp/no-useless-two-nums-quantifier'?: Linter.RuleEntry<[]>
3621
+ /**
3622
+ * disallow quantifiers with a maximum of zero
3623
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
3624
+ */
3625
+ 'regexp/no-zero-quantifier'?: Linter.RuleEntry<[]>
3626
+ /**
3627
+ * disallow the alternatives of lookarounds that end with a non-constant quantifier
3628
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
3629
+ */
3630
+ 'regexp/optimal-lookaround-quantifier'?: Linter.RuleEntry<[]>
3631
+ /**
3632
+ * require optimal quantifiers for concatenated quantifiers
3633
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
3634
+ */
3635
+ 'regexp/optimal-quantifier-concatenation'?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>
3636
+ /**
3637
+ * enforce using character class
3638
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
3639
+ */
3640
+ 'regexp/prefer-character-class'?: Linter.RuleEntry<RegexpPreferCharacterClass>
3641
+ /**
3642
+ * enforce using `\d`
3643
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
3644
+ */
3645
+ 'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>
3646
+ /**
3647
+ * enforces escape of replacement `$` character (`$$`).
3648
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
3649
+ */
3650
+ 'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>
3651
+ /**
3652
+ * prefer lookarounds over capturing group that do not replace
3653
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
3654
+ */
3655
+ 'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>
3656
+ /**
3657
+ * enforce using named backreferences
3658
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
3659
+ */
3660
+ 'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>
3661
+ /**
3662
+ * enforce using named capture groups
3663
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
3664
+ */
3665
+ 'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>
3666
+ /**
3667
+ * enforce using named replacement
3668
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
3669
+ */
3670
+ 'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>
3671
+ /**
3672
+ * enforce using `+` quantifier
3673
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
3674
+ */
3675
+ 'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>
3676
+ /**
3677
+ * prefer predefined assertion over equivalent lookarounds
3678
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
3679
+ */
3680
+ 'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>
3681
+ /**
3682
+ * enforce using quantifier
3683
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
3684
+ */
3685
+ 'regexp/prefer-quantifier'?: Linter.RuleEntry<[]>
3686
+ /**
3687
+ * enforce using `?` quantifier
3688
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
3689
+ */
3690
+ 'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>
3691
+ /**
3692
+ * enforce using character class range
3693
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
3694
+ */
3695
+ 'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>
3696
+ /**
3697
+ * enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
3698
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
3699
+ */
3700
+ 'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>
3701
+ /**
3702
+ * enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
3703
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
3704
+ */
3705
+ 'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>
3706
+ /**
3707
+ * enforce using result array `groups`
3708
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
3709
+ */
3710
+ 'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>
3711
+ /**
3712
+ * prefer character class set operations instead of lookarounds
3713
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
3714
+ */
3715
+ 'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>
3716
+ /**
3717
+ * enforce using `*` quantifier
3718
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
3719
+ */
3720
+ 'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>
3721
+ /**
3722
+ * enforce use of unicode codepoint escapes
3723
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
3724
+ */
3725
+ 'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>
3726
+ /**
3727
+ * enforce using `\w`
3728
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
3729
+ */
3730
+ 'regexp/prefer-w'?: Linter.RuleEntry<[]>
3731
+ /**
3732
+ * enforce the use of the `u` flag
3733
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
3734
+ */
3735
+ 'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>
3736
+ /**
3737
+ * enforce the use of the `v` flag
3738
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
3739
+ */
3740
+ 'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>
3741
+ /**
3742
+ * require simplify set operations
3743
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
3744
+ */
3745
+ 'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>
3746
+ /**
3747
+ * sort alternatives if order doesn't matter
3748
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
3749
+ */
3750
+ 'regexp/sort-alternatives'?: Linter.RuleEntry<[]>
3751
+ /**
3752
+ * enforces elements order in character class
3753
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
3754
+ */
3755
+ 'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>
3756
+ /**
3757
+ * require regex flags to be sorted
3758
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
3759
+ */
3760
+ 'regexp/sort-flags'?: Linter.RuleEntry<[]>
3761
+ /**
3762
+ * disallow not strictly valid regular expressions
3763
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
3764
+ */
3765
+ 'regexp/strict'?: Linter.RuleEntry<[]>
3766
+ /**
3767
+ * enforce consistent usage of unicode escape or unicode codepoint escape
3768
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
3769
+ */
3770
+ 'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>
3771
+ /**
3772
+ * enforce consistent naming of unicode properties
3773
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
3774
+ */
3775
+ 'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>
3776
+ /**
3777
+ * use the `i` flag if it simplifies the pattern
3778
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
3779
+ */
3780
+ 'regexp/use-ignore-case'?: Linter.RuleEntry<[]>
3316
3781
  /**
3317
3782
  * Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
3318
3783
  * @see https://eslint.org/docs/latest/rules/require-atomic-updates
@@ -5129,6 +5594,39 @@ type AccessorPairs = []|[{
5129
5594
  setWithoutGet?: boolean
5130
5595
  enforceForClassMembers?: boolean
5131
5596
  }]
5597
+ // ----- antfu/consistent-chaining -----
5598
+ type AntfuConsistentChaining = []|[{
5599
+
5600
+ allowLeadingPropertyAccess?: boolean
5601
+ }]
5602
+ // ----- antfu/consistent-list-newline -----
5603
+ type AntfuConsistentListNewline = []|[{
5604
+ ArrayExpression?: boolean
5605
+ ArrayPattern?: boolean
5606
+ ArrowFunctionExpression?: boolean
5607
+ CallExpression?: boolean
5608
+ ExportNamedDeclaration?: boolean
5609
+ FunctionDeclaration?: boolean
5610
+ FunctionExpression?: boolean
5611
+ ImportDeclaration?: boolean
5612
+ JSONArrayExpression?: boolean
5613
+ JSONObjectExpression?: boolean
5614
+ JSXOpeningElement?: boolean
5615
+ NewExpression?: boolean
5616
+ ObjectExpression?: boolean
5617
+ ObjectPattern?: boolean
5618
+ TSFunctionType?: boolean
5619
+ TSInterfaceDeclaration?: boolean
5620
+ TSTupleType?: boolean
5621
+ TSTypeLiteral?: boolean
5622
+ TSTypeParameterDeclaration?: boolean
5623
+ TSTypeParameterInstantiation?: boolean
5624
+ }]
5625
+ // ----- antfu/indent-unindent -----
5626
+ type AntfuIndentUnindent = []|[{
5627
+ indent?: number
5628
+ tags?: string[]
5629
+ }]
5132
5630
  // ----- array-bracket-newline -----
5133
5631
  type ArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
5134
5632
  multiline?: boolean
@@ -7862,6 +8360,124 @@ type ReactStylePropObject = []|[{
7862
8360
  allow?: string[]
7863
8361
  [k: string]: unknown | undefined
7864
8362
  }]
8363
+ // ----- regexp/hexadecimal-escape -----
8364
+ type RegexpHexadecimalEscape = []|[("always" | "never")]
8365
+ // ----- regexp/letter-case -----
8366
+ type RegexpLetterCase = []|[{
8367
+ caseInsensitive?: ("lowercase" | "uppercase" | "ignore")
8368
+ unicodeEscape?: ("lowercase" | "uppercase" | "ignore")
8369
+ hexadecimalEscape?: ("lowercase" | "uppercase" | "ignore")
8370
+ controlEscape?: ("lowercase" | "uppercase" | "ignore")
8371
+ }]
8372
+ // ----- regexp/match-any -----
8373
+ type RegexpMatchAny = []|[{
8374
+
8375
+ allows?: [("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"), ...(("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"))[]]
8376
+ }]
8377
+ // ----- regexp/no-dupe-disjunctions -----
8378
+ type RegexpNoDupeDisjunctions = []|[{
8379
+ report?: ("all" | "trivial" | "interesting")
8380
+ reportExponentialBacktracking?: ("none" | "certain" | "potential")
8381
+ reportUnreachable?: ("certain" | "potential")
8382
+ }]
8383
+ // ----- regexp/no-lazy-ends -----
8384
+ type RegexpNoLazyEnds = []|[{
8385
+ ignorePartial?: boolean
8386
+ }]
8387
+ // ----- regexp/no-legacy-features -----
8388
+ type RegexpNoLegacyFeatures = []|[{
8389
+ staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[]
8390
+ prototypeMethods?: ("compile")[]
8391
+ }]
8392
+ // ----- regexp/no-misleading-capturing-group -----
8393
+ type RegexpNoMisleadingCapturingGroup = []|[{
8394
+ reportBacktrackingEnds?: boolean
8395
+ }]
8396
+ // ----- regexp/no-misleading-unicode-character -----
8397
+ type RegexpNoMisleadingUnicodeCharacter = []|[{
8398
+ fixable?: boolean
8399
+ }]
8400
+ // ----- regexp/no-missing-g-flag -----
8401
+ type RegexpNoMissingGFlag = []|[{
8402
+ strictTypes?: boolean
8403
+ }]
8404
+ // ----- regexp/no-obscure-range -----
8405
+ type RegexpNoObscureRange = []|[{
8406
+ allowed?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
8407
+ }]
8408
+ // ----- regexp/no-super-linear-backtracking -----
8409
+ type RegexpNoSuperLinearBacktracking = []|[{
8410
+ report?: ("certain" | "potential")
8411
+ }]
8412
+ // ----- regexp/no-super-linear-move -----
8413
+ type RegexpNoSuperLinearMove = []|[{
8414
+ report?: ("certain" | "potential")
8415
+ ignoreSticky?: boolean
8416
+ ignorePartial?: boolean
8417
+ }]
8418
+ // ----- regexp/no-unused-capturing-group -----
8419
+ type RegexpNoUnusedCapturingGroup = []|[{
8420
+ fixable?: boolean
8421
+ allowNamed?: boolean
8422
+ }]
8423
+ // ----- regexp/no-useless-character-class -----
8424
+ type RegexpNoUselessCharacterClass = []|[{
8425
+ ignores?: string[]
8426
+ }]
8427
+ // ----- regexp/no-useless-flag -----
8428
+ type RegexpNoUselessFlag = []|[{
8429
+ ignore?: ("i" | "m" | "s" | "g" | "y")[]
8430
+ strictTypes?: boolean
8431
+ }]
8432
+ // ----- regexp/no-useless-non-capturing-group -----
8433
+ type RegexpNoUselessNonCapturingGroup = []|[{
8434
+ allowTop?: (boolean | ("always" | "never" | "partial"))
8435
+ }]
8436
+ // ----- regexp/optimal-quantifier-concatenation -----
8437
+ type RegexpOptimalQuantifierConcatenation = []|[{
8438
+ capturingGroups?: ("ignore" | "report")
8439
+ }]
8440
+ // ----- regexp/prefer-character-class -----
8441
+ type RegexpPreferCharacterClass = []|[{
8442
+ minAlternatives?: number
8443
+ }]
8444
+ // ----- regexp/prefer-d -----
8445
+ type RegexpPreferD = []|[{
8446
+ insideCharacterClass?: ("ignore" | "range" | "d")
8447
+ }]
8448
+ // ----- regexp/prefer-lookaround -----
8449
+ type RegexpPreferLookaround = []|[{
8450
+ lookbehind?: boolean
8451
+ strictTypes?: boolean
8452
+ }]
8453
+ // ----- regexp/prefer-named-replacement -----
8454
+ type RegexpPreferNamedReplacement = []|[{
8455
+ strictTypes?: boolean
8456
+ }]
8457
+ // ----- regexp/prefer-range -----
8458
+ type RegexpPreferRange = []|[{
8459
+ target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
8460
+ }]
8461
+ // ----- regexp/prefer-result-array-groups -----
8462
+ type RegexpPreferResultArrayGroups = []|[{
8463
+ strictTypes?: boolean
8464
+ }]
8465
+ // ----- regexp/sort-character-class-elements -----
8466
+ type RegexpSortCharacterClassElements = []|[{
8467
+ order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[]
8468
+ }]
8469
+ // ----- regexp/unicode-escape -----
8470
+ type RegexpUnicodeEscape = []|[("unicodeCodePointEscape" | "unicodeEscape")]
8471
+ // ----- regexp/unicode-property -----
8472
+ type RegexpUnicodeProperty = []|[{
8473
+ generalCategory?: ("always" | "never" | "ignore")
8474
+ key?: ("short" | "long" | "ignore")
8475
+ property?: (("short" | "long" | "ignore") | {
8476
+ binary?: ("short" | "long" | "ignore")
8477
+ generalCategory?: ("short" | "long" | "ignore")
8478
+ script?: ("short" | "long" | "ignore")
8479
+ })
8480
+ }]
7865
8481
  // ----- require-atomic-updates -----
7866
8482
  type RequireAtomicUpdates = []|[{
7867
8483
  allowProperties?: boolean
@@ -9403,7 +10019,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
9403
10019
  onlyEquality?: boolean
9404
10020
  }]
9405
10021
  // Names of all the configs
9406
- type ConfigNames = '2digits:comments' | '2digits:graphql' | '2digits:ignores' | '2digits:gitignore' | '2digits:javascript' | '2digits:jsdoc' | '2digits:next/setup' | '2digits:next/rules' | '2digits:node' | '2digits:prettier' | '2digits:react/setup' | '2digits:react/rules' | '2digits:sonar' | '2digits:storybook/setup' | '2digits:storybook/rules' | '2digits:storybook/disables' | '2digits:storybook/config' | '2digits:tailwind' | '2digits:tanstack' | '2digits:turbo' | '2digits:typescript/setup' | '2digits:typescript/rules' | '2digits:typescript/disables/dts' | '2digits:typescript/disables/test' | '2digits:typescript/disables/cjs' | '2digits:unicorn'
10022
+ type ConfigNames = '2digits:antfu' | '2digits:comments' | '2digits:graphql' | '2digits:ignores' | '2digits:gitignore' | '2digits:javascript' | '2digits:jsdoc' | '2digits:next/setup' | '2digits:next/rules' | '2digits:node' | '2digits:prettier' | '2digits:react/setup' | '2digits:react/rules' | '2digits:regexp' | '2digits:sonar' | '2digits:storybook/setup' | '2digits:storybook/rules' | '2digits:storybook/disables' | '2digits:storybook/config' | '2digits:tailwind' | '2digits:tanstack' | '2digits:turbo' | '2digits:typescript/setup' | '2digits:typescript/rules' | '2digits:typescript/disables/dts' | '2digits:typescript/disables/test' | '2digits:typescript/disables/cjs' | '2digits:unicorn'
9407
10023
 
9408
10024
  type Rules = RuleOptions;
9409
10025
  interface TypedFlatConfigItem extends Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins' | 'languageOptions'> {
@@ -9456,6 +10072,8 @@ interface OptionsWithIgnores {
9456
10072
  ignores?: string[];
9457
10073
  }
9458
10074
 
10075
+ declare function antfu(): TypedFlatConfigItem[];
10076
+
9459
10077
  declare function comments(): TypedFlatConfigItem[];
9460
10078
 
9461
10079
  declare function graphql(options?: OptionsWithFiles): Promise<TypedFlatConfigItem[]>;
@@ -9474,6 +10092,8 @@ declare function prettier(): Promise<TypedFlatConfigItem[]>;
9474
10092
 
9475
10093
  declare function react(options?: OptionsWithReact & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
9476
10094
 
10095
+ declare function regexp(): TypedFlatConfigItem[];
10096
+
9477
10097
  declare function sonar(): TypedFlatConfigItem[];
9478
10098
 
9479
10099
  declare function storybook(options?: OptionsWithStorybook & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
@@ -9505,4 +10125,4 @@ interface ESLint2DigitsOptions {
9505
10125
  }
9506
10126
  declare function twoDigits(options?: ESLint2DigitsOptions, ...userConfig: TypedFlatConfigItem[]): Promise<TypedFlatConfigItem[]>;
9507
10127
 
9508
- export { type ConfigNames, type OptionsOverrides, type OptionsTypeScriptWithTypes, type OptionsWithFiles, type OptionsWithIgnores, type OptionsWithReact, type OptionsWithStorybook, type Rules, type TypedFlatConfigItem, comments, twoDigits as default, graphql, ignores, javascript, jsdoc, next, node, prettier, react, sonar, storybook, tailwind, tanstack, turbo, twoDigits, typescript, unicorn };
10128
+ export { type ConfigNames, type OptionsOverrides, type OptionsTypeScriptWithTypes, type OptionsWithFiles, type OptionsWithIgnores, type OptionsWithReact, type OptionsWithStorybook, type Rules, type TypedFlatConfigItem, antfu, comments, twoDigits as default, graphql, ignores, javascript, jsdoc, next, node, prettier, react, regexp, sonar, storybook, tailwind, tanstack, turbo, twoDigits, typescript, unicorn };