We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created a project from scratch with Vite + Typescript and I've added the eslint-config-rocketseat to it.
eslint-config-rocketseat
It's working fine for everything but the react hooks rules.
For example, I have a useEffect without declaring its dependencies and it's not throwing any red lines there.
Is there an additional config that I need to make in order to have it working?
This is my .eslintrc.json
{ "extends": ["@rocketseat/eslint-config/react"] }
The text was updated successfully, but these errors were encountered:
I found this trouble too, have you an solution ?
Sorry, something went wrong.
You need to install eslint-plugin-react-hooks npm i eslint-plugin-react-hooks -D
npm i eslint-plugin-react-hooks -D
yarn add eslint-plugin-react-hooks -D
pnpm i eslint-plugin-react-hooks -D
Inside .eslintrc.json
.eslintrc.json
{ "settings": { "react": { "version": "detect" } } }, { "extends": "plugin:react-hooks/recommended" } I hope this is helpful
No branches or pull requests
I created a project from scratch with Vite + Typescript and I've added the
eslint-config-rocketseat
to it.It's working fine for everything but the react hooks rules.
For example, I have a useEffect without declaring its dependencies and it's not throwing any red lines there.
Is there an additional config that I need to make in order to have it working?
This is my .eslintrc.json
The text was updated successfully, but these errors were encountered: