A lightweight, independent, zero-configuration git commit message linter that enforces the Angular Commit Message Guidelines. Version 5.0.8 requires Node >= 14.0.0. It operates as a git 'commit-msg' hook, instantly checking every commit message and aborting if invalid. Unlike commitlint or other tools, it requires no setup, configuration files, or additional dependencies. Ships with TypeScript type definitions. Release cadence: irregular, with occasional updates.
npm install git-commit-msg-linterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the package as dev dependency; it automatically sets up a git commit-msg hook that lints future commit messages per Angular conventions.
Ensure .git is present before install, or use a conditional install script.
Upgrade Node.js to >=14.0.0 or pin to version 4.x.
Use correct filename: 'commitlinterrc.json' (no 'e' after 'lint').
Install husky after git-commit-msg-linter, or configure husky to run the linter script.
Backup existing hooks before installing.
Ensure Node.js is in PATH and the shebang line in the hook file is correct (usually '#!/usr/bin/env node').
Update commit messages to use valid types; adjust custom config if needed.
Use format like 'feat: add login button' or 'fix(scope): resolve crash'.
Reinstall npm package or manually remove and re-add the hook via npm rebuild.
Run npm install with appropriate permissions (e.g., sudo on Unix).
Create 'commitlinterrc.json' in project root with correct spelling (no 'e' after 'lint').
Migrate to an alternative like @commitlint/cli or update to latest version if not deprecated.
No dependency data recorded yet.