1.0.0 • Published 4 years ago
@thingbound/commitlint-config v1.0.0
@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-configCreate 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"
}
}
}1.0.0
4 years ago