From 6137dd0a98bd27f71a3d4badb1612fbea9a82281 Mon Sep 17 00:00:00 2001 From: Mark Dalgleish Date: Fri, 8 Mar 2019 15:52:43 +1100 Subject: [PATCH] =?UTF-8?q?feat:=20Add=20=E2=80=98react-hooks/exhaustive-d?= =?UTF-8?q?eps=E2=80=99=20rule=20(#31)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 81c796e..0fd1e01 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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': [ diff --git a/package.json b/package.json index 5006a87..545fcdd 100644 --- a/package.json +++ b/package.json @@ -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"