Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

🐛 Export a module marks it as unused variable #4179

Closed
1 task done
luc-mo opened this issue Jan 29, 2023 · 0 comments · Fixed by #4205
Closed
1 task done

🐛 Export a module marks it as unused variable #4179

luc-mo opened this issue Jan 29, 2023 · 0 comments · Fixed by #4205
Assignees
Labels
A-Linter Area: linter S-Bug: confirmed Status: report has been confirmed as a valid bug

Comments

@luc-mo
Copy link

luc-mo commented Jan 29, 2023

Environment information

Rome 11.0.0
Typescript 4.9.3

What happened?

Unused variable error when a module is exported by name (does not occur using export default).

export module MyModule { // This variable is unused. rome(lint/correctness/noUnusedVariables)
   // code
}

Expected result

It should not throw an error.

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@luc-mo luc-mo added the S-To triage Status: user report of a possible bug that needs to be triaged label Jan 29, 2023
@Conaclos Conaclos added S-Bug: confirmed Status: report has been confirmed as a valid bug A-Linter Area: linter good first issue Good for newcomers and removed S-To triage Status: user report of a possible bug that needs to be triaged good first issue Good for newcomers labels Feb 13, 2023
@Conaclos Conaclos self-assigned this Feb 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter S-Bug: confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants