forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhk.pkl
More file actions
24 lines (22 loc) · 631 Bytes
/
Copy pathhk.pkl
File metadata and controls
24 lines (22 loc) · 631 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
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"
local formatters = new Mapping<String, Step> {
["biome-format"] = (Builtins.biome) {
check = "biome check --no-errors-on-unmatched {{ files }}"
fix = "biome check --write --no-errors-on-unmatched {{ files }}"
}
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = formatters
}
["fix"] {
fix = true
steps = formatters
}
["check"] {
steps = formatters
}
}