Skip to content
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

Fix prettier precommit for images #132

Merged
merged 2 commits into from
Jun 11, 2024
Merged

Conversation

alisonhall
Copy link
Collaborator

@alisonhall alisonhall commented Jun 10, 2024

This is an attempt to handle the current issue with being unable to commit images due to the precommit code throwing an error when trying to format images. This PR does fix the issue with the images, but there may be other file types in the future that encounter the same kind of problem. I have tried to account for the known file types for now.

While ideally we wouldn't need to specify all of the file types that we want to be formatted in the pre-commit script, I have not found any other method that works. Additionally, the .prettierignore config should already exclude the images, but the git-format-staged still seems to try to format the images first, which is where the problem is.

@alisonhall alisonhall merged commit 490a831 into main Jun 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants