chanwoong528 cash-final .cursorrules file for TypeScript

// Next.js App Router .cursorrules

// Next.js App Router best practices
const nextjsAppRouterBestPractices = [
  "Use server components by default",
  "Implement client components only when necessary",
  "Utilize the new file-based routing system",
  "Use layout.js for shared layouts",
  "Implement loading.js for loading states",
  "Use error.js for error handling",
  "Utilize route handlers for API routes",
];

// Folder structure
const folderStructure = `
app/
  (components)/
    common/
    DataList/
  (page)/
    (main)/
      customer/
      hotdeal/
      points/
  styles/
    _common/
public/
`;

// Additional instructions
const additionalInstructions = `
1. Use TypeScript for type safety
2. Implement proper metadata for SEO
3. Utilize Next.js Image component for optimized images
4. Use CSS Modules or Tailwind CSS for styling
5. Implement proper error boundaries
6. Follow Next.js naming conventions for special files
7. Use environment variables for configuration
8. Ensure SCSS files are organized and imported correctly
9. Use mixins and variables for consistent styling
10. Optimize SCSS for performance and maintainability
`;
javascript
next.js
scss
tailwindcss
typescript

First Time Repository

TypeScript

Languages:

JavaScript: 0.3KB
SCSS: 78.7KB
TypeScript: 136.4KB
Created: 8/29/2024
Updated: 12/22/2024

All Repositories (1)