| # format.sh - Format both backend and frontend code | |
| set -e | |
| echo "π§ Formatting backend with ruff..." | |
| ruff format . | |
| echo "β¨ Formatting frontend with prettier..." | |
| cd frontend | |
| npx prettier --write "src/**/*.{js,ts,svelte,html,css,json}" --config .prettierrc | |
| cd .. | |
| echo "β All formatting complete!" |