Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Add eslint-plugin-react-hooks to @neutrinojs/react #1309

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

helfi92
Copy link
Member

@helfi92 helfi92 commented Feb 26, 2019

Resolves #1300.

@helfi92 helfi92 self-assigned this Feb 26, 2019
Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

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

LGTM, do we know how this operates in earlier versions of React that don't have hooks?

@helfi92
Copy link
Member Author

helfi92 commented Mar 1, 2019

Hm, I think it should be fine. According to https://reactjs.org/docs/hooks-intro.html#no-breaking-changes, hooks are 100% backwards-compatible.

@helfi92 helfi92 merged commit 7276368 into neutrinojs:master Mar 2, 2019
@edmorley edmorley added this to the v9 milestone Mar 8, 2019
Copy link
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

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

👍

edmorley added a commit that referenced this pull request Mar 24, 2019
The `eslint-plugin-react-hooks` plugin was added in #1309, however the
rules it provides were not enabled. This enables those rules, using the
settings recommended in the plugin README (which also matches those used
by CRA):
https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks

Fixes #1300.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants