This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 noUnusedVariables
incorrectly flags types, possible improvements
#3669
Labels
A-Linter
Area: linter
L-TypeScript
Area: TypeScript support in Rome
S-Bug: confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
Expected result
In the interface,
a
andb
are flagged as unused, the rule is suggesting to prefix them with_
which would give invalid types.In
catch (error)
, instead of prefixingerror
with an underscore, we can just omit it.So Rome could give better suggestions so the code can end up like this:
Code of Conduct
The text was updated successfully, but these errors were encountered: