Question: Did you really mean JSON object, or JavaScript object? JSLint will now complain if I have code such as this: ? var myJSON =...
445
Douglas Crockford
douglascrock...
Apr 25, 2009 9:43 pm
... I never imagined that someone would insert a line break before a comma. But I agree that "Tolerate sloppy" should allow it. It does now....
444
speedomodel@...
speedomodel...
Apr 24, 2009 9:55 pm
JSLint produces "Unexpected space" errors for the following: var myArray = [ 1 , 2 , 3 ]; Shouldn't having "Tolerate sloppy line breaking" on allow for this?...
443
Douglas Crockford
douglascrock...
Apr 24, 2009 9:32 pm
JSLint now checks that the keys in a JSON object are all unique....
442
Merlin
harry152566
Apr 23, 2009 12:00 am
Widget Tester Widget (version 8.0.7) with JSLint 2009-04-19 is now at http://tinyurl.com/5unocx . This version has an option to download and use the latest...
441
Douglas Crockford
douglascrock...
Apr 22, 2009 2:37 am
... http://www.JSLint.com/jslint.js will be kept in sync with fulljslint.js....
440
Jakob Kruse
thekrucible
Apr 21, 2009 9:21 pm
I'm happy to announce an update to the JSLint Multi widget. The new widget has been submitted to Yahoo Widget Gallery, but they update very slowly, so for now,...
439
mnewton32@...
mnewton32
Apr 20, 2009 2:52 pm
Escape is not a good idea, or so I've been told. Use encodeURIComponent instead. Or I think that's it. Not at a PC right now. Sent from my BlackBerry device on...
438
Merlin
harry152566
Apr 20, 2009 2:46 pm
... Pending resolution of this issue, I've fixed Widget Tester (now version 8.0.5) so that it downloads from http://www.JSLint.com/fulljslint.js no more than...
437
starie78
Apr 20, 2009 2:23 pm
Hi, Yes you were right - I knew I'd missed something obvious (first day back after Easter Hols so my brain not full functioning ;) ) I still have Error: ...
436
mnewton32@...
mnewton32
Apr 20, 2009 2:15 pm
You could pobably get rid of those errors by checking the "assume a browser" box which will let JSLint know about the document object and stuff. Sent from my...
435
starie78
Apr 20, 2009 2:11 pm
Hi, I don't know what I have done differently, but last time I checked my document I didn't get this error. I have only made slight modifications since, so...
434
Merlin
harry152566
Apr 20, 2009 9:18 am
... I would gladly do that, but http://www.JSLint.com/jslint.js appears to be the WSH Edition of JSLint and not a straight minification of fulljslint.js....
433
Douglas Crockford
douglascrock...
Apr 20, 2009 3:41 am
... Please use jslint.js instead. It is minified and will load faster....
432
Merlin
harry152566
Apr 19, 2009 11:07 pm
At http://tinyurl.com/5unocx there is a new version (8.0.4) of the Widget Tester Widget which can download and use the latest edition of JSLint from...
431
Douglas Crockford
douglascrock...
Apr 19, 2009 8:59 pm
I added an edition member to the JSLINT global function. It contains a string identifying the current edition....
430
Douglas Crockford
douglascrock...
Apr 18, 2009 5:55 am
... Thanks. This has been fixed....
429
Douglas Crockford
douglascrock...
Apr 17, 2009 3:15 am
... I agree. So I have changed the way JSLint looks at line breaking. It is now specifically concerned with infix operators, comma, and semicolon, and is more...
428
Jakob Kruse
thekrucible
Apr 16, 2009 12:34 pm
Hi What’s the rationale behind issuing a line breaking error for code like this: var x = somefunc( param1, param2 ); But not for code like this: var x = { ...
427
Fred Lorrain
grumelo68
Apr 16, 2009 8:09 am
Ok, thank you very much. I should have read your JavaScript recommendations before asking. What a shame .hasOwnProperty() is not documented in many JavaScript...
426
santini.alberto
Apr 15, 2009 3:20 pm
... It is correct because there is an error in the snippet: the body of a for in should be wrapped in an if statement to filter unwanted properties from the...
425
Fred Lorrain
grumelo68
Apr 15, 2009 3:02 pm
In this example: var getObjLength = function(obj) { var objLength = 0, key = ''; for (key in obj) { objLength++; } return objLength; }; The key variable is not...
424
Merlin
harry152566
Apr 14, 2009 3:35 pm
The latest (very much simplified) version (8.0) of Widget Tester is at http://tinyurl.com/5unocx . This incorporates JSLint of 2009-03-28. Widget Tester...
423
Noah Peters
boyopeg
Apr 2, 2009 11:29 pm
Since some browsers (IE family) generate capital letter HTML tags when using contentEditable, I think that it could be unnecessarily restrictive to remove the...
422
Fred Lorrain
grumelo68
Apr 2, 2009 7:38 am
May I ask you how do you use it ? I've downloaded the zip file and then ???...
421
Fred Lorrain
grumelo68
Apr 2, 2009 7:30 am
Unfortunately many HTMl code are still generated in uppercase. Until every one is using XHTML or at least validated HTML, I suggest to keep the option....
420
Jakob Kruse
thekrucible
Apr 2, 2009 6:37 am
This is something I still see often. However, since jslint is not capable of validating otherwise perfectly valid (and required) html (I am thinking...
419
Douglas Crockford
douglascrock...
Apr 2, 2009 12:35 am
Does anyone still write HTML tags in upper case? I am thinking about removing the "Tolerate HTML case" option....
418
Michael Newton
mnewton32
Apr 1, 2009 6:11 pm
It's here: http://code.google.com/p/jslint-dashboard/ I don't expect to update it with every change to JSLint, but it will be updated every few months at...
417
Douglas Crockford
douglascrock...
Mar 24, 2009 6:42 pm
I have added a new immed option. When it is true, immediate function invocations must be wrapped in parens. So foo = function () {} (); // warning foo =...