Run tsc over staged files before Git commit

This commit is contained in:
Austin Chen 2021-12-18 12:59:40 -08:00
parent f93d10f850
commit 2ecc4730d7
3 changed files with 918 additions and 7 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx pretty-quick --staged
cd web
npx lint-staged

917
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,10 +32,15 @@
"eslint": "7.32.0",
"eslint-config-next": "12.0.4",
"husky": "^7.0.4",
"lint-staged": "^12.1.3",
"postcss": "8.3.5",
"prettier": "2.5.0",
"pretty-quick": "^3.1.2",
"tailwindcss": "3.0.1",
"tsc-files": "^1.1.3",
"typescript": "4.5.2"
},
"lint-staged": {
"*.{ts,tsx}": "tsc-files --noEmit --incremental false"
}
}