File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed
Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "hooks": {
3- "pre-commit": "yarn format && yarn lint",
3+ "pre-commit": "pretty-quick --staged --pattern \"**/*.{js,ts}\" && yarn lint",
44 "pre-push": "yarn build"
55 }
66}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ const config = require ( '@boringcodes/prettier-config' ) ;
2+
3+ module . exports = config ;
Original file line number Diff line number Diff line change 1313 "purge" : " rm -rf node_modules" ,
1414 "clean" : " rm -rf dist" ,
1515 "dev" : " rollup -cw" ,
16- "format" : " prettier --write **/*.ts " ,
17- "format:check" : " prettier --check **/*.ts " ,
16+ "format" : " prettier --write **/*.{js,ts} " ,
17+ "format:check" : " prettier --check **/*.{js,ts} " ,
1818 "lint" : " tslint --project tsconfig.json --config tslint.json" ,
1919 "prebuild" : " yarn clean" ,
2020 "build" : " rollup -c" ,
2525 "release:patch" : " yarn release --release-as patch"
2626 },
2727 "devDependencies" : {
28+ "@boringcodes/prettier-config" : " ^1.0.0" ,
2829 "@types/express" : " ^4.16.1" ,
2930 "@types/http-status-codes" : " ^1.2.0" ,
3031 "copyfiles" : " ^2.2.0" ,
Original file line number Diff line number Diff line change 1616 esutils "^2.0.2"
1717 js-tokens "^4.0.0"
1818
19+ " @boringcodes/prettier-config@^1.0.0 " :
20+ version "1.0.0"
21+ resolved "https://registry.yarnpkg.com/@boringcodes/prettier-config/-/prettier-config-1.0.0.tgz#94ebeda4fec2d155ad957a0e47d3ed492400b91b"
22+ integrity sha512-P9Ymg/8x1PiIAIysHXZ5fOV0J+H5RxGhcAKNjrn8uyncPratIfzbJ0rKTYlgpjuMcGbFM7U+E4tdCVnOnYk/SA==
23+
1924" @fimbul/bifrost@^0.17.0 " :
2025 version "0.17.0"
2126 resolved "https://registry.yarnpkg.com/@fimbul/bifrost/-/bifrost-0.17.0.tgz#f0383ba7e40992e3193dc87e2ddfde2ad62a9cf4"
You can’t perform that action at this time.
0 commit comments