@6river/commitlint-config-6river
v2.3.4
Published
Customized version of @commitlint/config-conventional.
Downloads
3,454
Readme
@6river/commitlint-config-6river
6 River Systems commitlint
configuration.
commitlint
is a tool that checks commit messages for conformance to the conventional commits specification. Standardized commit messages are useful for automation of versioning and changelogs.
Installation
The following instructions use Husky for commit hooks.
npm install --save-dev @commitlint/cli husky @6river/commitlint-config-6river
The simplest way to configure commitlint
is in package.json
:
"commitlint": {
"extends": [
"@6river/commitlint-config-6river"
]
}
You can also use a standalone file commitlint.config.js
:
module.exports = {extends: ['@6river/commitlint-config-6river']}
If you already have a pre-commit hook in .husky/commit-msg
, add this line to it:
npx commitlint --edit $1
If you do not have the file .husky/commit-msg
, run the following to create it:
npx husky add .husky/commit-msg "npx commitlint --edit $1"
git add .husky/commit-msg
For more information, see the commitlint
documentation.