Skip to content

Commit

Permalink
feat: Add ‘react-hooks/exhaustive-deps’ rule (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Mar 8, 2019
1 parent 10069f5 commit 6137dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ module.exports = {
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',

// import errors
'import/no-unresolved': [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint-plugin-flowtype": "^3.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-react-hooks": "^1.0.1",
"eslint-plugin-react-hooks": "^1.5.0",
"find-root": "^1.1.0",
"typescript": "^3.1.3",
"typescript-eslint-parser": "^20.0.0"
Expand Down

0 comments on commit 6137dd0

Please sign in to comment.