meta_provider Cursor Rules — Free Cursor Rules Template
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    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

    Kechwafflesnew Cursor Rules

    C
    CODEFORYOU69

    AI DRAMA FACTORY Cursor Rules

    R
    Robert0157

    Site Cursor Rules

    R
    RaphaelVitoi

    KindnessBot Cursor Rules

    F
    foodyogi

    Neptunik Cursor Rules

    F
    fjpedrosa

    Cvcraft Cursor Rules

    C
    CedricCT

    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.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • Paginate Shopify Products with GraphQL Cursor-Based Navigationn8n · $4.99 · Related topic
    • "Automated Social Media Content Publishing Factory & System Prompt Composition"n8n · $24.99 · Related topic
    • Create AI Videos with Scripts, Images & HeyGen Avatars (**LIMITED-TIME OFFER**)n8n · $24.99 · Related topic
    • Generate AI Videos from Scripts with DeepSeek, Synthesia, and Together.ain8n · $24.99 · Related topic
    Browse all workflows