Husky commit-message hook not triggering
I’m trying to use commitlint lint commit messages against the Conventional Commit standard. Here is my relatively basic commitlint.config.js
file:
How to add conditional logic to pre-commit hook based on commit message
I currently have a pre-commit hook (using Husky) that runs a linting script. This script does some automatic fixes, such as ordering imports, that should be included in the commit.