@dwp/commitlint-config-base

4.0.6 • Public • Published

@dwp/commitlint-config-base

Shareable commitlint config enforcing our commit convention.
Originally based upon the Conventional Commit Message Guidelines and derived from @commitlint/config-conventional.

In addition to the above guidelines, it will prevent committing of messages which could skip CI pipelines.

Use with @commitlint/cli and @commitlint/prompt-cli.

Getting started

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

Rules

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

    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:

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

Dependencies (2)

Dev Dependencies (13)

Package Sidebar

Install

npm i @dwp/commitlint-config-base

Weekly Downloads

1,946

Version

4.0.6

License

ISC

Unpacked Size

4.18 kB

Total Files

4

Last publish

Collaborators

  • dwp-bot
  • jgdwp
  • lhokktyn
  • adam-moss