diff --git a/zsh/commitlint.zsh b/zsh/commitlint.zsh new file mode 100644 index 0000000..255ff99 --- /dev/null +++ b/zsh/commitlint.zsh @@ -0,0 +1,6 @@ +commitlint_init() { + yarn add husky @commitlint/{config-conventional,cli} -D + echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js + yarn husky install + yarn husky add .husky/commit-msg 'yarn commitlint --edit $1' +}