Add TypeScript quality gates: ESLint, Prettier, pre-commit hook, Gitea CI #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The Python dashboard repo enforces
tox -e lintbefore every commit and runs the full suite on every PR via Gitea Actions. The TypeScript repo has no equivalent. There is no ESLint config, no Prettier config, no pre-commit hook, and no CI workflow. Code has been pushed directly tomainwith only "does it start" as the gate.Requirements
eslint+@typescript-eslint/*toartifacts/api-serverand root workspace devDepsprettierconfig (.prettierrc) at workspace rooteslint.config.tsat workspace root covering allartifacts/**TypeScript.githooks/pre-committhat runs:pnpm typecheck(already exists)pnpm lint(new).githooks/pre-pushthat runspnpm typecheck && pnpm lintMakefiletargetinstallthat runsgit config core.hooksPath .githooks.gitea/workflows/ci.ymlthat runspnpm typecheckandpnpm linton every PR tomainCLAUDE.mdandAGENTS.mdat workspace root (mirroring the Python repo pattern)Acceptance Criteria
pnpm lintpasses on current codebase with zero errorspnpm typecheckpasses on current codebase with zero errorsmake installactivates hooks (documented in AGENTS.md)mainsucceed (branch protection enabled on Gitea)Files
.githooks/pre-commit(new).githooks/pre-push(new)Makefile(new)eslint.config.ts(new).prettierrc(new).gitea/workflows/ci.yml(new)CLAUDE.md(new)AGENTS.md(new)package.json(add lint script)artifacts/api-server/package.json(add lint script)