1.0.1 • Published 10 months ago

@binz/config-commitlint v1.0.1

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

Shared commitlint configuration

Automatically validate commit messages on commit with commitlint.

commitlint ensures that commit messages meet the conventional commit format.

type(scope?): subject

Setup

  • Add workspace reference to @binz/config-commitlint and its peer dependencies:

    pnpm add -w @binz/config-commitlint @commitlint/cli
  • Add commitlint configuration file to the repository root:

    // .commitlintrc.js
    
    module.exports = require('@binz/config-commitlint');
  • Add commitlint scripts to root package.json:

    // package.json
    
    "scripts": {
      ...
      "commitlint": "commitlint"
      ...
    }

Automation

  • Setup ➡ husky to schedule commitlint execution on commit.
1.0.1

10 months ago

1.0.0

10 months ago