build(git): .githooks补一个 commit-msg + commitlint
This commit is contained in:
1 parent
c7f25ec8a1
commit
6057069c1c
9 files changed
+157
-12
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/** @see docs/convention/COMMIT_CONVENTION.md */
|
||||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
rules: {
|
||||
'type-enum': [
|
||||
2,
|
||||
'always',
|
||||
[
|
||||
'feat',
|
||||
'fix',
|
||||
'docs',
|
||||
'style',
|
||||
'refactor',
|
||||
'perf',
|
||||
'test',
|
||||
'build',
|
||||
'ci',
|
||||
'chore',
|
||||
'revert',
|
||||
],
|
||||
],
|
||||
'header-max-length': [2, 'always', 100],
|
||||
'subject-full-stop': [2, 'never', '.'],
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user