@eliasnorrby/commitlint-config

2.3.37 • Public • Published

Commitlint Config

Travis npm

Dependabot Status semantic-release

My commitlint config. Right now it only extends @commitlint/config-conventional, but that could change.

⚠️ Subject to change in the future.

Setup

Using npx

Run the following command to install and configure commitlint

npx @eliasnorrby/commitlint-config

This will run a setup script, adding this package to devDependencies, intalling husky, populating the husky.hooks.commit-msg field in package.json, setting the git commit template to .gitmessage and writing the config to commitlint.config.js.

--no-install

Run setup with the --no-install flag to avoid installing this package as a dependency. Your commitling.config.js will instead extend @commitlint/config-conventional.

Manually

Install the package

npm i -D @eliasnorrby/commitlint-config

and add the configuration to commitlint.config.js.

commitlint.config.js

module.exports = require('@eliasnorrby/commitlint-config')

Overriding settings

Just add your overrides to commitlint.config.js:

module.exports = {
  ...require('@eliasnorrby/commitlint-config'),
  rules: {
    'header-max-length': [0, 'always', 72],
  },
}

Readme

Keywords

Package Sidebar

Install

npm i @eliasnorrby/commitlint-config

Weekly Downloads

48

Version

2.3.37

License

MIT

Unpacked Size

21 kB

Total Files

7

Last publish

Collaborators

  • eliasnorrby