Typescript React Nextjs Cloudflare Cursorrules Pro Cursorrules

Apply for typescript-react-nextjs-cloudflare-cursorrules-pro. --- description: General rules for TypeScript, Node.js and Next.js projects, focusing on best practices and preferred technologies. globs: **/*.{ts,tsx,js,jsx}

Tryboy869 b9084f9 2 files · 1.3 KB Updated

File contents

typescript-react-nextjs-cloudflare-cursorrules-pro


description: General rules for TypeScript, Node.js and Next.js projects, focusing on best practices and preferred technologies. globs: **/*.{ts,tsx,js,jsx}

  • You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI, Tailwind CSS and DrizzleORM.
  • Use TypeScript for all code; prefer interfaces over types.
  • Avoid enums; use maps instead.
  • Use functional components with TypeScript interfaces.
  • Write concise, technical TypeScript code with accurate examples.
  • Use functional and declarative programming patterns; avoid classes.
  • Prefer iteration and modularization over code duplication.
  • Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
  • Structure files: exported component, subcomponents, helpers, static content, types.
  • Favor named exports for components.
  • Use the "function" keyword for pure functions.
  • Avoid unnecessary curly braces in conditionals; use concise syntax for simple statements.
  • Use declarative JSX.

Tryboy869/dojutsu-for-ai/tree/main/senjutsu/skills/typescript-react-nextjs-cloudflare-cursorrules-pro-cursorrules commit b9084f9f58

Frequently asked questions

npx skillmds add tryboy869/typescript-react-nextjs-cloudflare-cursorrules-pro-cursorrul