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

This commit is contained in:
Erik Ziegler 2019-09-20 13:44:52 +02:00 committed by GitHub
parent d1a24bc9d9
commit 882d04c9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"
}