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 ignore everything except specific folder #578
Comments
ok, maybe this is my fault, works ok with:
|
We should check if we run the same version of ignore than prettier. |
I have a similar problem to this, except my project is a monorepo. The solution that tlareg has does not seem to work for me. Project structure:
I want to specify prettierignore so that only web-app dir files get formatted on save. .prettierignore file:
When I run "Format document" from vscode on file inside web-app folder, it is not working. However, with pretty-quick pre-commit hook, the staged files inside web-app will be formatted. So it seems the prettierignore syntax is problematic only on prettier-vscode? Update Update again Final result.
.prettierignore file:
vscode settings.json in web-app dir includes
|
We are using prettier to determine the ignored files in version 3.0 so there should be no difference in prettier's behavior vs ours. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
.prettierignore file:
When running prettier from console - works great, changes in myapp folder are formatted by prettier and changes in other folders are ignored (I am using commit hook with husky and lint-staged configured exactly like in prettier docs).
When I run "Format document" from vscode on file inside myapp folder, it is not working.
After removing .prettierignore file, "Format document" works great.
I think prettier-vscode is ignoring everything without exceptions when I use such prettierignore file?
The text was updated successfully, but these errors were encountered: