-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
53 lines (49 loc) · 1.43 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
49
50
51
52
53
#### THIS FILE IS MANAGED BY AN AUTOMATED WORKFLOW ####
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: '(^themes.*|^static/files/.*)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-yaml
files: \.yaml$, \.yml$
types: [file]
- id: check-case-conflict
- id: check-json
files: \.json$
types: [file]
- id: check-symlinks
- id: check-toml
files: \.toml$
types: [file]
- id: check-xml
files: \.xml$
types: [file]
- id: check-merge-conflict
- id: mixed-line-ending
args: [ --fix=no ]
- id: pretty-format-json
files: '!htmltest_output/refcache.json$'
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.29.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
additional_dependencies:
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.17
hooks:
- id: shellcheck
files: \.sh$
types: [file]
- id: shfmt
files: \.sh$
types: [file]
args: ["-i", "2", "-d", "-l"]