-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
43 lines (38 loc) · 1.09 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
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.2.0
hooks:
- id: detect-secrets
name: detect secrets
args: [ '--baseline', '.secrets.baseline' ]
exclude: ^(yarn.lock|.yarn/|.yarnrc.yml|.gitguardian.yaml)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
# - id: check-added-large-files
# - id: check-json
# - id: check-yaml
# - id: detect-aws-credentials
- id: detect-private-key
- id: no-commit-to-branch
args: [ --branch, main, --branch, master, --pattern, release/.* ]
# TODO re-enable when v2 reach to lint-able state
# - repo: local
# hooks:
# - id: yarn-lint
# name: yarn lint
# entry: npx yarn lint
# language: system
# pass_filenames: false
- repo: local
hooks:
- id: yarn-audit
name: yarn audit
entry: npx yarn audit
language: system
pass_filenames: false
# Hitting a bit too wide
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v2.5.1
# hooks:
# - id: prettier