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
I'm having some issues with Husky and bash aliases / shortcuts. I've got a gacp "commit message" shortcut set up to add / commit (with message) / push.
I've added a pre-commit command in Husky to run my linters. When I run gacp I don't get any errors, but Husky doesn't actually commit the versions of the files modified by the linters. It seems to commit prior to the linter's changes.
Is this a bug or the expected behavior for the pre-commit hook? And are there any workarounds?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all
I'm having some issues with Husky and bash aliases / shortcuts. I've got a
gacp "commit message"
shortcut set up to add / commit (with message) / push.I've added a pre-commit command in Husky to run my linters. When I run
gacp
I don't get any errors, but Husky doesn't actually commit the versions of the files modified by the linters. It seems to commit prior to the linter's changes.Is this a bug or the expected behavior for the pre-commit hook? And are there any workarounds?
Beta Was this translation helpful? Give feedback.
All reactions