forked from pydantic/ai-chat-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
27 lines (26 loc) · 675 Bytes
/
Copy pathlefthook.yml
File metadata and controls
27 lines (26 loc) · 675 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
commit-msg:
commands:
commitlint:
run: npx commitlint --edit
pre-commit:
parallel: true
commands:
lint:
glob: "*.{ts,tsx,js,jsx}"
run: pnpm run lint --no-warn-ignored {staged_files}
format:
glob: "*.{ts,tsx,js,jsx,json,md,css}"
run: pnpm run format {staged_files}
stage_fixed: true
typecheck:
glob: "*.{ts,tsx}"
run: pnpm run typecheck
check-yaml:
glob: "*.{yaml,yml}"
run: npx yaml-lint {staged_files}
check-toml:
glob: "*.toml"
run: npx @taplo/cli check {staged_files}
codespell:
glob: "*.{ts,tsx,js,jsx,md}"
run: npx cspell --no-progress {staged_files}