Skip to content

Commit 3e772e2

Browse files
authored
Added conventional commits (#369)
1 parent e9939ce commit 3e772e2

File tree

4 files changed

+716
-23
lines changed

4 files changed

+716
-23
lines changed

.husky/commit-msg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1
5+
yarn lint
6+
yarn type-check
7+
yarn test

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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"devDependencies": {
3434
"@babel/core": "7.12.9",
3535
"@babel/runtime": "7.12.5",
36+
"@commitlint/cli": "^16.1.0",
37+
"@commitlint/config-conventional": "^16.0.0",
3638
"@react-native-community/eslint-config": "3.0.1",
3739
"@testing-library/jest-native": "4.0.4",
3840
"@testing-library/react-native": "9.0.0",
@@ -42,11 +44,12 @@
4244
"@types/react-test-renderer": "17.0.1",
4345
"@types/shortid": "0.0.29",
4446
"@types/use-global-hook": "0.1.5",
47+
"@typescript-eslint/parser": "5.7.0",
4548
"babel-jest": "26.6.3",
4649
"codecov": "3.8.3",
4750
"eslint": "7.32.0",
4851
"eslint-plugin-prettier": "4.0.0",
49-
"@typescript-eslint/parser": "5.7.0",
52+
"husky": "^7.0.4",
5053
"istanbul": "0.4.5",
5154
"istanbul-api": "3.0.0",
5255
"istanbul-reports": "3.1.3",

0 commit comments

Comments
 (0)