Is there a way to detect unused variables in Typescript (something like ESLint in Javascript)?
As of version 2.0, Typescript has built-in support for detecting unused local variables and parameters. The compiler flags are as follows:
--noUnusedLocals Report Errors on Unused Locals.
--noUnusedParameters Report Errors on Unused Parameters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With