-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Configurable eslint-loader #6973
Conversation
ignore: false, | ||
useEslintrc: false, | ||
quiet: !!process.env.RS_ESLINT_QUIET, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configurable quiet as well, for example when upgrading an old project, you can have thousands of warnings temporarily
extends: [require.resolve('eslint-config-react-app')], | ||
}, | ||
useEslintrc: !!process.env.RS_ESLINTRC, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RS_ESLINTRC
is the main point of this PR, when this env var is defined, baseConfig is not used, and a local .eslintrc is used
What's the point of adding this behind a env variable? Couldn't we simply detect the existence of an eslintrc file and automatically enable it? |
Before merging something like this in we will have to look into what options we have for extending our /cc @mrmckeb |
@FezVrasta I first tried to keep backward compatibility, but your idea looks better, I pushed a commit for this |
@mrmckeb Thanks, yes it does |
I'm closing this off for now in favour of the PR discussed, and am definitely open to extending that to support more ESLint formats in the near future. Thanks for your work here. |
This a very simple, and backward compatible PR to allow to a custom .eslintrc to be used