Add ESLint for TypeScript/React linting

- Install eslint, typescript-eslint, eslint-plugin-react-hooks
- Configure eslint.config.js with flat config format
- Add type: module to package.json
- Fix unused variable issues (prefix with underscore)
- Add Makefile targets: lint-frontend, fix-frontend
This commit is contained in:
counterweight 2025-12-21 21:58:41 +01:00
parent 30583805cd
commit 4b394b0698
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
12 changed files with 1467 additions and 16 deletions

View file

@ -1,4 +1,4 @@
.PHONY: install-backend install-frontend install setup-hooks backend frontend db db-stop db-ready db-seed dev test test-backend test-frontend test-e2e typecheck generate-types generate-types-standalone check-types-fresh check-constants lint-backend format-backend fix-backend security-backend
.PHONY: install-backend install-frontend install setup-hooks backend frontend db db-stop db-ready db-seed dev test test-backend test-frontend test-e2e typecheck generate-types generate-types-standalone check-types-fresh check-constants lint-backend format-backend fix-backend security-backend lint-frontend fix-frontend
-include .env
export
@ -105,3 +105,9 @@ fix-backend:
security-backend:
cd backend && uv run bandit -r . -c pyproject.toml
lint-frontend:
cd frontend && npm run lint
fix-frontend:
cd frontend && npm run lint:fix