Skip to content

Commit b58d2ec

Browse files
committed
work: update
1 parent 3d9e5fb commit b58d2ec

File tree

3 files changed

+1099
-12
lines changed

3 files changed

+1099
-12
lines changed

.commitlintrc.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
extents: ['@commitlint/config-conventional'],
3+
rules: {
4+
'body-leading-blank': [1, 'always'],
5+
'footer-leading-blank': [1, 'always'],
6+
'header-max-length': [2, 'always', 72],
7+
'scope-case': [2, 'always', 'lower-case'],
8+
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
9+
'subject-empty': [2, 'never'],
10+
'subject-full-stop': [2, 'never', '.'],
11+
'type-case': [2, 'always', 'lower-case'],
12+
'type-empty': [2, 'never'],
13+
'type-enum': [
14+
2,
15+
'always',
16+
[
17+
'build',
18+
'chore',
19+
'ci',
20+
'docs',
21+
'feat',
22+
'fix',
23+
'improvement',
24+
'perf',
25+
'refactor',
26+
'revert',
27+
'style',
28+
'test',
29+
],
30+
],
31+
},
32+
};

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
"prettier --write"
2424
]
2525
},
26+
"husky": {
27+
"hooks": {
28+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
29+
}
30+
},
31+
"config": {
32+
"commitizen": {
33+
"path": "node_modules/cz-customizable"
34+
}
35+
},
2636
"keywords": [
2737
"vue",
2838
"vue3",
@@ -55,11 +65,15 @@
5565
"vue": "^3.3.2"
5666
},
5767
"devDependencies": {
68+
"@commitlint/cli": "^17.6.3",
69+
"@commitlint/config-conventional": "^17.6.3",
5870
"@types/jest": "^29.5.1",
5971
"@types/lodash-es": "^4.17.7",
6072
"@types/mockjs": "^1.0.7",
6173
"@vitejs/plugin-vue-jsx": "^3.0.1",
6274
"@vue/babel-plugin-jsx": "^1.1.1",
75+
"commitizen": "^4.3.0",
76+
"cz-conventional-changelog": "^3.3.0",
6377
"eslint-plugin-vue": "^9.12.0",
6478
"husky": "^8.0.0",
6579
"jest": "^29.5.0",

0 commit comments

Comments
 (0)