Skip to content

Commit 38cbe6e

Browse files
authored
chore: add commitlint (#2803)
1 parent 96e99f2 commit 38cbe6e

File tree

3 files changed

+381
-20
lines changed

3 files changed

+381
-20
lines changed

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
"@babel/plugin-proposal-object-rest-spread": "^7.3.4",
7676
"@babel/preset-env": "^7.3.4",
7777
"@babel/preset-react": "^7.0.0",
78+
"@commitlint/cli": "^8.2.0",
79+
"@commitlint/config-conventional": "^8.2.0",
7880
"@octokit/rest": "^16.28.7",
7981
"all-contributors-cli": "^6.0.0",
8082
"babel-core": "^7.0.0-bridge.0",
@@ -103,6 +105,7 @@
103105
"friendly-errors-webpack-plugin": "^1.7.0",
104106
"fs-extra": "^8.1.0",
105107
"http-server": "^0.11.1",
108+
"husky": "^3.0.9",
106109
"jest": "^24.5.0",
107110
"jest-cli": "^24.5.0",
108111
"jest-dom": "^3.1.3",
@@ -137,5 +140,10 @@
137140
"dependencies": {
138141
"emotion": "^10.0.9",
139142
"lerna": "^3.15.0"
143+
},
144+
"husky": {
145+
"hooks": {
146+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
147+
}
140148
}
141149
}

0 commit comments

Comments
 (0)