Skip to content

Commit ac87e90

Browse files
gaearonfacebook-github-bot
authored andcommitted
Update React Hooks rule
Summary: Includes better support for optional chaining. Changelog: [General][Changed] - Updated the React Hooks ESLint Plugin Reviewed By: rickhanlonii, trueadm Differential Revision: D22479305 fbshipit-source-id: 08740449ea797ce0971ccae358eb7de1ae102d7d
1 parent 120ff7c commit ac87e90

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"eslint-plugin-jsx-a11y": "6.2.1",
136136
"eslint-plugin-prettier": "2.6.2",
137137
"eslint-plugin-react": "7.12.4",
138-
"eslint-plugin-react-hooks": "^3.0.0",
138+
"eslint-plugin-react-hooks": "^4.0.7",
139139
"eslint-plugin-react-native": "3.8.1",
140140
"eslint-plugin-relay": "1.7.1",
141141
"flow-bin": "^0.129.0",

packages/eslint-config-react-native-community/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"eslint-plugin-jest": "22.4.1",
2121
"eslint-plugin-prettier": "3.1.2",
2222
"eslint-plugin-react": "^7.20.0",
23-
"eslint-plugin-react-hooks": "^4.0.4",
23+
"eslint-plugin-react-hooks": "^4.0.7",
2424
"eslint-plugin-react-native": "^3.8.1",
2525
"prettier": "^2.0.2"
2626
},

packages/eslint-config-react-native-community/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@ [email protected]:
511511
dependencies:
512512
prettier-linter-helpers "^1.0.0"
513513

514-
eslint-plugin-react-hooks@^4.0.4:
515-
version "4.0.4"
516-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.4.tgz#aed33b4254a41b045818cacb047b81e6df27fa58"
517-
integrity sha512-equAdEIsUETLFNCmmCkiCGq6rkSK5MoJhXFPFYeUebcjKgBmWWcgVOqZyQC8Bv1BwVCnTq9tBxgJFgAJTWoJtA==
514+
eslint-plugin-react-hooks@^4.0.7:
515+
version "4.0.7"
516+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.7.tgz#19f9e3d07dd3a0fb9e6f0f07153707feedea8108"
517+
integrity sha512-5PuW2OMHQyMLr/+MqTluYN3/NeJJ1RuvmEp5TR9Xl2gXKxvcusUZuMz8XBUtbELNaiRYWs693LQs0cljKuuHRQ==
518518

519519
eslint-plugin-react-native-globals@^0.1.1:
520520
version "0.1.2"

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2802,10 +2802,10 @@ [email protected]:
28022802
fast-diff "^1.1.1"
28032803
jest-docblock "^21.0.0"
28042804

2805-
eslint-plugin-react-hooks@^3.0.0:
2806-
version "3.0.0"
2807-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-3.0.0.tgz#9e80c71846eb68dd29c3b21d832728aa66e5bd35"
2808-
integrity sha512-EjxTHxjLKIBWFgDJdhKKzLh5q+vjTFrqNZX36uIxWS4OfyXe5DawqPj3U5qeJ1ngLwatjzQnmR0Lz0J0YH3kxw==
2805+
eslint-plugin-react-hooks@^4.0.7:
2806+
version "4.0.7"
2807+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.7.tgz#19f9e3d07dd3a0fb9e6f0f07153707feedea8108"
2808+
integrity sha512-5PuW2OMHQyMLr/+MqTluYN3/NeJJ1RuvmEp5TR9Xl2gXKxvcusUZuMz8XBUtbELNaiRYWs693LQs0cljKuuHRQ==
28092809

28102810
eslint-plugin-react-native-globals@^0.1.1:
28112811
version "0.1.2"

0 commit comments

Comments
 (0)