@nlib/lint-commit

1.0.1 • Public • Published

@nlib/lint-commit

Test codecov

Lint your commit messages.

Message Format

CommitMessage = Type ["(" Scope ")"] ": " Subject [EOL Body]
Type          = DefaultTypes (or your configuration)
DefaultTypes  = "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" |
                "refactor" | "revert" | "style" | "test" | "deps" | "breaking"
Scope         = DefaultScope (or your configuration)
DefaultScope  = /^[\w-]+$/
Subject       = /^\S[^\r\n]*$/ (or your configuration)
EOL           = /\r\n|\r|\n/
Body          = <Arbitrary string>

Usage

Then, set @nlib/lint-commit to commit-msg hook.

#!/bin/sh
npx @nlib/lint-commit --input $1

Readme

Keywords

none

Package Sidebar

Install

npm i @nlib/lint-commit

Weekly Downloads

38

Version

1.0.1

License

Apache-2.0

Unpacked Size

21.4 kB

Total Files

23

Last publish

Collaborators

  • kei-ito