26 lines
345 B
JavaScript
26 lines
345 B
JavaScript
const types = [
|
|
'build',
|
|
'chore',
|
|
'ci',
|
|
'docs',
|
|
'feat',
|
|
'fix',
|
|
'perf',
|
|
'refactor',
|
|
'revert',
|
|
'style',
|
|
'test',
|
|
|
|
//custom
|
|
'tweak',
|
|
'wip',
|
|
'locale',
|
|
];
|
|
|
|
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
rules: {
|
|
'type-enum': [2, 'always', types],
|
|
},
|
|
};
|