prettier empties file
traumschule opened this issue · 1 comments
traumschule commented
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 commented
me to