add boilerplate (try 2)

This commit is contained in:
spreadnuts
2022-02-16 19:23:47 -08:00
parent 1d3c738633
commit 6f5b6b76a2
17 changed files with 16446 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM)
if [[ "$STAGED_FILES" = "" ]]; then
echo "No files staged for commit"
exit 1
fi
echo "Valiidating Typescript..."
npm run lint -- --max-warnings 0