mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 00:38:06 +00:00
add typescript check to pre-commit
This commit is contained in:
parent
49a1a3d849
commit
4680f30fca
2 changed files with 15 additions and 0 deletions
|
|
@ -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
7
.tests/pre-commit-frontend.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd ../hyperglass/ui
|
||||
|
||||
yarn typecheck
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Reference in a new issue