@6river/commitlint-config-6river

Customized version of @commitlint/config-conventional.

Usage no npm install needed!

<script type="module">
  import 6riverCommitlintConfig6river from 'https://cdn.skypack.dev/@6river/commitlint-config-6river';
</script>

README

@6river/commitlint-config-6river

Dependabot Status

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.