Skip to content

Commit 329b855

Browse files
committed
added pre-commit hook.
1 parent ecd20bf commit 329b855

File tree

2 files changed

+724
-11
lines changed

2 files changed

+724
-11
lines changed

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@
3737
},
3838
"devDependencies": {
3939
"eslint": "^6.0.1",
40+
"husky": "^3.0.0",
41+
"lint-staged": "^9.2.0",
4042
"mocha": "^6.1.4"
43+
},
44+
"husky": {
45+
"hooks": {
46+
"pre-commit": "lint-staged"
47+
}
48+
},
49+
"lint-staged": {
50+
"*.js": [
51+
"yarn run lint",
52+
"git add"
53+
]
54+
4155
}
4256
}

0 commit comments

Comments
 (0)