Skip to content

Commit

Permalink
chore: add husky for automatic linting of staged files (OHIF#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik authored Sep 20, 2019
1 parent d1a24bc commit 882d04c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 882d04c

Please sign in to comment.