forked from mirrors/thatmattlove-hyperglass
update pre-commit with frontend hooks
This commit is contained in:
parent
9b83febe92
commit
46f929c983
1 changed files with 24 additions and 4 deletions
|
|
@ -7,11 +7,31 @@ repos:
|
|||
- commit
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: frontend_checks
|
||||
name: Frontend Checks
|
||||
- id: typescript
|
||||
name: Frontend TypeScript Check
|
||||
files: 'hyperglass/ui/*'
|
||||
exclude: 'hyperglass/ui/node_modules'
|
||||
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
|
||||
stages:
|
||||
- commit
|
||||
entry: ./.tests/pre-commit-frontend.sh
|
||||
entry: ./hyperglass/ui/node_modules/.bin/tsc
|
||||
language: script
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: eslint
|
||||
name: Frontend ESLint Check
|
||||
files: 'hyperglass/ui/*'
|
||||
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
|
||||
stages:
|
||||
- commit
|
||||
entry: ./hyperglass/ui/node_modules/.bin/eslint .
|
||||
language: script
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: prettier
|
||||
name: Frontend Prettier Check
|
||||
files: 'hyperglass/ui/*'
|
||||
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
|
||||
stages:
|
||||
- commit
|
||||
entry: ./hyperglass/ui/node_modules/.bin/prettier -c -w .
|
||||
language: script
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue