netguru / create-react-app

Create React apps with no build configuration.
MIT License
14 stars 6 forks source link

In dev mode, emit ESLint errors as warnings #3

Closed papermana closed 7 years ago

papermana commented 7 years ago

Regular create-react-app has an ESLint config that only ever shows warnings. When we applied the unmodified AirBnB config to the starter app (which only ever shows errors), we created an unintended behavior wherein anything that's even a little bit wrong with our code will cause the app to not render (for example, importing a module and not using it yet because we want to see how some other change looks first).

This commit effectively forces the same kind of behavior that the "normal" create-react-app has, although it only does that in the dev environment.