-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
.prettierignore from CLI #5757
Comments
I have never seen up-traversing for |
|
I think it works precisely like that. Suppose only the repository root folder has |
|
May be prettier could check if its a git repository and if so could behave like git. Or else do you recommend to put prettierignore in each folder? But in that case Vscode extension doesn't work as it looks at project root. |
Duplicate of #4081 |
My
.prettierignore
:I read that prettier searches at
./.prettierignore
. So,prettier --write Templates/Submodule/pandoc-letter/example/letter.md
is ignored, here the path is relative to the location of.prettierignore
.But when I execute
prettier --write example/letter.md
from a path relative to ${PWD} but not relative to.prettierignore
, it isn't ignored.But logically it should be ignored. Prettier should find the ignore file recursively up and then ignore accordingly.
The text was updated successfully, but these errors were encountered: