FE-ERP Cursor Rules — Cursor Rules | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    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
    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.