Skip to content

Commit 46d8841

Browse files
committed
chore: configure husky with commitlint
1 parent 2099e32 commit 46d8841

File tree

3 files changed

+783
-19
lines changed

3 files changed

+783
-19
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
@@ -36,12 +36,20 @@
3636
"react-native-reanimated": "*"
3737
},
3838
"devDependencies": {
39+
"@commitlint/config-conventional": "^7.5.0",
3940
"@react-native-community/bob": "^0.3.3",
4041
"babel-eslint": "^10.0.1",
42+
"commitlint": "^7.5.2",
4143
"eslint": "^5.15.1",
4244
"eslint-plugin-react": "^7.12.4",
45+
"husky": "^1.3.1",
4346
"react-native-reanimated": "^1.0.0-alpha.12"
4447
},
48+
"husky": {
49+
"hooks": {
50+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
51+
}
52+
},
4553
"@react-native-community/bob": {
4654
"source": "src",
4755
"output": "lib",

0 commit comments

Comments
 (0)