@jimmy.codes/eslint-config 3.14.2 → 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.mts 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';
@@ -3290,17 +3291,16 @@ interface RuleOptions {
3290
3291
  * @see https://perfectionist.dev/rules/sort-array-includes
3291
3292
  */
3292
3293
  'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>
3293
- /**
3294
- * Enforce sorted Astro attributes.
3295
- * @see https://perfectionist.dev/rules/sort-astro-attributes
3296
- * @deprecated
3297
- */
3298
- 'perfectionist/sort-astro-attributes'?: Linter.RuleEntry<PerfectionistSortAstroAttributes>
3299
3294
  /**
3300
3295
  * Enforce sorted classes.
3301
3296
  * @see https://perfectionist.dev/rules/sort-classes
3302
3297
  */
3303
3298
  'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>
3299
+ /**
3300
+ * Enforce sorted decorators.
3301
+ * @see https://perfectionist.dev/rules/sort-decorators
3302
+ */
3303
+ 'perfectionist/sort-decorators'?: Linter.RuleEntry<PerfectionistSortDecorators>
3304
3304
  /**
3305
3305
  * Enforce sorted TypeScript enums.
3306
3306
  * @see https://perfectionist.dev/rules/sort-enums
@@ -3311,6 +3311,11 @@ interface RuleOptions {
3311
3311
  * @see https://perfectionist.dev/rules/sort-exports
3312
3312
  */
3313
3313
  'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>
3314
+ /**
3315
+ * Enforce sorted heritage clauses.
3316
+ * @see https://perfectionist.dev/rules/sort-heritage-clauses
3317
+ */
3318
+ 'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>
3314
3319
  /**
3315
3320
  * Enforce sorted imports.
3316
3321
  * @see https://perfectionist.dev/rules/sort-imports
@@ -3336,6 +3341,11 @@ interface RuleOptions {
3336
3341
  * @see https://perfectionist.dev/rules/sort-maps
3337
3342
  */
3338
3343
  'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>
3344
+ /**
3345
+ * Enforce sorted modules.
3346
+ * @see https://perfectionist.dev/rules/sort-modules
3347
+ */
3348
+ 'perfectionist/sort-modules'?: Linter.RuleEntry<PerfectionistSortModules>
3339
3349
  /**
3340
3350
  * Enforce sorted named exports.
3341
3351
  * @see https://perfectionist.dev/rules/sort-named-exports
@@ -3361,12 +3371,6 @@ interface RuleOptions {
3361
3371
  * @see https://perfectionist.dev/rules/sort-sets
3362
3372
  */
3363
3373
  'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>
3364
- /**
3365
- * Enforce sorted Svelte attributes.
3366
- * @see https://perfectionist.dev/rules/sort-svelte-attributes
3367
- * @deprecated
3368
- */
3369
- 'perfectionist/sort-svelte-attributes'?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>
3370
3374
  /**
3371
3375
  * Enforce sorted switch cases.
3372
3376
  * @see https://perfectionist.dev/rules/sort-switch-case
@@ -3382,12 +3386,6 @@ interface RuleOptions {
3382
3386
  * @see https://perfectionist.dev/rules/sort-variable-declarations
3383
3387
  */
3384
3388
  'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>
3385
- /**
3386
- * Enforce sorted Vue attributes.
3387
- * @see https://perfectionist.dev/rules/sort-vue-attributes
3388
- * @deprecated
3389
- */
3390
- 'perfectionist/sort-vue-attributes'?: Linter.RuleEntry<PerfectionistSortVueAttributes>
3391
3389
  /**
3392
3390
  * Require using arrow functions for callbacks
3393
3391
  * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
@@ -4004,6 +4002,416 @@ interface RuleOptions {
4004
4002
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/void-dom-elements-no-children.md
4005
4003
  */
4006
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<[]>
4007
4415
  /**
4008
4416
  * Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
4009
4417
  * @see https://eslint.org/docs/latest/rules/require-atomic-updates
@@ -8412,61 +8820,26 @@ type PaddingLineBetweenStatements = {
8412
8820
  // ----- perfectionist/sort-array-includes -----
8413
8821
  type PerfectionistSortArrayIncludes = []|[{
8414
8822
 
8415
- type?: ("alphabetical" | "natural" | "line-length")
8416
-
8417
- order?: ("asc" | "desc")
8418
-
8419
- matcher?: ("minimatch" | "regex")
8420
-
8421
- ignoreCase?: boolean
8422
-
8423
- specialCharacters?: ("remove" | "trim" | "keep")
8823
+ partitionByComment?: (string[] | boolean | string)
8424
8824
 
8425
8825
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
8426
8826
 
8427
- partitionByComment?: (string[] | boolean | string)
8428
-
8429
8827
  partitionByNewLine?: boolean
8430
- }]
8431
- // ----- perfectionist/sort-astro-attributes -----
8432
- type PerfectionistSortAstroAttributes = []|[{
8433
-
8434
- type?: ("alphabetical" | "natural" | "line-length")
8435
-
8436
- order?: ("asc" | "desc")
8437
8828
 
8438
- matcher?: ("minimatch" | "regex")
8829
+ specialCharacters?: ("remove" | "trim" | "keep")
8439
8830
 
8440
8831
  ignoreCase?: boolean
8441
8832
 
8442
- specialCharacters?: ("remove" | "trim" | "keep")
8833
+ locales?: (string | string[])
8443
8834
 
8444
- groups?: (string | string[])[]
8835
+ order?: ("asc" | "desc")
8445
8836
 
8446
- customGroups?: {
8447
- [k: string]: (string | string[]) | undefined
8448
- }
8837
+ type?: ("alphabetical" | "natural" | "line-length")
8449
8838
  }]
8450
8839
  // ----- perfectionist/sort-classes -----
8451
8840
  type PerfectionistSortClasses = []|[{
8452
8841
 
8453
- type?: ("alphabetical" | "natural" | "line-length")
8454
-
8455
- order?: ("asc" | "desc")
8456
-
8457
- matcher?: ("minimatch" | "regex")
8458
-
8459
- ignoreCase?: boolean
8460
-
8461
- specialCharacters?: ("remove" | "trim" | "keep")
8462
-
8463
- partitionByComment?: (string[] | boolean | string)
8464
-
8465
- groups?: (string | string[])[]
8466
-
8467
8842
  customGroups?: ({
8468
- [k: string]: (string | string[]) | undefined
8469
- } | ({
8470
8843
 
8471
8844
  groupName?: string
8472
8845
 
@@ -8475,15 +8848,15 @@ type PerfectionistSortClasses = []|[{
8475
8848
  order?: ("desc" | "asc")
8476
8849
  anyOf?: {
8477
8850
 
8478
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8479
-
8480
- modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8481
-
8482
- elementNamePattern?: string
8851
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8483
8852
 
8484
8853
  elementValuePattern?: string
8485
8854
 
8486
8855
  decoratorNamePattern?: string
8856
+
8857
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8858
+
8859
+ elementNamePattern?: string
8487
8860
  }[]
8488
8861
  } | {
8489
8862
 
@@ -8493,91 +8866,169 @@ type PerfectionistSortClasses = []|[{
8493
8866
 
8494
8867
  order?: ("desc" | "asc")
8495
8868
 
8496
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8497
-
8498
- modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8499
-
8500
- elementNamePattern?: string
8869
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8501
8870
 
8502
8871
  elementValuePattern?: string
8503
8872
 
8504
8873
  decoratorNamePattern?: string
8505
- })[])
8506
- }]
8507
- // ----- perfectionist/sort-enums -----
8508
- type PerfectionistSortEnums = []|[{
8874
+
8875
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8876
+
8877
+ elementNamePattern?: string
8878
+ })[]
8509
8879
 
8510
- type?: ("alphabetical" | "natural" | "line-length")
8880
+ ignoreCallbackDependenciesPatterns?: string[]
8511
8881
 
8512
- order?: ("asc" | "desc")
8882
+ partitionByComment?: (string[] | boolean | string)
8883
+
8884
+ partitionByNewLine?: boolean
8513
8885
 
8514
- matcher?: ("minimatch" | "regex")
8886
+ specialCharacters?: ("remove" | "trim" | "keep")
8887
+
8888
+ newlinesBetween?: ("ignore" | "always" | "never")
8515
8889
 
8516
8890
  ignoreCase?: boolean
8517
8891
 
8518
- specialCharacters?: ("remove" | "trim" | "keep")
8892
+ locales?: (string | string[])
8519
8893
 
8520
- sortByValue?: boolean
8894
+ groups?: (string | string[])[]
8521
8895
 
8522
- forceNumericSort?: boolean
8896
+ order?: ("asc" | "desc")
8897
+
8898
+ type?: ("alphabetical" | "natural" | "line-length")
8899
+ }]
8900
+ // ----- perfectionist/sort-decorators -----
8901
+ type PerfectionistSortDecorators = []|[{
8523
8902
 
8524
8903
  partitionByComment?: (string[] | boolean | string)
8525
8904
 
8526
- partitionByNewLine?: boolean
8527
- }]
8528
- // ----- perfectionist/sort-exports -----
8529
- type PerfectionistSortExports = []|[{
8905
+ sortOnParameters?: boolean
8530
8906
 
8531
- type?: ("alphabetical" | "natural" | "line-length")
8907
+ sortOnProperties?: boolean
8532
8908
 
8533
- order?: ("asc" | "desc")
8909
+ sortOnAccessors?: boolean
8534
8910
 
8535
- matcher?: ("minimatch" | "regex")
8911
+ sortOnMethods?: boolean
8536
8912
 
8537
- ignoreCase?: boolean
8913
+ sortOnClasses?: boolean
8538
8914
 
8539
8915
  specialCharacters?: ("remove" | "trim" | "keep")
8540
8916
 
8917
+ customGroups?: {
8918
+ [k: string]: (string | string[]) | undefined
8919
+ }
8920
+
8921
+ ignoreCase?: boolean
8922
+
8923
+ locales?: (string | string[])
8924
+
8925
+ groups?: (string | string[])[]
8926
+
8927
+ order?: ("asc" | "desc")
8928
+
8929
+ type?: ("alphabetical" | "natural" | "line-length")
8930
+ }]
8931
+ // ----- perfectionist/sort-enums -----
8932
+ type PerfectionistSortEnums = []|[{
8933
+
8541
8934
  partitionByComment?: (string[] | boolean | string)
8542
8935
 
8936
+ forceNumericSort?: boolean
8937
+
8938
+ sortByValue?: boolean
8939
+
8543
8940
  partitionByNewLine?: boolean
8544
8941
 
8545
- groupKind?: ("mixed" | "values-first" | "types-first")
8546
- }]
8547
- // ----- perfectionist/sort-imports -----
8548
- type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8549
- type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8942
+ specialCharacters?: ("remove" | "trim" | "keep")
8550
8943
 
8551
- type?: ("alphabetical" | "natural" | "line-length")
8944
+ ignoreCase?: boolean
8945
+
8946
+ locales?: (string | string[])
8552
8947
 
8553
8948
  order?: ("asc" | "desc")
8554
8949
 
8555
- matcher?: ("minimatch" | "regex")
8950
+ type?: ("alphabetical" | "natural" | "line-length")
8951
+ }]
8952
+ // ----- perfectionist/sort-exports -----
8953
+ type PerfectionistSortExports = []|[{
8556
8954
 
8557
- ignoreCase?: boolean
8955
+ partitionByComment?: (string[] | boolean | string)
8956
+
8957
+ groupKind?: ("mixed" | "values-first" | "types-first")
8958
+
8959
+ partitionByNewLine?: boolean
8558
8960
 
8559
8961
  specialCharacters?: ("remove" | "trim" | "keep")
8560
8962
 
8561
- internalPattern?: string[]
8963
+ ignoreCase?: boolean
8562
8964
 
8563
- sortSideEffects?: boolean
8965
+ locales?: (string | string[])
8564
8966
 
8565
- newlinesBetween?: ("ignore" | "always" | "never")
8967
+ order?: ("asc" | "desc")
8566
8968
 
8567
- maxLineLength?: number
8969
+ type?: ("alphabetical" | "natural" | "line-length")
8970
+ }]
8971
+ // ----- perfectionist/sort-heritage-clauses -----
8972
+ type PerfectionistSortHeritageClauses = []|[{
8973
+
8974
+ specialCharacters?: ("remove" | "trim" | "keep")
8975
+
8976
+ customGroups?: {
8977
+ [k: string]: (string | string[]) | undefined
8978
+ }
8979
+
8980
+ ignoreCase?: boolean
8981
+
8982
+ locales?: (string | string[])
8568
8983
 
8569
8984
  groups?: (string | string[])[]
8570
8985
 
8986
+ order?: ("asc" | "desc")
8987
+
8988
+ type?: ("alphabetical" | "natural" | "line-length")
8989
+ }]
8990
+ // ----- perfectionist/sort-imports -----
8991
+ type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8992
+ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8993
+
8571
8994
  customGroups?: {
8572
- type?: {
8995
+
8996
+ value?: {
8573
8997
  [k: string]: unknown | undefined
8574
8998
  }
8575
- value?: {
8999
+
9000
+ type?: {
8576
9001
  [k: string]: unknown | undefined
8577
9002
  }
8578
9003
  }
8579
9004
 
9005
+ partitionByComment?: (string[] | boolean | string)
9006
+
9007
+ internalPattern?: string[]
9008
+
9009
+ maxLineLength?: number
9010
+
9011
+ sortSideEffects?: boolean
9012
+
8580
9013
  environment?: ("node" | "bun")
9014
+
9015
+ tsconfigRootDir?: string
9016
+
9017
+ partitionByNewLine?: boolean
9018
+
9019
+ specialCharacters?: ("remove" | "trim" | "keep")
9020
+
9021
+ newlinesBetween?: ("ignore" | "always" | "never")
9022
+
9023
+ ignoreCase?: boolean
9024
+
9025
+ locales?: (string | string[])
9026
+
9027
+ groups?: (string | string[])[]
9028
+
9029
+ order?: ("asc" | "desc")
9030
+
9031
+ type?: ("alphabetical" | "natural" | "line-length")
8581
9032
  })
8582
9033
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
8583
9034
  [k: string]: unknown | undefined
@@ -8589,284 +9040,317 @@ interface _PerfectionistSortImports_IsLineLength {
8589
9040
  // ----- perfectionist/sort-interfaces -----
8590
9041
  type PerfectionistSortInterfaces = []|[{
8591
9042
 
8592
- type?: ("alphabetical" | "natural" | "line-length")
9043
+ ignorePattern?: string[]
8593
9044
 
8594
- order?: ("asc" | "desc")
9045
+ partitionByComment?: (string[] | boolean | string)
8595
9046
 
8596
- matcher?: ("minimatch" | "regex")
9047
+ groupKind?: ("mixed" | "optional-first" | "required-first")
8597
9048
 
8598
- ignoreCase?: boolean
9049
+ partitionByNewLine?: boolean
8599
9050
 
8600
9051
  specialCharacters?: ("remove" | "trim" | "keep")
8601
9052
 
8602
- ignorePattern?: string[]
9053
+ newlinesBetween?: ("ignore" | "always" | "never")
8603
9054
 
8604
- partitionByComment?: (boolean | string | string[])
9055
+ customGroups?: {
9056
+ [k: string]: (string | string[]) | undefined
9057
+ }
8605
9058
 
8606
- partitionByNewLine?: boolean
9059
+ ignoreCase?: boolean
8607
9060
 
8608
- groupKind?: ("mixed" | "optional-first" | "required-first")
9061
+ locales?: (string | string[])
8609
9062
 
8610
9063
  groups?: (string | string[])[]
8611
9064
 
8612
- customGroups?: {
8613
- [k: string]: (string | string[]) | undefined
8614
- }
9065
+ order?: ("asc" | "desc")
9066
+
9067
+ type?: ("alphabetical" | "natural" | "line-length")
8615
9068
  }]
8616
9069
  // ----- perfectionist/sort-intersection-types -----
8617
9070
  type PerfectionistSortIntersectionTypes = []|[{
8618
9071
 
8619
- type?: ("alphabetical" | "natural" | "line-length")
9072
+ partitionByComment?: (string[] | boolean | string)
8620
9073
 
8621
- order?: ("asc" | "desc")
9074
+ partitionByNewLine?: boolean
8622
9075
 
8623
- matcher?: ("minimatch" | "regex")
9076
+ specialCharacters?: ("remove" | "trim" | "keep")
9077
+
9078
+ newlinesBetween?: ("ignore" | "always" | "never")
8624
9079
 
8625
9080
  ignoreCase?: boolean
8626
9081
 
8627
- specialCharacters?: ("remove" | "trim" | "keep")
9082
+ locales?: (string | string[])
8628
9083
 
8629
9084
  groups?: (string | string[])[]
8630
9085
 
8631
- partitionByComment?: (string[] | boolean | string)
9086
+ order?: ("asc" | "desc")
8632
9087
 
8633
- partitionByNewLine?: boolean
9088
+ type?: ("alphabetical" | "natural" | "line-length")
8634
9089
  }]
8635
9090
  // ----- perfectionist/sort-jsx-props -----
8636
9091
  type PerfectionistSortJsxProps = []|[{
8637
9092
 
8638
- type?: ("alphabetical" | "natural" | "line-length")
9093
+ ignorePattern?: string[]
8639
9094
 
8640
- order?: ("asc" | "desc")
9095
+ specialCharacters?: ("remove" | "trim" | "keep")
8641
9096
 
8642
- matcher?: ("minimatch" | "regex")
9097
+ customGroups?: {
9098
+ [k: string]: (string | string[]) | undefined
9099
+ }
8643
9100
 
8644
9101
  ignoreCase?: boolean
8645
9102
 
8646
- specialCharacters?: ("remove" | "trim" | "keep")
8647
-
8648
- ignorePattern?: string[]
9103
+ locales?: (string | string[])
8649
9104
 
8650
9105
  groups?: (string | string[])[]
8651
9106
 
8652
- customGroups?: {
8653
- [k: string]: (string | string[]) | undefined
8654
- }
9107
+ order?: ("asc" | "desc")
9108
+
9109
+ type?: ("alphabetical" | "natural" | "line-length")
8655
9110
  }]
8656
9111
  // ----- perfectionist/sort-maps -----
8657
9112
  type PerfectionistSortMaps = []|[{
8658
9113
 
8659
- type?: ("alphabetical" | "natural" | "line-length")
9114
+ partitionByComment?: (string[] | boolean | string)
8660
9115
 
8661
- order?: ("asc" | "desc")
9116
+ partitionByNewLine?: boolean
8662
9117
 
8663
- matcher?: ("minimatch" | "regex")
9118
+ specialCharacters?: ("remove" | "trim" | "keep")
8664
9119
 
8665
9120
  ignoreCase?: boolean
8666
9121
 
8667
- specialCharacters?: ("remove" | "trim" | "keep")
9122
+ locales?: (string | string[])
9123
+
9124
+ order?: ("asc" | "desc")
9125
+
9126
+ type?: ("alphabetical" | "natural" | "line-length")
9127
+ }]
9128
+ // ----- perfectionist/sort-modules -----
9129
+ type PerfectionistSortModules = []|[{
9130
+
9131
+ customGroups?: ({
9132
+
9133
+ groupName?: string
9134
+
9135
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
9136
+
9137
+ order?: ("desc" | "asc")
9138
+ anyOf?: {
9139
+
9140
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
9141
+
9142
+ elementValuePattern?: string
9143
+
9144
+ decoratorNamePattern?: string
9145
+
9146
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
9147
+
9148
+ elementNamePattern?: string
9149
+ }[]
9150
+ } | {
9151
+
9152
+ groupName?: string
9153
+
9154
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
9155
+
9156
+ order?: ("desc" | "asc")
9157
+
9158
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
9159
+
9160
+ elementValuePattern?: string
9161
+
9162
+ decoratorNamePattern?: string
9163
+
9164
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
9165
+
9166
+ elementNamePattern?: string
9167
+ })[]
8668
9168
 
8669
9169
  partitionByComment?: (string[] | boolean | string)
8670
9170
 
8671
9171
  partitionByNewLine?: boolean
9172
+
9173
+ specialCharacters?: ("remove" | "trim" | "keep")
9174
+
9175
+ newlinesBetween?: ("ignore" | "always" | "never")
9176
+
9177
+ ignoreCase?: boolean
9178
+
9179
+ locales?: (string | string[])
9180
+
9181
+ groups?: (string | string[])[]
9182
+
9183
+ order?: ("asc" | "desc")
9184
+
9185
+ type?: ("alphabetical" | "natural" | "line-length")
8672
9186
  }]
8673
9187
  // ----- perfectionist/sort-named-exports -----
8674
9188
  type PerfectionistSortNamedExports = []|[{
8675
9189
 
8676
- type?: ("alphabetical" | "natural" | "line-length")
8677
-
8678
- order?: ("asc" | "desc")
9190
+ partitionByComment?: (string[] | boolean | string)
8679
9191
 
8680
- matcher?: ("minimatch" | "regex")
9192
+ groupKind?: ("mixed" | "values-first" | "types-first")
8681
9193
 
8682
- ignoreCase?: boolean
9194
+ partitionByNewLine?: boolean
8683
9195
 
8684
9196
  specialCharacters?: ("remove" | "trim" | "keep")
8685
9197
 
8686
- groupKind?: ("mixed" | "values-first" | "types-first")
9198
+ ignoreCase?: boolean
8687
9199
 
8688
- partitionByComment?: (string[] | boolean | string)
9200
+ locales?: (string | string[])
8689
9201
 
8690
- partitionByNewLine?: boolean
9202
+ order?: ("asc" | "desc")
9203
+
9204
+ type?: ("alphabetical" | "natural" | "line-length")
8691
9205
  }]
8692
9206
  // ----- perfectionist/sort-named-imports -----
8693
9207
  type PerfectionistSortNamedImports = []|[{
8694
9208
 
8695
- type?: ("alphabetical" | "natural" | "line-length")
9209
+ partitionByComment?: (string[] | boolean | string)
8696
9210
 
8697
- order?: ("asc" | "desc")
9211
+ groupKind?: ("mixed" | "values-first" | "types-first")
8698
9212
 
8699
- matcher?: ("minimatch" | "regex")
9213
+ ignoreAlias?: boolean
8700
9214
 
8701
- ignoreCase?: boolean
9215
+ partitionByNewLine?: boolean
8702
9216
 
8703
9217
  specialCharacters?: ("remove" | "trim" | "keep")
8704
9218
 
8705
- ignoreAlias?: boolean
9219
+ ignoreCase?: boolean
8706
9220
 
8707
- groupKind?: ("mixed" | "values-first" | "types-first")
9221
+ locales?: (string | string[])
8708
9222
 
8709
- partitionByComment?: (string[] | boolean | string)
9223
+ order?: ("asc" | "desc")
8710
9224
 
8711
- partitionByNewLine?: boolean
9225
+ type?: ("alphabetical" | "natural" | "line-length")
8712
9226
  }]
8713
9227
  // ----- perfectionist/sort-object-types -----
8714
9228
  type PerfectionistSortObjectTypes = []|[{
8715
9229
 
8716
- type?: ("alphabetical" | "natural" | "line-length")
8717
-
8718
- order?: ("asc" | "desc")
8719
-
8720
- matcher?: ("minimatch" | "regex")
8721
-
8722
- ignoreCase?: boolean
8723
-
8724
- specialCharacters?: ("remove" | "trim" | "keep")
8725
-
8726
9230
  partitionByComment?: (string[] | boolean | string)
8727
9231
 
9232
+ groupKind?: ("mixed" | "required-first" | "optional-first")
9233
+
8728
9234
  partitionByNewLine?: boolean
8729
9235
 
8730
- groupKind?: ("mixed" | "required-first" | "optional-first")
9236
+ specialCharacters?: ("remove" | "trim" | "keep")
8731
9237
 
8732
- groups?: (string | string[])[]
9238
+ newlinesBetween?: ("ignore" | "always" | "never")
8733
9239
 
8734
9240
  customGroups?: {
8735
9241
  [k: string]: (string | string[]) | undefined
8736
9242
  }
8737
- }]
8738
- // ----- perfectionist/sort-objects -----
8739
- type PerfectionistSortObjects = []|[{
8740
9243
 
8741
- type?: ("alphabetical" | "natural" | "line-length")
9244
+ ignoreCase?: boolean
8742
9245
 
8743
- order?: ("asc" | "desc")
9246
+ locales?: (string | string[])
8744
9247
 
8745
- matcher?: ("minimatch" | "regex")
9248
+ groups?: (string | string[])[]
8746
9249
 
8747
- ignoreCase?: boolean
9250
+ order?: ("asc" | "desc")
8748
9251
 
8749
- specialCharacters?: ("remove" | "trim" | "keep")
9252
+ type?: ("alphabetical" | "natural" | "line-length")
9253
+ }]
9254
+ // ----- perfectionist/sort-objects -----
9255
+ type PerfectionistSortObjects = []|[{
9256
+
9257
+ ignorePattern?: string[]
8750
9258
 
8751
9259
  partitionByComment?: (string[] | boolean | string)
8752
9260
 
8753
- partitionByNewLine?: boolean
9261
+ destructureOnly?: boolean
8754
9262
 
8755
9263
  styledComponents?: boolean
8756
9264
 
8757
- destructureOnly?: boolean
9265
+ partitionByNewLine?: boolean
8758
9266
 
8759
- ignorePattern?: string[]
9267
+ specialCharacters?: ("remove" | "trim" | "keep")
8760
9268
 
8761
- groups?: (string | string[])[]
9269
+ newlinesBetween?: ("ignore" | "always" | "never")
8762
9270
 
8763
9271
  customGroups?: {
8764
9272
  [k: string]: (string | string[]) | undefined
8765
9273
  }
8766
- }]
8767
- // ----- perfectionist/sort-sets -----
8768
- type PerfectionistSortSets = []|[{
8769
-
8770
- type?: ("alphabetical" | "natural" | "line-length")
8771
-
8772
- order?: ("asc" | "desc")
8773
-
8774
- matcher?: ("minimatch" | "regex")
8775
9274
 
8776
9275
  ignoreCase?: boolean
8777
9276
 
8778
- specialCharacters?: ("remove" | "trim" | "keep")
9277
+ locales?: (string | string[])
8779
9278
 
8780
- groupKind?: ("mixed" | "literals-first" | "spreads-first")
9279
+ groups?: (string | string[])[]
8781
9280
 
8782
- partitionByComment?: (string[] | boolean | string)
9281
+ order?: ("asc" | "desc")
8783
9282
 
8784
- partitionByNewLine?: boolean
9283
+ type?: ("alphabetical" | "natural" | "line-length")
8785
9284
  }]
8786
- // ----- perfectionist/sort-svelte-attributes -----
8787
- type PerfectionistSortSvelteAttributes = []|[{
9285
+ // ----- perfectionist/sort-sets -----
9286
+ type PerfectionistSortSets = []|[{
8788
9287
 
8789
- type?: ("alphabetical" | "natural" | "line-length")
9288
+ partitionByComment?: (string[] | boolean | string)
8790
9289
 
8791
- order?: ("asc" | "desc")
9290
+ groupKind?: ("mixed" | "literals-first" | "spreads-first")
8792
9291
 
8793
- matcher?: ("minimatch" | "regex")
9292
+ partitionByNewLine?: boolean
9293
+
9294
+ specialCharacters?: ("remove" | "trim" | "keep")
8794
9295
 
8795
9296
  ignoreCase?: boolean
8796
9297
 
8797
- specialCharacters?: ("remove" | "trim" | "keep")
9298
+ locales?: (string | string[])
8798
9299
 
8799
- groups?: (string | string[])[]
9300
+ order?: ("asc" | "desc")
8800
9301
 
8801
- customGroups?: {
8802
- [k: string]: (string | string[]) | undefined
8803
- }
9302
+ type?: ("alphabetical" | "natural" | "line-length")
8804
9303
  }]
8805
9304
  // ----- perfectionist/sort-switch-case -----
8806
9305
  type PerfectionistSortSwitchCase = []|[{
8807
9306
 
8808
- type?: ("alphabetical" | "natural" | "line-length")
8809
-
8810
- order?: ("asc" | "desc")
9307
+ specialCharacters?: ("remove" | "trim" | "keep")
8811
9308
 
8812
9309
  ignoreCase?: boolean
8813
9310
 
8814
- specialCharacters?: ("remove" | "trim" | "keep")
9311
+ locales?: (string | string[])
9312
+
9313
+ order?: ("asc" | "desc")
9314
+
9315
+ type?: ("alphabetical" | "natural" | "line-length")
8815
9316
  }]
8816
9317
  // ----- perfectionist/sort-union-types -----
8817
9318
  type PerfectionistSortUnionTypes = []|[{
8818
9319
 
8819
- type?: ("alphabetical" | "natural" | "line-length")
9320
+ partitionByComment?: (string[] | boolean | string)
8820
9321
 
8821
- order?: ("asc" | "desc")
9322
+ partitionByNewLine?: boolean
8822
9323
 
8823
- matcher?: ("minimatch" | "regex")
9324
+ specialCharacters?: ("remove" | "trim" | "keep")
9325
+
9326
+ newlinesBetween?: ("ignore" | "always" | "never")
8824
9327
 
8825
9328
  ignoreCase?: boolean
8826
9329
 
8827
- specialCharacters?: ("remove" | "trim" | "keep")
9330
+ locales?: (string | string[])
8828
9331
 
8829
9332
  groups?: (string | string[])[]
8830
9333
 
8831
- partitionByComment?: (string[] | boolean | string)
9334
+ order?: ("asc" | "desc")
8832
9335
 
8833
- partitionByNewLine?: boolean
9336
+ type?: ("alphabetical" | "natural" | "line-length")
8834
9337
  }]
8835
9338
  // ----- perfectionist/sort-variable-declarations -----
8836
9339
  type PerfectionistSortVariableDeclarations = []|[{
8837
9340
 
8838
- type?: ("alphabetical" | "natural" | "line-length")
8839
-
8840
- order?: ("asc" | "desc")
8841
-
8842
- matcher?: ("minimatch" | "regex")
8843
-
8844
- ignoreCase?: boolean
8845
-
8846
- specialCharacters?: ("remove" | "trim" | "keep")
8847
-
8848
9341
  partitionByComment?: (string[] | boolean | string)
8849
9342
 
8850
9343
  partitionByNewLine?: boolean
8851
- }]
8852
- // ----- perfectionist/sort-vue-attributes -----
8853
- type PerfectionistSortVueAttributes = []|[{
8854
9344
 
8855
- type?: ("alphabetical" | "natural" | "line-length")
8856
-
8857
- order?: ("asc" | "desc")
8858
-
8859
- matcher?: ("minimatch" | "regex")
9345
+ specialCharacters?: ("remove" | "trim" | "keep")
8860
9346
 
8861
9347
  ignoreCase?: boolean
8862
9348
 
8863
- specialCharacters?: ("remove" | "trim" | "keep")
9349
+ locales?: (string | string[])
8864
9350
 
8865
- groups?: (string | string[])[]
9351
+ order?: ("asc" | "desc")
8866
9352
 
8867
- customGroups?: {
8868
- [k: string]: (string | string[]) | undefined
8869
- }
9353
+ type?: ("alphabetical" | "natural" | "line-length")
8870
9354
  }]
8871
9355
  // ----- prefer-arrow-callback -----
8872
9356
  type PreferArrowCallback = []|[{
@@ -9406,6 +9890,124 @@ type ReactStylePropObject = []|[{
9406
9890
  allow?: string[]
9407
9891
  [k: string]: unknown | undefined
9408
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
+ }]
9409
10011
  // ----- require-atomic-updates -----
9410
10012
  type RequireAtomicUpdates = []|[{
9411
10013
  allowProperties?: boolean
@@ -9823,14 +10425,14 @@ interface ReactOptions {
9823
10425
  */
9824
10426
  utilities?: ReactUtilities[];
9825
10427
  }
