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

feat(linter): warn on react-hooks/exhaustive-deps rule #5105

Closed
wants to merge 1 commit into from

Conversation

@nx-cloud
Copy link

nx-cloud bot commented Mar 24, 2021

Nx Cloud Report

CI ran the following commands for commit dcd9037. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch

Status Command
#000000 nx run-many --target=build --all
#000000 nx run-many --target=lint --all --parallel
#000000 nx run-many --target=test --all --parallel

Sent with 💌 from NxCloud.

@MichaelDeBoey MichaelDeBoey changed the title Warn on react-hooks/exhaustive-deps rule feat(linter): warn on react-hooks/exhaustive-deps rule Mar 24, 2021
@@ -63,6 +63,7 @@ export default {
* React Hooks rule configurations
* https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks
*/
'react-hooks/exhaustive-deps': 'warn',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hm this is already set to warn in the react-base config. However, it's overwritten in react-typescript 🤔

That doesn't seem right to me... In fact, I think we should extend the facebook config.

Can you remove hooks rules from here as well as react-typescript and react-base then add extends: ["plugin:react-hooks/recommended"] to react-base?

@jaysoo
Copy link
Member

jaysoo commented Apr 7, 2021

Closing in favor of #5258

@jaysoo jaysoo closed this Apr 7, 2021
@MichaelDeBoey MichaelDeBoey deleted the patch-1 branch April 7, 2021 10:40
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants