Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Description
Repro
{"rules": {"@typescript-eslint/await-thenable":"error" }}
constvalue='value';constcreateValue=()=>'value';awaitPromise.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
package | version |
---|---|
@typescript-eslint/eslint-plugin | 2.24.0 |
@typescript-eslint/parser | 2.24.0 |
TypeScript | 3.8.3 |
ESLint | 6.8.0 |
node | 12.10.0 |
npm | 6.10.3 |