Closed
Description
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`
Metadata
Metadata
Assignees
Labels
No labels