forked from AnnabelJoe/solarproof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (30 loc) · 871 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
33 lines (30 loc) · 871 Bytes
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
repos:
- repo: local
hooks:
- id: eslint
name: ESLint
language: system
entry: bash -c 'cd apps/web && pnpm lint'
types: [file]
files: \.(ts|tsx|js|jsx)$
pass_filenames: false
- id: prettier
name: Prettier
language: system
entry: pnpm prettier --check
types: [file]
files: \.(ts|tsx|md|json)$
- id: cargo-clippy
name: Cargo Clippy
language: system
entry: bash -c 'cd apps/contracts && cargo clippy --all-targets --all-features -- -D warnings'
types: [file]
files: \.rs$
pass_filenames: false
- id: cargo-fmt
name: Cargo fmt
language: system
entry: bash -c 'cd apps/contracts && cargo fmt --all -- --check'
types: [file]
files: \.rs$
pass_filenames: false