add .mdc file

This commit is contained in:
sanjeed5
2025-02-17 17:50:15 +05:30
parent 2087f9d628
commit 71ac7fc7cc
879 changed files with 7725 additions and 0 deletions
@@ -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
@@ -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