1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

add typescript check to pre-commit

This commit is contained in:
checktheroads 2021-01-03 10:59:19 -07:00
parent 49a1a3d849
commit 4680f30fca
2 changed files with 15 additions and 0 deletions

View file

@ -5,3 +5,11 @@ repos:
- id: flake8
stages:
- commit
- repo: local
hooks:
- id: frontend_checks
name: Frontend Checks
stages:
- commit
entry: ./.tests/pre-commit-frontend.sh
language: script

7
.tests/pre-commit-frontend.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
cd ../hyperglass/ui
yarn typecheck
exit 0