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

Fix eslint errors: no-shadow & rules-of-hooks #398

Open
dleard opened this issue Jan 28, 2022 · 2 comments
Open

Fix eslint errors: no-shadow & rules-of-hooks #398

dleard opened this issue Jan 28, 2022 · 2 comments

Comments

@dleard
Copy link
Contributor

dleard commented Jan 28, 2022

In upgrading to Next 11, the esLint config was also updated, which has triggered some errors that need to be fixed.
@typescript-eslint/no-shadow and react-hooks/rules-of-hooks have been set to warn for now.

Remove the override from error to warn in the eslintrc file for these rules & fix the errors.

https://reactjs.org/docs/hooks-rules.html
https://typeofnan.dev/fix-the-react-hook-is-called-conditionally-error-in-react/

@LindsayMacfarlane
Copy link

Hi @dleard - what's the priority on this ticket? Is this something that still needs completing?

@dleard
Copy link
Contributor Author

dleard commented Jan 13, 2023

This is another code-quality gate. I would say it is low priority but could be flagged as something for us to talk about during our developer agreements meeting. (I think the 'no-shadow' rule in particular causes debate among developers). Lets leave the attn: developer tag on this for visibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants