22 lines
618 B
Plaintext
22 lines
618 B
Plaintext
---
|
|
description: Algemene project-conventies
|
|
alwaysApply: true
|
|
---
|
|
|
|
# Code Style
|
|
- Gebruik TypeScript strict mode
|
|
- Geen any-types; geef expliciete return types op functies
|
|
- Tailwind voor styling — geen CSS modules
|
|
- Server components by default; "use client" alleen waar nodig
|
|
- Imports: gebruik @/ alias voor src/
|
|
|
|
# Bestandsstructuur
|
|
- Componenten in src/components/<naam>/index.tsx
|
|
- Page-specifieke componenten in app/<route>/_components/
|
|
- Hooks in src/hooks/<naam>.ts
|
|
|
|
# Algemeen
|
|
- Geen console.log in committed code
|
|
- Errors: gebruik next/error of toast (geen alert)
|
|
- Async: prefer await over .then chains
|