@dineroregnskab/eslint-plugin-custom-rules 2.0.6 → 2.0.7

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.
Files changed (174) hide show
  1. package/eslint-plugin-custom-rules.js +2 -0
  2. package/package.json +1 -1
  3. package/node_modules/@aashutoshrathi/word-wrap/LICENSE +0 -21
  4. package/node_modules/@aashutoshrathi/word-wrap/README.md +0 -182
  5. package/node_modules/@aashutoshrathi/word-wrap/index.d.ts +0 -50
  6. package/node_modules/@aashutoshrathi/word-wrap/index.js +0 -52
  7. package/node_modules/@aashutoshrathi/word-wrap/package.json +0 -81
  8. package/node_modules/@angular-eslint/bundled-angular-compiler/README.md +0 -1
  9. package/node_modules/@angular-eslint/bundled-angular-compiler/dist/index.d.ts +0 -5
  10. package/node_modules/@angular-eslint/bundled-angular-compiler/dist/index.js +0 -32004
  11. package/node_modules/@angular-eslint/bundled-angular-compiler/package.json +0 -19
  12. package/node_modules/@angular-eslint/template-parser/LICENSE +0 -21
  13. package/node_modules/@angular-eslint/template-parser/README.md +0 -1
  14. package/node_modules/@angular-eslint/template-parser/dist/convert-source-span-to-loc.d.ts +0 -6
  15. package/node_modules/@angular-eslint/template-parser/dist/convert-source-span-to-loc.js +0 -69
  16. package/node_modules/@angular-eslint/template-parser/dist/index.d.ts +0 -44
  17. package/node_modules/@angular-eslint/template-parser/dist/index.js +0 -219
  18. package/node_modules/@angular-eslint/template-parser/package.json +0 -28
  19. package/node_modules/@eslint/eslintrc/LICENSE +0 -19
  20. package/node_modules/@eslint/eslintrc/README.md +0 -115
  21. package/node_modules/@eslint/eslintrc/conf/config-schema.js +0 -79
  22. package/node_modules/@eslint/eslintrc/conf/environments.js +0 -215
  23. package/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +0 -1104
  24. package/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +0 -1
  25. package/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +0 -4333
  26. package/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +0 -1
  27. package/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +0 -532
  28. package/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +0 -523
  29. package/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +0 -115
  30. package/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +0 -145
  31. package/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +0 -238
  32. package/node_modules/@eslint/eslintrc/lib/config-array/index.js +0 -19
  33. package/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +0 -225
  34. package/node_modules/@eslint/eslintrc/lib/config-array-factory.js +0 -1149
  35. package/node_modules/@eslint/eslintrc/lib/flat-compat.js +0 -318
  36. package/node_modules/@eslint/eslintrc/lib/index-universal.js +0 -29
  37. package/node_modules/@eslint/eslintrc/lib/index.js +0 -56
  38. package/node_modules/@eslint/eslintrc/lib/shared/ajv.js +0 -191
  39. package/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +0 -135
  40. package/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +0 -325
  41. package/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +0 -63
  42. package/node_modules/@eslint/eslintrc/lib/shared/naming.js +0 -96
  43. package/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +0 -42
  44. package/node_modules/@eslint/eslintrc/lib/shared/types.js +0 -149
  45. package/node_modules/@eslint/eslintrc/package.json +0 -82
  46. package/node_modules/@eslint/eslintrc/universal.js +0 -9
  47. package/node_modules/@eslint/js/LICENSE +0 -19
  48. package/node_modules/@eslint/js/README.md +0 -57
  49. package/node_modules/@eslint/js/package.json +0 -31
  50. package/node_modules/@eslint/js/src/configs/eslint-all.js +0 -211
  51. package/node_modules/@eslint/js/src/configs/eslint-recommended.js +0 -76
  52. package/node_modules/@eslint/js/src/index.js +0 -17
  53. package/node_modules/@eslint-community/eslint-utils/LICENSE +0 -21
  54. package/node_modules/@eslint-community/eslint-utils/README.md +0 -37
  55. package/node_modules/@eslint-community/eslint-utils/index.js +0 -2068
  56. package/node_modules/@eslint-community/eslint-utils/index.js.map +0 -1
  57. package/node_modules/@eslint-community/eslint-utils/index.mjs +0 -2027
  58. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +0 -1
  59. package/node_modules/@eslint-community/eslint-utils/package.json +0 -73
  60. package/node_modules/@eslint-community/regexpp/LICENSE +0 -21
  61. package/node_modules/@eslint-community/regexpp/README.md +0 -177
  62. package/node_modules/@eslint-community/regexpp/index.d.ts +0 -1065
  63. package/node_modules/@eslint-community/regexpp/index.js +0 -2747
  64. package/node_modules/@eslint-community/regexpp/index.js.map +0 -1
  65. package/node_modules/@eslint-community/regexpp/index.mjs +0 -2737
  66. package/node_modules/@eslint-community/regexpp/index.mjs.map +0 -1
  67. package/node_modules/@eslint-community/regexpp/package.json +0 -93
  68. package/node_modules/@humanwhocodes/config-array/LICENSE +0 -201
  69. package/node_modules/@humanwhocodes/config-array/README.md +0 -342
  70. package/node_modules/@humanwhocodes/config-array/api.js +0 -1061
  71. package/node_modules/@humanwhocodes/config-array/package.json +0 -61
  72. package/node_modules/@humanwhocodes/module-importer/CHANGELOG.md +0 -15
  73. package/node_modules/@humanwhocodes/module-importer/LICENSE +0 -201
  74. package/node_modules/@humanwhocodes/module-importer/README.md +0 -80
  75. package/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs +0 -22
  76. package/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts +0 -27
  77. package/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts +0 -2
  78. package/node_modules/@humanwhocodes/module-importer/dist/module-importer.js +0 -18
  79. package/node_modules/@humanwhocodes/module-importer/package.json +0 -65
  80. package/node_modules/@humanwhocodes/module-importer/src/module-importer.cjs +0 -81
  81. package/node_modules/@humanwhocodes/module-importer/src/module-importer.js +0 -22
  82. package/node_modules/@humanwhocodes/object-schema/.eslintrc.js +0 -29
  83. package/node_modules/@humanwhocodes/object-schema/.github/workflows/nodejs-test.yml +0 -27
  84. package/node_modules/@humanwhocodes/object-schema/.github/workflows/release-please.yml +0 -39
  85. package/node_modules/@humanwhocodes/object-schema/CHANGELOG.md +0 -26
  86. package/node_modules/@humanwhocodes/object-schema/LICENSE +0 -29
  87. package/node_modules/@humanwhocodes/object-schema/README.md +0 -234
  88. package/node_modules/@humanwhocodes/object-schema/package.json +0 -33
  89. package/node_modules/@humanwhocodes/object-schema/src/index.js +0 -7
  90. package/node_modules/@humanwhocodes/object-schema/src/merge-strategy.js +0 -53
  91. package/node_modules/@humanwhocodes/object-schema/src/object-schema.js +0 -301
  92. package/node_modules/@humanwhocodes/object-schema/src/validation-strategy.js +0 -102
  93. package/node_modules/@humanwhocodes/object-schema/tests/merge-strategy.js +0 -66
  94. package/node_modules/@humanwhocodes/object-schema/tests/object-schema.js +0 -659
  95. package/node_modules/@humanwhocodes/object-schema/tests/validation-strategy.js +0 -186
  96. package/node_modules/@nodelib/fs.scandir/LICENSE +0 -21
  97. package/node_modules/@nodelib/fs.scandir/README.md +0 -171
  98. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  99. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +0 -19
  100. package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +0 -4
  101. package/node_modules/@nodelib/fs.scandir/out/constants.js +0 -17
  102. package/node_modules/@nodelib/fs.scandir/out/index.d.ts +0 -12
  103. package/node_modules/@nodelib/fs.scandir/out/index.js +0 -26
  104. package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  105. package/node_modules/@nodelib/fs.scandir/out/providers/async.js +0 -104
  106. package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +0 -1
  107. package/node_modules/@nodelib/fs.scandir/out/providers/common.js +0 -13
  108. package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +0 -5
  109. package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +0 -54
  110. package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  111. package/node_modules/@nodelib/fs.scandir/out/settings.js +0 -24
  112. package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  113. package/node_modules/@nodelib/fs.scandir/out/types/index.js +0 -2
  114. package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +0 -2
  115. package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +0 -19
  116. package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +0 -2
  117. package/node_modules/@nodelib/fs.scandir/out/utils/index.js +0 -5
  118. package/node_modules/@nodelib/fs.scandir/package.json +0 -44
  119. package/node_modules/@nodelib/fs.stat/LICENSE +0 -21
  120. package/node_modules/@nodelib/fs.stat/README.md +0 -126
  121. package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  122. package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +0 -17
  123. package/node_modules/@nodelib/fs.stat/out/index.d.ts +0 -12
  124. package/node_modules/@nodelib/fs.stat/out/index.js +0 -26
  125. package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  126. package/node_modules/@nodelib/fs.stat/out/providers/async.js +0 -36
  127. package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +0 -3
  128. package/node_modules/@nodelib/fs.stat/out/providers/sync.js +0 -23
  129. package/node_modules/@nodelib/fs.stat/out/settings.d.ts +0 -16
  130. package/node_modules/@nodelib/fs.stat/out/settings.js +0 -16
  131. package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  132. package/node_modules/@nodelib/fs.stat/out/types/index.js +0 -2
  133. package/node_modules/@nodelib/fs.stat/package.json +0 -37
  134. package/node_modules/@nodelib/fs.walk/LICENSE +0 -21
  135. package/node_modules/@nodelib/fs.walk/README.md +0 -215
  136. package/node_modules/@nodelib/fs.walk/out/index.d.ts +0 -14
  137. package/node_modules/@nodelib/fs.walk/out/index.js +0 -34
  138. package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  139. package/node_modules/@nodelib/fs.walk/out/providers/async.js +0 -30
  140. package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +0 -4
  141. package/node_modules/@nodelib/fs.walk/out/providers/index.js +0 -9
  142. package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +0 -12
  143. package/node_modules/@nodelib/fs.walk/out/providers/stream.js +0 -34
  144. package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +0 -10
  145. package/node_modules/@nodelib/fs.walk/out/providers/sync.js +0 -14
  146. package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  147. package/node_modules/@nodelib/fs.walk/out/readers/async.js +0 -97
  148. package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +0 -7
  149. package/node_modules/@nodelib/fs.walk/out/readers/common.js +0 -31
  150. package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  151. package/node_modules/@nodelib/fs.walk/out/readers/reader.js +0 -11
  152. package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +0 -15
  153. package/node_modules/@nodelib/fs.walk/out/readers/sync.js +0 -59
  154. package/node_modules/@nodelib/fs.walk/out/settings.d.ts +0 -30
  155. package/node_modules/@nodelib/fs.walk/out/settings.js +0 -26
  156. package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  157. package/node_modules/@nodelib/fs.walk/out/types/index.js +0 -2
  158. package/node_modules/@nodelib/fs.walk/package.json +0 -44
  159. package/node_modules/@ungap/structured-clone/.github/workflows/node.js.yml +0 -31
  160. package/node_modules/@ungap/structured-clone/LICENSE +0 -15
  161. package/node_modules/@ungap/structured-clone/README.md +0 -95
  162. package/node_modules/@ungap/structured-clone/cjs/deserialize.js +0 -78
  163. package/node_modules/@ungap/structured-clone/cjs/index.js +0 -27
  164. package/node_modules/@ungap/structured-clone/cjs/json.js +0 -24
  165. package/node_modules/@ungap/structured-clone/cjs/package.json +0 -1
  166. package/node_modules/@ungap/structured-clone/cjs/serialize.js +0 -160
  167. package/node_modules/@ungap/structured-clone/cjs/types.js +0 -22
  168. package/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -79
  169. package/node_modules/@ungap/structured-clone/esm/index.js +0 -25
  170. package/node_modules/@ungap/structured-clone/esm/json.js +0 -21
  171. package/node_modules/@ungap/structured-clone/esm/serialize.js +0 -161
  172. package/node_modules/@ungap/structured-clone/esm/types.js +0 -11
  173. package/node_modules/@ungap/structured-clone/package.json +0 -53
  174. package/node_modules/@ungap/structured-clone/structured-json.js +0 -1
