Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade react-hooks-plugin to v4.5.0 #17

Merged
merged 1 commit into from Apr 11, 2024

Conversation

ameem-chronograph
Copy link
Contributor

The current version of react-hooks-plugin has a bug where files with many conditionals are occasionally flagged as calling hooks conditionally. This frequently presents itself in the MetricDefEditorSidePanel component:
image

More details on the bug here: facebook/react#21328

This PR updates to v4.5.0 which should fix the bug.

Steps to verify:

  • switch to the eslint-config-chronograph repo
  • npm install
  • set name attribute in package.json to "eslint-config-chronograph" instead of "@chronograph-pe/eslint-config-chronograph". This is to match the package name in cg-webso that symlinking can work.
  • run npm link
  • switch to cg-weg
  • run npm link eslint-config-chronograph
  • npm run lint should work as expected

@ameem-chronograph ameem-chronograph merged commit a64f8b0 into master Apr 11, 2024
1 of 2 checks passed
@ameem-chronograph ameem-chronograph deleted the as/react-hooks-plugin-upgrade branch April 11, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants