5

Visual Code (tsserver) emits some suggestions like 'await' has no effect on the type of this expression ts(80007)

enter image description here

But I don't find a way to get this error with tsc nor eslint to use it on CI environment

TlmaK0
  • 3,578
  • 2
  • 31
  • 51

1 Answers1

3

Finally I have found a typescript-eslint rule https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/await-thenable.md

So adding this to the .eslintrc is enough:

"@typescript-eslint/await-thenable": "error"

TlmaK0
  • 3,578
  • 2
  • 31
  • 51