-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (32 loc) · 967 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (32 loc) · 967 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
repos:
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.4.1
hooks:
- id: prettier
files: \.(cjs|cts|js|jsx|mjs|mts|ts|tsx|json|md|mdx|yaml|yml)$
- repo: local
hooks:
- id: tsc
name: tsc
entry: pnpm exec tsc -p tsconfig.json --noEmit
language: system
files: \.ts$
pass_filenames: false
- id: oxlint
name: oxlint
entry: pnpm dlx oxlint --max-warnings=0 --fix
language: system
files: \.(cjs|cts|js|jsx|mjs|mts|ts|tsx)$
pass_filenames: true
- id: cargo-fmt
name: cargo-fmt
entry: cargo fmt --all
language: system
files: \.rs$
pass_filenames: false
- id: cargo-clippy
name: cargo-clippy
entry: cargo clippy --locked --all-targets --all-features --fix --allow-dirty --allow-staged -- -D warnings
language: system
files: \.rs$
pass_filenames: false