6 ms·
How does Prettier compare to https://github.com/millermedeiros/esformatter https://github.com/millermedeiros/esformatter, https://github.com/beautify-web/js-bea
by bcherny 10y ago
How does Prettier compare to https://github.com/millermedeiros/esformatter https://github.com/millermedeiros/esformatter, https://github.com/beautify-web/js-beautify https://github.com/beautify-web/js-beautify, https://github.com/jedmao/codepainter https://github.com/jedmao/codepainter, https://github.com/rdio/jsfmt https://github.com/rdio/jsfmt, etc.?
Personally, I use TSLint with the tslint.autoFixOnSave VSCode setting, and couldn't be happier.
- exogen 10y agoI think you could be happier but just don't know it yet. :) Every lint ruleset I've ever used still leaves a TON of formatting discretion to the author – notably about where to wrap. Prettier will format code differently depending on how much space there is left to work with on the line – like a human would do, but always consistent.
- sotojuan 10y agohttps://news.ycombinator.com/item?id=14110204 https://news.ycombinator.com/item?id=14110204