Skip to content

Commit

Permalink
Turn on react-hooks/exhaustive-deps in FBSource
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TheSavior authored and zhongwuzw committed Apr 9, 2019
1 parent 6f1b5f5 commit 036e107
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config-react-native-community/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 036e107

Please sign in to comment.