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...
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 !==...
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...
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...
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]...
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...
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,...
2891
douglascrockford
douglascrock...
May 16, 2012 4:19 pm
... That is because you failed to specify option.stupid....
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...
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...
2894
Tom Worster
thefsb
May 31, 2012 2:40 pm
i think this is a job for the ide, not the linter....
2895
josephtbrdly
May 31, 2012 3:42 pm
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,...
2896
Luke Page
page.luke...
May 31, 2012 6:59 pm
Unfortunately my IDE (visual studio) only does it for c#, not js. But, even if it did, its useful as a task list, but I use jslint as a pre-check-in and I...
2897
douglascrockford
douglascrock...
May 31, 2012 7:09 pm
... If I do this, I will dictate the format of the TODO directive, and I will tolerate no whining about it. Is that agreeable?...
2898
Michael S. Mikowski
z_mikowski
Jun 1, 2012 1:43 am
If you are using web storm or perhaps other ide (like vim with syntax) its already highlighted. As much as I love jslint, I feel this is beyond its original...
2899
Martin Cooper
mfncooper
Jun 1, 2012 2:22 am
On Thu, May 31, 2012 at 6:43 PM, Michael S. Mikowski ... I agree, a linting tool should stick to static analysis of the code. It shouldn't be trying to...
2900
douglascrockford
douglascrock...
Jun 11, 2012 9:15 pm
I will be giving a talk about the theoretical foundations of JSLint. http://www.meetup.com/TechXploration/events/65087252/...
2901
benquarmby
Jun 21, 2012 12:47 am
Doug, I don't have a problem with this option, but I would like to suggest a stricter implementation of it's behavior. Instead of broadly catching the...
2902
Joe Martin
josephjoaqui...
Jun 26, 2012 5:09 pm
Iterating over an array backwards like: /*jslint plusplus: true */ var ii, foo = []; for (ii = foo.length; --ii;) { foo.push("hello"); } produces the error...
2903
Mike
z_mikowski
Jun 26, 2012 5:24 pm
This to me is clearly a situation of code being too clever for its own good. Simply write it out the statement in full. What's so hard about that? ... ...
2904
Joe Martin
josephjoaqui...
Jun 26, 2012 5:41 pm
... What I wrote is a pretty common pattern but that's beside the point. I just want to know if for loops are supposed to be either all parameters or no ...
2905
douglascrockford
douglascrock...
Jun 27, 2012 4:00 am
... Right. If all you need is a condition, use while. And don't get too tricky....
2906
archie172
Jun 30, 2012 3:30 pm
Hi, I've just starting using jslint and it's been very helpful. Thanks for making it available. For better or worse it combines what I'd call "correctness...
2907
douglascrockford
douglascrock...
Jun 30, 2012 3:45 pm
I recommend that you accept JSLint's advice....
2908
archie172
Jun 30, 2012 4:44 pm
... Thanks for the recommendation :-) Not sure what you're saying though... Are you saying "It's not a coding style issue" or are you saying "Everyone should...
2909
douglascrockford
douglascrock...
Jun 30, 2012 4:50 pm
... I am saying that I recommend that you accept JSLint's advice. If you have evidence that your "style" results in a significantly reduced error rate, then I...
2910
benquarmby
Jul 1, 2012 10:31 am
While I'm not sure anyone would consider mixing single and double quotes to be an error (or look like an error, or be more error prone), mixing them does...
2911
douglascrockford
douglascrock...
Jul 1, 2012 1:01 pm
... My advice is to use "double quotes" for strings that are meaningful externally, like urls, html templates, and error messages; and to use 'single quotes'...
2912
John Hawkinson
john.hawkinson
Jul 1, 2012 3:05 pm
When you deal with strings that contain double quotes and strings that contain single quotes: "Warning: can't find token." 'Invalid input: "cheese"' it is...
2913
douglascrockford
douglascrock...
Jul 1, 2012 4:50 pm
... You should be glad to know that what you find annoying is not a consideration. I am concerned instead with correctness and readability....