Commit 92475da
refactor(oxlint-plugin): derive HOC_NAMES_FOR_MEMOISATION from REACT_HOC_NAMES
build-same-file-memo-registry.ts maintained its own `HOC_NAMES_FOR_MEMOISATION`
that hand-redeclared the four React-native HOCs (memo / forwardRef /
React.memo / React.forwardRef) before extending with the third-party
ones (observer / observable / lazy / withTracking).
Derive the React-side prefix from the canonical `REACT_HOC_NAMES`
constant in constants/react.ts via spread. Adding a new React-native
HOC in one place now extends both detectors automatically.
Behaviour-neutral.
Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>1 parent 9426276 commit 92475da
1 file changed
Lines changed: 7 additions & 4 deletions
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments