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

web-fe-commitlint

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-fe-commitlint

Git规范 Web前端规范

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
1
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

web-fe-commitlint

Git 规范

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

安装

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

npm install web-fe-commitlint @commitlint/cli --save-dev

使用

commitlint.config.js 中集成本包:

module.exports = {
  extends: ['code'],
};

设置 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

git

FAQs

Package last updated on 04 Aug 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