Commitlint plugin that supports multiple scopes
npm install commitlint-plugin-multiscopeA commitlint plugin that supports multiple scopes
``shell`
npm install -D commitlint-plugin-multiscope
And configure commitlint.config.js to use multiscope plugin.
`javascript`
module.exports = {
plugins: ['commitlint-plugin-multiscope'],
rules: {
'multiscope': [2, 'always', {
delimiter: ',',
enum: [
'api',
'app',
'web',
],
case: 'lower-case'
}]
}
}
- delimiter?: string | RegExp,
- specify delimiter that scopes joined by
- default: enum?: string[]
- scope
- condition: is found in enum[]
- default: case?: string
- scope
- condition: is in caselower-case`
- default: