1.0.3 • Published 9 months ago

@gsc-basic/commitlint-config v1.0.3

Weekly downloads
-
License
UNLICENSED
Repository
gitlab
Last release
9 months ago

@gsc-basic/commitlint-config

Commitlint Config for GSC Basic Team

DO NOT use it in your own project if you don't know what it's for

说明

Git commit内容检查工具,建议配合 huskysimple-git-hooksGit hooks tool使用。

使用

pnpm i @gsc-basic/commitlint-config husky -D

// commitlint.config.mjs
export { default } from '@gsc-basic/commitlint-config';
// package.json
{
  "scripts": {
    "prepare": "husky"
  }
}

添加Hook

husky使用文档参考:https://typicode.github.io/husky/

pnpm exec husky init

# .husky\commit-msg
echo Start running commit-msg hook...

pnpm exec commitlint --edit $1

echo Run commit-msg hook done.
1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago