-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhk.pkl
More file actions
33 lines (31 loc) · 770 Bytes
/
hk.pkl
File metadata and controls
33 lines (31 loc) · 770 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
amends "package://github.com/jdx/hk/releases/download/v1.18.1/hk@1.18.1#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v1.18.1/hk@1.18.1#/Builtins.pkl"
local linters = new Mapping<String, Step> {
["lua-check"] {
glob = "**/*.lua"
check = "lua-language-server --check ."
}
["stylua"] {
glob = "**/*.lua"
check = "stylua --check {{files}}"
fix = "stylua {{files}}"
}
["actionlint"] {
glob = ".github/workflows/*.{yml,yaml}"
check = "actionlint {{files}}"
}
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps = linters
}
["fix"] {
fix = true
steps = linters
}
["check"] {
steps = linters
}
}