diff --git a/package.json b/package.json index 27d460611..55ef2a0a5 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^5.1.0", + "eslint-plugin-react-hooks": "^4.6.0", "husky": "^7.0.1", "jest": "^27.0.6", "prettier": "2.8.8", @@ -82,7 +83,8 @@ "extends": [ "prettier", "plugin:@typescript-eslint/recommended", - "standard" + "standard", + "plugin:react-hooks/recommended" ], "plugins": [ "@typescript-eslint" diff --git a/src/commands/new.ts b/src/commands/new.ts index 1b9b8543d..98cce9870 100644 --- a/src/commands/new.ts +++ b/src/commands/new.ts @@ -1,3 +1,4 @@ +/* eslint-disable react-hooks/rules-of-hooks */ import { GluegunToolbox } from "../types" import { isAndroidInstalled, diff --git a/yarn.lock b/yarn.lock index f1438cd17..75091172c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2725,6 +2725,11 @@ eslint-plugin-promise@^5.1.0: resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-5.2.0.tgz#a596acc32981627eb36d9d75f9666ac1a4564971" integrity sha512-SftLb1pUG01QYq2A/hGAWfDRXqYD82zE7j7TopDOyNdU+7SvvoXREls/+PRTY17vUXzXnZA/zfnyKgRH6x4JJw== +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== + eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"