Skip to content

Commit e015dc0

Browse files
Update eslint-plugin-react-hooks version v2 (#27)
As of version `^2.0.0` of `eslint-plugin-react-hooks` [1] the plugin now forbids top-level `use*()` calls more aggressively [2]. See the official changelog and corresponding commits [3] for more details. To adapt to this change the peer & dev dependency version has been updated to the latest minor/patch version [4]. [1]: https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks [2]: facebook/react#16455 [3]: https://github.com/facebook/react/pull/16528/files [4]: https://www.npmjs.com/package/eslint-plugin-react-hooks Co-authored-by: Sven Greb <[email protected]> GH-23
1 parent c0c2253 commit e015dc0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/@arcticicestudio/eslint-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"eslint-plugin-jsx-a11y": "^6.2.3",
5050
"eslint-plugin-prettier": "^3.1.0",
5151
"eslint-plugin-react": "^7.14.3",
52-
"eslint-plugin-react-hooks": "^1.7.0"
52+
"eslint-plugin-react-hooks": "^2.0.0"
5353
},
5454
"peerDependencies": {
5555
"eslint": "^6.2.0",
@@ -58,6 +58,6 @@
5858
"eslint-plugin-jsx-a11y": "^6.2.3",
5959
"eslint-plugin-prettier": "^3.1.0",
6060
"eslint-plugin-react": "^7.14.3",
61-
"eslint-plugin-react-hooks": "^1.7.0"
61+
"eslint-plugin-react-hooks": "^2.0.0"
6262
}
6363
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,10 +1378,10 @@ [email protected], eslint-plugin-prettier@^3.1.0:
13781378
dependencies:
13791379
prettier-linter-helpers "^1.0.0"
13801380

1381-
eslint-plugin-react-hooks@^1.7.0:
1382-
version "1.7.0"
1383-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
1384-
integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==
1381+
eslint-plugin-react-hooks@^2.0.0:
1382+
version "2.5.1"
1383+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.5.1.tgz#4ef5930592588ce171abeb26f400c7fbcbc23cd0"
1384+
integrity sha512-Y2c4b55R+6ZzwtTppKwSmK/Kar8AdLiC2f9NADCuxbcTgPPg41Gyqa6b9GppgXSvCtkRw43ZE86CT5sejKC6/g==
13851385

13861386
eslint-plugin-react@^7.14.3:
13871387
version "7.14.3"

0 commit comments

Comments
 (0)