validate-conventional-commit
Version:
Smallest simplest conventional commit validator to use with eg Husky
24 lines (16 loc) • 1.55 kB
Markdown
# validate-conventional-commit
Smallest simplest conventional commit validator to use with eg [`husky`](https://github.com/typicode/husky)
[](https://www.npmjs.com/package/validate-conventional-commit)
[](https://www.npmjs.com/package/validate-conventional-commit)
[](https://github.com/neostandard/neostandard)
[](https://github.com/voxpelli/types-in-js)
[](https://mastodon.social/@voxpelli)
## Usage
```bash
npx --no validate-conventional-commit < .git/COMMIT_EDITMSG
```
(Or simply just copy and paste the [`cli.js`](cli.js) file into your project if you want to avoid a dependency)
## Related modules
* [`@commitlint/cli`](https://www.npmjs.com/package/@commitlint/cli) – a much more comprehensive and much more heavy alternative
* [`husky`](https://github.com/typicode/husky) – my preferred git hook manager
* [`mtfoley/pr-compliance-action`](https://github.com/mtfoley/pr-compliance-action) – an action that helps validating conventional commit style in PR:s, something this module is not really geared towards