This may seem at first glance the ideal behaviour, when trying to run the prettie CLI on an ignored file. However for editor integrations such as vim-prettier where it does not have any knowledge about the ignored files from .prettierignore it means it will then wipe all the contents of the ignored file.
see prettier/vim-prettier#92
Would be great if there was an option or any other way to simply print the ignored file as it is instead of just having an empty stdout, other valid options would be display an error or warning message.
@ikatyang, @azz, @suchipi please let me know what are your thoughts around it, happy to submit a PR for this
This may seem at first glance the ideal behaviour, when trying to run the prettie CLI on an ignored file. However for editor integrations such as
vim-prettierwhere it does not have any knowledge about the ignored files from.prettierignoreit means it will then wipe all the contents of the ignored file.see prettier/vim-prettier#92
Would be great if there was an
optionor any other way to simply print the ignored file as it is instead of just having an emptystdout, other valid options would be display an error or warning message.@ikatyang, @azz, @suchipi please let me know what are your thoughts around it, happy to submit a PR for this