Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add eslint-plugin-react-hooks

Manav Rathi8f5b462736b3
diff --git a/packages/build-config/eslintrc-typescript.js b/packages/build-config/eslintrc-typescript.js
index faaa0bfa8a..faec25874e 100644
--- a/packages/build-config/eslintrc-typescript.js
+++ b/packages/build-config/eslintrc-typescript.js
@@ -2,6 +2,7 @@
module.exports = {
extends: [
"eslint:recommended",
+ "plugin:react-hooks/recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
],
diff --git a/packages/build-config/package.json b/packages/build-config/package.json
index 47aff3276b..204515f838 100644
--- a/packages/build-config/package.json
+++ b/packages/build-config/package.json
@@ -5,6 +5,7 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7",
"@typescript-eslint/parser": "^7",
+ "eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-namespace-import": "^1.0.5",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-packagejson": "^2.4.12"
diff --git a/yarn.lock b/yarn.lock
index 0d2e46a825..85dcbd1b08 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1988,7 +1988,7 @@ eslint-plugin-jsx-a11y@^6.7.1:
object.entries "^1.1.7"
object.fromentries "^2.0.7"
-"eslint-plugin-react-hooks@^4.5.0 || 5.0.0-canary-7118f5dd7-20230705":
+"eslint-plugin-react-hooks@^4.5.0 || 5.0.0-canary-7118f5dd7-20230705", eslint-plugin-react-hooks@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==