GitHub - theworker02/commitlint-lite: Lint conventional subjects, including the latest git log entry. npm: https://www.npmjs.com/package/%40magnexis/commitlint-lite · GitHub
Skip to content

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

commitlint-lite

commitlint-lite mark

Validate conventional commit subjects with a tiny configurable rule set and a documented programmatic API.

JSR version 1.1.0 license MIT

Package: @theworker02/commitlint-lite · Site: GitHub Pages · Source: theworker02/commitlint-lite

Add from JSR

deno add jsr:@theworker02/commitlint-lite
import { lint, lintMany, DEFAULT_TYPES } from "@theworker02/commitlint-lite";

console.log(lint("feat(parser): add scanner"));
console.log(lintMany(["fix: correct bug", "WIP"]));
console.log(DEFAULT_TYPES);

Public API

  • lint(message, options) — lint one commit message.
  • lintMany(messages, options) — lint a collection.
  • lintFile(path, options) — read and lint a commit-message file.
  • lastGitCommit(cwd) — read the latest Git commit message.
  • subjectFrom(text) — extract the subject line.
  • patternFor(types) — build the validation expression.
  • DEFAULT_TYPES, PACKAGE, LintOptions, LintResult — documented symbols and types.

CLI from source

git clone https://github.com/theworker02/commitlint-lite.git
cd commitlint-lite
node src/cli.js "feat: initial release"

Development

node --test

Publishing

The canonical public package is JSR @theworker02/commitlint-lite, published through GitHub Actions trusted publishing.

License

MIT © 2026 theworker02

About

Lint conventional subjects, including the latest git log entry. npm: https://www.npmjs.com/package/%40magnexis/commitlint-lite

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages