1.4.4 • Published 5 months ago

@ggascoigne/commitlint-config v1.4.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

1.4.4

5 months ago

1.4.3

6 months ago

1.4.2

8 months ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago