Skip to content

Commit

Permalink
Update eslint-plugin-react-hooks version v2 (#27)
Browse files Browse the repository at this point in the history
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 <development@svengreb.de>

GH-23
  • Loading branch information
arcticicestudio authored Mar 29, 2021
1 parent c0c2253 commit e015dc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/@arcticicestudio/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^1.7.0"
"eslint-plugin-react-hooks": "^2.0.0"
},
"peerDependencies": {
"eslint": "^6.2.0",
Expand All @@ -58,6 +58,6 @@
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^1.7.0"
"eslint-plugin-react-hooks": "^2.0.0"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1378,10 +1378,10 @@ eslint-plugin-prettier@3.1.0, eslint-plugin-prettier@^3.1.0:
dependencies:
prettier-linter-helpers "^1.0.0"

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

eslint-plugin-react@^7.14.3:
version "7.14.3"
Expand Down

0 comments on commit e015dc0

Please sign in to comment.