chore: add husky for automatic linting of staged files (#938)

This commit is contained in:
Erik Ziegler authored and GitHub committed 2019-09-20 13:44:52 +02:00
1 parent d1a24bc9d9
commit 882d04c9bf
1 file changed
+11
+11
View File
@@ -99,6 +99,17 @@
"workbox-webpack-plugin": "^4.3.1",
"worker-loader": "^2.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,json,css}": [
"prettier --write",
"git add"
]
},
"resolutions": {
"**/@babel/runtime": "7.5.5"
}