8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Promise.all
Promise.allSettled
Promise.race
Repro
{ "rules": { "@typescript-eslint/await-thenable": "error" } }
const value = 'value'; const createValue = () => 'value'; await Promise.all([value, createValue]);
Expected Result The rule should show a linting error:
Unexpected `await` of a non-Promise (non-"Thenable") value @typescript-eslint/await-thenable
Actual Result No liniting error.
Additional Info
Versions
@typescript-eslint/eslint-plugin
2.24.0
@typescript-eslint/parser
TypeScript
3.8.3
ESLint
6.8.0
node
12.10.0
npm
6.10.3