-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhk.pkl
More file actions
32 lines (31 loc) · 789 Bytes
/
hk.pkl
File metadata and controls
32 lines (31 loc) · 789 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
amends "package://github.com/jdx/hk/releases/download/v1.36.0/hk@1.36.0#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.36.0/hk@1.36.0#/Builtins.pkl"
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps {
["biome"] {
glob = List("*.ts", "*.tsx", "*.json", "*.css")
check = "pnpm exec biome check {{files}}"
fix = "pnpm exec biome check --fix {{files}}"
}
["oxlint"] {
glob = List("*.ts", "*.tsx")
check = "pnpm exec oxlint --import-plugin --promise-plugin {{files}}"
}
["typos"] = (Builtins.typos)
["tsc"] {
check = "pnpm exec tsc --noEmit"
}
["knip"] {
check = "pnpm run lint:knip"
}
}
}
["commit-msg"] {
steps {
["check-conventional-commit"] = (Builtins.check_conventional_commit)
}
}
}