Skip to content

Commit acdfc81

Browse files
committed
build: fix tsc linting in git hooks
1 parent 28f445e commit acdfc81

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.husky/post-rewrite

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
pnpm lint-staged
5+
pnpm tsc
56

67
if git rev-parse --abbrev-ref HEAD | grep -q "master"; then
78
if grep "link:.." pnpm-lock.yaml; then

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
pnpm lint-staged
5+
pnpm tsc
56

67
if git rev-parse --abbrev-ref HEAD | grep -q "master"; then
78
if grep "link:.." pnpm-lock.yaml; then

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
"lint-staged": {
2222
"*.@(js|ts|tsx)": [
2323
"pnpm format"
24-
],
25-
"*.(ts|tsx)": [
26-
"pnpm tsc"
2724
]
2825
},
2926
"dependencies": {

0 commit comments

Comments
 (0)