mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename to deprecated
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: This rule provides additional instructions for Next.js development, covering various aspects such as TypeScript, SEO, image optimization, styling, and error handling.
|
||||
globs: **/*.{js,jsx,ts,tsx}
|
||||
---
|
||||
- Use TypeScript for type safety
|
||||
- Implement proper metadata for SEO
|
||||
- Utilize Next.js Image component for optimized images
|
||||
- Use CSS Modules or Tailwind CSS for styling
|
||||
- Implement proper error boundaries
|
||||
- Follow Next.js naming conventions for special files
|
||||
- Use environment variables for configuration
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: This rule enforces Next.js App Router best practices in the 'app' directory.
|
||||
globs: app/**/*.*
|
||||
---
|
||||
- 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
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: This rule advises using environment variables for configuration in a Next.js project.
|
||||
globs: **/*.{js,jsx,ts,tsx}
|
||||
---
|
||||
- Use environment variables for configuration
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: This rule mandates proper error boundaries for effective error handling in Next.js applications.
|
||||
globs: **/*.{js,jsx,ts,tsx}
|
||||
---
|
||||
- Implement proper error boundaries
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
---
|
||||
description: This rule defines the recommended folder structure for Next.js projects.
|
||||
globs: app/**/*.*
|
||||
---
|
||||
- Adhere to the following folder structure:
|
||||
|
||||
app/
|
||||
layout.js
|
||||
page.js
|
||||
components/
|
||||
lib/
|
||||
styles/
|
||||
public/
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: This rule promotes the optimization of images using the Next.js Image component for better performance.
|
||||
globs: **/*.{js,jsx,ts,tsx}
|
||||
---
|
||||
- Utilize Next.js Image component for optimized images
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: This rule helps in following Next.js file naming conventions for special files within the 'app' directory.
|
||||
globs: app/**/*.*
|
||||
---
|
||||
- Follow Next.js naming conventions for special files
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: This rule ensures that SEO best practices are followed through proper metadata implementation in Next.js.
|
||||
globs: **/*.{js,jsx,ts,tsx}
|
||||
---
|
||||
- Implement proper metadata for SEO
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: This rule recommends using CSS Modules or Tailwind CSS for styling components in a Next.js project.
|
||||
globs: **/*.{js,jsx,ts,tsx,css,scss}
|
||||
---
|
||||
- Use CSS Modules or Tailwind CSS for styling
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: This rule encourages the usage of Typescript for type safety across a Next.js project.
|
||||
globs: **/*.{ts,tsx}
|
||||
---
|
||||
- Use TypeScript for type safety
|
||||
Reference in New Issue
Block a user