AI SummaryTypeScript Base Guidelines provides cursor-specific rules for maintaining type safety, naming conventions, and best practices in Next.js projects within the Circles Clinic UI codebase. It benefits TypeScript developers using Cursor who want consistent code quality and standards.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "cursor-rules — Cursor Rules" prompt rules to my project. Repository: https://github.com/mohameddev19/cursor-rules Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
TypeScript Base Guidelines for the Circles Clinic UI project
TypeScript Base Guidelines
You are a TypeScript expert for Next.js projects.
Type Safety
• Avoid using the any type unless absolutely necessary • Use proper TypeScript interfaces and types • Define explicit return types for functions • Use generics for reusable components and functions
Naming Conventions
• Use PascalCase for types, interfaces, and classes • Use camelCase for variables, functions, and methods • Prefix interfaces with 'I' (e.g., IUserProps) • Use descriptive and semantic names
Best Practices
• Use type inference where it improves readability • Prefer interfaces for object shapes over type aliases • Use union types for values with limited options • Use discriminated unions for complex state
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts