@ggascoigne/commitlint-config

1.4.4 • Public • Published

Commitlint Config

My personal shareable commitlint configuration.

Install

pnpm pnpm -D @commitlint/cli @ggascoigne/commitlint-config

Usage

commitlint.config.js

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

Extending

commitlint.config.js

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

Add a Husky Hook

Install husky:

pnpm add -D husky && npm set-script prepare "husky install" && pnpm 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

Package Sidebar

Install

npm i @ggascoigne/commitlint-config

Weekly Downloads

0

Version

1.4.4

License

MIT

Unpacked Size

3.61 kB

Total Files

5

Last publish

Collaborators

  • ggascoigne