This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
🐛 Imports in *.module.ts are always unused (noUnusedVariables) #4313
Labels
S-To triage
Status: user report of a possible bug that needs to be triaged
Comments
DevMark97
added
the
S-To triage
Status: user report of a possible bug that needs to be triaged
label
Mar 21, 2023
Thank you for your issue. |
So imports in lines 22-33 rome recognises as decorators? |
Yes, Rome can't parse expressions inside the decorator. See the syntax tab in playground |
Yes, everything inside the decorator is ignored by the parser, that's why the rule can't find the usage of your imports. |
I'm using angular, I have this rule disabled for the time being. Although this should be something detected by typescript itself (warning not an error), but should cause your attempt to build angular to error anyway. |
I've taken decorators in progress, it should be fixed soon:) |
looks like this can be closed |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment information
What happened?
Open any *.module.ts file in angular project. You can see that every import has error "This variable is unused." but is located in imports below.
Expected result
Rome should not mark these imports as error
Code of Conduct
The text was updated successfully, but these errors were encountered: