Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Update eslint-plugin-react-hooks to latest major release #37

Merged
merged 3 commits into from
Aug 30, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ChangeLog

Unreleased
-----------------
### Changed
* Update eslint-plugin-react-hooks dependency to `^2.0.1`

3.0.0 - (August 20, 2019)
-----------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.12.2",
"eslint-plugin-react-hooks": "^1.0.0"
"eslint-plugin-react-hooks": "^2.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we major version bumping this package again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding was this version adds a lint rule around usage of hooks at top level which crashes the app.

So before if you used hooks at top level; the app will crash. With pulling in this version now, if you use hooks at top level, you'll get a lint warning + app still crashes.

Based on that I'm leaning towards treating this as a minor release, however the react team considered this a breaking change.

Copy link
Contributor

@emilyrohrbough emilyrohrbough Aug 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my vote is ship it as a patch release lol because I'd agree this seems like a breaking change :/

},
"peerDependencies": {
"eslint": "^6.1.0"
Expand Down