-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
42 lines (40 loc) · 1.07 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# General
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args:
- --fix=lf
exclude: /package-lock\.json$
- id: check-case-conflict
- id: check-merge-conflict
- id: check-added-large-files
exclude: ^dist/
args: ["--maxkb=1024"]
- id: check-json
- id: check-yaml
- id: detect-private-key
- id: pretty-format-json
args:
- --autofix
- --indent=2
- --no-sort-keys
exclude: /package-lock\.json$
# Secrets
- repo: https://github.com/awslabs/git-secrets
rev: b9e96b3212fa06aea65964ff0d5cda84ce935f38
hooks:
- id: git-secrets
entry: "git-secrets --scan"
files: "."
# JS
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.47.0
hooks:
- id: eslint
exclude: ^dist/