Skip to content

Commit c2fa7ec

Browse files
committedSep 22, 2018
chore: configure commitlint
1 parent ba0d154 commit c2fa7ec

File tree

3 files changed

+873
-61
lines changed

3 files changed

+873
-61
lines changed
 

‎commitlint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
}

‎package-lock.json

+862-61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+8
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
},
8686
"devDependencies": {
8787
"@babel/core": "^7.0.1",
88+
"@commitlint/cli": "^7.1.2",
89+
"@commitlint/config-conventional": "^7.1.2",
8890
"@mapbox/stylelint-processor-arbitrary-tags": "^0.2.0",
8991
"babel-core": "^7.0.0-bridge.0",
9092
"babel-eslint": "^9.0.0",
@@ -99,6 +101,7 @@
99101
"eslint-plugin-promise": "^4.0.1",
100102
"eslint-plugin-standard": "^4.0.0",
101103
"eslint-plugin-vue": "^4.0.0",
104+
"husky": "^1.0.0-rc.15",
102105
"jest": "^23.6.0",
103106
"jest-serializer-vue": "^2.0.2",
104107
"stylelint-config-prettier": "^4.0.0",
@@ -109,5 +112,10 @@
109112
"engines": {
110113
"node": ">=8.10",
111114
"npm": ">=5"
115+
},
116+
"husky": {
117+
"hooks": {
118+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
119+
}
112120
}
113121
}

0 commit comments

Comments
 (0)
Please sign in to comment.