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
Context
Please describe your issue and provide some context:
Mac
Iterm and VSCode
Hook doesn't run
husky 9.0.11
lint-staged 15.2.2
Used https://github.com/uulm-mrm/git_hooks to get a basic husky+lint-staged+prettier+eslint setup.
If I run npx lint-staged myself in a terminal I see the expected scripts run but committing doesn't trigger the scripts and allows the commit to go through.
Any chance your package.json isn't in the root directory of your repo?
I thought mine was broken (which is how I came across this issue), but then I found an adjusted config from a similar repo, and it's working fine now. My change is just "prepare": "cd .. && husky", but that may be irrelevant for you 🤔
Context
Please describe your issue and provide some context:
husky
9.0.11
lint-staged
15.2.2
Used https://github.com/uulm-mrm/git_hooks to get a basic husky+lint-staged+prettier+eslint setup.
If I run
npx lint-staged
myself in a terminal I see the expected scripts run but committing doesn't trigger the scripts and allows the commit to go through.Running
git config core.hooksPath
outputs.husky/_
git --version
outputgit version 2.45.1
troubleshooting section says to be on git
2.9
which feels like a mistake as2.45.1
is latestpackage.json
.husky/pre-commit
The text was updated successfully, but these errors were encountered: