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

What is the reason to ignore eslintrc file and use only eslint-config-react-app? #2863

Closed
someden opened this issue Jul 27, 2017 · 2 comments

Comments

@someden
Copy link

someden commented Jul 27, 2017

What is the reason to ignore eslintrc file and use only eslint-config-react-app?

@gaearon
Copy link
Contributor

gaearon commented Jul 27, 2017

Because we show linting errors very prominently in the terminal and browser console. If we interpreted .eslintrc, people would use some popular configs that are mostly focused on style, and are very noisy. As a result people learning React from such examples would have a very hard time digging through the noise and missing the real errors.

Instead, we decided that we only use ESLint for finding actual mistakes. That’s what our config is about. If you want to enforce style, you can use Prettier which does this automatically.

I hope this helps!

@gaearon gaearon closed this as completed Jul 27, 2017
@someden
Copy link
Author

someden commented Jul 27, 2017

Ok, I understand. Do you plan to add an option for it? Maybe something like this:
create-react-app my-app --eslint-version my-eslint-config-react-app-fork

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants