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...
2865
sandyhead25
Apr 30, 2012 3:32 am
Ben, It is correct that functions are first class objects in JavaScript. That statement goes to the syntax and definition of functions in the language opposed...
2864
sandyhead25
Apr 30, 2012 2:45 am
Please do not make this an ad hominem. Whether or not I am absolutely ignorant of how to write functional code in JavaScript your point adds nothing to the...
2863
benquarmby
Apr 30, 2012 1:56 am
Just to add another option, what do you think of creating proxy functions to "fix" an API that uses a lot of arguments in callbacks? Using my previous code as...
2862
benquarmby
Apr 30, 2012 1:16 am
Thanks for the reply Austin. I'm not 100% sure if you're saying passing functions as arguments is bad per-se (they're first class in JavaScript), or if it's...
2861
Max
oeroeroer
Apr 29, 2012 6:12 am
You might want to spend some time on Google, looking up functional programming, what it is, what it is good for. Discover its strengths. There is a whole lot...
2860
sandyhead25
Apr 28, 2012 11:17 am
While I understand the passing of functions as arguments of other functions is a common style in many frameworks it is extremely sloppy. This is an...
2859
benquarmby
Apr 23, 2012 3:52 am
I realize the topic of unused arguments has been discussed before, but I wanted to raise it again with a suggested alternative behavior. When creating...
2858
sandyhead25
Apr 19, 2012 3:31 pm
This does not appear to be a JSLint bug. It appears to be a bug with some level of application integration. I believe that would make it a JSLex problem. In...
2857
Štefan Bunčiak
pipistik_bun...
Apr 18, 2012 2:20 pm
Greetings! I'm Red Hat's JBDS QE and found a bug in the JSLint integration. The issue is filed here: https://issues.jboss.org/browse/JBDS-2062 Are you able to...
2856
larserik78
Apr 10, 2012 6:30 pm
Ah, didn't notice that menu item. My plugin should be in there. :) (http://resharperjslint.codeplex.com) I'm using the wsh snippet JSLint.VS is using. ...
2855
mariana.schiff
Apr 10, 2012 5:39 pm
If you go to the Database section of this group, you'll find a link to SeanK's blog with a WSH implementation. That's the one I'm using....
2854
larserik78
Apr 10, 2012 9:19 am
... Thanks, but that's missing the point. I'm testing the highlighting from my plugin, not trying to fool JSLint into letting my own javascripts look bad. ;) ...
2853
douglascrockford
douglascrock...
Apr 10, 2012 9:12 am
... Yes. Fix your code, then it won't stop. For example, var i, x; i = 1; x = 2;...
2852
larserik78
Apr 10, 2012 7:56 am
Hi! I've created a plugin for resharper that highglights warnings from JSLint in js files. To test it, I've started creating small testfiles, and I've gotten...