commitlint-plugin-multiscope
Commitlint plugin that supports multiple scopes
Last updated 7 months ago by fmatzy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install commitlint-plugin-multiscope 
SYNC missed versions from official npm registry.

Commitlint Plugin Multiscope

Node.js CI

A commitlint plugin that supports multiple scopes

Getting Started

npm install -D commitlint-plugin-multiscope

And configure commitlint.config.js to use multiscope plugin.

module.exports = {
  plugins: ['commitlint-plugin-multiscope'],
  rules: {
    'multiscope': [2, 'always', {
      delimiter: ',',
      enum: [
        'api',
        'app',
        'web',
      ],
      case: 'lower-case'
    }]
  }
}

options: MultiScopeOptions

  • delimiter?: string | RegExp
    • specify delimiter that scopes joined by
    • default: ,
  • enum?: string[]
    • condition: scope is found in enum
    • default: []
  • case?: string
    • condition: scope is in case
    • default: lower-case

Current Tags

  • 0.2.0                                ...           latest (7 months ago)

4 Versions

  • 0.2.0                                ...           7 months ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |