Skip to content

Commit

Permalink
feat: include airbnb/hooks (#75)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: By extending airbnb/hooks, consumers of this library will now get ESLint errors about React Hooks:

1. Rules of Hooks.
2. Exhaustive dependencies.

See https://github.com/airbnb/javascript/blob/fdc812a0a5773449274f7c4d473e0841eca89614/packages/eslint-config-airbnb/rules/react-hooks.js for more details.
  • Loading branch information
adamstankiewicz authored Apr 28, 2022
1 parent d08a90c commit 8c1426c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
// have those eslint-config plugins installed, though - it defines them
// as peer dependencies.
'airbnb',
'airbnb/hooks',
],
// If you add rule overrides here, add code to test.js that proves you formatted it right.
rules: {
Expand Down

0 comments on commit 8c1426c

Please sign in to comment.