y4lpua
Last Updated: February 25, 2016
·
2.457K
· jfromaniello
D1a7e0fbfb2c1d9a8b10fd03648da78f

Detect unused variables with JsHint

JsHint (and so does JSLint) has an option called unused to detect unused variables and parameters.

For instance if you have the SublimeLInter package installed, you will see a message like this:

Picture

It also helps me a lot to detected unused parameters, an example of this is when I write asynchronous unit tests:

Picture

sometimes I just forget calling the done() but the linter gives me this quick feedback.

Say Thanks
Respond

1 Response
Add your response

4697
D42a7264714dee5006b9c99d2567a320

One of the most useful flags I enabled.

over 1 year ago ·