Turn on react-hooks/exhaustive-deps in FBSource

Summary: Looks like there are already a bunch of issues in the codebase because this wasn't on.

Reviewed By: cpojer

Differential Revision: D14701084

fbshipit-source-id: 09ff8e0d905b81fbe08c41d4f58758479b38187b
This commit is contained in:
Eli White
2019-04-01 08:17:12 -07:00
committed by Facebook Github Bot
parent 11e93cdc1f
commit ec3adae99a

View File

@@ -290,6 +290,7 @@ module.exports = {
// React-Hooks Plugin
// The following rules are made available via `eslint-plugin-react-hooks`
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
// React-Native Plugin
// The following rules are made available via `eslint-plugin-react-native`