Skip to content

Commit

Permalink
docs: updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Konecny committed Nov 15, 2023
1 parent 4da6f83 commit be6c39f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/eslint-config-react-native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
module.exports = {
extends: ['universe/native'],
rules: {
'react-hooks/exhaustive-deps': 'error',
// enforces hooks have dependencies listed in the dependency arrays
// preventing issues with hooks not running correctly when dependency values change
// Original expo config disabled this because they felt it is returning too many false positives
// https://github.com/expo/expo/pull/9130
'react-hooks/exhaustive-deps': 'warn',
},
};

0 comments on commit be6c39f

Please sign in to comment.