You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
548 B
JavaScript
30 lines
548 B
JavaScript
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
// 校验规则
|
|
rules: {
|
|
'type-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'feat',
|
|
'fix',
|
|
'docs',
|
|
'style',
|
|
'refactor',
|
|
'perf',
|
|
'test',
|
|
'chore',
|
|
'revert',
|
|
'build',
|
|
],
|
|
],
|
|
'type-case': [0],
|
|
'type-empty': [0],
|
|
'scope-empty': [0],
|
|
'scope-case': [0],
|
|
'subject-full-stop': [0, 'never'],
|
|
'subject-case': [0, 'never'],
|
|
'header-max-length': [0, 'always', 72],
|
|
},
|
|
}
|