New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

commitlint_cetacea

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

commitlint_cetacea

commitlint

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

commitlint-cetacea

支持配套的 commitlint 配置,用于对 git commit message 进行校验。

安装

使用时,需要安装 @commitlint/cli

npm install commitlint-cetacea @commitlint/cli --save-dev

使用

commitlint.config.js 中集成本包:

module.exports = {
  extends: ['commitlint-cetacea'],
};

设置 git hook

可通过 husky 设置在 git commit 时触发 commitlint

首先安装 husky:

npm install husky --save-dev

然后执行添加commit-msg:

npx husky add .husky/commit-msg 'npx commitlint --edit $1'

更多信息可参考 commitlint 文档

Keywords

commitlint

FAQs

Package last updated on 14 May 2024

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