https://github.com/be-fe/commitlint-config-befe
commitlint config preet for baidu BEFE
https://github.com/be-fe/commitlint-config-befe
Last synced: over 1 year ago
JSON representation
commitlint config preet for baidu BEFE
- Host: GitHub
- URL: https://github.com/be-fe/commitlint-config-befe
- Owner: be-fe
- License: mit
- Created: 2018-10-26T03:36:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T04:16:13.000Z (over 7 years ago)
- Last Synced: 2025-02-16T05:16:47.158Z (over 1 year ago)
- Language: JavaScript
- Size: 89.8 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: License
Awesome Lists containing this project
README
# commitlint-config-befe
[](https://travis-ci.org/be-fe/commitlint-config-befe)
[](https://codecov.io/github/be-fe/commitlint-config-befe?branch=master)
[](https://www.npmjs.com/package/commitlint-config-befe)
[](https://www.npmjs.com/package/commitlint-config-befe)
> commitlint config preet for baidu BEFE.
## 安装
```bash
npm install commitlint-config-befe @commitlint/cli husky -D
```
## 使用
在 `package.json` 中书写:
```json
{
"commitlint": {
"extends": ["commitlint-config-befe"]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
}
}
```
同时推荐 `npm install -g commitizen`
全局注入了 `git cz`,用来引导式书写规范的 commit message,十分适合于不熟悉的同学。

## Related
- [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) - 根据 commit message 生成 changelog
- [commitlint](https://github.com/marionebl/commitlint) - Lint commit messages
- [conventional-changelog-befe](https://github.com/be-fe/conventional-changelog-befe) - conventional-changelog 预设
## License
MIT