1.0.0 • Published 4 years ago

@kopplin/commitlint-config v1.0.0

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

@kopplin/commitlint-config

npm version

Kopplin's shared CommitLint configuration.

Setup

  1. Install the packages
$ npm i -D @kopplin/commitlint-config @commitlint/cli husky
  1. Install Husky
$ npx husky install
  1. Add Hook
$ npx husky add .husky/commit-msg 'npx --no-install commitlint --edit $1'
  1. Setup config file

After installing it, apply the config to commitlint by running the following command:

echo "module.exports = { extends: ['@kopplin/commitlint-config'] };" > .commitlintrc.js