Nuxt Cursor Rules
April 15, 2026
Nuxt Cursor Rules
Project Structure
- /pages - file-based routing
- /components - auto-imported components
- /composables - auto-imported composables
- /server - API routes
- /assets - uncompiled assets
Best Practices
- Use
{"<script setup>"}syntax - Auto-imports enabled by default
- Use useFetch for data fetching
- Enable SSR by default
- Prefix composables with "use"
AI Instructions
- Generate TypeScript by default
- Use Composition API
- Include proper types for props
- Add error boundaries for async data
Related Articles
AI Rules in Modern IDEs: Global and Project-Specific Configurations
AI rules customize AI assistants in modern IDEs like Cursor, Windsurf, and VSCode Copilot. Learn to configure global and project-specific rules for consistent, high-quality code.
Bash/Shell Cursor Rules
Programming Languages Supported by Cursor Rules
Explore programming languages supported by Cursor Rules with language-specific guidelines, best practices, and examples for effective AI-assisted coding.