1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +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