Skip to content

traverson/commitlint-config-traverson

Repository files navigation

commitlint-config-traverson

shareable config for commitlint

Node CI Workflow Status SLSA Level 2

Purpose

This is a shareable config for commitlint, which helps us ensure our commits are compatible with semantic-release.

This config extends commitlint-config-travi.

Usage

npm MIT license

Installation

$ npm install commitlint-config-traverson --save-dev

Define the config for your project

$ echo "module.exports = {extends: ['traverson']};" > .commitlintrc.js

Define the husky hook

(in a .huskyrc.json, for example)

{
  "hooks": {
    "commit-msg": "commitlint -e"
  }
}

Contributing

Conventional Commits Commitizen friendly semantic-release PRs Welcome Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test