News for hackers. Stuff that matters.
Re:The State of JavaScript 2017 by alexkoeh on Wednesday December 13, 2017 @11:35AM (#15915283)
I've heard more and more about prettier, but I can't figure out how it's much different from eslint. What are the advantages?
Re:The State of JavaScript 2017 by bakkoting on Wednesday December 13, 2017 @04:33PM (#15917876)
Briefly: there's _tons_ of style things eslint can't even warn about which prettier will just automatically fix. Most dramatically, eslint doesn't know how to wrap long lines.

Also, though, eslint offers a bunch of non-style code correctness checks, which is something prettier doesn't even try to do. So the general advice is to use eslint with all the style rules off, and use prettier to handle style.