Clear async functions · Rules for Cursor | Prompt Studio
    1. Cursor
    2. Rules
    3. Clear async functions
    Cursor · RulesEstilo

    Clear async functions

    Consistent patterns for async code.

    by Prompt Studio

    styleasync

    License: MITView original

    Contents

    Where it goes: .cursor/rules/style-async-naming.mdc

    ---
    description: Patrones consistentes para código asíncrono
    globs: **/*.ts,**/*.js
    alwaysApply: false
    ---
    
    # Funciones asíncronas claras
    
    - Siempre `await` o devuelve la promesa
    - No mezcles callbacks y promesas
    - Usa `Promise.all` para tareas independientes
    - Maneja rechazos en cada frontera
    

    More in Rules

    • Project AGENTS.md

      Plain Markdown instructions at the repo root: stack, commands and conventions.

    • Concise answers

      Always-on rule: less prose, more code, no restating context.

    • Conventional commits

      feat/fix/chore format with scope and imperative messages.

    • Testing with Vitest

      When to write tests, how to name them and what to avoid.

    • Security basics

      Secrets, input validation and safe queries.

    • API endpoints

      Consistent responses, correct HTTP codes and validation.

    See all in Rules (506) →

    Your ultimate collection of AI prompts. Gather inspiration, explore examples, and create with AI.

    Main hubs

    • Prompts
    • Images
    • Videos
    • Generate Videos
    • Templates
    • Animations
    • Prices
    • About
    • Affiliate

    Browse by type

    • Component kits
    • Image Tags
    • Video Tags
    • Webs

    Popular topics

    • Music
    • Portfolio
    • Gaming
    • Travel
    • Nano Banana Pro

    Legal

    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Licenses Policy
    • Refund Policy
    • Affiliate Program Terms
    • Crowdfunding Terms

    Magzin LLC, 800 Third Avenue Associates, New York, NY, 10022, United States

    © 2026 Prompt Studio by Magzin. All rights reserved.