Buradasın
Cursor rules örnekleri nelerdir?
Yazeka
Arama sonuçlarına göre oluşturuldu
Cursor kuralları örnekleri şunlardır:
- Fonksiyonel Programlama: TypeScript/Node/Next.js için "Use functional and declarative programming patterns; avoid classes" 1.
- Tutarlı İsimlendirme ve Formatlama: "Use lowercase with dashes for directories (e.g., components/auth-wizard)" 1.
- Tip Güvenliği: "Use TypeScript for all code; prefer interfaces over types" 12.
- Hata Yönetimi: "Handle errors and edge cases at the beginning of functions; use early returns for error conditions" 1.
- Test ve Otomasyon: "Ensure all tests pass before merging; implement comprehensive automated testing (unit, integration, e2e)" 1.
- Performans Optimizasyonu: "Use code-splitting and lazy loading for non-critical resources; optimize images using modern formats like WebP" 1.
- Güvenlik: "Validate all inputs; implement robust authentication and authorization (OAuth 2.0, JWT)" 1.
5 kaynaktan alınan bilgiyle göre: