mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamShowboard-Legacy.git
synced 2025-04-28 23:26:34 +00:00
32 lines
603 B
JavaScript
32 lines
603 B
JavaScript
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
// 校验规则
|
|
rules: {
|
|
'type-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'feat',
|
|
'fix',
|
|
'docs',
|
|
'style',
|
|
'refactor',
|
|
'perf',
|
|
'test',
|
|
'chore',
|
|
'revert',
|
|
'build',
|
|
'init'
|
|
]
|
|
],
|
|
'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],
|
|
'body-max-line-length': [0, 'never']
|
|
}
|
|
};
|