Skip to content

Commit 3054564

Browse files
committed
feat: add commitlint
1 parent 7205b28 commit 3054564

File tree

3 files changed

+586
-36
lines changed

3 files changed

+586
-36
lines changed

commitlint.config.js

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

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"devDependencies": {
2626
"@babel/cli": "7.11.6",
2727
"@babel/core": "7.11.6",
28+
"@commitlint/cli": "11.0.0",
29+
"@commitlint/config-conventional": "11.0.0",
2830
"babel-eslint": "10.1.0",
2931
"babel-preset-kyt-react": "1.0.5",
3032
"enzyme": "3.11.0",
@@ -42,6 +44,7 @@
4244
"eslint-plugin-prettier": "3.1.4",
4345
"eslint-plugin-react": "7.20.6",
4446
"eslint-plugin-react-hooks": "4.1.2",
47+
"husky": "4.3.0",
4548
"jest": "26.4.2",
4649
"jsdom": "16.4.0",
4750
"microbundle": "0.12.3",
@@ -64,5 +67,10 @@
6467
"test-update": "yarn test -u",
6568
"compile": "yarn run clean && KYT_ENV_TYPE=client NODE_ENV=production microbundle --jsx React.createElement",
6669
"prepare": "yarn compile"
70+
},
71+
"husky": {
72+
"hooks": {
73+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
74+
}
6775
}
6876
}

0 commit comments

Comments
 (0)