-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yml
39 lines (36 loc) · 896 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
post-checkout:
commands:
yarn:
run: yarn install --frozen-lockfile
commit-msg:
commands:
commitlint:
run: commitlint --edit ./.git/COMMIT_EDITMSG
pre-push:
parallel:
commands:
ts-check:
run: yarn run ts-check
pre-commit:
parallel: true
commands:
eslint:
run: yarn run lint:eslint
prettier:
run: yarn run lint:prettier
hadolint:
files: git diff --name-only --staged
glob: '*Dockerfile*'
run: yarn run lint:hadolint {staged_files}
validate-codecov:
files: git diff --name-only --staged
glob: 'codecov.yml'
run: yarn run lint:codecov
validate-renovate:
files: git diff --name-only --staged
glob: '.renovaterc'
run: yarn run lint:renovate
validate-circleci:
files: git diff --name-only --staged
glob: '.circleci/*.yml'
run: yarn run lint:circleci