Last active
June 6, 2022 09:45
-
-
Save GridexX/c070f55c12112fb9ef0f70c259bcd740 to your computer and use it in GitHub Desktop.
Create a file for configure commitlint pre-commit hooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cat <<EEE > .husky/commit-msg | |
#!/bin/sh | |
. "\$(dirname "\$0")/_/husky.sh" | |
npx --no -- commitlint --edit "\${1}" | |
EEE | |
chmod a+x .husky/commit-msg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment