Coordinating noUnusedLocals
, noUnusedParameters
, no-unused-vars
, and prefer-const
#1859
Labels
awaiting response
Issues waiting for a reply from the OP or another party
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
question
Questions! (i.e. not a bug / enhancment / documentation)
So in TypeScript we have
--noUnusedLocals
and--noUnusedParameters
, and in ESlint we haveno-unused-vars
andprefer-const
. So many options! But it's actually a bit overwhelming in practice.https://twitter.com/drosenwasser/status/1247322887540760577
I know i can turn these off, but this is what you get as part of
and it's not a great out-of-the-box experience. Is there a possibility to make some of this work a little bit more gracefully? Some ideas:
no-unused-vars
- preferringconst
instead oflet
is a noisy suggestion until we actually see some use-site.noUnusedLocals
enabled, then maybe there's potential forno-unused-vars
to bow out and yield to TypeScript - at that point,prefer-const
might be reasonable to re-enable.At the very least, the first point seems doable to me.
The text was updated successfully, but these errors were encountered: