@w5s/eslint-config 7.1.1 → 7.2.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.
@@ -0,0 +1,546 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ import type { Linter } from 'eslint'
4
+
5
+ declare module 'eslint' {
6
+ namespace Linter {
7
+ interface RulesRecord extends RuleOptions {}
8
+ }
9
+ }
10
+
11
+ export interface RuleOptions {
12
+ /**
13
+ * disallow confusing quantifiers
14
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
15
+ */
16
+ 'regexp/confusing-quantifier'?: Linter.RuleEntry<[]>
17
+ /**
18
+ * enforce consistent escaping of control characters
19
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
20
+ */
21
+ 'regexp/control-character-escape'?: Linter.RuleEntry<[]>
22
+ /**
23
+ * enforce single grapheme in string literal
24
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
25
+ */
26
+ 'regexp/grapheme-string-literal'?: Linter.RuleEntry<[]>
27
+ /**
28
+ * enforce consistent usage of hexadecimal escape
29
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
30
+ */
31
+ 'regexp/hexadecimal-escape'?: Linter.RuleEntry<RegexpHexadecimalEscape>
32
+ /**
33
+ * enforce into your favorite case
34
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
35
+ */
36
+ 'regexp/letter-case'?: Linter.RuleEntry<RegexpLetterCase>
37
+ /**
38
+ * enforce match any character style
39
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
40
+ */
41
+ 'regexp/match-any'?: Linter.RuleEntry<RegexpMatchAny>
42
+ /**
43
+ * enforce use of escapes on negation
44
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
45
+ */
46
+ 'regexp/negation'?: Linter.RuleEntry<[]>
47
+ /**
48
+ * disallow elements that contradict assertions
49
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
50
+ */
51
+ 'regexp/no-contradiction-with-assertion'?: Linter.RuleEntry<[]>
52
+ /**
53
+ * disallow control characters
54
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
55
+ */
56
+ 'regexp/no-control-character'?: Linter.RuleEntry<[]>
57
+ /**
58
+ * disallow duplicate characters in the RegExp character class
59
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
60
+ */
61
+ 'regexp/no-dupe-characters-character-class'?: Linter.RuleEntry<[]>
62
+ /**
63
+ * disallow duplicate disjunctions
64
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
65
+ */
66
+ 'regexp/no-dupe-disjunctions'?: Linter.RuleEntry<RegexpNoDupeDisjunctions>
67
+ /**
68
+ * disallow alternatives without elements
69
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
70
+ */
71
+ 'regexp/no-empty-alternative'?: Linter.RuleEntry<[]>
72
+ /**
73
+ * disallow capturing group that captures empty.
74
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
75
+ */
76
+ 'regexp/no-empty-capturing-group'?: Linter.RuleEntry<[]>
77
+ /**
78
+ * disallow character classes that match no characters
79
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
80
+ */
81
+ 'regexp/no-empty-character-class'?: Linter.RuleEntry<[]>
82
+ /**
83
+ * disallow empty group
84
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
85
+ */
86
+ 'regexp/no-empty-group'?: Linter.RuleEntry<[]>
87
+ /**
88
+ * disallow empty lookahead assertion or empty lookbehind assertion
89
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
90
+ */
91
+ 'regexp/no-empty-lookarounds-assertion'?: Linter.RuleEntry<[]>
92
+ /**
93
+ * disallow empty string literals in character classes
94
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
95
+ */
96
+ 'regexp/no-empty-string-literal'?: Linter.RuleEntry<[]>
97
+ /**
98
+ * disallow escape backspace (`[\b]`)
99
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
100
+ */
101
+ 'regexp/no-escape-backspace'?: Linter.RuleEntry<[]>
102
+ /**
103
+ * disallow unnecessary nested lookaround assertions
104
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
105
+ */
106
+ 'regexp/no-extra-lookaround-assertions'?: Linter.RuleEntry<[]>
107
+ /**
108
+ * disallow invalid regular expression strings in `RegExp` constructors
109
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
110
+ */
111
+ 'regexp/no-invalid-regexp'?: Linter.RuleEntry<[]>
112
+ /**
113
+ * disallow invisible raw character
114
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
115
+ */
116
+ 'regexp/no-invisible-character'?: Linter.RuleEntry<[]>
117
+ /**
118
+ * disallow lazy quantifiers at the end of an expression
119
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
120
+ */
121
+ 'regexp/no-lazy-ends'?: Linter.RuleEntry<RegexpNoLazyEnds>
122
+ /**
123
+ * disallow legacy RegExp features
124
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
125
+ */
126
+ 'regexp/no-legacy-features'?: Linter.RuleEntry<RegexpNoLegacyFeatures>
127
+ /**
128
+ * disallow capturing groups that do not behave as one would expect
129
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
130
+ */
131
+ 'regexp/no-misleading-capturing-group'?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>
132
+ /**
133
+ * disallow multi-code-point characters in character classes and quantifiers
134
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
135
+ */
136
+ 'regexp/no-misleading-unicode-character'?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>
137
+ /**
138
+ * disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
139
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
140
+ */
141
+ 'regexp/no-missing-g-flag'?: Linter.RuleEntry<RegexpNoMissingGFlag>
142
+ /**
143
+ * disallow non-standard flags
144
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
145
+ */
146
+ 'regexp/no-non-standard-flag'?: Linter.RuleEntry<[]>
147
+ /**
148
+ * disallow obscure character ranges
149
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
150
+ */
151
+ 'regexp/no-obscure-range'?: Linter.RuleEntry<RegexpNoObscureRange>
152
+ /**
153
+ * disallow octal escape sequence
154
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
155
+ */
156
+ 'regexp/no-octal'?: Linter.RuleEntry<[]>
157
+ /**
158
+ * disallow optional assertions
159
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
160
+ */
161
+ 'regexp/no-optional-assertion'?: Linter.RuleEntry<[]>
162
+ /**
163
+ * disallow backreferences that reference a group that might not be matched
164
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
165
+ */
166
+ 'regexp/no-potentially-useless-backreference'?: Linter.RuleEntry<[]>
167
+ /**
168
+ * disallow standalone backslashes (`\`)
169
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
170
+ */
171
+ 'regexp/no-standalone-backslash'?: Linter.RuleEntry<[]>
172
+ /**
173
+ * disallow exponential and polynomial backtracking
174
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
175
+ */
176
+ 'regexp/no-super-linear-backtracking'?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>
177
+ /**
178
+ * disallow quantifiers that cause quadratic moves
179
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
180
+ */
181
+ 'regexp/no-super-linear-move'?: Linter.RuleEntry<RegexpNoSuperLinearMove>
182
+ /**
183
+ * disallow trivially nested assertions
184
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
185
+ */
186
+ 'regexp/no-trivially-nested-assertion'?: Linter.RuleEntry<[]>
187
+ /**
188
+ * disallow nested quantifiers that can be rewritten as one quantifier
189
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
190
+ */
191
+ 'regexp/no-trivially-nested-quantifier'?: Linter.RuleEntry<[]>
192
+ /**
193
+ * disallow unused capturing group
194
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
195
+ */
196
+ 'regexp/no-unused-capturing-group'?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>
197
+ /**
198
+ * disallow assertions that are known to always accept (or reject)
199
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
200
+ */
201
+ 'regexp/no-useless-assertions'?: Linter.RuleEntry<[]>
202
+ /**
203
+ * disallow useless backreferences in regular expressions
204
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
205
+ */
206
+ 'regexp/no-useless-backreference'?: Linter.RuleEntry<[]>
207
+ /**
208
+ * disallow character class with one character
209
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
210
+ */
211
+ 'regexp/no-useless-character-class'?: Linter.RuleEntry<RegexpNoUselessCharacterClass>
212
+ /**
213
+ * disallow useless `$` replacements in replacement string
214
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
215
+ */
216
+ 'regexp/no-useless-dollar-replacements'?: Linter.RuleEntry<[]>
217
+ /**
218
+ * disallow unnecessary escape characters in RegExp
219
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
220
+ */
221
+ 'regexp/no-useless-escape'?: Linter.RuleEntry<[]>
222
+ /**
223
+ * disallow unnecessary regex flags
224
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
225
+ */
226
+ 'regexp/no-useless-flag'?: Linter.RuleEntry<RegexpNoUselessFlag>
227
+ /**
228
+ * disallow unnecessarily non-greedy quantifiers
229
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
230
+ */
231
+ 'regexp/no-useless-lazy'?: Linter.RuleEntry<[]>
232
+ /**
233
+ * disallow unnecessary non-capturing group
234
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
235
+ */
236
+ 'regexp/no-useless-non-capturing-group'?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>
237
+ /**
238
+ * disallow quantifiers that can be removed
239
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
240
+ */
241
+ 'regexp/no-useless-quantifier'?: Linter.RuleEntry<[]>
242
+ /**
243
+ * disallow unnecessary character ranges
244
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
245
+ */
246
+ 'regexp/no-useless-range'?: Linter.RuleEntry<[]>
247
+ /**
248
+ * disallow unnecessary elements in expression character classes
249
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
250
+ */
251
+ 'regexp/no-useless-set-operand'?: Linter.RuleEntry<[]>
252
+ /**
253
+ * disallow string disjunction of single characters in `\q{...}`
254
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
255
+ */
256
+ 'regexp/no-useless-string-literal'?: Linter.RuleEntry<[]>
257
+ /**
258
+ * disallow unnecessary `{n,m}` quantifier
259
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
260
+ */
261
+ 'regexp/no-useless-two-nums-quantifier'?: Linter.RuleEntry<[]>
262
+ /**
263
+ * disallow quantifiers with a maximum of zero
264
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
265
+ */
266
+ 'regexp/no-zero-quantifier'?: Linter.RuleEntry<[]>
267
+ /**
268
+ * disallow the alternatives of lookarounds that end with a non-constant quantifier
269
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
270
+ */
271
+ 'regexp/optimal-lookaround-quantifier'?: Linter.RuleEntry<[]>
272
+ /**
273
+ * require optimal quantifiers for concatenated quantifiers
274
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
275
+ */
276
+ 'regexp/optimal-quantifier-concatenation'?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>
277
+ /**
278
+ * enforce using character class
279
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
280
+ */
281
+ 'regexp/prefer-character-class'?: Linter.RuleEntry<RegexpPreferCharacterClass>
282
+ /**
283
+ * enforce using `\d`
284
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
285
+ */
286
+ 'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>
287
+ /**
288
+ * enforces escape of replacement `$` character (`$$`).
289
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
290
+ */
291
+ 'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>
292
+ /**
293
+ * prefer lookarounds over capturing group that do not replace
294
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
295
+ */
296
+ 'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>
297
+ /**
298
+ * enforce using named backreferences
299
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
300
+ */
301
+ 'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>
302
+ /**
303
+ * enforce using named capture groups
304
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
305
+ */
306
+ 'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>
307
+ /**
308
+ * enforce using named replacement
309
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
310
+ */
311
+ 'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>
312
+ /**
313
+ * enforce using `+` quantifier
314
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
315
+ */
316
+ 'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>
317
+ /**
318
+ * prefer predefined assertion over equivalent lookarounds
319
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
320
+ */
321
+ 'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>
322
+ /**
323
+ * enforce using quantifier
324
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
325
+ */
326
+ 'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>
327
+ /**
328
+ * enforce using `?` quantifier
329
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
330
+ */
331
+ 'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>
332
+ /**
333
+ * enforce using character class range
334
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
335
+ */
336
+ 'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>
337
+ /**
338
+ * enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
339
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
340
+ */
341
+ 'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>
342
+ /**
343
+ * enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
344
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
345
+ */
346
+ 'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>
347
+ /**
348
+ * enforce using result array `groups`
349
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
350
+ */
351
+ 'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>
352
+ /**
353
+ * prefer character class set operations instead of lookarounds
354
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
355
+ */
356
+ 'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>
357
+ /**
358
+ * enforce using `*` quantifier
359
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
360
+ */
361
+ 'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>
362
+ /**
363
+ * enforce use of unicode codepoint escapes
364
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
365
+ */
366
+ 'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>
367
+ /**
368
+ * enforce using `\w`
369
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
370
+ */
371
+ 'regexp/prefer-w'?: Linter.RuleEntry<[]>
372
+ /**
373
+ * enforce the use of the `u` flag
374
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
375
+ */
376
+ 'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>
377
+ /**
378
+ * enforce the use of the `v` flag
379
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
380
+ */
381
+ 'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>
382
+ /**
383
+ * require simplify set operations
384
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
385
+ */
386
+ 'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>
387
+ /**
388
+ * sort alternatives if order doesn't matter
389
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
390
+ */
391
+ 'regexp/sort-alternatives'?: Linter.RuleEntry<[]>
392
+ /**
393
+ * enforces elements order in character class
394
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
395
+ */
396
+ 'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>
397
+ /**
398
+ * require regex flags to be sorted
399
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
400
+ */
401
+ 'regexp/sort-flags'?: Linter.RuleEntry<[]>
402
+ /**
403
+ * disallow not strictly valid regular expressions
404
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
405
+ */
406
+ 'regexp/strict'?: Linter.RuleEntry<[]>
407
+ /**
408
+ * enforce consistent usage of unicode escape or unicode codepoint escape
409
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
410
+ */
411
+ 'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>
412
+ /**
413
+ * enforce consistent naming of unicode properties
414
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
415
+ */
416
+ 'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>
417
+ /**
418
+ * use the `i` flag if it simplifies the pattern
419
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
420
+ */
421
+ 'regexp/use-ignore-case'?: Linter.RuleEntry<[]>
422
+ }
423
+
424
+ /* ======= Declarations ======= */
425
+ // ----- regexp/hexadecimal-escape -----
426
+ type RegexpHexadecimalEscape = []|[("always" | "never")]
427
+ // ----- regexp/letter-case -----
428
+ type RegexpLetterCase = []|[{
429
+ caseInsensitive?: ("lowercase" | "uppercase" | "ignore")
430
+ unicodeEscape?: ("lowercase" | "uppercase" | "ignore")
431
+ hexadecimalEscape?: ("lowercase" | "uppercase" | "ignore")
432
+ controlEscape?: ("lowercase" | "uppercase" | "ignore")
433
+ }]
434
+ // ----- regexp/match-any -----
435
+ type RegexpMatchAny = []|[{
436
+
437
+ allows?: [("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"), ...(("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"))[]]
438
+ }]
439
+ // ----- regexp/no-dupe-disjunctions -----
440
+ type RegexpNoDupeDisjunctions = []|[{
441
+ report?: ("all" | "trivial" | "interesting")
442
+ reportExponentialBacktracking?: ("none" | "certain" | "potential")
443
+ reportUnreachable?: ("certain" | "potential")
444
+ }]
445
+ // ----- regexp/no-lazy-ends -----
446
+ type RegexpNoLazyEnds = []|[{
447
+ ignorePartial?: boolean
448
+ }]
449
+ // ----- regexp/no-legacy-features -----
450
+ type RegexpNoLegacyFeatures = []|[{
451
+ staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[]
452
+ prototypeMethods?: ("compile")[]
453
+ }]
454
+ // ----- regexp/no-misleading-capturing-group -----
455
+ type RegexpNoMisleadingCapturingGroup = []|[{
456
+ reportBacktrackingEnds?: boolean
457
+ }]
458
+ // ----- regexp/no-misleading-unicode-character -----
459
+ type RegexpNoMisleadingUnicodeCharacter = []|[{
460
+ fixable?: boolean
461
+ }]
462
+ // ----- regexp/no-missing-g-flag -----
463
+ type RegexpNoMissingGFlag = []|[{
464
+ strictTypes?: boolean
465
+ }]
466
+ // ----- regexp/no-obscure-range -----
467
+ type RegexpNoObscureRange = []|[{
468
+ allowed?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
469
+ }]
470
+ // ----- regexp/no-super-linear-backtracking -----
471
+ type RegexpNoSuperLinearBacktracking = []|[{
472
+ report?: ("certain" | "potential")
473
+ }]
474
+ // ----- regexp/no-super-linear-move -----
475
+ type RegexpNoSuperLinearMove = []|[{
476
+ report?: ("certain" | "potential")
477
+ ignoreSticky?: boolean
478
+ ignorePartial?: boolean
479
+ }]
480
+ // ----- regexp/no-unused-capturing-group -----
481
+ type RegexpNoUnusedCapturingGroup = []|[{
482
+ fixable?: boolean
483
+ allowNamed?: boolean
484
+ }]
485
+ // ----- regexp/no-useless-character-class -----
486
+ type RegexpNoUselessCharacterClass = []|[{
487
+ ignores?: string[]
488
+ }]
489
+ // ----- regexp/no-useless-flag -----
490
+ type RegexpNoUselessFlag = []|[{
491
+ ignore?: ("i" | "m" | "s" | "g" | "y")[]
492
+ strictTypes?: boolean
493
+ }]
494
+ // ----- regexp/no-useless-non-capturing-group -----
495
+ type RegexpNoUselessNonCapturingGroup = []|[{
496
+ allowTop?: (boolean | ("always" | "never" | "partial"))
497
+ }]
498
+ // ----- regexp/optimal-quantifier-concatenation -----
499
+ type RegexpOptimalQuantifierConcatenation = []|[{
500
+ capturingGroups?: ("ignore" | "report")
501
+ }]
502
+ // ----- regexp/prefer-character-class -----
503
+ type RegexpPreferCharacterClass = []|[{
504
+ minAlternatives?: number
505
+ }]
506
+ // ----- regexp/prefer-d -----
507
+ type RegexpPreferD = []|[{
508
+ insideCharacterClass?: ("ignore" | "range" | "d")
509
+ }]
510
+ // ----- regexp/prefer-lookaround -----
511
+ type RegexpPreferLookaround = []|[{
512
+ lookbehind?: boolean
513
+ strictTypes?: boolean
514
+ }]
515
+ // ----- regexp/prefer-named-replacement -----
516
+ type RegexpPreferNamedReplacement = []|[{
517
+ strictTypes?: boolean
518
+ }]
519
+ // ----- regexp/prefer-quantifier -----
520
+ type RegexpPreferQuantifier = []|[{
521
+ allows?: string[]
522
+ }]
523
+ // ----- regexp/prefer-range -----
524
+ type RegexpPreferRange = []|[{
525
+ target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
526
+ }]
527
+ // ----- regexp/prefer-result-array-groups -----
528
+ type RegexpPreferResultArrayGroups = []|[{
529
+ strictTypes?: boolean
530
+ }]
531
+ // ----- regexp/sort-character-class-elements -----
532
+ type RegexpSortCharacterClassElements = []|[{
533
+ order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[]
534
+ }]
535
+ // ----- regexp/unicode-escape -----
536
+ type RegexpUnicodeEscape = []|[("unicodeCodePointEscape" | "unicodeEscape")]
537
+ // ----- regexp/unicode-property -----
538
+ type RegexpUnicodeProperty = []|[{
539
+ generalCategory?: ("always" | "never" | "ignore")
540
+ key?: ("short" | "long" | "ignore")
541
+ property?: (("short" | "long" | "ignore") | {
542
+ binary?: ("short" | "long" | "ignore")
543
+ generalCategory?: ("short" | "long" | "ignore")
544
+ script?: ("short" | "long" | "ignore")
545
+ })
546
+ }]
@@ -23,7 +23,7 @@ export interface RuleOptions {
23
23
  * Disallow awaiting a value that is not a Thenable
24
24
  * @see https://typescript-eslint.io/rules/await-thenable
25
25
  */
26
- 'ts/await-thenable'?: Linter.RuleEntry<[]>
26
+ 'ts/await-thenable'?: Linter.RuleEntry<TsAwaitThenable>
27
27
  /**
28
28
  * Disallow `@ts-<directive>` comments or require descriptions after directives
29
29
  * @see https://typescript-eslint.io/rules/ban-ts-comment
@@ -419,6 +419,11 @@ export interface RuleOptions {
419
419
  * @see https://typescript-eslint.io/rules/no-unsafe-call
420
420
  */
421
421
  'ts/no-unsafe-call'?: Linter.RuleEntry<[]>
422
+ /**
423
+ * Disallow assigning non-instance values to class instance typed locations
424
+ * @see https://typescript-eslint.io/rules/no-unsafe-class-instance-assignment
425
+ */
426
+ 'ts/no-unsafe-class-instance-assignment'?: Linter.RuleEntry<[]>
422
427
  /**
423
428
  * Disallow unsafe declaration merging
424
429
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
@@ -708,6 +713,11 @@ type TsArrayType = []|[{
708
713
 
709
714
  readonly?: ("array" | "generic" | "array-simple")
710
715
  }]
716
+ // ----- ts/await-thenable -----
717
+ type TsAwaitThenable = []|[{
718
+
719
+ allowMixedPromiseArrays?: boolean
720
+ }]
711
721
  // ----- ts/ban-ts-comment -----
712
722
  type TsBanTsComment = []|[{
713
723