FE-ERP Cursor Rules — Free Cursor Rules Template
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorRulesFE-ERP Cursor Rules
    Back to Rules
    Frontend

    FE-ERP Cursor Rules

    jhoicas April 15, 2026
    0 copies 0 downloads
    • Stack: Next.js (App Router), TypeScript (Strict), Tailwind CSS, Radix UI/Shadcn UI.
    Rule Content
    # ERP Architecture & Development Rules
    
    ## 1. Stack & Core Principles
    - **Stack:** Next.js (App Router), TypeScript (Strict), Tailwind CSS, Radix UI/Shadcn UI.
    - **Architecture:** Atomic Design + Modular Features. Divide the app into `features/` (e.g., `features/inventory`, `features/billing`).
    - **Performance:** Mandatory use of React Server Components (RSC) by default. Client components only for leaf nodes requiring interactivity.
    - **Micro-frontends:** Treat internal modules as isolated packages. Use Shared Components for UI consistency.
    
    ## 2. Rendering & Performance (Anti-Bloat)
    - **Granular Rendering:** Every complex view must be broken into small, memoized components to ensure individual re-rendering.
    - **Optimized DOM:** Minimize div nesting. Use CSS Grid/Flexbox efficiently. Avoid "div-soup".
    - **Loading States:** Every module must implement `loading.tsx` and Skeleton patterns for perceived speed.
    - **Data Fetching:** Use TanStack Query (React Query) for client-side state and Server Actions for mutations.
    
    ## 3. Security & "Blindado" (Security First)
    - **Input Sanitization:** All text inputs must be validated with **Zod** schemas. Sanitize all HTML/String inputs to prevent XSS.
    - **URL Protection:** Use middleware-level RBAC (Role-Based Access Control). Never expose sensitive IDs in URLs; use UUIDs or encrypted slugs.
    - **Console/Network Defense:** Disable sensitive logging in production. Implement "Server-Only" patterns for API keys and logic.
    - **Injection Prevention:** Use parameterized queries (via Prisma/Drizzle) and never use `dangerouslySetInnerHTML`.
    - **Form Safety:** All forms must use `react-hook-form` + `zod`.
    
    ## 4. Coding Standards (Cursor Logic)
    - **TypeScript:** No `any`. Use discriminated unions for complex states.
    - **Error Handling:** Use Error Boundaries per module. No silent failures.
    - **Modular Exports:** Use index files (barrels) only at the feature level to prevent circular dependencies.
    - **Detail:** When generating UI, ensure accessibility (ARIA labels) and high contrast.
    
    ## 5. Prevention of Infinite Loops
    - Before suggesting a code change, verify that it doesn't trigger a recursive re-render in `useEffect` or circular imports between `features/`.

    Tags

    nextjsreacttypescripttailwindcssprisma

    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

    • "Multi-AI Agent Chatbot for PostgreSQL/Supabase DB and QuickCharts + Cool Router"n8n · $24.99 · Related topic
    • AI Privacy-Minded Router: PII Detection for Privacy, Security, & Compliancen8n · $14.99 · Related topic
    • ⚐ Private & Local Ollama Self-Hosted + Dynamic LLM Routern8n · $14.99 · Related topic
    • LinkedIn Auto Message Router and Responder with Request Detectionn8n · $24.99 · Related topic
    Browse all workflows