-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.26 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
exclude: >
(?x)^(
test\.tsx\.snap$
)$
repos:
- repo: local
hooks:
- id: prettier
name: Prettier
language: script
entry: ./.bin/pre-commit-format.sh
stages: [commit]
- repo: local
hooks:
- id: eslint
name: ESLint
language: system
files: \.(j|t)sx?$
entry: ./.bin/pre-commit-lint.sh
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-vcs-permalinks
- id: check-yaml
exclude: (^chart/.*/templates/|^database_backup_test/.*/templates/)
- id: end-of-file-fixer
exclude: current_version\.txt
- id: trailing-whitespace
exclude: .*/__snapshots__/.*|app/schema/.*
- repo: https://github.com/zricethezav/gitleaks
rev: v8.2.5
hooks:
- id: gitleaks
- repo: https://github.com/jorisroovers/gitlint
rev: v0.17.0
hooks:
- id: gitlint
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v8.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]