From 3ac419dc3d1563e6cceea66e67b78993d42c949b Mon Sep 17 00:00:00 2001 From: Jonathan Loss Date: Tue, 6 Dec 2022 15:31:23 +0100 Subject: [PATCH 1/4] Update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 030e912..b13ebd3 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "main": "index.js", "peerDependencies": { "eslint": "^8.8.0", - "eslint-plugin-react": "^7.28.0" + "eslint-plugin-react": "^7.28.0", + "eslint-plugin-react-hooks": "^4.6.0", }, "repository": { "type": "git", From bc78190839ea9e09127790986a6e7f8d468e5f2e Mon Sep 17 00:00:00 2001 From: Jonathan Loss Date: Tue, 6 Dec 2022 15:32:00 +0100 Subject: [PATCH 2/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b13ebd3..021d998 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "peerDependencies": { "eslint": "^8.8.0", "eslint-plugin-react": "^7.28.0", - "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-hooks": "^4.6.0" }, "repository": { "type": "git", From aeaccb107ce3e416a1487fac3472b1234146112f Mon Sep 17 00:00:00 2001 From: Jonathan Loss Date: Tue, 6 Dec 2022 15:33:26 +0100 Subject: [PATCH 3/4] Update eslintrc.json --- eslintrc.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eslintrc.json b/eslintrc.json index 45f3b02..ab1f471 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -14,7 +14,8 @@ }, "plugins": [ - "react" + "react", + "react-hooks" ], "rules": { @@ -27,6 +28,8 @@ "react/no-unknown-property": "error", "react/no-unused-prop-types": "error", "react/prop-types": "error", - "react/react-in-jsx-scope": "error" + "react/react-in-jsx-scope": "error", + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "error" } } From b278e504323fead40ea04a25d16d081410606050 Mon Sep 17 00:00:00 2001 From: Jonathan Loss Date: Wed, 7 Dec 2022 15:02:46 +0100 Subject: [PATCH 4/4] Update eslintrc.json --- eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslintrc.json b/eslintrc.json index ab1f471..703365e 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -30,6 +30,6 @@ "react/prop-types": "error", "react/react-in-jsx-scope": "error", "react-hooks/rules-of-hooks": "error", - "react-hooks/exhaustive-deps": "error" + "react-hooks/exhaustive-deps": "warning" } }