Skip to content

be-fe/commitlint-config-befe

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published