This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
💭 [lint] require await
inside async
functions
#1118
Labels
A-Linter
Area: linter
enhancement
New feature request or improvement to existing functionality
L-JavaScript
Langauge: JavaScript
Upstream rule: https://eslint.org/docs/rules/require-await
Basically I would like to propose a rule where we enforce the use of
await
if a function is marked withasync
.Unfortunately with TypeScript we can bypass this check, so I think having a lint rule might be beneficial for us. I noticed this in one of the tests where the callback was marked as
async (t) =>
but there was noawait
inside its implementation.The text was updated successfully, but these errors were encountered: