@dwp/commitlint-config-base

4.0.11 • 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"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.11138latest

Version History

VersionDownloads (Last 7 Days)Published
4.0.11138
4.0.10338
4.0.91,216
4.0.8196
4.0.723
4.0.60
4.0.50
4.0.40
4.0.30
4.0.086
1.2.095
1.1.01
1.0.01

Package Sidebar

Install

npm i @dwp/commitlint-config-base

Weekly Downloads

2,094

Version

4.0.11

License

ISC

Unpacked Size

4.79 kB

Total Files

4

Last publish

Collaborators

  • adam-moss
  • lhokktyn
  • dwp-bot