Skip to content

Instantly share code, notes, and snippets.

@GridexX
Last active June 6, 2022 09:45
Show Gist options
  • Save GridexX/c070f55c12112fb9ef0f70c259bcd740 to your computer and use it in GitHub Desktop.
Save GridexX/c070f55c12112fb9ef0f70c259bcd740 to your computer and use it in GitHub Desktop.
Create a file for configure commitlint pre-commit hooks
#!/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