1.0.0 • Published 4 years ago
@superbet/commitlint-config v1.0.0
Superbet Shared Commitlint Config
Commitlint is a commit message linter.
What it does?
- Extends
@commitlint/config-conventional - Adds a rule that enforces
fixandfeatcommits to have a Jira ticket id at the end in square brackets.
Allowed commits
docs: fixed typo in readme
feat: infantry units move 10% faster [ABC-123]Disallowed commits
fix: ships no longer count as infantryAdd to a Project
Install Configuration
npm i @commitlint/{config-conventional,cli} @superbet/commitlint-config --save-devAdd to Commitlint Config
module.exports = {
extends: ["@superbet/commitlint-config"],
};Using .commitlintrc.js
Add to Husky
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'Suggestions?
Create a discussion on GitHub or learn how to make a contribution.
1.0.0
4 years ago