|
4 | 4 |
|
5 | 5 | ## Table of contents
|
6 | 6 |
|
| 7 | +### Interfaces |
| 8 | + |
| 9 | +- [ERClassComponent](interfaces/ERClassComponent.md) |
| 10 | +- [ERFunctionComponent](interfaces/ERFunctionComponent.md) |
| 11 | +- [ERHook](interfaces/ERHook.md) |
| 12 | + |
7 | 13 | ### Type Aliases
|
8 | 14 |
|
9 |
| -- [ERClassComponent](README.md#erclasscomponent) |
10 | 15 | - [ERClassComponentFlag](README.md#erclasscomponentflag)
|
11 | 16 | - [ERComponent](README.md#ercomponent)
|
12 | 17 | - [ERComponentCollectorHint](README.md#ercomponentcollectorhint)
|
13 | 18 | - [ERComponentInitPath](README.md#ercomponentinitpath)
|
14 | 19 | - [ERComponentKind](README.md#ercomponentkind)
|
15 |
| -- [ERFunctionComponent](README.md#erfunctioncomponent) |
16 | 20 | - [ERFunctionComponentFlag](README.md#erfunctioncomponentflag)
|
17 |
| -- [ERHook](README.md#erhook) |
18 | 21 |
|
19 | 22 | ### Variables
|
20 | 23 |
|
|
78 | 81 |
|
79 | 82 | ## Type Aliases
|
80 | 83 |
|
81 |
| -### ERClassComponent |
82 |
| - |
83 |
| -Ƭ **ERClassComponent**: `Object` |
84 |
| - |
85 |
| -#### Type declaration |
86 |
| - |
87 |
| -| Name | Type | |
88 |
| -| :------------ | :--------------------------------------------------------------- | |
89 |
| -| `_` | `string` | |
90 |
| -| `displayName` | `O.Option`\<`TSESTree.Expression`\> | |
91 |
| -| `flag` | [`ERClassComponentFlag`](README.md#erclasscomponentflag-1) | |
92 |
| -| `id` | `O.Option`\<`TSESTree.Identifier`\> | |
93 |
| -| `kind` | `"class"` | |
94 |
| -| `methods` | (`TSESTree.MethodDefinition` \| `TSESTree.PropertyDefinition`)[] | |
95 |
| -| `name` | `O.Option`\<`string`\> | |
96 |
| -| `node` | `TSESTreeClass` | |
97 |
| - |
98 |
| ---- |
99 |
| - |
100 | 84 | ### ERClassComponentFlag
|
101 | 85 |
|
102 | 86 | Ƭ **ERClassComponentFlag**: `bigint`
|
|
105 | 89 |
|
106 | 90 | ### ERComponent
|
107 | 91 |
|
108 |
| -Ƭ **ERComponent**: [`ERClassComponent`](README.md#erclasscomponent) \| [`ERFunctionComponent`](README.md#erfunctioncomponent) |
| 92 | +Ƭ **ERComponent**: [`ERClassComponent`](interfaces/ERClassComponent.md) \| [`ERFunctionComponent`](interfaces/ERFunctionComponent.md) |
109 | 93 |
|
110 | 94 | ---
|
111 | 95 |
|
|
127 | 111 |
|
128 | 112 | ---
|
129 | 113 |
|
130 |
| -### ERFunctionComponent |
131 |
| - |
132 |
| -Ƭ **ERFunctionComponent**: `Object` |
133 |
| - |
134 |
| -#### Type declaration |
135 |
| - |
136 |
| -| Name | Type | |
137 |
| -| :------------ | :------------------------------------------------------------------- | |
138 |
| -| `_` | `string` | |
139 |
| -| `displayName` | `O.Option`\<`TSESTree.Expression`\> | |
140 |
| -| `flag` | [`ERFunctionComponentFlag`](README.md#erfunctioncomponentflag-1) | |
141 |
| -| `hint` | [`ERComponentCollectorHint`](README.md#ercomponentcollectorhint-1) | |
142 |
| -| `hookCalls` | `TSESTree.CallExpression`[] | |
143 |
| -| `id` | `O.Option`\<`TSESTree.Identifier` \| `TSESTree.Identifier`[]\> | |
144 |
| -| `initPath` | `O.Option`\<[`ERComponentInitPath`](README.md#ercomponentinitpath)\> | |
145 |
| -| `kind` | `"function"` | |
146 |
| -| `name` | `O.Option`\<`string`\> | |
147 |
| -| `node` | `TSESTreeFunction` | |
148 |
| - |
149 |
| ---- |
150 |
| - |
151 | 114 | ### ERFunctionComponentFlag
|
152 | 115 |
|
153 | 116 | Ƭ **ERFunctionComponentFlag**: `bigint`
|
154 | 117 |
|
155 |
| ---- |
156 |
| - |
157 |
| -### ERHook |
158 |
| - |
159 |
| -Ƭ **ERHook**: `Object` |
160 |
| - |
161 |
| -#### Type declaration |
162 |
| - |
163 |
| -| Name | Type | |
164 |
| -| :---------- | :-------------------------- | |
165 |
| -| `_` | `string` | |
166 |
| -| `hookCalls` | `TSESTree.CallExpression`[] | |
167 |
| -| `id` | `TSESTree.Identifier` | |
168 |
| -| `name` | `string` | |
169 |
| -| `node` | `TSESTreeFunction` | |
170 |
| - |
171 | 118 | ## Variables
|
172 | 119 |
|
173 | 120 | ### DEFAULT\_COMPONENT\_COLLECTOR\_HINT
|
@@ -262,7 +209,7 @@ hints for component collector
|
262 | 209 |
|
263 | 210 | | Name | Type |
|
264 | 211 | | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
265 |
| -| `ctx` | \{ `getCurrentFunction`: () => `Option`\<[`TSESTreeFunction`, `boolean`, `CallExpression`[]]\> ; `getAllComponents`: (`_`: `Program`) => `Map`\<`string`, [`ERFunctionComponent`](README.md#erfunctioncomponent)\> ; `getCurrentComponents`: () => `Map`\<`string`, [`ERFunctionComponent`](README.md#erfunctioncomponent)\> ; `getCurrentFunctionStack`: () => [`TSESTreeFunction`, `boolean`, `CallExpression`[]][] } | |
| 212 | +| `ctx` | \{ `getCurrentFunction`: () => `Option`\<[`TSESTreeFunction`, `boolean`, `CallExpression`[]]\> ; `getAllComponents`: (`_`: `Program`) => `Map`\<`string`, [`ERFunctionComponent`](interfaces/ERFunctionComponent.md)\> ; `getCurrentComponents`: () => `Map`\<`string`, [`ERFunctionComponent`](interfaces/ERFunctionComponent.md)\> ; `getCurrentFunctionStack`: () => [`TSESTreeFunction`, `boolean`, `CallExpression`[]][] } | |
266 | 213 | | `ctx.getCurrentFunction` | () => `Option`\<[`TSESTreeFunction`, `boolean`, `CallExpression`[]]\> |
|
267 | 214 | | `ctx.getAllComponents` | [object Object] |
|
268 | 215 | | `ctx.getCurrentComponents` | [object Object] |
|
@@ -291,14 +238,14 @@ hints for component collector
|
291 | 238 |
|
292 | 239 | `Object`
|
293 | 240 |
|
294 |
| -| Name | Type | |
295 |
| -| :--------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
296 |
| -| `ctx` | \{ `getAllComponents`: (`_`: `Program`) => `Map`\<`string`, [`ERClassComponent`](README.md#erclasscomponent)\> ; `getCurrentComponents`: () => `Map`\<`string`, [`ERClassComponent`](README.md#erclasscomponent)\> } | |
297 |
| -| `ctx.getAllComponents` | [object Object] | |
298 |
| -| `ctx.getCurrentComponents` | [object Object] | |
299 |
| -| `listeners` | \{ `ClassDeclaration`: (`node`: `TSESTreeClass`) => `void` = collect; `ClassExpression`: (`node`: `TSESTreeClass`) => `void` = collect } | |
300 |
| -| `listeners.ClassDeclaration` | (`node`: `TSESTreeClass`) => `void` | |
301 |
| -| `listeners.ClassExpression` | (`node`: `TSESTreeClass`) => `void` | |
| 241 | +| Name | Type | |
| 242 | +| :--------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 243 | +| `ctx` | \{ `getAllComponents`: (`_`: `Program`) => `Map`\<`string`, [`ERClassComponent`](interfaces/ERClassComponent.md)\> ; `getCurrentComponents`: () => `Map`\<`string`, [`ERClassComponent`](interfaces/ERClassComponent.md)\> } | |
| 244 | +| `ctx.getAllComponents` | [object Object] | |
| 245 | +| `ctx.getCurrentComponents` | [object Object] | |
| 246 | +| `listeners` | \{ `ClassDeclaration`: (`node`: `TSESTreeClass`) => `void` = collect; `ClassExpression`: (`node`: `TSESTreeClass`) => `void` = collect } | |
| 247 | +| `listeners.ClassDeclaration` | (`node`: `TSESTreeClass`) => `void` | |
| 248 | +| `listeners.ClassExpression` | (`node`: `TSESTreeClass`) => `void` | |
302 | 249 |
|
303 | 250 | ---
|
304 | 251 |
|
@@ -426,12 +373,12 @@ It will be removed in the future
|
426 | 373 |
|
427 | 374 | `Object`
|
428 | 375 |
|
429 |
| -| Name | Type | |
430 |
| -| :-------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
431 |
| -| `ctx` | \{ `getAllHooks`: (`_`: `Program`) => `Map`\<`string`, [`ERHook`](README.md#erhook)\> ; `getCurrentHooks`: () => `Map`\<`string`, [`ERHook`](README.md#erhook)\> } | |
432 |
| -| `ctx.getAllHooks` | [object Object] | |
433 |
| -| `ctx.getCurrentHooks` | [object Object] | |
434 |
| -| `listeners` | `ESLintUtils.RuleListener` | |
| 376 | +| Name | Type | |
| 377 | +| :-------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 378 | +| `ctx` | \{ `getAllHooks`: (`_`: `Program`) => `Map`\<`string`, [`ERHook`](interfaces/ERHook.md)\> ; `getCurrentHooks`: () => `Map`\<`string`, [`ERHook`](interfaces/ERHook.md)\> } | |
| 379 | +| `ctx.getAllHooks` | [object Object] | |
| 380 | +| `ctx.getCurrentHooks` | [object Object] | |
| 381 | +| `listeners` | `ESLintUtils.RuleListener` | |
435 | 382 |
|
436 | 383 | ---
|
437 | 384 |
|
|
0 commit comments