@jimmy.codes/eslint-config 3.15.0 → 3.16.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.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as eslint_plugin_regexp from 'eslint-plugin-regexp';
1
2
  import * as eslint_plugin_react_refresh from 'eslint-plugin-react-refresh';
2
3
  import * as eslint_plugin_react from 'eslint-plugin-react';
3
4
  import * as eslint_plugin_n from 'eslint-plugin-n';
@@ -4001,6 +4002,416 @@ interface RuleOptions {
4001
4002
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/void-dom-elements-no-children.md
4002
4003
  */
4003
4004
  'react/void-dom-elements-no-children'?: Linter.RuleEntry<[]>
4005
+ /**
4006
+ * disallow confusing quantifiers
4007
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
4008
+ */
4009
+ 'regexp/confusing-quantifier'?: Linter.RuleEntry<[]>
4010
+ /**
4011
+ * enforce consistent escaping of control characters
4012
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
4013
+ */
4014
+ 'regexp/control-character-escape'?: Linter.RuleEntry<[]>
4015
+ /**
4016
+ * enforce single grapheme in string literal
4017
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
4018
+ */
4019
+ 'regexp/grapheme-string-literal'?: Linter.RuleEntry<[]>
4020
+ /**
4021
+ * enforce consistent usage of hexadecimal escape
4022
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
4023
+ */
4024
+ 'regexp/hexadecimal-escape'?: Linter.RuleEntry<RegexpHexadecimalEscape>
4025
+ /**
4026
+ * enforce into your favorite case
4027
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
4028
+ */
4029
+ 'regexp/letter-case'?: Linter.RuleEntry<RegexpLetterCase>
4030
+ /**
4031
+ * enforce match any character style
4032
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
4033
+ */
4034
+ 'regexp/match-any'?: Linter.RuleEntry<RegexpMatchAny>
4035
+ /**
4036
+ * enforce use of escapes on negation
4037
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
4038
+ */
4039
+ 'regexp/negation'?: Linter.RuleEntry<[]>
4040
+ /**
4041
+ * disallow elements that contradict assertions
4042
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
4043
+ */
4044
+ 'regexp/no-contradiction-with-assertion'?: Linter.RuleEntry<[]>
4045
+ /**
4046
+ * disallow control characters
4047
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
4048
+ */
4049
+ 'regexp/no-control-character'?: Linter.RuleEntry<[]>
4050
+ /**
4051
+ * disallow duplicate characters in the RegExp character class
4052
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
4053
+ */
4054
+ 'regexp/no-dupe-characters-character-class'?: Linter.RuleEntry<[]>
4055
+ /**
4056
+ * disallow duplicate disjunctions
4057
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
4058
+ */
4059
+ 'regexp/no-dupe-disjunctions'?: Linter.RuleEntry<RegexpNoDupeDisjunctions>
4060
+ /**
4061
+ * disallow alternatives without elements
4062
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
4063
+ */
4064
+ 'regexp/no-empty-alternative'?: Linter.RuleEntry<[]>
4065
+ /**
4066
+ * disallow capturing group that captures empty.
4067
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
4068
+ */
4069
+ 'regexp/no-empty-capturing-group'?: Linter.RuleEntry<[]>
4070
+ /**
4071
+ * disallow character classes that match no characters
4072
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
4073
+ */
4074
+ 'regexp/no-empty-character-class'?: Linter.RuleEntry<[]>
4075
+ /**
4076
+ * disallow empty group
4077
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
4078
+ */
4079
+ 'regexp/no-empty-group'?: Linter.RuleEntry<[]>
4080
+ /**
4081
+ * disallow empty lookahead assertion or empty lookbehind assertion
4082
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
4083
+ */
4084
+ 'regexp/no-empty-lookarounds-assertion'?: Linter.RuleEntry<[]>
4085
+ /**
4086
+ * disallow empty string literals in character classes
4087
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
4088
+ */
4089
+ 'regexp/no-empty-string-literal'?: Linter.RuleEntry<[]>
4090
+ /**
4091
+ * disallow escape backspace (`[\b]`)
4092
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
4093
+ */
4094
+ 'regexp/no-escape-backspace'?: Linter.RuleEntry<[]>
4095
+ /**
4096
+ * disallow unnecessary nested lookaround assertions
4097
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
4098
+ */
4099
+ 'regexp/no-extra-lookaround-assertions'?: Linter.RuleEntry<[]>
4100
+ /**
4101
+ * disallow invalid regular expression strings in `RegExp` constructors
4102
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
4103
+ */
4104
+ 'regexp/no-invalid-regexp'?: Linter.RuleEntry<[]>
4105
+ /**
4106
+ * disallow invisible raw character
4107
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
4108
+ */
4109
+ 'regexp/no-invisible-character'?: Linter.RuleEntry<[]>
4110
+ /**
4111
+ * disallow lazy quantifiers at the end of an expression
4112
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
4113
+ */
4114
+ 'regexp/no-lazy-ends'?: Linter.RuleEntry<RegexpNoLazyEnds>
4115
+ /**
4116
+ * disallow legacy RegExp features
4117
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
4118
+ */
4119
+ 'regexp/no-legacy-features'?: Linter.RuleEntry<RegexpNoLegacyFeatures>
4120
+ /**
4121
+ * disallow capturing groups that do not behave as one would expect
4122
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
4123
+ */
4124
+ 'regexp/no-misleading-capturing-group'?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>
4125
+ /**
4126
+ * disallow multi-code-point characters in character classes and quantifiers
4127
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
4128
+ */
4129
+ 'regexp/no-misleading-unicode-character'?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>
4130
+ /**
4131
+ * disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
4132
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
4133
+ */
4134
+ 'regexp/no-missing-g-flag'?: Linter.RuleEntry<RegexpNoMissingGFlag>
4135
+ /**
4136
+ * disallow non-standard flags
4137
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
4138
+ */
4139
+ 'regexp/no-non-standard-flag'?: Linter.RuleEntry<[]>
4140
+ /**
4141
+ * disallow obscure character ranges
4142
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
4143
+ */
4144
+ 'regexp/no-obscure-range'?: Linter.RuleEntry<RegexpNoObscureRange>
4145
+ /**
4146
+ * disallow octal escape sequence
4147
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
4148
+ */
4149
+ 'regexp/no-octal'?: Linter.RuleEntry<[]>
4150
+ /**
4151
+ * disallow optional assertions
4152
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
4153
+ */
4154
+ 'regexp/no-optional-assertion'?: Linter.RuleEntry<[]>
4155
+ /**
4156
+ * disallow backreferences that reference a group that might not be matched
4157
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
4158
+ */
4159
+ 'regexp/no-potentially-useless-backreference'?: Linter.RuleEntry<[]>
4160
+ /**
4161
+ * disallow standalone backslashes (`\`)
4162
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
4163
+ */
4164
+ 'regexp/no-standalone-backslash'?: Linter.RuleEntry<[]>
4165
+ /**
4166
+ * disallow exponential and polynomial backtracking
4167
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
4168
+ */
4169
+ 'regexp/no-super-linear-backtracking'?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>
4170
+ /**
4171
+ * disallow quantifiers that cause quadratic moves
4172
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
4173
+ */
4174
+ 'regexp/no-super-linear-move'?: Linter.RuleEntry<RegexpNoSuperLinearMove>
4175
+ /**
4176
+ * disallow trivially nested assertions
4177
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
4178
+ */
4179
+ 'regexp/no-trivially-nested-assertion'?: Linter.RuleEntry<[]>
4180
+ /**
4181
+ * disallow nested quantifiers that can be rewritten as one quantifier
4182
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
4183
+ */
4184
+ 'regexp/no-trivially-nested-quantifier'?: Linter.RuleEntry<[]>
4185
+ /**
4186
+ * disallow unused capturing group
4187
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
4188
+ */
4189
+ 'regexp/no-unused-capturing-group'?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>
4190
+ /**
4191
+ * disallow assertions that are known to always accept (or reject)
4192
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
4193
+ */
4194
+ 'regexp/no-useless-assertions'?: Linter.RuleEntry<[]>
4195
+ /**
4196
+ * disallow useless backreferences in regular expressions
4197
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
4198
+ */
4199
+ 'regexp/no-useless-backreference'?: Linter.RuleEntry<[]>
4200
+ /**
4201
+ * disallow character class with one character
4202
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
4203
+ */
4204
+ 'regexp/no-useless-character-class'?: Linter.RuleEntry<RegexpNoUselessCharacterClass>
4205
+ /**
4206
+ * disallow useless `$` replacements in replacement string
4207
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
4208
+ */
4209
+ 'regexp/no-useless-dollar-replacements'?: Linter.RuleEntry<[]>
4210
+ /**
4211
+ * disallow unnecessary escape characters in RegExp
4212
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
4213
+ */
4214
+ 'regexp/no-useless-escape'?: Linter.RuleEntry<[]>
4215
+ /**
4216
+ * disallow unnecessary regex flags
4217
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
4218
+ */
4219
+ 'regexp/no-useless-flag'?: Linter.RuleEntry<RegexpNoUselessFlag>
4220
+ /**
4221
+ * disallow unnecessarily non-greedy quantifiers
4222
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
4223
+ */
4224
+ 'regexp/no-useless-lazy'?: Linter.RuleEntry<[]>
4225
+ /**
4226
+ * disallow unnecessary non-capturing group
4227
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
4228
+ */
4229
+ 'regexp/no-useless-non-capturing-group'?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>
4230
+ /**
4231
+ * disallow quantifiers that can be removed
4232
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
4233
+ */
4234
+ 'regexp/no-useless-quantifier'?: Linter.RuleEntry<[]>
4235
+ /**
4236
+ * disallow unnecessary character ranges
4237
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
4238
+ */
4239
+ 'regexp/no-useless-range'?: Linter.RuleEntry<[]>
4240
+ /**
4241
+ * disallow unnecessary elements in expression character classes
4242
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
4243
+ */
4244
+ 'regexp/no-useless-set-operand'?: Linter.RuleEntry<[]>
4245
+ /**
4246
+ * disallow string disjunction of single characters in `\q{...}`
4247
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
4248
+ */
4249
+ 'regexp/no-useless-string-literal'?: Linter.RuleEntry<[]>
4250
+ /**
4251
+ * disallow unnecessary `{n,m}` quantifier
4252
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
4253
+ */
4254
+ 'regexp/no-useless-two-nums-quantifier'?: Linter.RuleEntry<[]>
4255
+ /**
4256
+ * disallow quantifiers with a maximum of zero
4257
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
4258
+ */
4259
+ 'regexp/no-zero-quantifier'?: Linter.RuleEntry<[]>
4260
+ /**
4261
+ * disallow the alternatives of lookarounds that end with a non-constant quantifier
4262
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
4263
+ */
4264
+ 'regexp/optimal-lookaround-quantifier'?: Linter.RuleEntry<[]>
4265
+ /**
4266
+ * require optimal quantifiers for concatenated quantifiers
4267
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
4268
+ */
4269
+ 'regexp/optimal-quantifier-concatenation'?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>
4270
+ /**
4271
+ * enforce using character class
4272
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
4273
+ */
4274
+ 'regexp/prefer-character-class'?: Linter.RuleEntry<RegexpPreferCharacterClass>
4275
+ /**
4276
+ * enforce using `\d`
4277
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
4278
+ */
4279
+ 'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>
4280
+ /**
4281
+ * enforces escape of replacement `$` character (`$$`).
4282
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
4283
+ */
4284
+ 'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>
4285
+ /**
4286
+ * prefer lookarounds over capturing group that do not replace
4287
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
4288
+ */
4289
+ 'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>
4290
+ /**
4291
+ * enforce using named backreferences
4292
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
4293
+ */
4294
+ 'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>
4295
+ /**
4296
+ * enforce using named capture groups
4297
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
4298
+ */
4299
+ 'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>
4300
+ /**
4301
+ * enforce using named replacement
4302
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
4303
+ */
4304
+ 'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>
4305
+ /**
4306
+ * enforce using `+` quantifier
4307
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
4308
+ */
4309
+ 'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>
4310
+ /**
4311
+ * prefer predefined assertion over equivalent lookarounds
4312
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
4313
+ */
4314
+ 'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>
4315
+ /**
4316
+ * enforce using quantifier
4317
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
4318
+ */
4319
+ 'regexp/prefer-quantifier'?: Linter.RuleEntry<[]>
4320
+ /**
4321
+ * enforce using `?` quantifier
4322
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
4323
+ */
4324
+ 'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>
4325
+ /**
4326
+ * enforce using character class range
4327
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
4328
+ */
4329
+ 'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>
4330
+ /**
4331
+ * enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
4332
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
4333
+ */
4334
+ 'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>
4335
+ /**
4336
+ * enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
4337
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
4338
+ */
4339
+ 'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>
4340
+ /**
4341
+ * enforce using result array `groups`
4342
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
4343
+ */
4344
+ 'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>
4345
+ /**
4346
+ * prefer character class set operations instead of lookarounds
4347
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
4348
+ */
4349
+ 'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>
4350
+ /**
4351
+ * enforce using `*` quantifier
4352
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
4353
+ */
4354
+ 'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>
4355
+ /**
4356
+ * enforce use of unicode codepoint escapes
4357
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
4358
+ */
4359
+ 'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>
4360
+ /**
4361
+ * enforce using `\w`
4362
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
4363
+ */
4364
+ 'regexp/prefer-w'?: Linter.RuleEntry<[]>
4365
+ /**
4366
+ * enforce the use of the `u` flag
4367
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
4368
+ */
4369
+ 'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>
4370
+ /**
4371
+ * enforce the use of the `v` flag
4372
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
4373
+ */
4374
+ 'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>
4375
+ /**
4376
+ * require simplify set operations
4377
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
4378
+ */
4379
+ 'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>
4380
+ /**
4381
+ * sort alternatives if order doesn't matter
4382
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
4383
+ */
4384
+ 'regexp/sort-alternatives'?: Linter.RuleEntry<[]>
4385
+ /**
4386
+ * enforces elements order in character class
4387
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
4388
+ */
4389
+ 'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>
4390
+ /**
4391
+ * require regex flags to be sorted
4392
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
4393
+ */
4394
+ 'regexp/sort-flags'?: Linter.RuleEntry<[]>
4395
+ /**
4396
+ * disallow not strictly valid regular expressions
4397
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
4398
+ */
4399
+ 'regexp/strict'?: Linter.RuleEntry<[]>
4400
+ /**
4401
+ * enforce consistent usage of unicode escape or unicode codepoint escape
4402
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
4403
+ */
4404
+ 'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>
4405
+ /**
4406
+ * enforce consistent naming of unicode properties
4407
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
4408
+ */
4409
+ 'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>
4410
+ /**
4411
+ * use the `i` flag if it simplifies the pattern
4412
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
4413
+ */
4414
+ 'regexp/use-ignore-case'?: Linter.RuleEntry<[]>
4004
4415
  /**
4005
4416
  * Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
4006
4417
  * @see https://eslint.org/docs/latest/rules/require-atomic-updates
@@ -9479,6 +9890,124 @@ type ReactStylePropObject = []|[{
9479
9890
  allow?: string[]
9480
9891
  [k: string]: unknown | undefined
9481
9892
  }]
9893
+ // ----- regexp/hexadecimal-escape -----
9894
+ type RegexpHexadecimalEscape = []|[("always" | "never")]
9895
+ // ----- regexp/letter-case -----
9896
+ type RegexpLetterCase = []|[{
9897
+ caseInsensitive?: ("lowercase" | "uppercase" | "ignore")
9898
+ unicodeEscape?: ("lowercase" | "uppercase" | "ignore")
9899
+ hexadecimalEscape?: ("lowercase" | "uppercase" | "ignore")
9900
+ controlEscape?: ("lowercase" | "uppercase" | "ignore")
9901
+ }]
9902
+ // ----- regexp/match-any -----
9903
+ type RegexpMatchAny = []|[{
9904
+
9905
+ allows?: [("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"), ...(("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"))[]]
9906
+ }]
9907
+ // ----- regexp/no-dupe-disjunctions -----
9908
+ type RegexpNoDupeDisjunctions = []|[{
9909
+ report?: ("all" | "trivial" | "interesting")
9910
+ reportExponentialBacktracking?: ("none" | "certain" | "potential")
9911
+ reportUnreachable?: ("certain" | "potential")
9912
+ }]
9913
+ // ----- regexp/no-lazy-ends -----
9914
+ type RegexpNoLazyEnds = []|[{
9915
+ ignorePartial?: boolean
9916
+ }]
9917
+ // ----- regexp/no-legacy-features -----
9918
+ type RegexpNoLegacyFeatures = []|[{
9919
+ staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[]
9920
+ prototypeMethods?: ("compile")[]
9921
+ }]
9922
+ // ----- regexp/no-misleading-capturing-group -----
9923
+ type RegexpNoMisleadingCapturingGroup = []|[{
9924
+ reportBacktrackingEnds?: boolean
9925
+ }]
9926
+ // ----- regexp/no-misleading-unicode-character -----
9927
+ type RegexpNoMisleadingUnicodeCharacter = []|[{
9928
+ fixable?: boolean
9929
+ }]
9930
+ // ----- regexp/no-missing-g-flag -----
9931
+ type RegexpNoMissingGFlag = []|[{
9932
+ strictTypes?: boolean
9933
+ }]
9934
+ // ----- regexp/no-obscure-range -----
9935
+ type RegexpNoObscureRange = []|[{
9936
+ allowed?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
9937
+ }]
9938
+ // ----- regexp/no-super-linear-backtracking -----
9939
+ type RegexpNoSuperLinearBacktracking = []|[{
9940
+ report?: ("certain" | "potential")
9941
+ }]
9942
+ // ----- regexp/no-super-linear-move -----
9943
+ type RegexpNoSuperLinearMove = []|[{
9944
+ report?: ("certain" | "potential")
9945
+ ignoreSticky?: boolean
9946
+ ignorePartial?: boolean
9947
+ }]
9948
+ // ----- regexp/no-unused-capturing-group -----
9949
+ type RegexpNoUnusedCapturingGroup = []|[{
9950
+ fixable?: boolean
9951
+ allowNamed?: boolean
9952
+ }]
9953
+ // ----- regexp/no-useless-character-class -----
9954
+ type RegexpNoUselessCharacterClass = []|[{
9955
+ ignores?: string[]
9956
+ }]
9957
+ // ----- regexp/no-useless-flag -----
9958
+ type RegexpNoUselessFlag = []|[{
9959
+ ignore?: ("i" | "m" | "s" | "g" | "y")[]
9960
+ strictTypes?: boolean
9961
+ }]
9962
+ // ----- regexp/no-useless-non-capturing-group -----
9963
+ type RegexpNoUselessNonCapturingGroup = []|[{
9964
+ allowTop?: (boolean | ("always" | "never" | "partial"))
9965
+ }]
9966
+ // ----- regexp/optimal-quantifier-concatenation -----
9967
+ type RegexpOptimalQuantifierConcatenation = []|[{
9968
+ capturingGroups?: ("ignore" | "report")
9969
+ }]
9970
+ // ----- regexp/prefer-character-class -----
9971
+ type RegexpPreferCharacterClass = []|[{
9972
+ minAlternatives?: number
9973
+ }]
9974
+ // ----- regexp/prefer-d -----
9975
+ type RegexpPreferD = []|[{
9976
+ insideCharacterClass?: ("ignore" | "range" | "d")
9977
+ }]
9978
+ // ----- regexp/prefer-lookaround -----
9979
+ type RegexpPreferLookaround = []|[{
9980
+ lookbehind?: boolean
9981
+ strictTypes?: boolean
9982
+ }]
9983
+ // ----- regexp/prefer-named-replacement -----
9984
+ type RegexpPreferNamedReplacement = []|[{
9985
+ strictTypes?: boolean
9986
+ }]
9987
+ // ----- regexp/prefer-range -----
9988
+ type RegexpPreferRange = []|[{
9989
+ target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
9990
+ }]
9991
+ // ----- regexp/prefer-result-array-groups -----
9992
+ type RegexpPreferResultArrayGroups = []|[{
9993
+ strictTypes?: boolean
9994
+ }]
9995
+ // ----- regexp/sort-character-class-elements -----
9996
+ type RegexpSortCharacterClassElements = []|[{
9997
+ order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[]
9998
+ }]
9999
+ // ----- regexp/unicode-escape -----
10000
+ type RegexpUnicodeEscape = []|[("unicodeCodePointEscape" | "unicodeEscape")]
10001
+ // ----- regexp/unicode-property -----
10002
+ type RegexpUnicodeProperty = []|[{
10003
+ generalCategory?: ("always" | "never" | "ignore")
10004
+ key?: ("short" | "long" | "ignore")
10005
+ property?: (("short" | "long" | "ignore") | {
10006
+ binary?: ("short" | "long" | "ignore")
10007
+ generalCategory?: ("short" | "long" | "ignore")
10008
+ script?: ("short" | "long" | "ignore")
10009
+ })
10010
+ }]
9482
10011
  // ----- require-atomic-updates -----
9483
10012
  type RequireAtomicUpdates = []|[{
9484
10013
  allowProperties?: boolean
@@ -12248,6 +12777,19 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
12248
12777
  version: string;
12249
12778
  };
12250
12779
  };
12780
+ } | {
12781
+ name: string;
12782
+ plugins: {
12783
+ regexp: typeof eslint_plugin_regexp;
12784
+ };
12785
+ rules: {
12786
+ "regexp/confusing-quantifier": "error";
12787
+ "regexp/no-empty-alternative": "error";
12788
+ "regexp/no-lazy-ends": "error";
12789
+ "regexp/no-potentially-useless-backreference": "error";
12790
+ "regexp/no-useless-flag": "error";
12791
+ "regexp/optimal-lookaround-quantifier": "error";
12792
+ };
12251
12793
  } | {
12252
12794
  files: string[];
12253
12795
  name: string;