-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files in .prettierignore are emptied out on save #36
Comments
This happens because This can be seen by running here:
Since it returns empty without an error code, this condition is not caught by the https://github.com/prettier/prettier-emacs/blob/master/prettier-js.el#L185 My elisp-fu is non-existent, but checking if |
My immediate use case for https://twitter.com/hsribei/status/1001560322082263040 I'll still see if I can make |
Ok, nevermind. The whole issue is solved since December last year. It's always a good idea to keep your packages updated! Now instead of returning an empty output for ignored files, |
Steps to reproduce:
Desired result:
File gets saved without modifications.
Observed result:
File contents get deleted and file is saved as empty file.
The text was updated successfully, but these errors were encountered: