react/packages/eslint-plugin-react-hooks/__tests__
Boris Sergeev 487c693846
[eslint-plugin-react-hooks] useWithoutEffectSuffix fix (#18902) (#18907)
* [eslint-plugin-react-hooks] reproduce bug with a test and fix it (#18902)

Since we only reserve `-Effect` suffix, react-hooks/exhaustive-deps is
expected to succeed without warning on a custom hook which contains -Effect- in
the middle of it's name (but does NOT contain it as a suffix).

* [eslint-plugin-react-hooks] reproduced bug with a test and fix it

Since we only reserve `-Effect` suffix, react-hooks/exhaustive-deps is expected
to succeed without warning on a render helper which contains -use- in the middle
of it's name (but does NOT contain it as a prefix, since that would violate hook
naming convetion).

Co-authored-by: Boris Sergeyev <boris.sergeyev@quolab.com>
2020-05-13 16:44:05 +01:00
..
ESLintRuleExhaustiveDeps-test.js [eslint-plugin-react-hooks] useWithoutEffectSuffix fix (#18902) (#18907) 2020-05-13 16:44:05 +01:00
ESLintRulesOfHooks-test.js Added clear message for functional component starting with lowercase (#18881) 2020-05-10 01:52:11 +01:00