From 8c1426c1675f56b2a70f3b765641a57a0f7af357 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 28 Apr 2022 09:04:45 -0400 Subject: [PATCH] feat: include airbnb/hooks (#75) 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. --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 63de3371..6214ec88 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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: {