Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.14 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.14 KB

@tomjs/commitlint

npm node-current (scoped) NPM

English | 中文

Front-end project commitlint Code submission specification configuration, node>=18 is recommended.

Usage

  • Install dependencies
pnpm add -D @commitlint/cli @tomjs/commitlint
  • Modify .commitlintrc.{js,cjs} configuration
module.exports = {
  extends: [require.resolve('@tomjs/commitlint')],
};
  • Combine with other libraries

Used in conjunction with husky and lint-staged.

pnpm add -D husky lint-staged

scripts of package.json added prepare

{
  "scripts": {
    "prepare": "husky install"
  }
}

Make configuration

pnpm add --save-peer @commitlint/cli
pnpm add @commitlint/config-conventional