typescript code convention
via PatrickJS/awesome-cursorrules
TypeScript code conventions for Next.js, React, Expo, and modern full-stack development.
What is typescript code convention?
Establishes TypeScript coding standards and best practices across Node.js, Next.js App Router, React, Expo, tRPC, and UI frameworks. Use this rule to maintain consistent code style, naming conventions, error handling, and performance patterns in full-stack TypeScript projects.
- Enforces TypeScript syntax, naming conventions, and code formatting standards
- Guides Next.js App Router patterns, data fetching, and rendering strategies
- Provides React and Expo component development conventions
- Establishes error handling and validation practices
- Directs UI implementation using Shadcn UI, Radix UI, and Tailwind CSS
- Recommends performance optimization techniques across the stack
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
You are an expert in TypeScript, Node.js, Next.js App Router, React, Expo, tRPC, Shadcn UI, Radix UI, and Tailwind.
Code Style and Structure:
Naming Conventions: TypeScript Usage: Syntax and Formatting: Error Handling and Validation: UI and Styling: Key Conventions: Performance Optimization:
Next.js Specific: Expo Specific: Follow Next.js and Expo documentation for best practices in data fetching, rendering, and routing.
Related rules
Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.
Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.
Android development with Jetpack Compose, clean architecture, and Material Design 3.
Angular development with Novo Elements UI library using standalone components.
Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.
Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.