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.