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

Enable react-hooks ESLint rules & fix associated errors #6277

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

braeden
Copy link
Contributor

@braeden braeden commented Jul 12, 2023

Fixes n/a

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

add the following eslint rules:

"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"

Reviewers should focus on:

The changes that I had to make to fix rules-of-hooks operating in an error capacity. (for context on why that's an especially critical one https://legacy.reactjs.org/docs/hooks-rules.html).

Screenshot

Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

nice, thanks @braeden!

I checked that the hotkeys example still works in the latest docs preview build

@adidahiya adidahiya changed the title Add react-hook eslint rules & fix associated errors Enable react-hooks ESLint rules & fix associated errors Jul 17, 2023
@adidahiya adidahiya merged commit 214cc02 into palantir:develop Jul 17, 2023
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.

2 participants