@6river/commitlint-config-6river

2.3.4 • Public • Published

@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.

Package Sidebar

Install

npm i @6river/commitlint-config-6river

Weekly Downloads

143

Version

2.3.4

License

MIT

Unpacked Size

4.23 kB

Total Files

9

Last publish

Collaborators

  • 6river-npm
  • 6river-machine
  • kolach
  • jjhughes57
  • aaron.france