Official GitHub Copilot workspace instructions file (.github/copilot-instructions.md) guiding Copilot Chat and inline completions on repository standards.
GitHub Copilot Workspace Instructions (.github/copilot-instructions.md)
This file guides GitHub Copilot Chat and code completions for this repository.
Repository Tech Stack
- Language: TypeScript 5.x
- Testing: Vitest for unit tests, Playwright for E2E
- Linter/Formatter: Biome / ESLint + Prettier
Copilot Behavioral Directives
- Idiomatic TypeScript: Use interface for public API contracts and type for union/intersection primitives. Prefer
readonly arrays and immutable updates.
- React Standards: Prefer functional components with hooks. Avoid
React.FC wrapper types. Always specify exhaustive dependencies in useEffect and useCallback.
- Async/Await: Always use
async/await instead of chaining raw .then().catch() promises.
- Tailwind CSS: Follow mobile-first class ordering: layout (
flex, grid), spacing (p-*, m-*), sizing (w-*, h-*), typography (text-*), colors & visual states (bg-*, hover:*, dark:*).