chore: change the commit rules

This commit is contained in:
MrWindlike 2022-08-01 08:57:10 +08:00
parent 9d4b93412a
commit e0128cf905
2 changed files with 7 additions and 1 deletions

View File

@ -58,6 +58,7 @@ module.exports = {
confirmCommit: 'Are you sure you want to proceed with the commit above?',
},
subjectLimit: 72,
allowCustomScopes: false,
allowBreakingChanges: ['feat', 'fix'],
};

View File

@ -1 +1,6 @@
module.exports = {extends: ['@commitlint/config-conventional']}
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'header-max-length': [2, 'always', 72],
},
};