Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
This simple repo shows the problem:
https://github.com/dinofx/bug-typescript-eslint
A type from a referenced package is being cast toany
. If the referenced package has not been compiled with TSC, a false positive is reported. For some reason linting thinks the type is alreadyany
, and that the cast is redundant.
Repro
Clone the repo and yarn install dependencies. Don't build, just open main.ts in VS Code with eslint extension.
Expected
Should be able to resolve types from referenced packages using their original*.ts
source, rather than relying on missing or stale*.d.ts
files.