-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
48 lines (45 loc) · 1.24 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
---
default_install_hook_types:
- pre-commit
repos:
# - repo: local
# hooks:
# - id: pre-commit-autoupdate
# name: Run pre-commit autoupdate
# entry: pre-commit autoupdate
# language: system
# pass_filenames: false
# files: .pre-commit-config.yaml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-symlinks
- id: trailing-whitespace
- id: check-case-conflict
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
exclude: package-lock.json
- id: check-json
exclude: "package-lock.json|.vscode/.*"
- id: pretty-format-json
args:
- "--autofix"
- "--no-sort-keys"
exclude: "package-lock.json|.vscode/.*"
- id: end-of-file-fixer
- id: no-commit-to-branch
- id: check-executables-have-shebangs
- id: check-vcs-permalinks
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
exclude: package-lock.json
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.2
hooks:
- id: gitleaks
args:
- --config
- ".github/linters/.gitleak.toml"