From 2dbf42b4a3285c16fed7955e1e3d9bc770e85f61 Mon Sep 17 00:00:00 2001 From: Eli White Date: Wed, 21 Aug 2019 18:05:29 -0700 Subject: [PATCH] Bump eslint-plugin-react-hooks to 2.0.1 Summary: This catches some errors about hooks being used at the top level in a module Reviewed By: gaearon Differential Revision: D16945591 fbshipit-source-id: 116ed24b4394b1f516a2ebcd75977d2ba5c57afb --- package.json | 2 +- .../eslint-config-react-native-community/package.json | 2 +- packages/eslint-config-react-native-community/yarn.lock | 8 ++++---- yarn.lock | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index dbf9492bc12..f96e75c0c99 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "eslint-plugin-jsx-a11y": "6.2.1", "eslint-plugin-prettier": "2.6.2", "eslint-plugin-react": "7.12.4", - "eslint-plugin-react-hooks": "^1.5.1", + "eslint-plugin-react-hooks": "^2.0.1", "eslint-plugin-react-native": "3.6.0", "eslint-plugin-relay": "1.3.0", "flow-bin": "^0.105.0", diff --git a/packages/eslint-config-react-native-community/package.json b/packages/eslint-config-react-native-community/package.json index dac34819bfa..b5bfce9d52c 100644 --- a/packages/eslint-config-react-native-community/package.json +++ b/packages/eslint-config-react-native-community/package.json @@ -17,7 +17,7 @@ "eslint-plugin-jest": "22.4.1", "eslint-plugin-prettier": "2.6.2", "eslint-plugin-react": "7.12.4", - "eslint-plugin-react-hooks": "^1.5.1", + "eslint-plugin-react-hooks": "^2.0.1", "eslint-plugin-react-native": "3.7.0", "prettier": "1.17.0" }, diff --git a/packages/eslint-config-react-native-community/yarn.lock b/packages/eslint-config-react-native-community/yarn.lock index 91d69102ca5..0ff1ee7478b 100644 --- a/packages/eslint-config-react-native-community/yarn.lock +++ b/packages/eslint-config-react-native-community/yarn.lock @@ -362,10 +362,10 @@ eslint-plugin-prettier@2.6.2: fast-diff "^1.1.1" jest-docblock "^21.0.0" -eslint-plugin-react-hooks@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.5.1.tgz#3c601326914ee0e1fedd709115db4940bdbbed4a" - integrity sha512-i3dIrmZ+Ssrm0LrbbtuGcRf7EEpe1FaMuL8XnnpZO0X4tk3dZNzevWxD0/7nMAFa5yZQfNnYkfEP0MmwLvbdHw== +eslint-plugin-react-hooks@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.0.1.tgz#e898ec26a0a335af6f7b0ad1f0bedda7143ed756" + integrity sha512-xir+3KHKo86AasxlCV8AHRtIZPHljqCRRUYgASkbatmt0fad4+5GgC7zkT7o/06hdKM6MIwp8giHVXqBPaarHQ== eslint-plugin-react-native-globals@^0.1.1: version "0.1.2" diff --git a/yarn.lock b/yarn.lock index f614535e841..5341dc1fee9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2692,10 +2692,10 @@ eslint-plugin-prettier@2.6.2: fast-diff "^1.1.1" jest-docblock "^21.0.0" -eslint-plugin-react-hooks@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.5.1.tgz#3c601326914ee0e1fedd709115db4940bdbbed4a" - integrity sha512-i3dIrmZ+Ssrm0LrbbtuGcRf7EEpe1FaMuL8XnnpZO0X4tk3dZNzevWxD0/7nMAFa5yZQfNnYkfEP0MmwLvbdHw== +eslint-plugin-react-hooks@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.0.1.tgz#e898ec26a0a335af6f7b0ad1f0bedda7143ed756" + integrity sha512-xir+3KHKo86AasxlCV8AHRtIZPHljqCRRUYgASkbatmt0fad4+5GgC7zkT7o/06hdKM6MIwp8giHVXqBPaarHQ== eslint-plugin-react-native-globals@^0.1.1: version "0.1.2"