Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
build: introduce pretty-quick to stage formatted code before the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Mar 18, 2021
1 parent e983904 commit 746d522
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 1 deletion.
100 changes: 100 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"husky": "^4.3.8",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"pretty-quick": "^3.1.0",
"supertest": "^6.1.3",
"ts-jest": "^26.5.2",
"ts-loader": "^8.0.17",
Expand All @@ -69,7 +70,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run format"
"pre-commit": "pretty-quick --staged"
}
}
}

0 comments on commit 746d522

Please sign in to comment.