Skip to content

Commit

Permalink
chore(eslint): add useDeepCompareEffect to exhaustive deps rule (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigofariow authored May 3, 2024
1 parent 9c0b5a8 commit c148aa8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ module.exports = {

'no-undef': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'react-hooks/exhaustive-deps': [
'error',
{additionalHooks: '(useDeepCompareEffect)'}
],
'react/jsx-no-constructed-context-values': 'error',

// We use function hoisting to put exports at top of file
Expand Down

0 comments on commit c148aa8

Please sign in to comment.