diff --git a/.husky/commit-msg b/.husky/commit-msg index 567ff71f..274d2d8b 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -3,4 +3,6 @@ # shellcheck source=./_/husky.sh . "$(dirname "$0")/_/husky.sh" +PATH="/usr/local/bin:$PATH" + npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 35f92427..f975aa7b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -4,5 +4,7 @@ [ -n "$CI" ] && exit 0 +PATH="/usr/local/bin:$PATH" + # Format and submit code according to lintstagedrc.js configuration npm run lint:lint-staged