Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Solid.js and TypeScript coding rules for Cursor

Cursor rules file that steers the assistant toward functional Solid.js components, typed reactive state with createSignal, strict TypeScript, a standard folder layout, and typed context and event handlers.

People use this for

  • solidjs typescript cursor rules
  • solidjs component typing help
  • cursor rules for solid typed signals
  • write typed solidjs components with strict typescript
  • set up solidjs project folder structure
Name
solidjs-and-typescript-coding-rules-for-cursor
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

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/solidjs-and-typescript-coding-rules-for-cursor-ya7c/export/mdc" -o .cursor/rules/solidjs-and-typescript-coding-rules-for-cursor.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download solidjs-and-typescript-coding-rules-for-cursor.mdc
Manual install

Save solidjs-and-typescript-coding-rules-for-cursor.mdc as .cursor/rules/solidjs-and-typescript-coding-rules-for-cursor.mdc for this project or ~/.cursor/rules/solidjs-and-typescript-coding-rules-for-cursor.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Solid.js development with TypeScript integration." globs: */ alwaysApply: false

// Solid.js with TypeScript .cursorrules

// Prefer functional components

const preferFunctionalComponents = true;

// Solid.js and TypeScript best practices

const solidjsTypeScriptBestPractices = [ "Use createSignal() for typed reactive state", "Implement proper type definitions for components", "Utilize TypeScript's strict mode", "Use type inference where possible", "Implement interfaces for complex prop types", "Utilize utility types provided by Solid.js", ];

// Folder structure

const folderStructure = src/ components/ pages/ utils/ types/ App.tsx index.tsx public/ index.html tsconfig.json;

// Additional instructions

const additionalInstructions = `

  1. Use .tsx extension for files with JSX
  2. Implement strict TypeScript checks
  3. Utilize Solid Router with proper typing
  4. Use type-safe context with createContext
  5. Implement proper typing for event handlers
  6. Follow TypeScript best practices and naming conventions
  7. Use type assertions sparingly and only when necessary `;

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.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.