@@ -1,1065 +0,0 @@
1
- // Generated by dts-bundle v0.7.3
2
-
3
- declare module "@eslint-community/regexpp" {
4
- import * as AST from "@eslint-community/regexpp/ast";
5
- import { RegExpParser } from "@eslint-community/regexpp/parser";
6
- import { RegExpValidator } from "@eslint-community/regexpp/validator";
7
- import { RegExpVisitor } from "@eslint-community/regexpp/visitor";
8
- export { RegExpSyntaxError } from "@eslint-community/regexpp/regexp-syntax-error";
9
- export { AST, RegExpParser, RegExpValidator };
10
- /**
11
- * Parse a given regular expression literal then make AST object.
12
- * @param source The source code to parse.
13
- * @param options The options to parse.
14
- * @returns The AST of the regular expression.
15
- */
16
- export function parseRegExpLiteral(
17
- source: RegExp | string,
18
- options?: RegExpParser.Options
19
- ): AST.RegExpLiteral;
20
- /**
21
- * Validate a given regular expression literal.
22
- * @param source The source code to validate.
23
- * @param options The options to validate.
24
- */
25
- export function validateRegExpLiteral(
26
- source: string,
27
- options?: RegExpValidator.Options
28
- ): void;
29
- export function visitRegExpAST(
30
- node: AST.Node,
31
- handlers: RegExpVisitor.Handlers
32
- ): void;
33
- }
34
-
35
- declare module "@eslint-community/regexpp/ast" {
36
- /**
37
- * The type which includes all nodes.
38
- */
39
- export type Node = BranchNode | LeafNode;
40
- /**
41
- * The type which includes all branch nodes.
42
- */
43
- export type BranchNode =
44
- | Alternative
45
- | CapturingGroup
46
- | CharacterClass
47
- | CharacterClassRange
48
- | ClassIntersection
49
- | ClassStringDisjunction
50
- | ClassSubtraction
51
- | ExpressionCharacterClass
52
- | Group
53
- | LookaroundAssertion
54
- | Pattern
55
- | Quantifier
56
- | RegExpLiteral
57
- | StringAlternative;
58
- /**
59
- * The type which includes all leaf nodes.
60
- */
61
- export type LeafNode =
62
- | Backreference
63
- | BoundaryAssertion
64
- | Character
65
- | CharacterSet
66
- | Flags;
67
- /**
68
- * The type which includes all atom nodes.
69
- */
70
- export type Element = Assertion | QuantifiableElement | Quantifier;
71
- /**
72
- * The type which includes all atom nodes that Quantifier node can have as children.
73
- */
74
- export type QuantifiableElement =
75
- | Backreference
76
- | CapturingGroup
77
- | Character
78
- | CharacterClass
79
- | CharacterSet
80
- | ExpressionCharacterClass
81
- | Group
82
- | LookaheadAssertion;
83
- /**
84
- * The type which includes all character class atom nodes.
85
- */
86
- export type CharacterClassElement =
87
- | ClassRangesCharacterClassElement
88
- | UnicodeSetsCharacterClassElement;
89
- export type ClassRangesCharacterClassElement =
90
- | Character
91
- | CharacterClassRange
92
- | CharacterUnicodePropertyCharacterSet
93
- | EscapeCharacterSet;
94
- export type UnicodeSetsCharacterClassElement =
95
- | Character
96
- | CharacterClassRange
97
- | ClassStringDisjunction
98
- | EscapeCharacterSet
99
- | ExpressionCharacterClass
100
- | UnicodePropertyCharacterSet
101
- | UnicodeSetsCharacterClass;
102
- /**
103
- * The type which defines common properties for all node types.
104
- */
105
- export interface NodeBase {
106
- /** The node type. */
107
- type: Node["type"];
108
- /** The parent node. */
109
- parent: Node["parent"];
110
- /** The 0-based index that this node starts. */
111
- start: number;
112
- /** The 0-based index that this node ends. */
113
- end: number;
114
- /** The raw text of this node. */
115
- raw: string;
116
- }
117
- /**
118
- * The root node.
119
- */
120
- export interface RegExpLiteral extends NodeBase {
121
- type: "RegExpLiteral";
122
- parent: null;
123
- pattern: Pattern;
124
- flags: Flags;
125
- }
126
- /**
127
- * The pattern.
128
- */
129
- export interface Pattern extends NodeBase {
130
- type: "Pattern";
131
- parent: RegExpLiteral | null;
132
- alternatives: Alternative[];
133
- }
134
- /**
135
- * The alternative.
136
- * E.g. `a|b`
137
- */
138
- export interface Alternative extends NodeBase {
139
- type: "Alternative";
140
- parent: CapturingGroup | Group | LookaroundAssertion | Pattern;
141
- elements: Element[];
142
- }
143
- /**
144
- * The uncapturing group.
145
- * E.g. `(?:ab)`
146
- */
147
- export interface Group extends NodeBase {
148
- type: "Group";
149
- parent: Alternative | Quantifier;
150
- alternatives: Alternative[];
151
- }
152
- /**
153
- * The capturing group.
154
- * E.g. `(ab)`, `(?<name>ab)`
155
- */
156
- export interface CapturingGroup extends NodeBase {
157
- type: "CapturingGroup";
158
- parent: Alternative | Quantifier;
159
- name: string | null;
160
- alternatives: Alternative[];
161
- references: Backreference[];
162
- }
163
- /**
164
- * The lookaround assertion.
165
- */
166
- export type LookaroundAssertion = LookaheadAssertion | LookbehindAssertion;
167
- /**
168
- * The lookahead assertion.
169
- * E.g. `(?=ab)`, `(?!ab)`
170
- */
171
- export interface LookaheadAssertion extends NodeBase {
172
- type: "Assertion";
173
- parent: Alternative | Quantifier;
174
- kind: "lookahead";
175
- negate: boolean;
176
- alternatives: Alternative[];
177
- }
178
- /**
179
- * The lookbehind assertion.
180
- * E.g. `(?<=ab)`, `(?<!ab)`
181
- */
182
- export interface LookbehindAssertion extends NodeBase {
183
- type: "Assertion";
184
- parent: Alternative;
185
- kind: "lookbehind";
186
- negate: boolean;
187
- alternatives: Alternative[];
188
- }
189
- /**
190
- * The quantifier.
191
- * E.g. `a?`, `a*`, `a+`, `a{1,2}`, `a??`, `a*?`, `a+?`, `a{1,2}?`
192
- */
193
- export interface Quantifier extends NodeBase {
194
- type: "Quantifier";
195
- parent: Alternative;
196
- min: number;
197
- max: number;
198
- greedy: boolean;
199
- element: QuantifiableElement;
200
- }
201
- /**
202
- * The character class.
203
- * E.g. `[ab]`, `[^ab]`
204
- */
205
- export type CharacterClass =
206
- | ClassRangesCharacterClass
207
- | UnicodeSetsCharacterClass;
208
- interface BaseCharacterClass extends NodeBase {
209
- type: "CharacterClass";
210
- parent:
211
- | Alternative
212
- | ClassIntersection
213
- | ClassSubtraction
214
- | Quantifier
215
- | UnicodeSetsCharacterClass;
216
- unicodeSets: boolean;
217
- negate: boolean;
218
- elements: CharacterClassElement[];
219
- }
220
- /**
221
- * The character class used in legacy (neither `u` nor `v` flag) and Unicode mode (`u` flag).
222
- *
223
- * This character class is guaranteed to **not** contain strings.
224
- *
225
- * In Unicode sets mode (`v` flag), {@link UnicodeSetsCharacterClass} is used.
226
- */
227
- export interface ClassRangesCharacterClass extends BaseCharacterClass {
228
- parent: Alternative | Quantifier;
229
- unicodeSets: false;
230
- elements: ClassRangesCharacterClassElement[];
231
- }
232
- /**
233
- * The character class used in Unicode sets mode (`v` flag).
234
- *
235
- * This character class may contain strings.
236
- */
237
- export interface UnicodeSetsCharacterClass extends BaseCharacterClass {
238
- parent:
239
- | Alternative
240
- | ClassIntersection
241
- | ClassSubtraction
242
- | Quantifier
243
- | UnicodeSetsCharacterClass;
244
- unicodeSets: true;
245
- elements: UnicodeSetsCharacterClassElement[];
246
- }
247
- /**
248
- * The character class.
249
- * E.g. `[a-b]`
250
- */
251
- export interface CharacterClassRange extends NodeBase {
252
- type: "CharacterClassRange";
253
- parent: CharacterClass;
254
- min: Character;
255
- max: Character;
256
- }
257
- /**
258
- * The assertion.
259
- */
260
- export type Assertion = BoundaryAssertion | LookaroundAssertion;
261
- /**
262
- * The boundary assertion.
263
- */
264
- export type BoundaryAssertion = EdgeAssertion | WordBoundaryAssertion;
265
- /**
266
- * The edge boundary assertion.
267
- * E.g. `^`, `$`
268
- */
269
- export interface EdgeAssertion extends NodeBase {
270
- type: "Assertion";
271
- parent: Alternative | Quantifier;
272
- kind: "end" | "start";
273
- }
274
- /**
275
- * The word bondary assertion.
276
- * E.g. `\b`, `\B`
277
- */
278
- export interface WordBoundaryAssertion extends NodeBase {
279
- type: "Assertion";
280
- parent: Alternative | Quantifier;
281
- kind: "word";
282
- negate: boolean;
283
- }
284
- /**
285
- * The character set.
286
- */
287
- export type CharacterSet =
288
- | AnyCharacterSet
289
- | EscapeCharacterSet
290
- | UnicodePropertyCharacterSet;
291
- /**
292
- * The dot.
293
- * E.g. `.`
294
- */
295
- export interface AnyCharacterSet extends NodeBase {
296
- type: "CharacterSet";
297
- parent: Alternative | Quantifier;
298
- kind: "any";
299
- }
300
- /**
301
- * The character class escape.
302
- * E.g. `\d`, `\s`, `\w`, `\D`, `\S`, `\W`
303
- */
304
- export interface EscapeCharacterSet extends NodeBase {
305
- type: "CharacterSet";
306
- parent:
307
- | Alternative
308
- | CharacterClass
309
- | ClassIntersection
310
- | ClassSubtraction
311
- | Quantifier;
312
- kind: "digit" | "space" | "word";
313
- negate: boolean;
314
- }
315
- /**
316
- * The unicode property escape.
317
- * E.g. `\p{ASCII}`, `\P{ASCII}`, `\p{Script=Hiragana}`
318
- */
319
- export type UnicodePropertyCharacterSet =
320
- | CharacterUnicodePropertyCharacterSet
321
- | StringsUnicodePropertyCharacterSet;
322
- interface BaseUnicodePropertyCharacterSet extends NodeBase {
323
- type: "CharacterSet";
324
- parent:
325
- | Alternative
326
- | CharacterClass
327
- | ClassIntersection
328
- | ClassSubtraction
329
- | Quantifier;
330
- kind: "property";
331
- strings: boolean;
332
- key: string;
333
- value: string | null;
334
- negate: boolean;
335
- }
336
- export interface CharacterUnicodePropertyCharacterSet
337
- extends BaseUnicodePropertyCharacterSet {
338
- strings: false;
339
- value: string | null;
340
- negate: boolean;
341
- }
342
- /** StringsUnicodePropertyCharacterSet is Unicode property escape with property of strings. */
343
- export interface StringsUnicodePropertyCharacterSet
344
- extends BaseUnicodePropertyCharacterSet {
345
- parent:
346
- | Alternative
347
- | ClassIntersection
348
- | ClassSubtraction
349
- | Quantifier
350
- | UnicodeSetsCharacterClass;
351
- strings: true;
352
- value: null;
353
- negate: false;
354
- }
355
- /**
356
- * The expression character class.
357
- * E.g. `[a--b]`, `[a&&b]`,`[^a--b]`, `[^a&&b]`
358
- */
359
- export interface ExpressionCharacterClass extends NodeBase {
360
- type: "ExpressionCharacterClass";
361
- parent:
362
- | Alternative
363
- | ClassIntersection
364
- | ClassSubtraction
365
- | Quantifier
366
- | UnicodeSetsCharacterClass;
367
- negate: boolean;
368
- expression: ClassIntersection | ClassSubtraction;
369
- }
370
- export type ClassSetOperand =
371
- | Character
372
- | ClassStringDisjunction
373
- | EscapeCharacterSet
374
- | ExpressionCharacterClass
375
- | UnicodePropertyCharacterSet
376
- | UnicodeSetsCharacterClass;
377
- /**
378
- * The character class intersection.
379
- * E.g. `a&&b`
380
- */
381
- export interface ClassIntersection extends NodeBase {
382
- type: "ClassIntersection";
383
- parent: ClassIntersection | ExpressionCharacterClass;
384
- left: ClassIntersection | ClassSetOperand;
385
- right: ClassSetOperand;
386
- }
387
- /**
388
- * The character class subtraction.
389
- * E.g. `a--b`
390
- */
391
- export interface ClassSubtraction extends NodeBase {
392
- type: "ClassSubtraction";
393
- parent: ClassSubtraction | ExpressionCharacterClass;
394
- left: ClassSetOperand | ClassSubtraction;
395
- right: ClassSetOperand;
396
- }
397
- /**
398
- * The character class string disjunction.
399
- * E.g. `\q{a|b}`
400
- */
401
- export interface ClassStringDisjunction extends NodeBase {
402
- type: "ClassStringDisjunction";
403
- parent: ClassIntersection | ClassSubtraction | UnicodeSetsCharacterClass;
404
- alternatives: StringAlternative[];
405
- }
406
- /** StringAlternative is only used for `\q{alt}`({@link ClassStringDisjunction}). */
407
- export interface StringAlternative extends NodeBase {
408
- type: "StringAlternative";
409
- parent: ClassStringDisjunction;
410
- elements: Character[];
411
- }
412
- /**
413
- * The character.
414
- * This includes escape sequences which mean a character.
415
- * E.g. `a`, `あ`, `✿`, `\x65`, `\u0065`, `\u{65}`, `\/`
416
- */
417
- export interface Character extends NodeBase {
418
- type: "Character";
419
- parent:
420
- | Alternative
421
- | CharacterClass
422
- | CharacterClassRange
423
- | ClassIntersection
424
- | ClassSubtraction
425
- | Quantifier
426
- | StringAlternative;
427
- value: number;
428
- }
429
- /**
430
- * The backreference.
431
- * E.g. `\1`, `\k<name>`
432
- */
433
- export interface Backreference extends NodeBase {
434
- type: "Backreference";
435
- parent: Alternative | Quantifier;
436
- ref: number | string;
437
- resolved: CapturingGroup;
438
- }
439
- /**
440
- * The flags.
441
- */
442
- export interface Flags extends NodeBase {
443
- type: "Flags";
444
- parent: RegExpLiteral | null;
445
- dotAll: boolean;
446
- global: boolean;
447
- hasIndices: boolean;
448
- ignoreCase: boolean;
449
- multiline: boolean;
450
- sticky: boolean;
451
- unicode: boolean;
452
- unicodeSets: boolean;
453
- }
454
- export {};
455
- }
456
-
457
- declare module "@eslint-community/regexpp/parser" {
458
- import type {
459
- Flags,
460
- RegExpLiteral,
461
- Pattern,
462
- } from "@eslint-community/regexpp/ast";
463
- import type { EcmaVersion } from "@eslint-community/regexpp/ecma-versions";
464
- export namespace RegExpParser {
465
- /**
466
- * The options for RegExpParser construction.
467
- */
468
- interface Options {
469
- /**
470
- * The flag to disable Annex B syntax. Default is `false`.
471
- */
472
- strict?: boolean;
473
- /**
474
- * ECMAScript version. Default is `2024`.
475
- * - `2015` added `u` and `y` flags.
476
- * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion,
477
- * and Unicode Property Escape.
478
- * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes.
479
- * - `2022` added `d` flag.
480
- * - `2023` added more valid Unicode Property Escapes.
481
- * - `2024` added `v` flag.
482
- */
483
- ecmaVersion?: EcmaVersion;
484
- }
485
- }
486
- export class RegExpParser {
487
- /**
488
- * Initialize this parser.
489
- * @param options The options of parser.
490
- */
491
- constructor(options?: RegExpParser.Options);
492
- /**
493
- * Parse a regular expression literal. E.g. "/abc/g"
494
- * @param source The source code to parse.
495
- * @param start The start index in the source code.
496
- * @param end The end index in the source code.
497
- * @returns The AST of the given regular expression.
498
- */
499
- parseLiteral(source: string, start?: number, end?: number): RegExpLiteral;
500
- /**
501
- * Parse a regular expression flags. E.g. "gim"
502
- * @param source The source code to parse.
503
- * @param start The start index in the source code.
504
- * @param end The end index in the source code.
505
- * @returns The AST of the given flags.
506
- */
507
- parseFlags(source: string, start?: number, end?: number): Flags;
508
- /**
509
- * Parse a regular expression pattern. E.g. "abc"
510
- * @param source The source code to parse.
511
- * @param start The start index in the source code.
512
- * @param end The end index in the source code.
513
- * @param flags The flags.
514
- * @returns The AST of the given pattern.
515
- */
516
- parsePattern(
517
- source: string,
518
- start?: number,
519
- end?: number,
520
- flags?: {
521
- unicode?: boolean;
522
- unicodeSets?: boolean;
523
- }
524
- ): Pattern;
525
- /**
526
- * @deprecated Backward compatibility
527
- * Use object `flags` instead of boolean `uFlag`.
528
- *
529
- * @param source The source code to parse.
530
- * @param start The start index in the source code.
531
- * @param end The end index in the source code.
532
- * @param uFlag The flag to set unicode mode.
533
- * @returns The AST of the given pattern.
534
- */
535
- parsePattern(
536
- source: string,
537
- start?: number,
538
- end?: number,
539
- uFlag?: boolean
540
- ): Pattern;
541
- }
542
- }
543
-
544
- declare module "@eslint-community/regexpp/validator" {
545
- import type { EcmaVersion } from "@eslint-community/regexpp/ecma-versions";
546
- export type RegExpValidatorSourceContext = {
547
- readonly source: string;
548
- readonly start: number;
549
- readonly end: number;
550
- readonly kind: "flags" | "literal" | "pattern";
551
- };
552
- export namespace RegExpValidator {
553
- /**
554
- * The options for RegExpValidator construction.
555
- */
556
- interface Options {
557
- /**
558
- * The flag to disable Annex B syntax. Default is `false`.
559
- */
560
- strict?: boolean;
561
- /**
562
- * ECMAScript version. Default is `2024`.
563
- * - `2015` added `u` and `y` flags.
564
- * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion,
565
- * and Unicode Property Escape.
566
- * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes.
567
- * - `2022` added `d` flag.
568
- * - `2023` added more valid Unicode Property Escapes.
569
- * - `2024` added `v` flag.
570
- */
571
- ecmaVersion?: EcmaVersion;
572
- /**
573
- * A function that is called when the validator entered a RegExp literal.
574
- * @param start The 0-based index of the first character.
575
- */
576
- onLiteralEnter?: (start: number) => void;
577
- /**
578
- * A function that is called when the validator left a RegExp literal.
579
- * @param start The 0-based index of the first character.
580
- * @param end The next 0-based index of the last character.
581
- */
582
- onLiteralLeave?: (start: number, end: number) => void;
583
- /**
584
- * A function that is called when the validator found flags.
585
- * @param start The 0-based index of the first character.
586
- * @param end The next 0-based index of the last character.
587
- * @param flags.global `g` flag.
588
- * @param flags.ignoreCase `i` flag.
589
- * @param flags.multiline `m` flag.
590
- * @param flags.unicode `u` flag.
591
- * @param flags.sticky `y` flag.
592
- * @param flags.dotAll `s` flag.
593
- * @param flags.hasIndices `d` flag.
594
- * @param flags.unicodeSets `v` flag.
595
- */
596
- onRegExpFlags?: (
597
- start: number,
598
- end: number,
599
- flags: {
600
- global: boolean;
601
- ignoreCase: boolean;
602
- multiline: boolean;
603
- unicode: boolean;
604
- sticky: boolean;
605
- dotAll: boolean;
606
- hasIndices: boolean;
607
- unicodeSets: boolean;
608
- }
609
- ) => void;
610
- /**
611
- * A function that is called when the validator found flags.
612
- * @param start The 0-based index of the first character.
613
- * @param end The next 0-based index of the last character.
614
- * @param global `g` flag.
615
- * @param ignoreCase `i` flag.
616
- * @param multiline `m` flag.
617
- * @param unicode `u` flag.
618
- * @param sticky `y` flag.
619
- * @param dotAll `s` flag.
620
- * @param hasIndices `d` flag.
621
- *
622
- * @deprecated Use `onRegExpFlags` instead.
623
- */
624
- onFlags?: (
625
- start: number,
626
- end: number,
627
- global: boolean,
628
- ignoreCase: boolean,
629
- multiline: boolean,
630
- unicode: boolean,
631
- sticky: boolean,
632
- dotAll: boolean,
633
- hasIndices: boolean
634
- ) => void;
635
- /**
636
- * A function that is called when the validator entered a pattern.
637
- * @param start The 0-based index of the first character.
638
- */
639
- onPatternEnter?: (start: number) => void;
640
- /**
641
- * A function that is called when the validator left a pattern.
642
- * @param start The 0-based index of the first character.
643
- * @param end The next 0-based index of the last character.
644
- */
645
- onPatternLeave?: (start: number, end: number) => void;
646
- /**
647
- * A function that is called when the validator entered a disjunction.
648
- * @param start The 0-based index of the first character.
649
- */
650
- onDisjunctionEnter?: (start: number) => void;
651
- /**
652
- * A function that is called when the validator left a disjunction.
653
- * @param start The 0-based index of the first character.
654
- * @param end The next 0-based index of the last character.
655
- */
656
- onDisjunctionLeave?: (start: number, end: number) => void;
657
- /**
658
- * A function that is called when the validator entered an alternative.
659
- * @param start The 0-based index of the first character.
660
- * @param index The 0-based index of alternatives in a disjunction.
661
- */
662
- onAlternativeEnter?: (start: number, index: number) => void;
663
- /**
664
- * A function that is called when the validator left an alternative.
665
- * @param start The 0-based index of the first character.
666
- * @param end The next 0-based index of the last character.
667
- * @param index The 0-based index of alternatives in a disjunction.
668
- */
669
- onAlternativeLeave?: (start: number, end: number, index: number) => void;
670
- /**
671
- * A function that is called when the validator entered an uncapturing group.
672
- * @param start The 0-based index of the first character.
673
- */
674
- onGroupEnter?: (start: number) => void;
675
- /**
676
- * A function that is called when the validator left an uncapturing group.
677
- * @param start The 0-based index of the first character.
678
- * @param end The next 0-based index of the last character.
679
- */
680
- onGroupLeave?: (start: number, end: number) => void;
681
- /**
682
- * A function that is called when the validator entered a capturing group.
683
- * @param start The 0-based index of the first character.
684
- * @param name The group name.
685
- */
686
- onCapturingGroupEnter?: (start: number, name: string | null) => void;
687
- /**
688
- * A function that is called when the validator left a capturing group.
689
- * @param start The 0-based index of the first character.
690
- * @param end The next 0-based index of the last character.
691
- * @param name The group name.
692
- */
693
- onCapturingGroupLeave?: (
694
- start: number,
695
- end: number,
696
- name: string | null
697
- ) => void;
698
- /**
699
- * A function that is called when the validator found a quantifier.
700
- * @param start The 0-based index of the first character.
701
- * @param end The next 0-based index of the last character.
702
- * @param min The minimum number of repeating.
703
- * @param max The maximum number of repeating.
704
- * @param greedy The flag to choose the longest matching.
705
- */
706
- onQuantifier?: (
707
- start: number,
708
- end: number,
709
- min: number,
710
- max: number,
711
- greedy: boolean
712
- ) => void;
713
- /**
714
- * A function that is called when the validator entered a lookahead/lookbehind assertion.
715
- * @param start The 0-based index of the first character.
716
- * @param kind The kind of the assertion.
717
- * @param negate The flag which represents that the assertion is negative.
718
- */
719
- onLookaroundAssertionEnter?: (
720
- start: number,
721
- kind: "lookahead" | "lookbehind",
722
- negate: boolean
723
- ) => void;
724
- /**
725
- * A function that is called when the validator left a lookahead/lookbehind assertion.
726
- * @param start The 0-based index of the first character.
727
- * @param end The next 0-based index of the last character.
728
- * @param kind The kind of the assertion.
729
- * @param negate The flag which represents that the assertion is negative.
730
- */
731
- onLookaroundAssertionLeave?: (
732
- start: number,
733
- end: number,
734
- kind: "lookahead" | "lookbehind",
735
- negate: boolean
736
- ) => void;
737
- /**
738
- * A function that is called when the validator found an edge boundary assertion.
739
- * @param start The 0-based index of the first character.
740
- * @param end The next 0-based index of the last character.
741
- * @param kind The kind of the assertion.
742
- */
743
- onEdgeAssertion?: (
744
- start: number,
745
- end: number,
746
- kind: "end" | "start"
747
- ) => void;
748
- /**
749
- * A function that is called when the validator found a word boundary assertion.
750
- * @param start The 0-based index of the first character.
751
- * @param end The next 0-based index of the last character.
752
- * @param kind The kind of the assertion.
753
- * @param negate The flag which represents that the assertion is negative.
754
- */
755
- onWordBoundaryAssertion?: (
756
- start: number,
757
- end: number,
758
- kind: "word",
759
- negate: boolean
760
- ) => void;
761
- /**
762
- * A function that is called when the validator found a dot.
763
- * @param start The 0-based index of the first character.
764
- * @param end The next 0-based index of the last character.
765
- * @param kind The kind of the character set.
766
- */
767
- onAnyCharacterSet?: (start: number, end: number, kind: "any") => void;
768
- /**
769
- * A function that is called when the validator found a character set escape.
770
- * @param start The 0-based index of the first character.
771
- * @param end The next 0-based index of the last character.
772
- * @param kind The kind of the character set.
773
- * @param negate The flag which represents that the character set is negative.
774
- */
775
- onEscapeCharacterSet?: (
776
- start: number,
777
- end: number,
778
- kind: "digit" | "space" | "word",
779
- negate: boolean
780
- ) => void;
781
- /**
782
- * A function that is called when the validator found a Unicode proerty escape.
783
- * @param start The 0-based index of the first character.
784
- * @param end The next 0-based index of the last character.
785
- * @param kind The kind of the character set.
786
- * @param key The property name.
787
- * @param value The property value.
788
- * @param negate The flag which represents that the character set is negative.
789
- * @param strings If true, the given property is property of strings.
790
- */
791
- onUnicodePropertyCharacterSet?: (
792
- start: number,
793
- end: number,
794
- kind: "property",
795
- key: string,
796
- value: string | null,
797
- negate: boolean,
798
- strings: boolean
799
- ) => void;
800
- /**
801
- * A function that is called when the validator found a character.
802
- * @param start The 0-based index of the first character.
803
- * @param end The next 0-based index of the last character.
804
- * @param value The code point of the character.
805
- */
806
- onCharacter?: (start: number, end: number, value: number) => void;
807
- /**
808
- * A function that is called when the validator found a backreference.
809
- * @param start The 0-based index of the first character.
810
- * @param end The next 0-based index of the last character.
811
- * @param ref The key of the referred capturing group.
812
- */
813
- onBackreference?: (
814
- start: number,
815
- end: number,
816
- ref: number | string
817
- ) => void;
818
- /**
819
- * A function that is called when the validator entered a character class.
820
- * @param start The 0-based index of the first character.
821
- * @param negate The flag which represents that the character class is negative.
822
- * @param unicodeSets `true` if unicodeSets mode.
823
- */
824
- onCharacterClassEnter?: (
825
- start: number,
826
- negate: boolean,
827
- unicodeSets: boolean
828
- ) => void;
829
- /**
830
- * A function that is called when the validator left a character class.
831
- * @param start The 0-based index of the first character.
832
- * @param end The next 0-based index of the last character.
833
- * @param negate The flag which represents that the character class is negative.
834
- */
835
- onCharacterClassLeave?: (
836
- start: number,
837
- end: number,
838
- negate: boolean
839
- ) => void;
840
- /**
841
- * A function that is called when the validator found a character class range.
842
- * @param start The 0-based index of the first character.
843
- * @param end The next 0-based index of the last character.
844
- * @param min The minimum code point of the range.
845
- * @param max The maximum code point of the range.
846
- */
847
- onCharacterClassRange?: (
848
- start: number,
849
- end: number,
850
- min: number,
851
- max: number
852
- ) => void;
853
- /**
854
- * A function that is called when the validator found a class intersection.
855
- * @param start The 0-based index of the first character.
856
- * @param end The next 0-based index of the last character.
857
- */
858
- onClassIntersection?: (start: number, end: number) => void;
859
- /**
860
- * A function that is called when the validator found a class subtraction.
861
- * @param start The 0-based index of the first character.
862
- * @param end The next 0-based index of the last character.
863
- */
864
- onClassSubtraction?: (start: number, end: number) => void;
865
- /**
866
- * A function that is called when the validator entered a class string disjunction.
867
- * @param start The 0-based index of the first character.
868
- */
869
- onClassStringDisjunctionEnter?: (start: number) => void;
870
- /**
871
- * A function that is called when the validator left a class string disjunction.
872
- * @param start The 0-based index of the first character.
873
- * @param end The next 0-based index of the last character.
874
- */
875
- onClassStringDisjunctionLeave?: (start: number, end: number) => void;
876
- /**
877
- * A function that is called when the validator entered a string alternative.
878
- * @param start The 0-based index of the first character.
879
- * @param index The 0-based index of alternatives in a disjunction.
880
- */
881
- onStringAlternativeEnter?: (start: number, index: number) => void;
882
- /**
883
- * A function that is called when the validator left a string alternative.
884
- * @param start The 0-based index of the first character.
885
- * @param end The next 0-based index of the last character.
886
- * @param index The 0-based index of alternatives in a disjunction.
887
- */
888
- onStringAlternativeLeave?: (
889
- start: number,
890
- end: number,
891
- index: number
892
- ) => void;
893
- }
894
- }
895
- /**
896
- * The regular expression validator.
897
- */
898
- export class RegExpValidator {
899
- /**
900
- * Initialize this validator.
901
- * @param options The options of validator.
902
- */
903
- constructor(options?: RegExpValidator.Options);
904
- /**
905
- * Validate a regular expression literal. E.g. "/abc/g"
906
- * @param source The source code to validate.
907
- * @param start The start index in the source code.
908
- * @param end The end index in the source code.
909
- */
910
- validateLiteral(source: string, start?: number, end?: number): void;
911
- /**
912
- * Validate a regular expression flags. E.g. "gim"
913
- * @param source The source code to validate.
914
- * @param start The start index in the source code.
915
- * @param end The end index in the source code.
916
- */
917
- validateFlags(source: string, start?: number, end?: number): void;
918
- /**
919
- * Validate a regular expression pattern. E.g. "abc"
920
- * @param source The source code to validate.
921
- * @param start The start index in the source code.
922
- * @param end The end index in the source code.
923
- * @param flags The flags.
924
- */
925
- validatePattern(
926
- source: string,
927
- start?: number,
928
- end?: number,
929
- flags?: {
930
- unicode?: boolean;
931
- unicodeSets?: boolean;
932
- }
933
- ): void;
934
- /**
935
- * @deprecated Backward compatibility
936
- * Use object `flags` instead of boolean `uFlag`.
937
- * @param source The source code to validate.
938
- * @param start The start index in the source code.
939
- * @param end The end index in the source code.
940
- * @param uFlag The flag to set unicode mode.
941
- */
942
- validatePattern(
943
- source: string,
944
- start?: number,
945
- end?: number,
946
- uFlag?: boolean
947
- ): void;
948
- }
949
- }
950
-
951
- declare module "@eslint-community/regexpp/visitor" {
952
- import type {
953
- Alternative,
954
- Assertion,
955
- Backreference,
956
- CapturingGroup,
957
- Character,
958
- CharacterClass,
959
- CharacterClassRange,
960
- CharacterSet,
961
- ClassIntersection,
962
- ClassStringDisjunction,
963
- ClassSubtraction,
964
- ExpressionCharacterClass,
965
- Flags,
966
- Group,
967
- Node,
968
- Pattern,
969
- Quantifier,
970
- RegExpLiteral,
971
- StringAlternative,
972
- } from "@eslint-community/regexpp/ast";
973
- /**
974
- * The visitor to walk on AST.
975
- */
976
- export class RegExpVisitor {
977
- /**
978
- * Initialize this visitor.
979
- * @param handlers Callbacks for each node.
980
- */
981
- constructor(handlers: RegExpVisitor.Handlers);
982
- /**
983
- * Visit a given node and descendant nodes.
984
- * @param node The root node to visit tree.
985
- */
986
- visit(node: Node): void;
987
- }
988
- export namespace RegExpVisitor {
989
- interface Handlers {
990
- onAlternativeEnter?: (node: Alternative) => void;
991
- onAlternativeLeave?: (node: Alternative) => void;
992
- onAssertionEnter?: (node: Assertion) => void;
993
- onAssertionLeave?: (node: Assertion) => void;
994
- onBackreferenceEnter?: (node: Backreference) => void;
995
- onBackreferenceLeave?: (node: Backreference) => void;
996
- onCapturingGroupEnter?: (node: CapturingGroup) => void;
997
- onCapturingGroupLeave?: (node: CapturingGroup) => void;
998
- onCharacterEnter?: (node: Character) => void;
999
- onCharacterLeave?: (node: Character) => void;
1000
- onCharacterClassEnter?: (node: CharacterClass) => void;
1001
- onCharacterClassLeave?: (node: CharacterClass) => void;
1002
- onCharacterClassRangeEnter?: (node: CharacterClassRange) => void;
1003
- onCharacterClassRangeLeave?: (node: CharacterClassRange) => void;
1004
- onCharacterSetEnter?: (node: CharacterSet) => void;
1005
- onCharacterSetLeave?: (node: CharacterSet) => void;
1006
- onClassIntersectionEnter?: (node: ClassIntersection) => void;
1007
- onClassIntersectionLeave?: (node: ClassIntersection) => void;
1008
- onClassStringDisjunctionEnter?: (node: ClassStringDisjunction) => void;
1009
- onClassStringDisjunctionLeave?: (node: ClassStringDisjunction) => void;
1010
- onClassSubtractionEnter?: (node: ClassSubtraction) => void;
1011
- onClassSubtractionLeave?: (node: ClassSubtraction) => void;
1012
- onExpressionCharacterClassEnter?: (
1013
- node: ExpressionCharacterClass
1014
- ) => void;
1015
- onExpressionCharacterClassLeave?: (
1016
- node: ExpressionCharacterClass
1017
- ) => void;
1018
- onFlagsEnter?: (node: Flags) => void;
1019
- onFlagsLeave?: (node: Flags) => void;
1020
- onGroupEnter?: (node: Group) => void;
1021
- onGroupLeave?: (node: Group) => void;
1022
- onPatternEnter?: (node: Pattern) => void;
1023
- onPatternLeave?: (node: Pattern) => void;
1024
- onQuantifierEnter?: (node: Quantifier) => void;
1025
- onQuantifierLeave?: (node: Quantifier) => void;
1026
- onRegExpLiteralEnter?: (node: RegExpLiteral) => void;
1027
- onRegExpLiteralLeave?: (node: RegExpLiteral) => void;
1028
- onStringAlternativeEnter?: (node: StringAlternative) => void;
1029
- onStringAlternativeLeave?: (node: StringAlternative) => void;
1030
- }
1031
- }
1032
- }
1033
-
1034
- declare module "@eslint-community/regexpp/regexp-syntax-error" {
1035
- import type { RegExpValidatorSourceContext } from "@eslint-community/regexpp/validator";
1036
- export class RegExpSyntaxError extends SyntaxError {
1037
- index: number;
1038
- constructor(message: string, index: number);
1039
- }
1040
- export function newRegExpSyntaxError(
1041
- srcCtx: RegExpValidatorSourceContext,
1042
- flags: {
1043
- unicode: boolean;
1044
- unicodeSets: boolean;
1045
- },
1046
- index: number,
1047
- message: string
1048
- ): RegExpSyntaxError;
1049
- }
1050
-
1051
- declare module "@eslint-community/regexpp/ecma-versions" {
1052
- export type EcmaVersion =
1053
- | 5
1054
- | 2015
1055
- | 2016
1056
- | 2017
1057
- | 2018
1058
- | 2019
1059
- | 2020
1060
- | 2021
1061
- | 2022
1062
- | 2023
1063
- | 2024;
1064
- export const latestEcmaVersion = 2024;
1065
- }