You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running git commit the prettier script runs due to the precommit hook. This executes pretty-quick --staged, which basically runs prettier against all staged files. The issue is that it does not take into account the .prettierignore file.
What was expected to happen?
When running prettier the .prettierignore file should be respected
Reproduction
Go to the next branch
Change anything in src/codemods/__testfixtures__/block-to-width-100.output.tsx (e.g. add a random comment in one file)
Run git add on what you changed
Try to commit
It will create a commit but it will have run prettier against the file that you changed, even though we are supposed to ignore it thanks to our .prettierignore file
The text was updated successfully, but these errors were encountered:
Relevant code
When running
git commit
theprettier
script runs due to theprecommit
hook. This executespretty-quick --staged
, which basically runs prettier against all staged files. The issue is that it does not take into account the.prettierignore
file.What was expected to happen?
When running
prettier
the.prettierignore
file should be respectedReproduction
next
branchsrc/codemods/__testfixtures__/block-to-width-100.output.tsx
(e.g. add a random comment in one file)git add
on what you changedIt will create a commit but it will have run prettier against the file that you changed, even though we are supposed to ignore it thanks to our
.prettierignore
fileThe text was updated successfully, but these errors were encountered: