-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Speed up build by disabling lint #7078
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
Comments
Have you tried to set |
+1 Creating an optimized production build...
Failed to compile.
./src/index.js
Error: Failed to load plugin react: Cannot find module 'eslint-plugin-react'
Referenced from:
at Array.forEach (<anonymous>)
at Array.reduceRight (<anonymous>) One suggestion is to move eslint-plugin-react to production deps which I will definitely not do! |
I think our eslint config is pretty minimal, no style lints all code quality, almost always a good idea to enforce. When you don't want them to fire on specific sections of code you can opt out. That's the reasoning at least. You shouldn't need to install |
I have Failed to load plugin react: Cannot find module 'eslint-plugin-react' Referenced from: C:\projects\may-app\.eslintrc.json Here's the config of my {
"extends": ["react-app", "plugin:prettier/recommended"],
"env": {
"browser": true,
"jest": true
}
} Do you think I can ignore this warning? I have configured vscode to automatically lint and format the code when saving. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
My setup is CRA 3 with react-app, airbnb and prettier eslint config.
What I have is pipeline with stages that installs dependencies, build, lint, snapshot test and e2e cypress test (and deploy).
But right now, I do linting twice, because npm build only use react-app lint rules so I have to separate stage for linting.
From the discussion here I have a feeling that there is no planned support for custom eslint rules, so would it be possible to at least have option to disable linting during build?
Building takes almost 4 minutes on CI in our project so it would be nice if there were some ways to speed it up.
The text was updated successfully, but these errors were encountered: