-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
38 lines (37 loc) · 1.03 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
exclude: >
(?x)^(
test\.js\.snap$|
stories\.storyshot$
)$
repos:
- repo: local
hooks:
- id: yarn-format
name: Fix formatting and lint with prettier and eslint
language: script
files: \.(j|t)sx?$
entry: ./.bin/format.sh
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.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: ^helm/.*/templates/
- id: end-of-file-fixer
exclude: current_version\.txt
- id: trailing-whitespace
exclude: .*/tests/.*
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: (.*/tests/.*|openshift/deploy/secret|Makefile|keycloak-.*-realm-export.json|schema.*)
- repo: https://github.com/jorisroovers/gitlint
rev: v0.12.0
hooks:
- id: gitlint