-
Notifications
You must be signed in to change notification settings - Fork 57
/
.pre-commit-config.yaml
88 lines (80 loc) · 2.5 KB
/
.pre-commit-config.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: local
hooks:
- id: yarn-install-client
name: yarn install client
entry: bash
language: system
files: "^client/.*"
args: ["-c", "cd client && yarn install"]
- id: yarn-install-runner
name: yarn install runner
entry: bash
language: system
files: "^servers/execution/runner/.*"
args: ["-c", "cd servers/execution/runner && yarn install"]
- id: yarn-install-lib
name: yarn install lib
entry: bash
language: system
files: "^servers/lib/.*"
args: ["-c", "cd servers/lib && yarn install"]
- id: yarn-jest-client
name: yarn jest client
entry: bash
language: system
files: "^client/.*"
args: ["-c", "cd client && yarn jest . --coverage=false"]
stages: [pre-push]
- id: yarn-test-runner
name: yarn test runner
entry: bash
language: system
files: "^servers/execution/runner/.*"
args: ["-c", "cd servers/execution/runner && yarn test:nocov"]
stages: [pre-push]
- id: yarn-test-lib
name: yarn test lib
entry: bash
language: system
files: "^servers/lib/.*"
args: ["-c", "cd servers/lib && yarn test:nocov"]
stages: [pre-push]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
args: ["--ignore-path", "../.gitignore", "--write"]
files: '^(client|servers/execution/runner|servers/lib)/.*\.(ts|tsx|css|scss)$'
stages: [pre-commit]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.54.0
hooks:
- id: eslint
args: ["--fix"]
files: "^(client|servers/execution/runner|servers/lib)/.*"
stages: [pre-commit]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint
files: '.*\.md$'
entry: ./script/markdownlint-hook.sh
verbose: true
stages: [pre-commit]
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
- id: shellcheck
files: '.*'
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
files: '^(docs|deploy|script|ssl)/.*'
stages: [pre-commit]
- id: check-yaml
files: '^(docs|deploy|script|ssl)/.*'
stages: [pre-commit]