There is a common pattern in Ajax libraries now to keep a single object that contains the library's stuff. Since the library may be distributed over several...
I have created a small launcher script for JavaScript Core (Safari's Nitro JavaScript Engine) It gives Mac users the ability to run JSLint from the command...
I always use the plusplus option, so I never noticed that when it is off there is no checking of the operand of ++. JSLint now complains if the operand is not...
This may be slightly offtopic, but since the question relates to proper style and there are many JS experts in this group, I'm posing the question here. Can...
I think JSLint should complain about "continue", but have an option to turn it off, if you want. I don't see that listed as an option in the poll, however....
That would kind of defeat the whole purpose of JSLint I think. When JSLint complains about something in your code it’s because there’s a good chance it...
test = function () {}; self.test = function () {}; window.test = function () {}; test(); JSLint sees the first three lines as different, even though they are...
Enter your vote today! A new poll has been created for the jslint_com group: Should JSLint complain about continue statements? o Yes o No To vote, please...
Another small bug: JSLint doesn't like it if you break the /*jslint ... */ line after a colon. (It does accept line breaks after a comma.) /*jslint bitwise:...
The JSLint.com page looks ok on the minority browsers, but it looks lousy on IE8. The vertical spacing is off, the fieldsets bleed, and the buttons are wrong. ...
A RegExp object ”remembers” the last search. Try alerting hr.lastIndex. So you getting first true and then false is an indication that there are no matches...
I've just encountered an odd behavior related to global variables. Is it possibly a bug? I'm keeping a local library of useful functions, all defined in one ...
Hi, this is not really a JSLint-Question, but I figured the smartest Javascript guys in this group. I wrote a RegExp that finds the hr-tag: var hr =...
Would it be possible to have JSLint throw an error each time it sees the continue command? This could be an optional thing in The Good Parts option list. ...
HTML Comments do not work the way a reasonable person would expect because they are overloaded onto meta declarations. The full powerful of this syntax is...
I will be removing the /*global */ declarative comment. I am persuaded that it is best to explicitly use var to declare all global variables, even when...
Something I found useful was knowing if I added any new globals by accident. Right now the JSLint output looks like this if you use predefined globals: Global...
I have found that JSLint complains about the forward slash in this: /=\' / but not in this: / =\'/ It seems if the first example is worthy of complaint then...
Jslint group, After long use of jslint as a web application, I just began using it with Rhino, which is apparently ignoring my /*jslint option1 option2 ...*/ ...
Now, I fully understand the reasons behind this change, and I approve. However, I've noticed something interesting. If you select the "Assume a browser"...
JSLint does not properly ignore HTML comments: <html> <!-- "' --> </html> Note that JSLint parses the data inside the comment, when it should be ignored....
Arrays work really differently in JavaScript than in most other languages. If you do not understand those differences, you can be in for a world of hurt....
I've been using JSLint for several years. As a result, I've developed an habitual JavaScript coding style which conforms to its requirements, and my code...
I think it would be great if the JSLint Yahoo! Widget had the clear, recommended, and good parts selectors found on jslint.com. It would save a bit of time and...
First, could JsLint displays the number of errors and warnings, and can you add a way to configure the number of warnings ? The 50 warnings limit is really too...
I am curious why JSLint dislikes this: var foo = new function () { this.bar = 1; }(); Without the "new", "this" is bound to the global object. It is true that...
I'm trying to check if a variable is already defined and define if is not. If (Testvar === undefined) { var Testvar = {}; } JsLint say that Testvar was used...
var regexp = /\s+(?!.*[\=])/gm; I am a bit confused as to why JSLint doesn't like this. It doesn't seem to cause problems or throw exceptions in the browsers...