From a10a51c6d4051d02c4249bd09d03dba325035db4 Mon Sep 17 00:00:00 2001 From: Petr Hanak Date: Fri, 22 Nov 2024 17:50:00 +0000 Subject: [PATCH] add hooks to client eslint --- packages/client/.eslintrc | 5 +++-- packages/server/.eslintrc | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/client/.eslintrc b/packages/client/.eslintrc index d491b839e..4de149d49 100644 --- a/packages/client/.eslintrc +++ b/packages/client/.eslintrc @@ -1,11 +1,12 @@ { "root": true, "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint"], + "plugins": ["@typescript-eslint", "react-hooks"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended" + "plugin:@typescript-eslint/recommended", + "plugin:react-hooks/recommended" ], "rules": { "quotes": "off", diff --git a/packages/server/.eslintrc b/packages/server/.eslintrc index d491b839e..72f9afce3 100644 --- a/packages/server/.eslintrc +++ b/packages/server/.eslintrc @@ -11,7 +11,5 @@ "quotes": "off", "@typescript-eslint/quotes": ["error", "double"], "@typescript-eslint/lines-between-class-members": "off", - "react-hooks/rules-of-hooks": "error", - "react-hooks/exhaustive-deps": "warn" } }