dillon1000/react

Commit

[eslint] Fix useEffectEvent checks in component syntax (#35041)

We were not recording uEE calls in component/hook syntax. Easy fix.

Added tests matching function component syntax for component syntax +
added one for hooks
Browse files
Changed paths2 files
First-parent comparison
M packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js ModifiedM packages/eslint-plugin-react-hooks/src/rules/RulesOfHooks.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…