@walrus/plugin-commitlint
Lint your commit messages
Last updated 2 months ago by wangxingkang .
MIT · Original npm · Tarball · package.json
$ cnpm install @walrus/plugin-commitlint 
SYNC missed versions from official npm registry.

@walrus/plugin-commitlint

commitlint 封装

???? 安装

// npm
npm install --save --dev @walrus/cli @walrus/plugin-commitlint

// yarn
yarn add --dev @walrus/cli @walrus/plugin-commitlint

建议直接安装 @walrus/preset-lint

????命令

# 检查commit message
walrus commitlint

???? commitlint 配置

内置配置请查看 commitlint.config.js

???? 配置

注意: 优先级 Flags >> config commitlint >> config lint

可在 .walrusrc.tswalrus.config.ts添加如下配置

import { Config } from '@walrus/types';

const config: Config = {
  // ...
  commitlint: {
    edit: string;
    from: string;
    to: string;
    env: string;
    verbose: boolean;
    config?: string;
  }
};

export default config;

⚡ Flags

--edit

从指定文件读取最后的提交消息,或回退到./.git/COMMIT_EDITMSG

Current Tags

  • 1.2.0                                ...           latest (2 months ago)

7 Versions

  • 1.2.0                                ...           2 months ago
  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 0.4.1                                ...           6 months ago
  • 0.4.0                                ...           6 months ago
  • 0.3.1                                ...           7 months ago
  • 0.3.0                                ...           7 months ago
Downloads
Today 0
This Week 27
This Month 27
Last Day 1
Last Week 20
Last Month 79
Dependencies (7)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |