tools icon indicating copy to clipboard operation
tools copied to clipboard

📎 Decide on `noUnusedVariables` stability

Open MichaReiser opened this issue 3 years ago • 4 comments
trafficstars

Description

Decide whether noUnusedVariables should be shipped as stable or nursery rule.

MichaReiser avatar Oct 31 '22 09:10 MichaReiser

I vote for yes. Don't know any major issue with it.

xunilrj avatar Nov 02 '22 13:11 xunilrj

At the moment the rule is inside a stable group, not recommended. I am OK to keep it the in stable group and recommended it.

ematipico avatar Nov 02 '22 14:11 ematipico

I would not recommend it for the moment, and for one simple reason: on the eslint repo, for example, it flags dozens of unused variables. A lot of the cases are silly things like copy and paste, function contracts etc... They are really not bugs.

We would be forcing a lot of code changes with no obvious gains for the users.
As time passes, we will give time for people to fix this issues and this rule will generate less churn for nothing.

xunilrj avatar Nov 02 '22 14:11 xunilrj

I would not recommend it for the moment, and for one simple reason: on the eslint repo, for example, it flags dozens of unused variables. A lot of the cases are silly things like copy and paste, function contracts etc... They are really not bugs.

We would be forcing a lot of code changes with no obvious gains for the users. As time passes, we will give time for people to fix this issues and this rule will generate less churn for nothing.

Good point!

ematipico avatar Nov 02 '22 14:11 ematipico

👋 @rome/staff please triage this issue by adding one of the following labels: S-Bug: confirmed, S-Planned , S-Wishlist or umbrella

github-actions[bot] avatar Nov 17 '22 12:11 github-actions[bot]