Skip to content

Commit d56edda

Browse files
feat: add a fix-format moon target
1 parent 6a3c421 commit d56edda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.moon/tasks.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ tasks:
2525
- "@globs(sources)"
2626
- "@globs(tests)"
2727
- "@globs(configs)"
28+
fix-format:
29+
local: true
30+
command: "prettier --config @in(0) --ignore-path @in(1) --write ."
31+
inputs:
32+
- "/.prettierrc.json"
33+
- "/.prettierignore"
34+
- "@globs(sources)"
35+
- "@globs(tests)"
36+
- "@globs(configs)"
2837
lint:
2938
command: "eslint ."
3039
inputs:

0 commit comments

Comments
 (0)