Skip to content

Commit 8239be0

Browse files
committed
refactor(core): reorganize component module structure
1 parent 4bdde29 commit 8239be0

37 files changed

+223
-241
lines changed

packages/core/docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,11 @@
6060
- [isChildrenToArray](functions/isChildrenToArray.md)
6161
- [isChildrenToArrayCall](functions/isChildrenToArrayCall.md)
6262
- [isClassComponent](functions/isClassComponent.md)
63-
- [isCleanupFunction](functions/isCleanupFunction.md)
6463
- [isCloneElement](functions/isCloneElement.md)
6564
- [isCloneElementCall](functions/isCloneElementCall.md)
6665
- [isComponentDidMount](functions/isComponentDidMount.md)
67-
- [isComponentDidMountFunction](functions/isComponentDidMountFunction.md)
6866
- [isComponentName](functions/isComponentName.md)
6967
- [isComponentWillUnmount](functions/isComponentWillUnmount.md)
70-
- [isComponentWillUnmountFunction](functions/isComponentWillUnmountFunction.md)
7168
- [isCreateContext](functions/isCreateContext.md)
7269
- [isCreateContextCall](functions/isCreateContextCall.md)
7370
- [isCreateElement](functions/isCreateElement.md)
@@ -78,7 +75,11 @@
7875
- [isForwardRef](functions/isForwardRef.md)
7976
- [isForwardRefCall](functions/isForwardRefCall.md)
8077
- [isFromReact](functions/isFromReact.md)
78+
- [isFunctionOfComponentDidMount](functions/isFunctionOfComponentDidMount.md)
79+
- [isFunctionOfComponentWillUnmount](functions/isFunctionOfComponentWillUnmount.md)
8180
- [isFunctionOfRenderMethod](functions/isFunctionOfRenderMethod.md)
81+
- [isFunctionOfUseEffectCleanup](functions/isFunctionOfUseEffectCleanup.md)
82+
- [isFunctionOfUseEffectSetup](functions/isFunctionOfUseEffectSetup.md)
8283
- [isInitializedFromReact](functions/isInitializedFromReact.md)
8384
- [isInsideCreateElementProps](functions/isInsideCreateElementProps.md)
8485
- [isInsideReactHook](functions/isInsideReactHook.md)
@@ -98,7 +99,6 @@
9899
- [isRenderFunctionLoose](functions/isRenderFunctionLoose.md)
99100
- [isRenderMethodLike](functions/isRenderMethodLike.md)
100101
- [isRenderPropLoose](functions/isRenderPropLoose.md)
101-
- [isSetupFunction](functions/isSetupFunction.md)
102102
- [isThisSetState](functions/isThisSetState.md)
103103
- [isUseCallbackCall](functions/isUseCallbackCall.md)
104104
- [isUseContextCall](functions/isUseContextCall.md)

packages/core/docs/functions/isCleanupFunction.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/core/docs/functions/isComponentDidMountFunction.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/core/docs/functions/isComponentWillUnmountFunction.md

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isFunctionOfComponentDidMount
6+
7+
# Function: isFunctionOfComponentDidMount()
8+
9+
> **isFunctionOfComponentDidMount**(`node`): `boolean`
10+
11+
## Parameters
12+
13+
### node
14+
15+
`Node`
16+
17+
## Returns
18+
19+
`boolean`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isFunctionOfComponentWillUnmount
6+
7+
# Function: isFunctionOfComponentWillUnmount()
8+
9+
> **isFunctionOfComponentWillUnmount**(`node`): `boolean`
10+
11+
## Parameters
12+
13+
### node
14+
15+
`Node`
16+
17+
## Returns
18+
19+
`boolean`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isFunctionOfUseEffectCleanup
6+
7+
# Function: isFunctionOfUseEffectCleanup()
8+
9+
> **isFunctionOfUseEffectCleanup**(`node`): `undefined` \| `boolean`
10+
11+
## Parameters
12+
13+
### node
14+
15+
`Node`
16+
17+
## Returns
18+
19+
`undefined` \| `boolean`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / isFunctionOfUseEffectSetup
6+
7+
# Function: isFunctionOfUseEffectSetup()
8+
9+
> **isFunctionOfUseEffectSetup**(`node`): `undefined` \| `boolean`
10+
11+
## Parameters
12+
13+
### node
14+
15+
`undefined` | `Node`
16+
17+
## Returns
18+
19+
`undefined` \| `boolean`

packages/core/docs/functions/isSetupFunction.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/core/src/component/component-collector-legacy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { _ } from "@eslint-react/eff";
33
import type { ESLintUtils, TSESTree } from "@typescript-eslint/utils";
44

55
import { getId } from "../utils";
6-
import type { ERClassComponent } from "./component";
76
import { ERClassComponentFlag } from "./component-flag";
7+
import type { ERClassComponent } from "./component-semantic-node";
88
import { isClassComponent, isPureComponent } from "./is";
99

1010
export function useComponentCollectorLegacy() {

0 commit comments

Comments
 (0)