The use of the await keyword is not allowed on non-Thenable values. (A Thenable value is an object that has a then method, such as a promise.)
// code-linter.json5
{
"rules": {
"@typescript-eslint/await-thenable": "error"
}
} plugin:@typescript-eslint/recommended plugin:@typescript-eslint/all
For details about how to configure Code Linter check rules, see Code Linter.