From ec3adae99aed3a8d8ce71c6d9e7371d848be044a Mon Sep 17 00:00:00 2001 From: Eli White Date: Mon, 1 Apr 2019 08:17:12 -0700 Subject: [PATCH] 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 --- packages/eslint-config-react-native-community/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-react-native-community/index.js b/packages/eslint-config-react-native-community/index.js index 19b3e3abb..3c40a09a5 100644 --- a/packages/eslint-config-react-native-community/index.js +++ b/packages/eslint-config-react-native-community/index.js @@ -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`