[React/Redux template] Turn on noUnusedLocals & noUnusedParameters rules in tsconfig.json #330

Closed
opened 2025-08-09 17:15:52 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @thangchung on 11/4/2017

Hi all,
Because I want to turn on the noUnusedLocals & noUnusedParameters rules in tsconfig.json to make my code neat and succinct. But if I turn it on, then the line at https://github.com/aspnet/templating/blob/dev/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/store/Counter.ts#L42 violated the rules. I have searched around on Google, but could not end up with the solution. I notice that maybe Typescript doesn't support it, the issue at https://github.com/Microsoft/TypeScript/issues/12913. Do we have any solution there?

*Originally created by @thangchung on 11/4/2017* Hi all, Because I want to turn on the noUnusedLocals & noUnusedParameters rules in tsconfig.json to make my code neat and succinct. But if I turn it on, then the line at https://github.com/aspnet/templating/blob/dev/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/store/Counter.ts#L42 violated the rules. I have searched around on Google, but could not end up with the solution. I notice that maybe Typescript doesn't support it, the issue at https://github.com/Microsoft/TypeScript/issues/12913. Do we have any solution there?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#330
No description provided.