From 83155ccb289e1013d073f2c1a8779215aa1f7c53 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Thu, 18 Jun 2020 10:49:40 -0700 Subject: [PATCH] feat: Add react hooks plugin --- .eslintrc.js | 1 + package-lock.json | 11 ++++++++--- package.json | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 849758db1..d8c2b04e1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,6 +4,7 @@ module.exports = { 'plugin:@newrelic/eslint-plugin-newrelic/react', 'plugin:@newrelic/eslint-plugin-newrelic/prettier', 'plugin:jsx-a11y/recommended', + 'plugin:react-hooks/recommended', ], // https://github.com/yannickcr/eslint-plugin-react#configuration plugins: ['react', 'jsx-a11y'], diff --git a/package-lock.json b/package-lock.json index 2d126b6ee..2bab40225 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8854,9 +8854,9 @@ } }, "eslint-plugin-react-hooks": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz", - "integrity": "sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==" + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.4.tgz", + "integrity": "sha512-equAdEIsUETLFNCmmCkiCGq6rkSK5MoJhXFPFYeUebcjKgBmWWcgVOqZyQC8Bv1BwVCnTq9tBxgJFgAJTWoJtA==" }, "eslint-scope": { "version": "5.0.0", @@ -10750,6 +10750,11 @@ } } }, + "eslint-plugin-react-hooks": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz", + "integrity": "sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==" + }, "gatsby-cli": { "version": "2.11.11", "resolved": "https://registry.npmjs.org/gatsby-cli/-/gatsby-cli-2.11.11.tgz", diff --git a/package.json b/package.json index c068086ed..2ce707688 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "@mdx-js/react": "^1.6.4", "classnames": "^2.2.6", "date-fns": "^2.14.0", + "eslint-plugin-react-hooks": "^4.0.4", "gatsby": "^2.20.25", "gatsby-image": "^2.3.4", "gatsby-plugin-google-tagmanager": "^2.3.3",