chore: adjust commitlink config

This commit is contained in:
张传龙
2022-08-04 18:04:08 +08:00
parent fd0032e0e9
commit 869a68812c
2 changed files with 9 additions and 0 deletions

View File

@@ -1,4 +1,11 @@
module.exports = {
ignores: [(commit) => commit.includes('init')],
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert', 'wip', 'mod'],
],
},
}