项目作者: dwp

项目描述 :
Shareable `commitlint` config enforcing our commit convention
高级语言: JavaScript
项目地址: git://github.com/dwp/commitlint-config-base.git
创建时间: 2018-01-12T09:31:18Z
项目社区:https://github.com/dwp/commitlint-config-base

开源协议:ISC License

下载


@dwp/commitlint-config-base

Shareable commitlint config enforcing our commit convention. Originally based upon the AngularJS Commit Message Guidelines and derived from @commitlint/config-angular"">@commitlint/config-angular.
Use with @commitlint/cli"">@commitlint/cli and @commitlint/prompt-cli"">@commitlint/prompt-cli.

Getting started

  1. npm install --save-dev @dwp/commitlint-config-base @commitlint/cli

Rules

Add a commitlint.config.js file that looks something like:

  1. module.exports = require( '@dwp/commitlint-config-base' );

You can add your own rules to enhance this, but in doing so please ensure you don’t weaken the baseline ruleset.

Linting

Add commitlint to your test suite like this, or see our package.json for an example of how we do it:

  1. "test": "commitlint --from=develop --to=HEAD"