be-fe / commitlint-config-befe

commitlint config preet for baidu BEFE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

commitlint-config-befe

build status Test coverage NPM version NPM Downloads

commitlint config preet for baidu BEFE.

安装

npm install commitlint-config-befe @commitlint/cli husky -D

使用

package.json 中书写:

{
  "commitlint": {
    "extends": ["commitlint-config-befe"]
  },
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
    }
  }
}

同时推荐 npm install -g commitizen 全局注入了 git cz,用来引导式书写规范的 commit message,十分适合于不熟悉的同学。

Related

License

MIT

About

commitlint config preet for baidu BEFE

License:MIT License


Languages

Language:JavaScript 100.0%