{"filename":"solidjs-typescript-cursorrules-prompt-file.mdc","content":"---\ndescription: \"Cursor rules for Solid.js development with TypeScript integration.\"\nglobs: **/*\nalwaysApply: false\n---\n// Solid.js with TypeScript .cursorrules\n\n// Prefer functional components\n\nconst preferFunctionalComponents = true;\n\n// Solid.js and TypeScript best practices\n\nconst solidjsTypeScriptBestPractices = [\n  \"Use createSignal<T>() for typed reactive state\",\n  \"Implement proper type definitions for components\",\n  \"Utilize TypeScript's strict mode\",\n  \"Use type inference where possible\",\n  \"Implement interfaces for complex prop types\",\n  \"Utilize utility types provided by Solid.js\",\n];\n\n// Folder structure\n\nconst folderStructure = `\nsrc/\n  components/\n  pages/\n  utils/\n  types/\n  App.tsx\n  index.tsx\npublic/\n  index.html\ntsconfig.json\n`;\n\n// Additional instructions\n\nconst additionalInstructions = `\n1. Use .tsx extension for files with JSX\n2. Implement strict TypeScript checks\n3. Utilize Solid Router with proper typing\n4. Use type-safe context with createContext\n5. Implement proper typing for event handlers\n6. Follow TypeScript best practices and naming conventions\n7. Use type assertions sparingly and only when necessary\n`;\n"}