1.1.5 • Published 2 years ago

@waldronmatt/commitlint-config v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Commitlint Config

My personal shareable commitlint configuration.

Install

yarn add -D @commitlint/cli @waldronmatt/commitlint-config

Usage

commitlint.config.js

module.exports = {
  extends: ['@waldronmatt/commitlint-config'],
};

Extending

commitlint.config.js

module.exports = {
  extends: ['@waldronmatt/commitlint-config'],
  rules: {
    'body-leading-blank': [2, 'always'],
  },
};

Add a Husky Hook

Install husky:

yarn add -D husky && npm set-script prepare "husky install" && yarn prepare

Add the hook:

npx husky add .husky/commit-msg 'npx --no-install commitlint --edit'

Under The Hood

index.js

  • @commitlint/config-conventional

License

MIT