Skip to content

Commit

Permalink
Bug: False positives for react-hooks/exhaustive-deps
Browse files Browse the repository at this point in the history
Closes #61598
  • Loading branch information
StyleShit committed May 12, 2024
1 parent 2df566c commit 71760d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/configs/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
'react-hooks/exhaustive-deps': [
'warn',
{
additionalHooks: '(useSelect|useSuspenseSelect)',
additionalHooks: '^(useSelect|useSuspenseSelect)$',
},
],
'react-hooks/rules-of-hooks': 'error',
Expand Down

0 comments on commit 71760d7

Please sign in to comment.