chore: add linting scripts for frontend, backend, and worker, and create a Gitea workflow for automated linting on push and pull request events

This commit is contained in:
keven1024
2025-12-14 20:10:52 +08:00
parent 552434e389
commit 04ebb22d35
2 changed files with 70 additions and 1 deletions

View File

@@ -8,7 +8,10 @@
"dev:front": "cd front && pnpm run dev",
"dev:backend": "cd backend && air",
"dev:worker": "cd worker && air",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "concurrently -n front,backend,worker -c blue,green,yellow 'pnpm:lint:front' 'pnpm:lint:backend' 'pnpm:lint:worker'",
"lint:front": "cd front && pnpm nuxt typecheck",
"lint:backend": "cd backend && golangci-lint run",
"lint:worker": "cd worker && golangci-lint run",
"prepare": "husky"
},
"workspaces": [