Hacker News new | ask | show | jobs
by alexkoeh 3111 days ago
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?
1 comments

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.