forked from stolostron/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lefthook.yml
44 lines (36 loc) · 910 Bytes
/
lefthook.yml
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
39
40
41
42
43
44
skip_output:
- meta
- execution_out
- skips
min_version: 1.4.3
rc: ./lefthook.rc
pre-commit:
parallel: true
commands:
frontend-betterer:
glob: '*.{ts,tsx}'
run: |
yarn betterer precommit {staged_files}
stage_fixed: true
frontend-lint:
glob: '*.{js,ts,tsx}'
run: |
yarn eslint --ext .js,.tsx,.ts --cache --fix {staged_files}
yarn prettier --write {staged_files}
stage_fixed: true
other-format:
glob: '*.{json,scss,md,mdx}'
run: yarn prettier --write {staged_files}
stage_fixed: true
backend-format:
glob: '*pkg/**/*.go'
run: gofmt -w -s {staged_files}
stage_fixed: true
cue-fix-kinds:
glob: '*kinds/**/*.cue'
run: make fix-cue
stage_fixed: true
cue-fix-public:
glob: '*public/app/plugins/**/**/*.cue'
run: make fix-cue
stage_fixed: true