Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different type information when using @typescript-eslint with a compat layer #26

Open
sheremet-va opened this issue Nov 12, 2024 · 1 comment

Comments

@sheremet-va
Copy link

I wanted to introduce this library to the Vitest monorepo: vitest-dev/vitest#6884

But I cannot figure out the inconsistencies that I encountered and would appreciate some help:

Whatever I do in https://github.com/sheremet-va/vitest/blob/4b068e337c4782167c7aa4be59ad73ee2b96be9f/packages/spy/src/index.ts causes tsslint to think that I always return any even if I cast it or when the type is already known 🤔

Screenshot 2024-11-12 at 14 48 30
@sheremet-va
Copy link
Author

I don't know if this is an issue with the plugin itself or the language server 👀 Reoading the server didn't help, unfortunately

@johnsoncodehk johnsoncodehk moved this to In Progress in Backlogs Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant