Love the new site layout! One request: Can you make the width of the site fixed at the width of the browser window? If a line of code is wider than the window,...
2894
Tom Worster
thefsb
May 31, 2012 2:40 pm
i think this is a job for the ide, not the linter....
2893
IcedNet Development T...
dwmcneil...
May 31, 2012 2:07 pm
I can definitely see the value in that. I already search entire projects for this pattern (I bear some of the guilt for usage after all), which I automate, but...
2892
Luke Page
page.luke...
May 31, 2012 2:03 pm
Hi, Not sure if anyone has requested this before, but a common cause of bugs and even more often, maintainence issues, arise because a programmer thinks of a...
2891
douglascrockford
douglascrock...
May 16, 2012 4:19 pm
... That is because you failed to specify option.stupid....
2890
Merlin
harry152566
May 16, 2012 4:01 pm
This code: /*jslint nomen: true, node: true */ "use strict"; var fs = require("fs"), path = require("path"); var JSLINT_PATH = path.join(__dirname,...
2889
Tom Worster
thefsb
May 15, 2012 5:07 pm
... I agree and support the feature request. Sometimes I feel so stupid reading fancy modern JS code. It's nice to know I'm not alone in benefiting from "the...
2888
Robert Ferney
capnregex
May 15, 2012 4:54 pm
Or even, references to the chapter in The Good Parts. - Robert Ferney ... [Non-text portions of this message have been removed]...
2887
Robert Ferney
capnregex
May 15, 2012 4:52 pm
Douglas, This little explanation was great. It would be wonderful if the error messages would link to pages with little explanations like this. - Robert Ferney...
2886
sandyhead25
May 15, 2012 1:50 pm
Would it be possible to warn on use of the "this" keyword? With exception to extending prototypes or referencing from the DOM I have never seen an efficient...
2885
douglascrockford
douglascrock...
May 14, 2012 6:30 pm
This code fails JSLint: ````var myScript = {}; ````(function () { ````````var THIS = this; ````````function defined(x) { ````````````return typeof x !==...
2884
Luke Page
page.luke...
May 10, 2012 7:16 pm
Disclaimer: I am no fan of Microsoft. but... The page looks bad on IE9 because the #JSLINT_ ID selector is not being interpreted right (something to do with...
2883
Kirk Cerny
kirk.cerny
May 10, 2012 4:52 pm
Thanks. This looks good. Kirk Cerny [Non-text portions of this message have been removed]...
2882
douglascrockford
douglascrock...
May 10, 2012 4:50 pm
... Yahoo itself is not longer supporting widgets, so I don't think I need to support them too. You can use option.predef or /*globals*/ to specify the widget...
2881
Chris
altearius
May 10, 2012 2:49 pm
I like the new tri-state options. These are much easier to understand than the old ones. The "Clear Options" button sets "Indentation" and "Maximum number of...
2880
Merlin
harry152566
May 10, 2012 2:43 pm
... I note that you have removed the "Assume a Yahoo! Widget" option from the UI. I am not unduly bothered by that, but hope that you will leave that option...
2879
douglascrockford
douglascrock...
May 10, 2012 1:41 pm
A new edition of the JSLint web page is available for testing at http://jslint.com/test/jslint.html It includes many UI improvements suggested by Jeff Coniff. ...
2878
Chris
altearius
May 10, 2012 1:14 pm
I agree: I think such a rule would be a useful improvement to JSLint. I have seen this sort of situation causing numerous bugs in my own code. Of course, we...
2877
aceblchboy
May 10, 2012 12:11 pm
Google Chrome Extension http://code.google.com/p/script-cover/ <http://code.google.com/p/script-cover/> Some things to note: If the program needs data to...
2876
John Hawkinson
john.hawkinson
May 9, 2012 9:30 pm
Rob Richardson <erobrich@...> wrote on Wed, 9 May 2012 ... I don't agree. i is a common counter variable. It is reasonable style to use i as the...
2875
Rob Richardson
erobrich@...
May 9, 2012 6:16 pm
I think an even larger issue should be checking for identically named variables declared in different scope. This too should be illegal: function a() { ...
2874
Max
oeroeroer
May 9, 2012 4:57 pm
What might be the general rule be, just literally "Nested for loops shouldn't share control variables"? Or is there a larger principle at play here?...
2873
Martin Cooper
mfncooper
May 9, 2012 4:00 pm
I was surprised to find that JSLint doesn't complain about the following code: function doCheck(arr1, arr2, checker) { var i, l; for (i = 0, l = arr1.length; i...
2872
Dylon Edwards
deeclhtoa
May 2, 2012 1:44 am
I use it, too. Dylon ... [Non-text portions of this message have been removed]...
2871
benquarmby
May 1, 2012 3:22 am
Thanks for the reply. Of course you're right (an annoying habit). Do you have a suggestion on creating callback / handler functions like this that don't look...
2870
Pierre Martineau
pierremartineau
Apr 30, 2012 10:24 pm
I rarely use it, but I like it a lot when I do. So I would miss it. Thank you for this wonderful tool. Pierre Martineau ... From: "douglascrockford"...
2869
douglascrockford
douglascrock...
Apr 30, 2012 9:54 pm
Would anyone miss the Syntax Tree button?...
2868
douglascrockford
douglascrock...
Apr 30, 2012 2:01 pm
... Yes it should, because it is often an error. But if you are intentionally writing code that looks like an error, and don't want to be reminded of that...
2867
Andy Dawson
using_yg_und...
Apr 30, 2012 7:38 am
... Please clarify why: foo(arg, function() { callThis(with, these, arguments); }); Is considered extremely sloppy. AD [Non-text portions of this message have...
2866
benquarmby
Apr 30, 2012 4:22 am
Thanks again Austin. I see your point. This argument aside (ba-dum-tish!), my real question is whether JSLint should allow early unused arguments. So...