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

Created on 27 Jul 2017  路  2Comments  路  Source: facebook/create-react-app

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

question

Most helpful comment

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

All 2 comments

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鈥檚 what our config is about. If you want to enforce style, you can use Prettier which does this automatically.

I hope this helps!

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daviseford picture daviseford  路  108Comments

godmar picture godmar  路  130Comments

gaearon picture gaearon  路  85Comments

gaearon picture gaearon  路  86Comments

rovansteen picture rovansteen  路  192Comments