Skip to content
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

prettier empties file #58

Open
traumschule opened this issue Jun 22, 2019 · 1 comment
Open

prettier empties file #58

traumschule opened this issue Jun 22, 2019 · 1 comment

Comments

@traumschule
Copy link

If there's an error in .prettierrc prettier empties the file without error. Also arguments shown below are defined in init.el, not in .prettierrc.

Saving file $FILE...
Wrote /tmp/prettiercbd2uV.js
Applied prettier with args ‘(--print-width 100 --single-quote true --trailing-comma all --no-semi true)’
Wrote $FILE

This looks like prettier/vim-prettier#92 although there is no file .prettierignore existant.

$ emacs --version
GNU Emacs 26.1
$ prettier --version
1.18.2
$ ls -l /usr/local/bin/prettier
lrwxrwxrwx 1 root staff 44 Jun 21 11:38 /usr/local/bin/prettier -> ../lib/node_modules/prettier/bin-prettier.js
@angelporo
Copy link

me to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants