Skip to content

Instantly share code, notes, and snippets.

@davestewart
Last active December 7, 2025 19:39
Show Gist options
  • Select an option

  • Save davestewart/82e94f0a5b266f1b383e32c1f9e4ce69 to your computer and use it in GitHub Desktop.

Select an option

Save davestewart/82e94f0a5b266f1b383e32c1f9e4ce69 to your computer and use it in GitHub Desktop.
Conventional Commits setup
npm install --save-dev husky @commitlint/cli @commitlint/config-conventional
npx husky init
echo 'export default {\n extends: ["@commitlint/config-conventional"]\n}' > commitlint.config.js
echo 'npx --no -- commitlint --edit $1' > .husky/commit-msg
chmod +x .husky/commit-msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment