mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Applies best practices for Qwik.js development with Tailwind CSS, including using specific suffixes, reactive state management, and styling approaches.
|
||||
globs: src/**/*.{ts,tsx,css}
|
||||
---
|
||||
- Use $ suffix for lazy-loaded functions
|
||||
- Utilize useSignal() for reactive state
|
||||
- Implement Tailwind CSS classes for styling
|
||||
- Use @apply directive in CSS files for reusable styles
|
||||
- Implement responsive design using Tailwind's responsive classes
|
||||
- Utilize Tailwind's configuration file for customization
|
||||
- Leverage TypeScript for type safety
|
||||
- Use Vite's fast HMR for development
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Encourages the use of Qwik City for routing within Qwik applications when applicable.
|
||||
globs: src/routes/**/*.{ts,tsx}
|
||||
---
|
||||
- Utilize Qwik City for routing when applicable
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
description: Recommends a specific folder structure for Qwik projects to maintain organization and separation of concerns. Applies to the project root.
|
||||
globs: qwik.config.js
|
||||
---
|
||||
- Recommended folder structure:
|
||||
|
||||
src/
|
||||
components/
|
||||
routes/
|
||||
global.css
|
||||
root.tsx
|
||||
entry.ssr.tsx
|
||||
public/
|
||||
tailwind.config.js
|
||||
postcss.config.js
|
||||
vite.config.ts
|
||||
tsconfig.json
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Enforces the use of functional components within Qwik projects, promoting a consistent and modern coding style.
|
||||
globs: **/*.{ts,tsx}
|
||||
---
|
||||
- Always prefer functional components in Qwik files.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Instructs using server$ for server-side code execution within Qwik components.
|
||||
globs: src/**/*.{ts,tsx}
|
||||
---
|
||||
- Use server$ for server-side code execution
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Stresses following both Qwik and Tailwind naming conventions for consistency and readability.
|
||||
globs: **/*.{ts,tsx,css}
|
||||
---
|
||||
- Follow both Qwik and Tailwind naming conventions
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Mandates the use of TypeScript for all .ts and .tsx files in Qwik projects to ensure type safety and improved code maintainability.
|
||||
globs: **/*.{ts,tsx}
|
||||
---
|
||||
- Use TypeScript for all .ts and .tsx files
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Instructs the implementation of proper Tailwind CSS purging for production builds to reduce the final CSS bundle size.
|
||||
globs: tailwind.config.js
|
||||
---
|
||||
- Implement proper Tailwind CSS purging for production builds
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Suggests using Tailwind's @layer directive for custom styles to maintain organization and prevent conflicts.
|
||||
globs: src/**/*.css
|
||||
---
|
||||
- Use Tailwind's @layer directive for custom styles
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Recommends implementing dark mode using Tailwind's dark variant to provide a user-friendly experience.
|
||||
globs: tailwind.config.js
|
||||
---
|
||||
- Implement dark mode using Tailwind's dark variant
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Encourages leveraging Vite plugins for optimized Qwik builds to improve performance and efficiency.
|
||||
globs: vite.config.ts
|
||||
---
|
||||
- Leverage Vite plugins for optimized builds
|
||||
Reference in New Issue
Block a user