Rule
0 installs · 0 said it worked
TypeScript and React coding rules for Cursor
A .cursorrules file that guides Cursor to write TypeScript React code with functional components, hooks, strict typing, lazy loading, error boundaries, and ESLint conventions.
People use this for
- cursor rules typescript react
- typescript react cursorrules file
- react functional components hooks prompt
- strict typescript react coding rules
- write typescript react code with lazy loading
- Name
typescript-and-react-coding-rules-for-cursor- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/typescript-and-react-coding-rules-for-cursor-rz34/export/mdc" -o .cursor/rules/typescript-and-react-coding-rules-for-cursor.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save typescript-and-react-coding-rules-for-cursor.mdc as .cursor/rules/typescript-and-react-coding-rules-for-cursor.mdc for this project or ~/.cursor/rules/typescript-and-react-coding-rules-for-cursor.mdc for every project, then start a new session.
Rule
description: "Cursor rules for TypeScript development with React integration." globs: */ alwaysApply: false
// TypeScript React .cursorrules
// Prefer functional components
const preferFunctionalComponents = true;
// TypeScript React best practices
const typescriptReactBestPractices = [ "Use React.FC for functional components with props", "Utilize useState and useEffect hooks for state and side effects", "Implement proper TypeScript interfaces for props and state", "Use React.memo for performance optimization when needed", "Implement custom hooks for reusable logic", "Utilize TypeScript's strict mode", ];
// Folder structure
const folderStructure = src/ components/ hooks/ pages/ types/ utils/ App.tsx index.tsx;
// Additional instructions
const additionalInstructions = `
- Use .tsx extension for files with JSX
- Implement strict TypeScript checks
- Utilize React.lazy and Suspense for code-splitting
- Use type inference where possible
- Implement error boundaries for robust error handling
- Follow React and TypeScript best practices and naming conventions
- Use ESLint with TypeScript and React plugins for code quality `;
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Agent role that turns TypeScript typing work into a tracked TODO plan
A senior TypeScript type-expert role prompt covering type design, generics, narrowing, and migration, with a required output of TODO_ts-type-expert.md containing checkable task items.
Coding · @wkaandemir
- Cursor rules enforcing clean, readable, maintainable code practices
A Cursor .mdc rule file that guides the assistant toward clean code: named constants, meaningful names, sparing comments, single-purpose functions, DRY, language style standards, extracted conditionals, continuous refactoring, and version control.
Coding · @patrickjs
- Find silent exception-handling smells in Python code
Scans Python files offline with ast to flag bare or swallowed excepts, silent fallbacks, lost causes, and other error-hiding patterns, returning file:line findings with severity and fix recipes.
Coding · @f
- Convex backend coding rules for Cursor AI assistant
A Cursor rules file (.mdc) that guides the AI to write Convex backend code with current best practices: new function syntax, validators, function registration, references, pagination, schema, and query and action rules.
Coding · @patrickjs
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.