git | git commit 提交规范

2023-01-31  本文已影响0人  Scincyc
image.png

提交类型说明

cz-conventional-changelog局部安装配置

// 局部安装cz-conventional-changelog 配置package.json:
{
    "name": "commit-lint",
    "version": "1.0.0",
    "script": {
        "commit": "git-cz"
    },
    "config": {
        "commitizen": {
            "path": "node_modules/cz-conventional-changelog"
        }
    }
}

commitlint校验配置

//校验提交配置:.commitlintrc.js
module.exports = {
    extends: [
        "@commitlint/config-conventional"
    ],
    rules: {}
};
上一篇 下一篇

猜你喜欢

热点阅读