-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
EXTEND_ESLINT not working #9007
Comments
I think this is caused by how react-scripts handles ESLint cache. By default, cache is set to true. If you set it to false, any change to eslint rules will be honoured every time. The setting is in node_modules/react-scripts/config/webpack.config.js:
So my suggestion is to make this cache option configurable, and by default set it to false, to avoid confusion. |
Still showing the errors when |
It works for me. @Josema, if your demo project is OK to put on github, probably I could help take a look. |
@Josema Thanks. I tried with your project, and found if you upgrade
To be sure you can re-install all packages, run:
Lastly, go to
|
Thank you @yucigou for taking the time to solve it :) It works as expected. |
Describe the bug
I'm trying to disable a eslint rule using the config of the oficial docs.
Which terms did you search for in User Guide?
https://create-react-app.dev/docs/setting-up-your-editor/#experimental-extending-the-eslint-config
Environment
Steps to reproduce
.env
package.json
npm run dev
Expected behavior
Not showing errors. Everything works as expected when running
npm run lint
Actual behavior
The text was updated successfully, but these errors were encountered: