// Qwik.js Basic Setup (with TypeScript and Vite) .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-qwik-basicProvides Qwik.js best practices and project structure but lacks actionable instructions
1// Qwik.js Basic Setup (with TypeScript and Vite) .cursorrules23// Prefer functional components45const preferFunctionalComponents = true;67// Qwik.js best practices89const qwikBestPractices = [10 "Use $ suffix for lazy-loaded functions",11 "Utilize useSignal() for reactive state",12 "Implement useStore() for complex state objects",13 "Use useResource$() for data fetching",14 "Implement useTask$() for side effects",15 "Utilize useVisibleTask$() for browser-only code",16 "Leverage TypeScript for type safety",17 "Use Vite's fast HMR for development",18];1920// Folder structure2122const folderStructure = `23src/24 components/25 routes/26 global.css27 root.tsx28 entry.ssr.tsx29public/30vite.config.ts31tsconfig.json32`;3334// Additional instructions3536const additionalInstructions = `371. Use TypeScript for all .ts and .tsx files382. Implement proper error boundaries393. Utilize Qwik City for routing when applicable404. Use Qwik's built-in optimization features415. Implement lazy-loading for improved performance426. Follow Qwik's naming conventions and best practices437. Use server$ for server-side code execution448. Leverage Vite plugins for optimized builds45`;4647
Full transparency — inspect the skill content before installing.