Skip to content

Commit

Permalink
Merge pull request #18 from owowagency/feature/disable-react-exhausti…
Browse files Browse the repository at this point in the history
…ve-deps

feat: warn on exhaustive deps
  • Loading branch information
stefvw93 authored Jan 12, 2024
2 parents 161cdd4 + 20c3cc5 commit 5afa4e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/eslint-config-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
},

rules: {
'react-hooks/exhaustive-deps': 'warn',
'react/jsx-newline': 'off',
'react/jsx-wrap-multilines': 'off',
'react/react-in-jsx-scope': 'off',
Expand Down Expand Up @@ -40,9 +41,9 @@ module.exports = {
reservedFirst: true,
},
],
'react/jsx-equals-spacing': ['error', 'never'],
'react/jsx-indent': ['error', 4],
'react/no-deprecated': ['error'],
'react/self-closing-comp': 'error',
'react/jsx-indent': ['error', 4],
'react/jsx-equals-spacing': ['error', 'never'],
},
};

0 comments on commit 5afa4e1

Please sign in to comment.