I feel like you have to give Go credit for exposing this type of productivity hack. Once you gofmt/goimports on save you will never go back.
Edit: If I had to program in JS I would definitely use this coming from Go.
Edit: If I had to program in JS I would definitely use this coming from Go.
Prettier has succeeded largely due to a better algorithm, which actually came from the haskell community, via Wadler's paper A Prettier Printer [1] (with an implementation available at [2]).
[0] js-beautify had its first commit in 2007: https://github.com/beautify-web/js-beautify/commit/e1ddc28b2...
[1] https://homepages.inf.ed.ac.uk/wadler/papers/prettier/pretti... [PDF]