Skip to content

Commit a5ebd24

Browse files
committed
feat: add lib husky & commit lint
1 parent b1a7827 commit a5ebd24

File tree

2 files changed

+254
-17
lines changed

2 files changed

+254
-17
lines changed

package.json

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
"release:minor": "npm run release -- --release-as minor",
3434
"release:major": "npm run release -- --release-as major"
3535
},
36+
"husky": {
37+
"hooks": {
38+
"pre-commit": "echo 'Pre-commit checks...'",
39+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
40+
"pre-push": "npm run lint"
41+
}
42+
},
3643
"author": "masb0ymas",
3744
"license": "MIT",
3845
"dependencies": {
@@ -88,6 +95,8 @@
8895
"@babel/preset-typescript": "^7.12.7",
8996
"@babel/register": "^7.12.1",
9097
"@babel/runtime": "^7.12.13",
98+
"@commitlint/cli": "^11.0.0",
99+
"@commitlint/config-conventional": "^11.0.0",
91100
"@types/bcrypt": "^3.0.0",
92101
"@types/body-parser": "^1.19.0",
93102
"@types/convert-excel-to-json": "^1.7.0",
@@ -125,6 +134,7 @@
125134
"eslint-import-resolver-babel-module": "^5.2.0",
126135
"eslint-plugin-import": "^2.22.1",
127136
"eslint-plugin-prettier": "^3.3.1",
137+
"husky": "^5.0.9",
128138
"jest": "^26.6.3",
129139
"nodemon": "^2.0.7",
130140
"prettier": "^2.2.0",

0 commit comments

Comments
 (0)