-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
I don't know if this is an issue with the plugin itself or the language server 👀 Reoading the server didn't help, unfortunately |
This seems to be a bug in Inconsistencies are usually caused by ESLint using a TS program that is inconsistent with tsserver. |
Good to know! Thank you for looking into this ❤️ |
Nit: I don't know that we can conclude this is a bug in typescript-eslint 😅. We'd happily take an issue but: For |
Ah, you might be right! The default Procedure has the return type as any 🤔 |
@JoshuaKGoldberg Yes this is most likely my misunderstanding of the no-unsafe-return rule. |
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 🤔The text was updated successfully, but these errors were encountered: