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 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).
When the
prettier --write
hook is executed ongit 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
ongit 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)
The text was updated successfully, but these errors were encountered: