// TypeScript React .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-typescript-reactProvides basic TypeScript React conventions but lacks actionable agent instructions and triggers
1// TypeScript React .cursorrules23// Prefer functional components45const preferFunctionalComponents = true;67// TypeScript React best practices89const typescriptReactBestPractices = [10 "Use React.FC for functional components with props",11 "Utilize useState and useEffect hooks for state and side effects",12 "Implement proper TypeScript interfaces for props and state",13 "Use React.memo for performance optimization when needed",14 "Implement custom hooks for reusable logic",15 "Utilize TypeScript's strict mode",16];1718// Folder structure1920const folderStructure = `21src/22 components/23 hooks/24 pages/25 types/26 utils/27 App.tsx28 index.tsx29`;3031// Additional instructions3233const additionalInstructions = `341. Use .tsx extension for files with JSX352. Implement strict TypeScript checks363. Utilize React.lazy and Suspense for code-splitting374. Use type inference where possible385. Implement error boundaries for robust error handling396. Follow React and TypeScript best practices and naming conventions407. Use ESLint with TypeScript and React plugins for code quality41`;4243
Full transparency — inspect the skill content before installing.