Is there a way to show Visual Code (tsserver) suggestions like TS80007 with tsc command (or other)?

443 Views Asked by At

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

1

There are 1 best solutions below

1
On BEST ANSWER

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"