When I save a file ignored by a .prettierignore file, then its contents is deleted.
Hi @blacksails,
Thanks for reporting this, will investigate this soon and if is caused by vim-prettier will fix asap and do a new release. Otherwise will comment in here my findings.
@blacksails
The problem in here is due to prettier itself not giving any stdout when ignoring the file parsing. vim-prettier has no way to know that the file has not being parsed since it cannot read .prettierinore files on its own.
@lydell @azz , would be great if files that are ignored by .prettierignore could be simply printed as it is without formatting, maybe some extra CLI params to make that happen ?
Will raise this issue in prettier itself
In the meantime will do a workaround on vim-prettier itself for this by not replacing editing contents with empty stdout
Most helpful comment
In the meantime will do a workaround on
vim-prettieritself for this by not replacing editing contents with empty stdout