-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
useImportType
breaks class based dependency injection in Nest.JS
#2003
Comments
This could be the same issue as #2038. I am waiting more details to decide if they are instances of the sane issue. |
+1 on this. Was going mad trying to find out why my app suddenly broke. I LOVE this rule, it's something I've been wanting it for years but I was suddenly thrown into a NestJS project and it took me by surprise. Would it be possible to have an option to allow classes? As there is no option in Biome (that I can see) to disable autofix for a single rule it makes it rather difficult to work with. |
Just started giving a shot to Biome and immediately noticed this. This makes it a no-go for Biome as far as I'm standing here. |
The only exception they have introduced is to completely disable the rule in a file containing at least one decorator if the Based on this new knowledge, I think it would be a mistake to waste time on this. I recommend that users simply disable the rule in projects that use frameworks that rely on an outdated and never-standardised syntax. |
Environment information
Rule name
lint/style/useImportType
Playground link
https://codesandbox.io/p/devbox/peaceful-bird-glx5h2
Expected result
It should not apply
import type
to class types where they are used for dependency injection. The generated TS when using import type on the class import results inwhich is lacking the necessary metadata information, whereas without
import type
it generatesCode of Conduct
The text was updated successfully, but these errors were encountered: