Skip to content

.prettierignore displays no output when running on ignored file breaking editor integrations #3590

@mitermayer

Description

@mitermayer

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

Metadata

Metadata

Assignees

Labels

area:cliIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions