React TypeScript Cursor rules for Node.js clean code
This rule file makes Cursor act as a senior full-stack developer in TypeScript, React and Node.js, and every rule carries a WHY explaining its reasoning. It is for teams who want clean architecture, strict typing, tested code and secure APIs as the default in generated code.
What it does
TypeScript is strict with no any, functions stay under 20 lines, and interfaces are preferred. It uses clean architecture with a framework-free domain layer, repositories for data access, React Query and Zustand, and no Redux. Errors use an AppError hierarchy and Winston logging. It targets 80% unit coverage, validates input with Zod and rate limits public endpoints with helmet.
How to use it
The globs are **/*.
Requirements and limits
Its stack choices, such as no Redux, are fixed preferences you may need to edit.
More in Rules and the Cursor library.
What it covers
- Coding Standards
- Architecture
- Error Handling
- Testing
- Security
- Git
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/ai-agent-specialist.mdc
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.