-
Notifications
You must be signed in to change notification settings - Fork 889
Remove no-unused-variable rule in v5.0 #1617
Comments
@adidahiya we're using Removing this would be quite annoying for our workflow - we'd probably actually backport the rule into our own code base. Given that, maybe it'd make sense to document on |
+1, because TypeScript doesn't have warnings, we have to use tslint for the checks that don't block the developer. IMO only issues that guarantee the program executes incorrectly should block developers (because you always benefit from catching these before you debug your tests or manually test) I propose that we keep these rules in tslint (and we need to suppress the warning they print, since we will still use them), at least until TypeScript has a mechanism for warnings (which I also have a lot of ideas about :) |
I agree with that! In react I sometimes want to comment a part of the JXS to isolate a problem and a lot of vars become unused. I just need a warning in that case. |
As discussed in feedback on palantir#1481 and palantir#1617, for many users `--noUnusedParameters` and `--noUnusedLocals` do not work as a replacement for `noUnusedVariable`. This change de-deprecates the rule and documents the alternative compiler flags (and why they might not work for users) in the description. Fixes palantir#1617.
Cool, looks like there's a lot of interest in keeping the rule around in the thread in #1481. Going to mark this as "won't fix" to signal that we're not deprecating the rule. It's still going to be opt-in though, and not enabled in the default configs. |
Follow-up from #1481.
The text was updated successfully, but these errors were encountered: