meta_provider Cursor Rules — Cursor Rules | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorRulesmeta_provider Cursor Rules
    Back to Rules
    Frontend

    meta_provider Cursor Rules

    sirtrist April 15, 2026
    0 copies 0 downloads

    - Use Composition API with `<script setup>` syntax

    Rule Content
    # Nuxt.js Frontend Rules
    # Specific rules for TypeScript/Vue/Nuxt.js development
    
    ## Code Generation
    
    - Use Composition API with `<script setup>` syntax
    - Enforce TypeScript strict mode
    - Leverage Nuxt auto-imports (don't manually import composables/utils)
    - Use `useFetch` or `$fetch` for API calls (prefer `useFetch` in components)
    - Create composables for reusable logic
    - Use layouts for page structure
    - Implement proper error handling with error.vue and NuxtErrorBoundary
    
    ## Validation
    
    - Check SSR compatibility for all components
    - Validate hydration (avoid client-only code in SSR context)
    - Check SEO tags on pages
    - Run type-check before committing
    - Run lint with auto-fix
    - Run unit tests with 70% coverage threshold
    - Run build validation before pushing
    - Run e2e smoke tests for critical paths
    
    ## Testing
    
    - Generate unit tests for composables and utils
    - Generate component tests for UI components
    - Create e2e tests for critical user flows
    - Use Vitest for unit tests
    - Use Playwright for e2e tests
    
    ## Patterns to Enforce
    
    - **API Calls**: Use `useFetch` in components, `$fetch` in server-side code
    - **Composables**: Extract reusable logic to composables
    - **Layouts**: Use layouts for consistent page structure
    - **Error Handling**: Use error.vue and NuxtErrorBoundary
    - **Type Safety**: Always type props, emits, and composable returns
    - **SSR Safety**: Check that code works in SSR context
    
    ## Component Structure
    
    ```vue
    <script setup lang="ts">
    // Props
    interface Props {
      // typed props
    }
    const props = defineProps<Props>()
    
    // Emits
    const emit = defineEmits<{
      // typed emits
    }>()
    
    // Composables
    const { data, error } = await useFetch('/api/endpoint')
    
    // Logic
    </script>
    
    <template>
      <!-- Template -->
    </template>
    ```
    
    ## Validation Protocol
    
    Follow `.cursor/validation-protocols/nuxt-validation.yaml` for:
    - Pre-commit checks (type-check, lint, unit tests)
    - Pre-push checks (build, e2e)
    - Post-generation component validation
    - Error recovery patterns
    
    

    Tags

    vuetypescript

    Comments

    More Rules

    View all
    Web Development

    Next.js 15 + TypeScript Cursor Rules

    Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.

    C
    Community
    Backend Development

    Python FastAPI Best Practices Rules

    Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.

    C
    Community
    Frontend Development

    React + TypeScript Component Rules

    Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.

    C
    Community
    AI/ML

    Cursor Agent Mode Configuration

    Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.

    C
    Cursor Team
    Frontend Development

    Tailwind CSS + shadcn/ui Rules

    Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.

    C
    Community
    Backend Development

    Go Backend Service Rules

    Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.

    C
    Community

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.