Issue
Is there a way to detect unused variables in Typescript (something like ESLint in Javascript)?
Solution
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.
Answered By - Taytay
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.