1
0
Fork 0
forked from Mirrors/gomuks

pre-commit: use full relative path to eslint and tsc (#542)

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans 2024-12-08 08:11:26 -07:00 committed by GitHub
parent 1b0a8d6192
commit 0133e7c037
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -2,5 +2,5 @@
cd web > /dev/null
if [[ -f "./node_modules/.bin/eslint" ]]; then
ARGS=("$@")
eslint --fix ${ARGS[@]/#web\// }
./node_modules/.bin/eslint --fix ${ARGS[@]/#web\// }
fi

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
cd web > /dev/null
if [[ -f "./node_modules/.bin/tsc" ]]; then
tsc --build --noEmit
./node_modules/.bin/tsc --build --noEmit
fi