-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (33 loc) · 1007 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
38 lines (33 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
repos:
- repo: local
hooks:
- id: goimports-fix
name: goimports fix
entry: make fmt
language: system
pass_filenames: false
- id: goimports-check
name: goimports check
entry: ./scripts/check-go-format.sh
language: system
pass_filenames: false
- id: proto-format-fix
name: proto format fix
entry: bash -c 'PATH="$(go env GOPATH)/bin:$PATH" buf format -w'
language: system
pass_filenames: false
- id: proto-lint
name: proto lint
entry: bash -c 'PATH="$(go env GOPATH)/bin:$PATH" buf lint'
language: system
pass_filenames: false
- id: ui-eslint-fix
name: ui eslint fix
entry: npm --prefix ui run lint:fix
language: system
pass_filenames: false
- id: ui-prettier-fix
name: ui prettier fix
entry: npm --prefix ui run format:write -- .
language: system
pass_filenames: false