Skip to content

Commit e414a8a

Browse files
committed
refactor: remove unused code
1 parent c4072a2 commit e414a8a

File tree

8 files changed

+32
-52
lines changed

8 files changed

+32
-52
lines changed

packages/core/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
- [ComponentPhaseKind](type-aliases/ComponentPhaseKind.md)
3232
- [ComponentStateKind](type-aliases/ComponentStateKind.md)
3333
- [EffectKind](type-aliases/EffectKind.md)
34-
- [HookKind](type-aliases/HookKind.md)
3534
- [JSXDetectionHint](type-aliases/JSXDetectionHint.md)
3635

3736
## Variables
@@ -88,6 +87,7 @@
8887
- [isUseSyncExternalStoreCall](variables/isUseSyncExternalStoreCall.md)
8988
- [isUseTransitionCall](variables/isUseTransitionCall.md)
9089
- [JSXDetectionHint](variables/JSXDetectionHint.md)
90+
- [REACT\_BUILTIN\_HOOK\_NAMES](variables/REACT_BUILTIN_HOOK_NAMES.md)
9191

9292
## Functions
9393

packages/core/docs/type-aliases/HookKind.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[**@eslint-react/core**](../README.md)
2+
3+
***
4+
5+
[@eslint-react/core](../README.md) / REACT\_BUILTIN\_HOOK\_NAMES
6+
7+
# Variable: REACT\_BUILTIN\_HOOK\_NAMES
8+
9+
> `const` **REACT\_BUILTIN\_HOOK\_NAMES**: readonly \[`"use"`, `"useActionState"`, `"useCallback"`, `"useContext"`, `"useDebugValue"`, `"useDeferredValue"`, `"useEffect"`, `"useFormStatus"`, `"useId"`, `"useImperativeHandle"`, `"useInsertionEffect"`, `"useLayoutEffect"`, `"useMemo"`, `"useOptimistic"`, `"useReducer"`, `"useRef"`, `"useState"`, `"useSyncExternalStore"`, `"useTransition"`\]

packages/core/src/hook/hook-kind.ts

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

packages/core/src/hook/hook-name.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
export const REACT_BUILTIN_HOOK_NAMES = [
2+
"use",
3+
"useActionState",
4+
"useCallback",
5+
"useContext",
6+
"useDebugValue",
7+
"useDeferredValue",
8+
"useEffect",
9+
"useFormStatus",
10+
"useId",
11+
"useImperativeHandle",
12+
"useInsertionEffect",
13+
"useLayoutEffect",
14+
"useMemo",
15+
"useOptimistic",
16+
"useReducer",
17+
"useRef",
18+
"useState",
19+
"useSyncExternalStore",
20+
"useTransition",
21+
] as const;
22+
123
/**
224
* Catch all identifiers that begin with "use" followed by an uppercase Latin
325
* character to exclude identifiers like "user".

packages/core/src/hook/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export * from "./hook-collector";
22
export * from "./hook-id";
33
export * from "./hook-is";
4-
export type * from "./hook-kind";
54
export * from "./hook-name";
65
export type * from "./hook-semantic-node";

packages/plugins/eslint-plugin-react-x/src/utils/constants.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export * from "./constants";
21
export * from "./create-rule";

0 commit comments

Comments
 (0)