5 ms·
I've been always meaning to try this out but always just keep reusing the ESLint config, which is probably a bit out of date now. So the question is, could some
by tzaman 10y ago
I've been always meaning to try this out but always just keep reusing the ESLint config, which is probably a bit out of date now. So the question is, could someone explain to me (and everyone who has these same thoughts) why is StandardJS worth a try?
- Lazare 10y agoIf you want a prebuilt eslint config, and you don't like the really popular ones (eg, airbnb[0]) because they default to requiring semicolons, then this is definitely the most popular of the ones that require you to omit semicolons. Beyond that, there are no advantages. It's just a decent eslint config that requires you to omit semicolons wherever possible. If that's important to you, use it. If it's not important, or you'd rather not omit semicolons, or if you do want to omit semicolons but you're happy making a one line change to the airbnb preset, then there's nothing to set this apart from more, if you'll pardon the expression, "standard" options. :) [0]: https://github.com/airbnb/javascript https://github.com/airbnb/javascript
- ikurei 10y agoYou can just disable that rule and use the rest of the airbnb preset, which is what I'd recommend. I hate semicolons, and I do a couple of things that I like but airbnb apparently doesn't, so I override those settings on my .eslintrc and use the rest as a great foundation.
- Lazare 10y agoExactly. I think airbnb is a really good base for a project.
- tzaman 10y agoThanks, I do in fact use AirBnB's config, just wondering whether there's anything I was missing.