Add UI checks to pre-commit and CI

This commit is contained in:
Matt
2021-08-24 00:41:10 -07:00
parent c221b9b4d4
commit 1d0c72f5fa
2 changed files with 16 additions and 0 deletions

View File

@@ -34,6 +34,12 @@ if [ $? != 0 ]; then
EXIT=1
fi
echo "Checking UI ESLint, TypeScript, and Prettier compliance..."
yarn --cwd "$PWD/netbox/project-static" validate
if [ $? != 0 ]; then
EXIT=1
fi
if [ $EXIT != 0 ]; then
printf "${RED}COMMIT FAILED${NOCOLOR}\n"
fi