How to play nice with Tramp-Mode
coyotespike opened this issue · comments
coyotespike commented
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.
Brent Hagany commented
I've solved this for my case using this small patch: #37. Example configuration is in the description. Hope that helps!