import type { Rule } from 'eslint'; /** * Flags `async () => { await expr }` (an async arrow whose block body is a single `await` * expression statement) and auto-fixes it to the concise form `async () => await expr`. * * Prettier leaves the concise form alone but always expands block bodies to multiline, so the * two forms are not style-equivalent when `prettier/prettier` is active. This rule resolves * the conflict in the right direction: it picks the form prettier accepts without rewriting. * * Only fires when the block body holds exactly one statement, that statement is an expression * statement, and that expression is an `AwaitExpression`. Multi-statement bodies, `return` * statements, and non-`await` single expressions are left untouched. */ declare const preferConciseAsyncArrow: Rule.RuleModule; export default preferConciseAsyncArrow;