-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Placing hooks configuration in .huskyrc, .huskyrc.json or .huskyrc.js file not working #413
Comments
Hi @nidkil did you try
|
O well, don't I feel stupid :-( Yep, now it works. Thx for the quick respons! |
Thanks @mustafawm, closing :) |
You're not alone @nidkil 🤣 |
It seems that defining {
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-push": "npm test",
"...": "..."
}
}
} |
I had the same error, super hard to debug. Finally figured it out: |
inside the file . |
I have put the following
husky
configuration in a separate config file, but it is not picked up when I commit. I tried both.huskyrc
and.huskyrc.json
without luck.This is the output when I set
HUSKY_DEBUG=true
:When I put the configuration in the
package.json
file it works. This is the output:I'm using husky version 1.2.0. It seems that it only checks the
package.json
file for the husky config and ignores.huskyrc
and.huskyrc.json
.Any ideas what I am doing wrong?
The text was updated successfully, but these errors were encountered: