I now have a good understanding of both codebases. Here's what I found:
Current pdf-generator state:
- Pure JavaScript (no TypeScript)
- No tests (npm test is broken - just calls itself)
- No linting/prettier
- Basic CI/CD exists (Docker build + ECR push to multiple environments)
- Minimal README (just Docker commands)
- No AGENTS.md
web-applications patterns to adopt:
- Prettier with standardized config (.prettierrc.json)
- ESLint with TypeScript/React rules
- Vitest for testing with @testing-library
- TypeScript strict mode with pnpm run typecheck
- Comprehensive AGENTS.md with setup, commands, patterns, troubleshooting
- Structured README with prerequisites, setup, environment vars
- CI workflow: typecheck → lint → prettier → test → build
Before I finalize the plan, I have a few clarifying questions: