@142vip/commit-linter
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.1 • Public • Published

@142vip/commit-linter

NPM version

Git Commit信息校验工具,统一团队提交规范

安装

# 安装
pnpm i @142vip/commit-linter

使用

const { type, scope, subject, commit } = commitLiner({
  // scopes 为可选参数
  scopes: ['release'],
})

// 配置
/**
 * Git Commit信息校验参数
 */
export interface GitCommitLinterOptions {
  /**
   * Git Commit支持的Type列表,默认支持:
   */
  types?: string[]
  /**
   * Git Commit支持的Scope列表
   */
  scopes?: string[]
}

证书

MIT

Copyright (c) 2019-present, 142vip 储凡

Package Sidebar

Install

npm i @142vip/commit-linter

Weekly Downloads

8

Version

0.0.1-alpha.1

License

MIT

Unpacked Size

21.3 kB

Total Files

8

Last publish

Collaborators

  • mmdapl