Skip to content

thingbound/commitlint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@thingbound/commitlint-config

Configuration for Commitlint for projects in the @thingbound organization.

Follows Conventional Commits more or less exactly.

When using this config all commits will be on the form:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Using in projects

This config is used together with Commitlint as a Husky hook.

Install as dev dependencies:

$ npm install --save-dev @commitlint/cli husky @thingbound/commitlint-config

Create a file named commitlint.config.js and define that it to extend this configuration:

module.exports = {
  extends: [
    '@thingbound'
  ]
};

Then in package.json enable commitlint via Husky:

{
  ...,
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}