$ cnpm install commitlint-plugin-multiscope
A commitlint plugin that supports multiple scopes
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
,
enum?: string[]
scope
is found in enum
[]
case?: string
scope
is in case
lower-case
Copyright 2014 - 2017 © taobao.org |