-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
60 lines (59 loc) · 1.49 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
54
55
56
57
58
59
60
ci:
skip:
- eslint
- fmt
- clippy
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-xml
- id: check-symlinks
- id: end-of-file-fixer
exclude: \.(svg|png)$
- id: trailing-whitespace
exclude: \.(svg|png)$
- id: check-added-large-files
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: forbid-new-submodules
- id: mixed-line-ending
- id: no-commit-to-branch
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
args: ["--manifest-path", "api/Cargo.toml", "--all", "--"]
- id: clippy
args:
[
"--manifest-path",
"api/Cargo.toml",
"--fix",
"--allow-staged",
"--all-features",
"--",
"-D",
"warnings",
"-D",
"clippy::pedantic",
"-D",
"clippy::nursery",
"-D",
"clippy::unwrap_used",
"-A",
"clippy::use_self",
]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.14.0
hooks:
- id: eslint
entry: /usr/bin/env sh -c 'cd frontend && eslint'