@bit-ocean/commitlint-config
TypeScript icon, indicating that this package has built-in type declarations

0.0.53 • Public • Published

@bit-ocean/commitlint-config

npm

Universal Commitlint configuration.

Installation

pnpm add -D @commitlint/cli @commitlint/config-conventional cz-git commitizen @bit-ocean/commitlint-config

Configuration

Create a .commitlintrc.json file in the root of your project and add the following:

{
  "extends": ["@bit-ocean"]
}

Then add the following properties to your package.json:

{
  "scripts": {
    "cz": "git-cz"
  },
  "config": {
    "commitizen": {
      "path": "node_modules/cz-git"
    }
  }
}

Husky Configuration

Run following command to add husky and a commit-msg hook:

pnpm add -D husky
pnpm i
npx husky init
echo 'npx --no -- commitlint --edit "$1"' > .husky/commit-msg

Usage

Run the following command to commit your changes:

git add .
pnpm cz

License

MIT License © 2024 Bit Ocean

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.533latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.533
0.0.523
0.0.512
0.0.500
0.0.490
0.0.481
0.0.471
0.0.461
0.0.451
0.0.441
0.0.431
0.0.421
0.0.411
0.0.401
0.0.391
0.0.381
0.0.371
0.0.361
0.0.351
0.0.341
0.0.331
0.0.321
0.0.311
0.0.301
0.0.291
0.0.281
0.0.271
0.0.261
0.0.251
0.0.241
0.0.231
0.0.221
0.0.211
0.0.201
0.0.190
0.0.180
0.0.17
0
0.0.15
0
0.0.14
0
0.0.130
0.0.120
0.0.110
0.0.10
0
0.0.9
0

Package Sidebar

Install

npm i @bit-ocean/commitlint-config

Weekly Downloads

37

Version

0.0.53

License

MIT

Unpacked Size

26.3 kB

Total Files

9

Last publish

Collaborators

  • brucesong
  • zhiblcx