A simple and configurable commit message linter for Git, enforcing conventional commits format. Version 0.0.4 last updated in 2019. No release cadence. Integrates with husky for Git hooks. Differentiators: lightweight, supports custom types, exclude patterns, and custom regex formats. Popular in Chinese developer community. Minimal dependencies, but requires Husky for Git hook integration.
npm install gw-commit-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs gw-commit-lint with husky, configures commit-msg hook, and shows lint rules.
Use 'gw-commit-lint HUSKY_GIT_PARAMS' in hook script.
Add exact key 'gw-commit-lint' in package.json.
Consider alternatives like commitlint or cz-conventional-changelog.
Use regex literal '/bar/' to match substring; string 'bar' matches only 'bar'.
Ensure husky hook is: 'gw-commit-lint HUSKY_GIT_PARAMS'.
Do not pass options; just pass HUSKY_GIT_PARAMS.
Run 'npm install --save-dev gw-commit-lint' in project.