Skip to content

Commit ec3adae

Browse files
elicwhitefacebook-github-bot
authored andcommitted
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
1 parent 11e93cd commit ec3adae

File tree

1 file changed

+1
-0
lines changed
  • packages/eslint-config-react-native-community

1 file changed

+1
-0
lines changed

packages/eslint-config-react-native-community/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ module.exports = {
290290
// React-Hooks Plugin
291291
// The following rules are made available via `eslint-plugin-react-hooks`
292292
'react-hooks/rules-of-hooks': 'error',
293+
'react-hooks/exhaustive-deps': 'error',
293294

294295
// React-Native Plugin
295296
// The following rules are made available via `eslint-plugin-react-native`

0 commit comments

Comments
 (0)