This repository has been archived on 2022-05-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Alley-HSBC-Frontend/.husky/pre-commit
T
2022-02-16 19:23:47 -08:00

10 lines
225 B
Bash

#!/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