Commitlint is a commit message linter.
- Extends
@commitlint/config-conventional
- Adds a rule that enforces
fix
andfeat
commits to have a Jira ticket id at the end in square brackets.
docs: fixed typo in readme
feat: infantry units move 10% faster [ABC-123]
fix: ships no longer count as infantry
npm i @commitlint/{config-conventional,cli} @superbet/commitlint-config --save-dev
module.exports = {
extends: ["@superbet/commitlint-config"],
};
Using .commitlintrc.js
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
Create a discussion on GitHub or learn how to make a contribution.