From 56b3d8967c9ede373b6ded8bade20e95a29e6ae4 Mon Sep 17 00:00:00 2001 From: yunglocokid Date: Mon, 13 May 2024 17:00:29 +0700 Subject: [PATCH] Added eslint-react-hooks plugin --- .eslintrc.json | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 72cc705..287ba35 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,3 @@ { - "extends": "next/core-web-vitals" + "extends": ["next/core-web-vitals", "plugin:react-hooks/recommended"] } diff --git a/package.json b/package.json index 787169b..a1da38c 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@types/react-dom": "^18", "eslint": "^8", "eslint-config-next": "14.2.3", + "eslint-plugin-react-hooks": "^4.6.2", "prettier": "^3.2.5", "sass": "^1.77.1", "stylelint": "^16.5.0",