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:
@@ -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
|
Reference in New Issue
Block a user