Skip to content

Commit 6ce3f0a

Browse files
gaearonfacebook-github-bot
authored andcommitted
Update React Hooks Plugin
Summary: Updates `eslint-plugin-react-hooks` to 3.0.0. This introduces a new lint error when you use a Hook inside a class. Changelog: [General][Changed] - Updated the React Hooks ESLint Plugin Reviewed By: cpojer Differential Revision: D20675528 fbshipit-source-id: d0cbe9748fd15df7a4c6de00bd1462610e0a43d6
1 parent 7344801 commit 6ce3f0a

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": "^2.0.1",
138+
"eslint-plugin-react-hooks": "^3.0.0",
139139
"eslint-plugin-react-native": "3.8.1",
140140
"eslint-plugin-relay": "1.7.0",
141141
"flow-bin": "^0.121.0",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"eslint-plugin-jest": "22.4.1",
2020
"eslint-plugin-prettier": "3.1.2",
2121
"eslint-plugin-react": "7.19.0",
22-
"eslint-plugin-react-hooks": "^2.5.1",
22+
"eslint-plugin-react-hooks": "^3.0.0",
2323
"eslint-plugin-react-native": "3.8.1",
2424
"prettier": "^2.0.2"
2525
},

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

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

513-
eslint-plugin-react-hooks@^2.5.1:
514-
version "2.5.1"
515-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.5.1.tgz#4ef5930592588ce171abeb26f400c7fbcbc23cd0"
516-
integrity sha512-Y2c4b55R+6ZzwtTppKwSmK/Kar8AdLiC2f9NADCuxbcTgPPg41Gyqa6b9GppgXSvCtkRw43ZE86CT5sejKC6/g==
513+
eslint-plugin-react-hooks@^3.0.0:
514+
version "3.0.0"
515+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-3.0.0.tgz#9e80c71846eb68dd29c3b21d832728aa66e5bd35"
516+
integrity sha512-EjxTHxjLKIBWFgDJdhKKzLh5q+vjTFrqNZX36uIxWS4OfyXe5DawqPj3U5qeJ1ngLwatjzQnmR0Lz0J0YH3kxw==
517517

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

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -3115,10 +3115,10 @@ [email protected]:
31153115
fast-diff "^1.1.1"
31163116
jest-docblock "^21.0.0"
31173117

3118-
eslint-plugin-react-hooks@^2.0.1:
3119-
version "2.0.1"
3120-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.0.1.tgz#e898ec26a0a335af6f7b0ad1f0bedda7143ed756"
3121-
integrity sha512-xir+3KHKo86AasxlCV8AHRtIZPHljqCRRUYgASkbatmt0fad4+5GgC7zkT7o/06hdKM6MIwp8giHVXqBPaarHQ==
3118+
eslint-plugin-react-hooks@^3.0.0:
3119+
version "3.0.0"
3120+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-3.0.0.tgz#9e80c71846eb68dd29c3b21d832728aa66e5bd35"
3121+
integrity sha512-EjxTHxjLKIBWFgDJdhKKzLh5q+vjTFrqNZX36uIxWS4OfyXe5DawqPj3U5qeJ1ngLwatjzQnmR0Lz0J0YH3kxw==
31223122

31233123
eslint-plugin-react-native-globals@^0.1.1:
31243124
version "0.1.2"

0 commit comments

Comments
 (0)