Socket
Book a DemoInstallSign in
Socket

@alexwei/commit-lint

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alexwei/commit-lint

Lint commit messages using Angular's commit convention.

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

commit-lint

Lint commit messages using Angular's commit convention

What is commit-lint

commit-lint is not the same as commitlint. It's extremely simple, doesn't support rule configuration, and enforces Angular's commit conventions. It was born inspired by Vue related projects.

Usage

Install

npm i @alexwei/commit-lint -D

Add Hook

With husky, add command to .husky/commit-msg file.

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commit-lint $1

With simple-git-hooks, add command to package.json file.

"simple-git-hooks": {
    "commit-msg": "npx commit-lint $1"
}

With yorkie, add command to package.json file.

"gitHooks": {
    "commit-msg": "npx commit-lint $1"
}

License

MIT

Keywords

commit

FAQs

Package last updated on 26 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.