1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads-hyperglass/.pre-commit-config.yaml

38 lines
1009 B
YAML
Raw Normal View History

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: flake8
stages:
2020-01-02 09:53:40 -07:00
- commit
2021-01-03 10:59:19 -07:00
- repo: local
hooks:
2021-01-03 23:04:08 -07:00
- id: typescript
2021-01-03 23:21:40 -07:00
name: TypeScript
2021-01-03 11:16:03 -07:00
files: 'hyperglass/ui/*'
2021-01-03 23:04:08 -07:00
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
2021-01-03 10:59:19 -07:00
stages:
- commit
2021-01-03 23:21:40 -07:00
entry: ./.tests/pre-commit-frontend.sh --typescript
2021-01-03 23:04:08 -07:00
language: script
- repo: local
hooks:
- id: eslint
2021-01-03 23:21:40 -07:00
name: ESLint
2021-01-03 23:04:08 -07:00
files: 'hyperglass/ui/*'
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
stages:
- commit
2021-01-03 23:21:40 -07:00
entry: ./.tests/pre-commit-frontend.sh --eslint
2021-01-03 23:04:08 -07:00
language: script
- repo: local
hooks:
- id: prettier
2021-01-03 23:21:40 -07:00
name: Prettier
2021-01-03 23:04:08 -07:00
files: 'hyperglass/ui/*'
exclude: 'hyperglass/ui/node_modules|hyperglass/ui/.next'
stages:
- commit
2021-01-03 23:21:40 -07:00
entry: ./.tests/pre-commit-frontend.sh --prettier
2021-01-03 10:59:19 -07:00
language: script