Enable react hooks linting

Summary:
Enabled linting rules that help to signal making errors with effect dependencies and such.

Fixed all errors, left any warnings generated by the hooks untouched

Reviewed By: nikoant

Differential Revision: D21721497

fbshipit-source-id: 9548453443fa7b663dc4d4289132f388c6697283
This commit is contained in:
Michel Weststrate
2020-05-28 10:12:10 -07:00
committed by Facebook GitHub Bot
parent 67b53aea98
commit 54162d480c
6 changed files with 49 additions and 35 deletions

View File

@@ -142,7 +142,7 @@ export function annotatePluginsWithUpdates(
return new Map(annotated);
}
const PluginInstaller = function props(props: Props) {
const PluginInstaller = function (props: Props) {
const [restartRequired, setRestartRequired] = useState(false);
const [query, setQuery] = useState('');