prettier traverses .git files and tries to format them #4895
Labels
area:cli
Issues with Prettier's Command Line Interface
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
priority:high
Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
status:has pr
Issues with an accompanying pull request. These issues will probably be fixed soon!
type:bug
Issues identifying ugly output, or a defect in the program
Milestone
Environments:
Steps to reproduce:
prettier
installed.js
prettier --write '**/*.js'
I created a repository with everything ready to reproduce (link).
Expected behavior:
.git/
directory should be ignored,prettier
should run without errors.Actual behavior:
.git/
directory is traversed in files andprettier
throws syntax error (obviously because.git/
files aren't JS files).I'm aware of #2882 but
.git/*
files are still parsed.Also, I'm up to work on opening a PR solving this issue. But I believe it's better to ask first.
The text was updated successfully, but these errors were encountered: