Run tsc over staged files before Git commit
This commit is contained in:
parent
f93d10f850
commit
2ecc4730d7
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx pretty-quick --staged
|
cd web
|
||||||
|
npx lint-staged
|
||||||
|
|
917
web/package-lock.json
generated
917
web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -32,10 +32,15 @@
|
||||||
"eslint": "7.32.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-config-next": "12.0.4",
|
"eslint-config-next": "12.0.4",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
|
"lint-staged": "^12.1.3",
|
||||||
"postcss": "8.3.5",
|
"postcss": "8.3.5",
|
||||||
"prettier": "2.5.0",
|
"prettier": "2.5.0",
|
||||||
"pretty-quick": "^3.1.2",
|
"pretty-quick": "^3.1.2",
|
||||||
"tailwindcss": "3.0.1",
|
"tailwindcss": "3.0.1",
|
||||||
|
"tsc-files": "^1.1.3",
|
||||||
"typescript": "4.5.2"
|
"typescript": "4.5.2"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{ts,tsx}": "tsc-files --noEmit --incremental false"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user