react/packages/eslint-plugin-react-hooks/src
Ian Obermiller d3368beeec
[eslint-plugin-react-hooks] Disallow hooks in class components (#18341)
Per discussion at Facebook, we think hooks have reached a tipping point where it is more valuable to lint against potential hooks in classes than to worry about false positives.

Test plan:
```
# run from repo root
yarn test --watch RuleOfHooks
```
2020-03-18 19:55:13 +00:00
..
ExhaustiveDeps.js Fix Prettier 2020-02-17 20:36:16 +00:00
index.js feat: add recommended config eslint rule (#14762) 2020-02-28 02:01:17 +00:00
RulesOfHooks.js [eslint-plugin-react-hooks] Disallow hooks in class components (#18341) 2020-03-18 19:55:13 +00:00