-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yaml
More file actions
44 lines (36 loc) · 956 Bytes
/
lefthook.yaml
File metadata and controls
44 lines (36 loc) · 956 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
34
35
36
37
38
39
40
41
42
43
44
# Lefthook — Git hooks 관리
# 설치: mise install && lefthook install
pre-commit:
commands:
ktlint:
glob: "*.{kt,kts}"
root: backend/
run: ktlint {staged_files}
prettier:
glob: "*.{ts,js,css}"
root: frontend/app/
run: npx prettier --check {staged_files}
patterns:
glob: "*.{ts,tsx,js,jsx}"
root: frontend/app/
run: pnpm lint:patterns
fsd-imports:
glob: "*.{ts,tsx,js,jsx}"
root: frontend/app/
run: pnpm lint:fsd
tsc:
glob: "*.{ts,tsx}"
root: frontend/app/
run: npx tsc --noEmit
compile-kotlin:
glob: "*.{kt,kts}"
root: backend/
run: ./gradlew :app:compileKotlin -q
workspace-deps:
glob: "**/package.json"
root: frontend/app/
run: node scripts/lint/check-workspace-deps.mjs
vitest:
glob: "*.{ts,tsx}"
root: frontend/app/
run: npx vitest related --run {staged_files}