Blitz: Support other ESLint configs for blitz new template

Created on 21 Apr 2020  Â·  3Comments  Â·  Source: blitz-js/blitz

Currently blitz new generates an app with the create-react-app ESLint config.

The community is divided enough over their preferred eslint config that I think we should support a few other ones and then prompt the user to choose during blitz new generation.

Other configs to support:

  • Standard.js

If you want something besides CRA eslint or Standard.js, comment here. We can't support every variation, but we can support the top ones.

And we'll definitely appreciate help implementing this!

scopcli statudone

Most helpful comment

Yes, just for initial generation!

We could mark the Airbnb option as “warning, only for advanced users” or something lol

All 3 comments

Love it or hate it, eslint-config-airbnb is hugely popular. I'd have a hard time recommending it out-of-the-box for a React app, but that doesn't change the fact that tons of people use it. Whether we want to perpetuate that choice is 🤷‍♂️ .

This is just for initial generation, correct? Users will be able to swap it out with whatever they want afterwards, yeah?

Yes, just for initial generation!

We could mark the Airbnb option as “warning, only for advanced users” or something lol

No one's asked for this, đź‘‹

Was this page helpful?
0 / 5 - 0 ratings