Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
/* eslint-env node */
const { types, scopes, allowCustomScopes } = require('./commitizen.config')
const validTypes = types.map((type) => type.value)
const validScopes = scopes.map((scope) => scope.name)
const scopeValidationLevel = allowCustomScopes ? 1 : 2
module.exports = {
extends: ['@commitlint/config-conventional'],
parserPreset: './parser-preset',
// Add your own rules. See http://marionebl.github.io/commitlint
rules: {
// Apply valid scopes and types
'scope-enum': [scopeValidationLevel, 'always', validScopes],
'type-enum': [2, 'always', validTypes],
},
}