➡️ Extendable commitlint configuration, part of the yikoyu/unconfig project.
ℹ️ This configuration package require these tools to use locally on your device(s):
- Latest Node.js LTS (Long-Term Support) version
- One of Node.js package managers:
- Latest commitlint version
👣 Follow the steps below:
-
Install it with the Node.js package manager of your choice (in our case, we use pnpm).
pnpm install --save-dev @yikoyu/commitlint-config cz-git czg
-
If using pnpm, please add configuration to the
.npmrc
file.public-hoist-pattern[]=@commitlint/*
-
Create a commitlint configuration file -
commitlint.config.(js|cjs|.mjs)
. -
Extend this module package configuration.
import { yikoyu } from '@yikoyu/commitlint-config' export default yikoyu()
-
Git commit
pnpm czg
📖 For the commitlint CLI usage, please refer to its documentation.
⚙️ This configuration module for commitlint loads configurations and plugins options conditionally.
Configurations | Version | Loading condition(s) |
---|---|---|
@commitlint/cli | - | |
@commitlint/config-conventional | - |
⚖️ For more information, please refer to the License section at the root of the yikoyu/unconfig monorepo.