prettier / prettier-emacs

Minor mode to format JS code on file save

Home Page:http://jlongster.com/A-Prettier-Formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to play nice with Tramp-Mode

coyotespike opened this issue · comments

When I save a JS file edited via Tramp, this error pops up in a new buffer:

prettier errors:
[warn] Ignored unknown option: --ignore-path /sshx
[error] Invalid configuration file: ENOENT: no such file or directory, scandir '/sshx:<serverName>/path/to/file

It would be great either to disable Prettier for files in Tramp mode, or to make it work.

I've solved this for my case using this small patch: #37. Example configuration is in the description. Hope that helps!