prettier / prettier-emacs

Minor mode to format JS code on file save
http://jlongster.com/A-Prettier-Formatter
372 stars 53 forks source link

Pass `bufferfile' on stdin and `buffer-file-name' as target #9

Closed eqyiel closed 7 years ago

eqyiel commented 7 years ago

This allows the use of prettier-eslint-cli as a drop-in replacement:

(setq prettier-js-command "prettier-eslint")

See also https://github.com/prettier/prettier-eslint-cli/issues/37#issuecomment-312536618

eqyiel commented 7 years ago

Thanks!

rcoedo commented 7 years ago

Thank you a lot, it's always pleasing to have a helping hand! 😄