Showing
3 changed files
with
24 additions
and
1 deletions
.commitlintrc.js
0 → 100644
| @@ -7,7 +7,8 @@ | @@ -7,7 +7,8 @@ | ||
| 7 | "ios": "react-native run-ios", | 7 | "ios": "react-native run-ios", |
| 8 | "start": "react-native start", | 8 | "start": "react-native start", |
| 9 | "test": "jest", | 9 | "test": "jest", |
| 10 | - "lint": "eslint . --ext .js,.jsx,.ts,.tsx" | 10 | + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", |
| 11 | + "commit": "git-cz" | ||
| 11 | }, | 12 | }, |
| 12 | "dependencies": { | 13 | "dependencies": { |
| 13 | "react": "16.9.0", | 14 | "react": "16.9.0", |
| @@ -16,6 +17,8 @@ | @@ -16,6 +17,8 @@ | ||
| 16 | "devDependencies": { | 17 | "devDependencies": { |
| 17 | "@babel/core": "^7.6.2", | 18 | "@babel/core": "^7.6.2", |
| 18 | "@babel/runtime": "^7.6.2", | 19 | "@babel/runtime": "^7.6.2", |
| 20 | + "@commitlint/cli": "^8.3.5", | ||
| 21 | + "@commitlint/config-conventional": "^8.3.4", | ||
| 19 | "@react-native-community/eslint-config": "^0.0.5", | 22 | "@react-native-community/eslint-config": "^0.0.5", |
| 20 | "@types/jest": "^24.0.24", | 23 | "@types/jest": "^24.0.24", |
| 21 | "@types/react-native": "^0.60.25", | 24 | "@types/react-native": "^0.60.25", |
| @@ -23,7 +26,10 @@ | @@ -23,7 +26,10 @@ | ||
| 23 | "@typescript-eslint/eslint-plugin": "^2.12.0", | 26 | "@typescript-eslint/eslint-plugin": "^2.12.0", |
| 24 | "@typescript-eslint/parser": "^2.12.0", | 27 | "@typescript-eslint/parser": "^2.12.0", |
| 25 | "babel-jest": "^24.9.0", | 28 | "babel-jest": "^24.9.0", |
| 29 | + "commitizen": "^4.0.3", | ||
| 30 | + "cz-conventional-changelog": "^3.1.0", | ||
| 26 | "eslint": "^6.5.1", | 31 | "eslint": "^6.5.1", |
| 32 | + "husky": "^4.2.3", | ||
| 27 | "jest": "^24.9.0", | 33 | "jest": "^24.9.0", |
| 28 | "metro-react-native-babel-preset": "^0.56.0", | 34 | "metro-react-native-babel-preset": "^0.56.0", |
| 29 | "react-test-renderer": "16.9.0", | 35 | "react-test-renderer": "16.9.0", |
| @@ -39,5 +45,15 @@ | @@ -39,5 +45,15 @@ | ||
| 39 | "json", | 45 | "json", |
| 40 | "node" | 46 | "node" |
| 41 | ] | 47 | ] |
| 48 | + }, | ||
| 49 | + "config": { | ||
| 50 | + "commitizen": { | ||
| 51 | + "path": "node_modules/cz-conventional-changelog" | ||
| 52 | + } | ||
| 53 | + }, | ||
| 54 | + "husky": { | ||
| 55 | + "hooks": { | ||
| 56 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
| 57 | + } | ||
| 42 | } | 58 | } |
| 43 | } | 59 | } |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment