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

Broken prettier when files with brackets are executed #78

Closed
svedova opened this issue Dec 24, 2020 · 0 comments · Fixed by #113
Closed

Broken prettier when files with brackets are executed #78

svedova opened this issue Dec 24, 2020 · 0 comments · Fixed by #113
Labels
bug Something isn't working

Comments

@svedova
Copy link
Contributor

svedova commented Dec 24, 2020

When the prettier --write hook is executed on git commit, if the staged files contain a bracket [], the glob fails and hence the command returns an error.

The current workaround is ugly (using --no-verify on git commit).

Let's find a proper way to handle this. Here's an issue that can be helpful: lint-staged/lint-staged#676, particularly this comment: lint-staged/lint-staged#676 (comment)

@svedova svedova added the bug Something isn't working label Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant