-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
67 lines (64 loc) · 1.74 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
---
minimum_pre_commit_version: 1.15.0
default_stages:
- commit
- push
ci:
autofix_commit_msg: 'chore(pre-commit): autofix run'
autoupdate_commit_msg: 'chore(pre-commit): autoupdate hooks'
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: local
hooks:
- id: pre-commit
name: Update pre-commit
entry: pre-commit install --install-hooks -t pre-commit -t pre-push
pass_filenames: false
language: system
files: ^\.pre-commit-config.yaml$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-merge-conflict
- id: forbid-new-submodules
- id: detect-aws-credentials
- id: detect-private-key
- id: double-quote-string-fixer
files: \.yaml$
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: fixtures/.*
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--strict, build, chore, ci, docs, feat, fix, perf, refactor,
revert, style, test, custom]
- repo: local
hooks:
- id: sort networks
name: Sort networks
entry: pnpm sort:networks
language: system
- repo: local
hooks:
- id: style-fixes
name: Run lint & format with fixes
exclude: (\.md|\.sh)$
entry: pnpm lint:fix
language: system
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.38.0
hooks:
- id: eslint