@newlevelup/commitlint-config

1.1.14 • Public • Published

commitlint-config Package version NPM version Github Package version

New Level Up shareable config for commitlint

Installation

💡 The purpose of the commitlint is to lint commit messages such that it conforms to the conventional commit format such that it is machine readable. ex. <type>[optional scope]: <description>

Install @newlevelup/commitlint-config:

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

Husky

@newlevelup/commitlint-config should be used in conjunction with Husky. See the Husky installation guide for more details.

Usage

New Level Up commitlint rules come bundled in @newlevelup/commitlint-config. To enable these rules, add a commitlint property in your package.json. See the commitlint configuration docs for more details.

"commitlint": {
  "extends": ["@newlevelup"]
}

Now you can run commitlint by adding the following scripts to your package.json.

"husky": {
  "hooks": {
    "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  }
}

Package Sidebar

Install

npm i @newlevelup/commitlint-config

Weekly Downloads

15

Version

1.1.14

License

ISC

Unpacked Size

3.07 kB

Total Files

3

Last publish

Collaborators

  • newlevelup