A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/typescript-eslint/typescript-eslint/issues/1973 below:

[no-unnecessary-type-assertion] false positive if referenced package has not been built · Issue #1973 · typescript-eslint/typescript-eslint · GitHub

This simple repo shows the problem:
https://github.com/dinofx/bug-typescript-eslint

A type from a referenced package is being cast to any. If the referenced package has not been compiled with TSC, a false positive is reported. For some reason linting thinks the type is already any, 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4