Skip to content

Commit

Permalink
Added lint rule: react-hooks/exhaustive-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
sangameshsomawar committed Nov 3, 2021
1 parent dd6ba6a commit 63c5306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslint-rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ module.exports = {
// not-auto-fixable: Ensures https://reactjs.org/docs/hooks-rules.html.
"react-hooks/rules-of-hooks": "error",
// not-auto-fixable: Ensures https://reactjs.org/docs/hooks-rules.html - Checks effect dependencies.
"react-hooks/exhaustive-deps": "off"
}
"react-hooks/exhaustive-deps": "error",
},
};

0 comments on commit 63c5306

Please sign in to comment.