-
Notifications
You must be signed in to change notification settings - Fork 934
No HUSKY_GIT_PARAMS not available #2339
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
Comments
Relates to #2340 |
Just went through this issue, you have husky v5 and need to follow the v5 conventions per the v5 docs. |
Thanks to @macklinu this is also mentined now in the README. |
@akshayrohatgi94 thanks for letting us know! Funny they added this example. |
Upgrading to version 9 I found that working solution is: commitlint -E $1 As according to migration guide:
|
Hello,
I am trying to make commitlint work with husky v5 but I am getting the following error:
Error:
Error: Recieved 'HUSKY_GIT_PARAMS' as value for -E | --env, but environment variable 'HUSKY_GIT_PARAMS' is not available globally
package.json
"@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0" "husky": "^5.0.4",
thanks for the help!
UPDATE:
Fixed it with this:
`# .husky/pre-commit
...
npx --no-install commitlint --edit $1
or
yarn commitlint --edit $1`
The text was updated successfully, but these errors were encountered: