This question already has answers here:开发者_如何转开发 JSLint (CLI): options? (5 answers) Closed 9 years ago.
I recently received a comment on one of my blog posts about JSLint asking why JSLint threw an error with the following:
Is there any way to tweak some of the spacing settings for JScript that aren\'t explicitly spelled out in Options:Text Editor:JScript:Formatting?
I\'m trying to understand why I\'m getting the following error, not how to work around it. Passing the following code to JSLint or JSHint yields the error \'err\' is already defined.
I have: while (i < l) { if (one === two) { continue; } i++; } But JSLint says: Problem at line 1 char开发者_如何学Pythonacter 20: Unexpected \'continue\'.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
Industry standard for most locally scoped variables is an \'_\' but JS Lint complains mightily about these _\'s.
I\'ve written some code to display my bookmarks in IE8. To check it I\'ve used JSHint and I get the following errors :
I have just started putting JSLint into my build pipeline and it has been great. Although it has pointed out something in most of my files that is not an error as such, although it will see it as one.
I have the jslint installed with npm on my system. It produces error messages in the following format: