From 25c3f7b7e4f7e143b6931eec44b799b4fd6cf636 Mon Sep 17 00:00:00 2001 From: Tom Southall Date: Tue, 8 Mar 2022 20:03:22 +0000 Subject: [PATCH] Add eslint-plugin-react-hooks --- package-lock.json | 20 ++++++++++++++++++++ package.json | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index fa31758..f990cfb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "c8": "^7.11.0", "eslint": "^8.9.0", "eslint-plugin-react": "^7.28.0", + "eslint-plugin-react-hooks": "^4.3.0", "jsdom": "^19.0.0", "msw": "^0.36.8", "node-fetch": "^2.6.7", @@ -2303,6 +2304,18 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz", + "integrity": "sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, "node_modules/eslint-plugin-react/node_modules/doctrine": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", @@ -7076,6 +7089,13 @@ } } }, + "eslint-plugin-react-hooks": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz", + "integrity": "sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==", + "dev": true, + "requires": {} + }, "eslint-scope": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", diff --git a/package.json b/package.json index e8ea724..bbfa096 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "c8": "^7.11.0", "eslint": "^8.9.0", "eslint-plugin-react": "^7.28.0", + "eslint-plugin-react-hooks": "^4.3.0", "jsdom": "^19.0.0", "msw": "^0.36.8", "node-fetch": "^2.6.7", @@ -71,7 +72,8 @@ }, "extends": [ "eslint:recommended", - "plugin:react/recommended" + "plugin:react/recommended", + "plugin:react-hooks/recommended" ], "parserOptions": { "sourceType": "module"