-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (43 loc) · 1.34 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (43 loc) · 1.34 KB
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
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
additional_dependencies:
- prettier@3.2.5
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
name: Git Lint
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: detect-private-key
- id: detect-aws-credentials
args: [--allow-missing-credentials]
exclude: "package.json|package-lock.json|.*test.*\\.ts$|\\.pre-commit-config\\.yaml$|\\.github/workflows/checkov\\.yml$"
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: no-commit-to-branch
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
exclude: "package.json|package-lock.json|src/.*/.*.test.ts|locales/.*.json"
- repo: local
hooks:
- id: npm-audit
name: NPM Audit
pass_filenames: false
entry: "npm run audit"
language: system
- id: integration-tests-check
name: Integration tests check
entry: npm --prefix integration-tests run validate
language: system
files: ^integration-tests/
pass_filenames: false