dillon1000/react

Commit

Don't lint against Hooks after conditional throw (#14040)

Seems like this should be OK. Fixes #14038.

Now when tracking paths, we completely ignore segments that end in a throw.
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/RulesOfHooks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…