Last active
December 7, 2025 19:39
-
-
Save davestewart/82e94f0a5b266f1b383e32c1f9e4ce69 to your computer and use it in GitHub Desktop.
Conventional Commits setup
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
| 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