-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
63 lines (56 loc) · 1.61 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
---
repos:
- repo: git://github.com/igorshubovych/markdownlint-cli
rev: v0.22.0
hooks:
- id: markdownlint
entry: markdownlint --ignore docs/adr/index.md
- repo: git://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: detect-private-key
exclude: >
(?x)^(
config/tls/devlocal-.+\.key$
)$
- repo: git://github.com/trussworks/pre-commit-hooks
rev: v0.0.3
hooks:
- id: gen-docs
args: ['docs/adr']
- id: mdspell
exclude: >
(?x)^(
.github/PULL_REQUEST_TEMPLATE.md|
node_modules/|
vendor/|
docs/adr/index.md
)$
- id: circleci-validate
- repo: git://github.com/golangci/golangci-lint
rev: v1.24.0
hooks:
- id: golangci-lint
entry: bash -c 'exec golangci-lint run -j=${GOLANGCI_LINT_CONCURRENCY:-1}' # custom bash so we can override concurrency for faster dev runs
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
- repo: local
hooks:
- id: eslint
name: eslint
entry: scripts/pre-commit-eslint
language: script
files: \.(js|jsx|ts|tsx)$
- repo: local
hooks:
- id: check-code-generation
name: check-code-generation
entry: scripts/pre-commit-check-code-generation
language: script
files: (pkg/graph/schema.graphql|pkg/graph/schema.resolvers.go|src/queries/*.ts)