Skip to content

Commit 7d25d84

Browse files
Amour1688tangjinzhou
authored andcommitted
feat: remove unit test commit hooks (vueComponent#1618)
1 parent 228a6c4 commit 7d25d84

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.huskyrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "pretty-quick --staged",
4+
"pre-publish": "npm run lint",
5+
"commit-msg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS"
6+
}
7+
}

package.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"dist": "node antd-tools/cli/run.js dist",
4242
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components",
4343
"lint:style": "stylelint \"{site,components}/**/*.less\" --syntax less",
44-
"commitmsg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS",
4544
"codecov": "codecov",
4645
"postinstall": "node scripts/postinstall || echo \"ignore\""
4746
},
@@ -54,11 +53,6 @@
5453
"url": "https://github.com/vueComponent/ant-design-vue/issues"
5554
},
5655
"homepage": "https://www.antdv.com/",
57-
"husky": {
58-
"hooks": {
59-
"pre-commit": "pretty-quick --staged"
60-
}
61-
},
6256
"peerDependencies": {
6357
"vue": ">=2.6.0",
6458
"vue-template-compiler": ">=2.6.0"
@@ -119,7 +113,7 @@
119113
"gulp-strip-code": "^0.1.4",
120114
"highlight.js": "^9.12.0",
121115
"html-webpack-plugin": "^3.2.0",
122-
"husky": "^0.14.3",
116+
"husky": "^3.1.0",
123117
"istanbul-instrumenter-loader": "^3.0.0",
124118
"jest": "^24.0.0",
125119
"jest-serializer-vue": "^1.0.0",
@@ -142,7 +136,6 @@
142136
"optimize-css-assets-webpack-plugin": "^5.0.1",
143137
"postcss": "^7.0.6",
144138
"postcss-loader": "^3.0.0",
145-
"pre-commit": "^1.2.2",
146139
"prettier": "^1.18.2",
147140
"pretty-quick": "^1.11.1",
148141
"querystring": "^0.2.0",

0 commit comments

Comments
 (0)