9826
- type TypedConfigItem = {
10428
+ type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
9827
10429
  /**
9828
10430
  * An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
9829
10431
  *
9830
10432
  * @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
9831
10433
  */
9832
10434
  plugins?: Record<string, unknown>;
9833
- } & Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins">;
10435
+ };
9834
10436
  interface Options {
9835
10437
  /**
9836
10438
  * Are astro rules enabled?
@@ -10547,6 +11149,7 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
10547
11149
  order: "asc";
10548
11150
  type: "natural";
10549
11151
  }];
11152
+ "perfectionist/sort-modules": "off";
10550
11153
  };
10551
11154
  } | {
10552
11155
  rules: Linter.RulesRecord;
@@ -12095,6 +12698,11 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
12095
12698
  "react-refresh": typeof eslint_plugin_react_refresh;
12096
12699
  };
12097
12700
  rules: {
12701
+ "react-hooks/exhaustive-deps": "error";
12702
+ "react-hooks/rules-of-hooks": "error";
12703
+ "react-refresh/only-export-components": ["warn", {
12704
+ allowConstantExport: true;
12705
+ }];
12098
12706
  "react/boolean-prop-naming": "off";
12099
12707
  "react/button-has-type": "error";
12100
12708
  "react/checked-requires-onchange-or-readonly": "error";
@@ -12163,17 +12771,25 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
12163
12771
  "react/static-property-placement": "off";
12164
12772
  "react/style-prop-object": "error";
12165
12773
  "react/void-dom-elements-no-children": "error";
12166
- "react-hooks/exhaustive-deps": "error";
12167
- "react-hooks/rules-of-hooks": "error";
12168
- "react-refresh/only-export-components": ["warn", {
12169
- allowConstantExport: true;
12170
- }];
12171
12774
  };
12172
12775
  settings: {
12173
12776
  react: {
12174
12777
  version: string;
12175
12778
  };
12176
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
+ };
12177
12793
  } | {
12178
12794
  files: string[];
12179
12795
  name: string;