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

noUnusedVariables #2979

Closed
xunilrj opened this issue Aug 1, 2022 · 4 comments · Fixed by #2987
Closed

noUnusedVariables #2979

xunilrj opened this issue Aug 1, 2022 · 4 comments · Fixed by #2987
Assignees
Labels
A-Linter Area: linter
Milestone

Comments

@xunilrj
Copy link
Contributor

xunilrj commented Aug 1, 2022

https://github.com/rome/tools/blob/archived-js/website/src/docs/lint/rules/js/noUnusedVariables.md

@xunilrj xunilrj changed the title noUnusedVariables: https://github.com/rome/tools/blob/archived-js/website/src/docs/lint/rules/js/noUnusedVariables.md noUnusedVariables Aug 2, 2022
@ematipico ematipico added this to the 0.9.0 milestone Aug 3, 2022
@ematipico ematipico added the A-Linter Area: linter label Aug 3, 2022
@xunilrj xunilrj moved this to Done in Rome 2022 Aug 3, 2022
@xunilrj xunilrj reopened this Aug 10, 2022
@xunilrj
Copy link
Contributor Author

xunilrj commented Aug 10, 2022

This rule is incorrectly flagging:

  • Parameters in Typescript abstract classes and other signature methods;
  • Exported functions;
  • Functions only used inside jsx;
  • Bindings inside typescript function type;

@xunilrj
Copy link
Contributor Author

xunilrj commented Aug 19, 2022

Given some comments on #3071. We may break noUnusedVariables into two rules: one checking names/bindings, another one checking values.

@github-actions
Copy link

This issue is stale because it has been open 14 days with no activity.

@ematipico ematipico removed the S-Stale label Sep 23, 2022
@ematipico ematipico moved this from Done to In Progress in Rome 2022 Sep 23, 2022
@ematipico
Copy link
Contributor

I am going to close this rule as implemented, and take note that in the next iteration we should split the rule in two.

Repository owner moved this from In Progress to Done in Rome 2022 Sep 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants