arthurakay/LintRoller

Not all JSLint options are supported

Closed this issue · 4 comments

Does LintRoller only support very specific JSLint options? If so, I couldn't find any documentation regarding that, nor was it clear in the "src/linters/jslint.js" file if the options listed there are the only ones allowed.

I've tried to use "unparam" JSLint option with LintRoller to no avail. I've tried adding them with true and false values but the error report still says everything was successful. When I run JSLint with those options on, it spits out much more information than LintRoller.

Hm, it should support all JSLint (and JSHint) options.

Let me investigate...

I eventually got into the LintRoller code trying to figure out what was going on, and it looked like all of the options were indeed getting sent to JSLint, but I didn't have time to investigate further.

I have confirmed that there are functions in my codebase that have unused parameters, but I can't get the "unparam" option to work from LintRoller or by calling JSLint directly. I must have been doing something wrong before, and I sincerely apologize for wasting your time. The deeper I dig, the more it appears to be a problem with JSLint. Thank you.

No problem! It might also be an issue of an outdated JSLint dependency... you might manually update the node_package if an update is available.

Always feel free to reach out if you need help!