-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (33 loc) · 1.07 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
exclude: ^(yarn.lock|.yarn/)
# - id: check-json
# - id: check-yaml
# - id: detect-aws-credentials
- id: detect-private-key
# - id: end-of-file-fixer
# - id: trailing-whitespace
- id: no-commit-to-branch
args: [ --branch, main, --branch, master, --pattern, release/.* ]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
name: detect secrets
args: [ '--baseline', '.secrets.baseline' ]
exclude: ^(yarn.lock|.yarn/|.yarnrc.yml)
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.5.0
hooks:
- id: eslint
exclude: ^(skel/|yarn.lock|.yarn/|.local/|docs/|openapi/)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
entry: prettier --ignore-unknown
args: [ '--check' ]
exclude: ^(skel/|yarn.lock|.yarn/|.local/|docs/|openapi/)