TypeScript Project GEMINI.md
RulesContext file for Gemini CLI on TypeScript projects with ESM and Vitest.
2003/26/2026
Version 1
PublishedInitial version
Created 3/26/2026
Initial version — no previous version to compare
GEMINI.md
# GEMINI.md
## Project
TypeScript project using ESM modules, Vitest for testing.
## Conventions
- Strict TypeScript (noUncheckedIndexedAccess, exactOptionalPropertyTypes)
- ESM only — no CommonJS, no require()
- Prefer const assertions and satisfies operator
- Use branded types for IDs
## File Structure
- src/ for source code
- tests/ for test files
- Barrel exports from index.ts per module
## Commands
- pnpm test — run vitest
- pnpm build — tsc build
- pnpm lint — eslint + prettier check
## Testing
- Vitest with happy-dom for DOM tests
- Mock external services with msw
- Aim for >80% coverage on business logic