This worked great on my Linux dev box, and I thought others might be interested. This guy has employed spidermonkey to run jslint on Linux. Easily :) ...
I have added a new method to JSLINT which returns the material from the report in the form of a data structure. This should be useful to programs that want to...
Hi all! I'd like to let you know that my jslint wrapper, jslint4java, has a new version out. The details are at: http://code.google.com/p/jslint4java/ The...
This seems to be producing "Bad escapement error" results = str.replace(new RegExp('\\\$\\\$([a-z]+)', 'gim'), "{%=$1%}"); as you can see I am looking to...
Take the following code sample. When I run it through JSLint with "Require Initial Caps for constructors" set (my default), I receive an "A constructor name...
Hi all! I'd like to let you know that my jslint wrapper, jslint4java, has a new version out. The details are at: http://code.google.com/p/jslint4java/ The...
var regexp = /[]]/; I understand the second error is JSLint telling me I need to escape the "]", and that's fine. The problem is the first error. It says I...
I find the indentation requirements for the switch statement are not what I expect. Expected: switch (value) { case 1: case 2: return true; default: return...
With the newest version of JSLint I am having a frequent error on this code block: if (typeof console==="undefined") { console = { log: function() {}, dir:...
I understand that the ?: operator is supposed to be used to select between multiple values, rather than multiple actions. I ran into an interesting situation:...
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...