1.0.1 • Published 9 months ago

@nlib/lint-commit v1.0.1

Weekly downloads
489
License
Apache-2.0
Repository
github
Last release
9 months ago

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

9 months ago

1.0.0

9 months ago

0.2.0

2 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.4

3 years ago

0.1.3

4 years ago