commitlint-plugin-regexscope
Commitlint plugin that supports only check regex match scope parts
Last updated 5 months ago by hikawa_rin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install commitlint-plugin-regexscope 
SYNC missed versions from official npm registry.

Commitlint Plugin Regexscope

A commitlint pulgin that supports only check regex match scope parts

Getting Started

npm install --save-dev commitlint-plugin-regexscope

And confighure commitlint.config.js to use regexscope plugin.

module.exports = {
    plugins: ['commitlint-plugin-regexscope'],
    rules: {
        'regexscope': [2, 'always', {
            pattern: '', 
            clean: null, 
            enum: [
                'core',
                'ui'
            ],
            case: 'lower-case'
        }]
    }
}

options: RegexScopeOptions

  • pattern?: string | RegExp
    • specify substring which you want to check
    • default: ``
  • clean?: string | RegExp
    • clean your substring to match enum
    • default: null
  • enum?: string[]
    • conditon: regex matched subscope is found in enum
    • default: []
  • case?: string
    • condition: scope is in case
    • default: lower-case

Current Tags

  • 0.0.1                                ...           latest (5 months ago)

1 Versions

  • 0.0.1                                ...           5 months 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 (0)
None

Copyright 2014 - 2016 © taobao.org |