@yikoyu/commitlint-config
v0.2.0
Published
yikoyu's commitlint config
Downloads
2
Maintainers
Readme
@yikoyu/commitlint-config
➡️ Extendable commitlint configuration, part of the yikoyu/unconfig project.
Prerequisites
ℹ️ 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
Basic usage
👣 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.
Used configurations & plugins
⚙️ This configuration module for commitlint loads configurations and plugins options conditionally.
Configurations
| Configurations | Version | Loading condition(s) | | -------------------------------- | ------------------------------------------------ | -------------------- | | @commitlint/cli | | - | | @commitlint/config-conventional | | - |
License
⚖️ For more information, please refer to the License section at the root of the yikoyu/unconfig monorepo.