Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

.cursorrules

35 lines1.2 KB

1// Solid.js with Tailwind CSS .cursorrules
2​
3// Prefer functional components
4​
5const preferFunctionalComponents = true;
6​
7// Solid.js and Tailwind CSS best practices
8​
9const solidjsTailwindBestPractices = [
10"Use createSignal() for reactive state",
11"Implement Tailwind CSS classes for styling",
12"Utilize TypeScript's strict mode",
13"Utilize @apply directive in CSS files for reusable styles",
14"Implement responsive design using Tailwind's responsive classes",
15"Use Tailwind's CSS in /src/styles.css for global styles",
16"Implement dark mode using Tailwind's dark variant",
17];
18​
19// Additional instructions
20​
21const additionalInstructions = `
22​
231. Use .tsx extension for files with JSX
242. Implement strict TypeScript checks
253. Implement proper Tailwind CSS purging for production builds
264. Utilize TanStack Router for routing when applicable
275. Use type-safe context with createContext
286. Implement proper typing for event handlers
297. Follow TypeScript best practices and naming conventions
308. Use type assertions sparingly and only when necessary
319. Use Tailwind's @layer directive for custom styles
3210. Implement utility-first CSS approach
3311. Follow both Solid.js and Tailwind naming conventions
3412. Use JIT (Just-In-Time) mode for faster development
35 `;