-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 1.16 KB
/
Makefile
File metadata and controls
38 lines (32 loc) · 1.16 KB
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
.PHONY: lint format fix check knip
# ── Full check (CI-friendly, no modifications) ──
check: lint-backend lint-frontend format-check-backend format-check-frontend knip
@echo "All checks passed."
# ── Linting ──
lint: lint-backend lint-frontend
lint-backend:
cd backend && uv run ruff check .
lint-frontend:
cd frontend && npx eslint src/ --max-warnings=0
# ── Formatting ──
format: format-backend format-frontend
format-backend:
cd backend && uv run ruff format .
format-frontend:
cd frontend && npx prettier --write "src/**/*.{ts,tsx,css,json}"
# ── Format check (no modifications) ──
format-check-backend:
cd backend && uv run ruff format . --check
format-check-frontend:
cd frontend && npx prettier --check "src/**/*.{ts,tsx,css,json}"
# ── Auto-fix (applies safe fixes) ──
fix: fix-backend fix-frontend
fix-backend:
cd backend && uv run ruff check . --fix && uv run ruff format .
fix-frontend:
cd frontend && npx eslint src/ --fix --max-warnings=0 && npx prettier --write "src/**/*.{ts,tsx,css,json}"
# ── Knip (unused files, deps, exports) ──
knip:
cd frontend && npx knip
knip-fix:
cd frontend && npx knip --fix