Added a more descriptive error message for if, do, for, and while statements....
2
jpdavenportjr
Mar 12, 2008 5:13 pm
Here at the US Courts we use YUI for our electronic case management system, and recently use JLint to clean up our JavaScript code. Although I personally...
3
Douglas Crockford
douglascrock...
Mar 12, 2008 6:55 pm
JSLint also replaces tabs with 4 spaces. I can't recommend use of eval. Instead, try http://www.JSON.org/json2.js...
4
Douglas Crockford
douglascrock...
Mar 12, 2008 6:56 pm
An option has been added to support Windows Sidebar. It is the same as the browser option, except that it also predefines System....
5
Douglas Crockford
douglascrock...
Mar 13, 2008 12:35 pm
JSLint now allows the letters in the tag, g i m, to appear in any order. I had been expecting they would always be in alphabetical order....
6
Douglas Crockford
douglascrock...
Mar 15, 2008 12:26 pm
I have been convinced that . in Regular Expression literals is dangerous because it usually does not precisely match what was intended. That can lead to...
7
Donavon West
donavon.west
Mar 15, 2008 5:34 pm
... I think this is a good option. I'm not sure if I will use it (at least not at first) but this has me thinking more about my regular expressions and using...
8
Jacob Davenport
jpdavenportjr
Mar 20, 2008 3:18 pm
In the world of Perl, we have this great book called Perl Best Practices, and there Conway argues that "else" should be written like this: if (ping == pong) { ...
9
Douglas Crockford
douglascrock...
Mar 20, 2008 4:19 pm
This isn't Perl. JavaScript has a dangerous semicolon insertion mechanism. More rigor is demanded....
10
Jacob Davenport
jpdavenportjr
Mar 20, 2008 5:22 pm
... It certainly isn't Perl. I'd argue it's much easier to write bad code in Perl than JavaScript, but at least it doesn't insert semicolons for you. You've...
11
Douglas Crockford
douglascrock...
Mar 29, 2008 1:41 pm
JSLint now prohibits assignment to the arguments pseudoarray. The problem is that arguments is not a snapshot of the arguments that are bound to the...
12
Douglas Crockford
douglascrock...
Mar 31, 2008 4:06 pm
JSLint now recognizes Konfabulator39;s FormFiled constructor....
13
Chris
altearius
Mar 31, 2008 8:47 pm
Howdy, When "Assume a Browser" is checked, why does the following code cause a problem? var o = new Option(); Is there some browser that does not support the...
14
Douglas Crockford
douglascrock...
Mar 31, 2008 9:45 pm
... That's a blast from the past. JSLint now accepts it....
15
Douglas Crockford
douglascrock...
Apr 2, 2008 9:20 pm
When confronted with a number literal like .0725 JSLint no longer reports Don't use extra leading zeros '0725'. but it does report A leading decimal point can...
16
Douglas Crockford
douglascrock...
Apr 5, 2008 3:04 pm
I added a warning to the web page edition at http://www.JSLint.com/: WARNING: JSLint will hurt your feelings. I relaxed the ADsafe restriction on the [ ]...
17
Douglas Crockford
douglascrock...
Apr 8, 2008 11:31 pm
I have added a glovar option. When glovar: true, then var cannot be used to declare global variables. Fiann O'Hagan convinced me that many programmers have a...
18
Douglas Crockford
douglascrock...
Apr 9, 2008 11:51 pm
I relaxed ADsafe to allow limited access to the standard globals....
19
hass0002
Apr 10, 2008 2:32 am
... Do you think it would be a good idea to include a version comment in the JSLint source file? I'm working on something and I think it would be good to say...
20
Douglas Crockford
douglascrock...
Apr 10, 2008 3:28 am
... I use dates....
21
Cory Bennett
corynbennett
Apr 14, 2008 8:44 am
Hello, I got this error from jslint: Unsafe character. fn("FAILED—" + message); The '—' is char 226 or 0xe2. It is not ascii, but I was wondering why it ...
22
Douglas Crockford
douglascrock...
Apr 14, 2008 5:39 pm
... why it ... There are characters that are handled inconsistently in the various implementations, and so must be escaped when placed in strings, and must...
23
hass0002
Apr 15, 2008 5:30 am
Hi, I have created an MSBuild task that can be used to automate the process of running the JSLint tool on Javascript files. You can read about it on my blog at...
24
Douglas Crockford
douglascrock...
Apr 15, 2008 4:26 pm
I added arguments to the set of excluded members. The set now contains apply arguments call callee caller constructor eval prototype unwatch valueOf watch...
25
Douglas Crockford
douglascrock...
Apr 16, 2008 2:04 am
escape & unescape do not do url encoding correctly and they are not in the official standard. JSLint no longer accepts them. If you want JSLint to pass crappy...
26
Re Miya
remiya_ws
Apr 16, 2008 6:17 pm
... Hello Douglas, This is the first time I heard that escape and unescape do not do URL encoding correctly, and are not in the official standard. Where can I ...
27
Douglas Crockford
douglascrock...
Apr 17, 2008 6:08 pm
The ECMAScript standard reserves the following words: abstract boolean byte char double final float implements int interface long native package private...
28
Douglas Crockford
douglascrock...
Apr 17, 2008 6:30 pm
... See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsmthescape.asp...
29
Douglas Crockford
douglascrock...
Apr 18, 2008 9:27 pm
JSLint now rejects a string that starts with 'javascript:'. It previously rejected a string that contained 'javascript:'. Thanks to Timo....
30
Douglas Crockford
douglascrock...
Apr 18, 2008 11:14 pm
I corrected an error in JSLint that created a scope around labeled statements. function a() { foo: for (var i = 0; false;) { } return i; } As a result, it used...