Skip to content

Commit

Permalink
chore(linting): configure husky to run lint-staged on ever commit
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #308
  • Loading branch information
tomwayson committed Aug 12, 2020
1 parent fbfcf0d commit f4e6cf2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 2,
"useTabs": false
}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
"node-fetch": "^2.0.1",
"tslib": "^1.11.1"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit",
"pre-push": "npm test"
}
},
"lint-staged": {
"*.ts": [
"prettier --write --parser typescript --tab-width 2 --use-tabs false",
Expand Down

0 comments on commit f4e6cf2

Please sign in to comment.