I found the answer... it's YES! http://technet.microsoft.com/en-us/library/ee156618.aspx...
2534
Mark Volkmann
mark_volkmann
Aug 1, 2011 7:48 pm
Is there a reason why jslint doesn't approve of the CSS border-style value "groove"? It complains about a line like this: border-style: groove; -- R. Mark...
2535
bartman1c
Aug 2, 2011 12:25 am
I use a specific indentation that is incompatible with jslint but I really love the "white" option, so I suggest this for people that is in the same situation....
2536
Mark Volkmann
mark_volkmann
Aug 3, 2011 7:09 pm
I'm trying to use JSLint to check code that uses the Express module of Node.js. It uses the variable __dirname. Is there an option for JSLint that would allow...
2537
Martin Cooper
mfncooper
Aug 3, 2011 8:53 pm
On Wed, Aug 3, 2011 at 12:09 PM, Mark Volkmann ... Try "node: true" instead (which is "Assume Node.js" on the web site). -- Martin Cooper...
2538
Mark Volkmann
mark_volkmann
Aug 3, 2011 9:17 pm
... That doesn't work for me. I ran JSLint on the following: /*jslint node: true */ console.log(__dirname); It complains about the double-underscore in front...
2539
Douglas Crockford
douglascrock...
Aug 3, 2011 10:23 pm
... groove works for me....
2540
Douglas Crockford
douglascrock...
Aug 3, 2011 10:26 pm
... Double underbar is an ultra bad practice because of its diabolical use by implementations like Spidermonkey. Leading underbar is stupid. Double leading...
2541
Martin Cooper
mfncooper
Aug 3, 2011 11:26 pm
... It's the Node.js core committers you'd need to convince of that, Doug. The consumers of the Node.js API - including the JSLint users here on this list -...
2542
Martin Cooper
mfncooper
Aug 3, 2011 11:33 pm
... Okay, it seems you need both. Try: /*jslint node: true, nomen: true */ console.log(__dirname); -- Martin Cooper...
2543
Mark Volkmann
mark_volkmann
Aug 4, 2011 2:19 am
Should I be able to run the latest version of jslint.js that is in GitHub using Rhino? I'm trying to run it like the following, but don't get any output when I...
2544
g2223060
Aug 4, 2011 2:10 pm
When I submit the following contrived snippet to JSLint, I get the error: Problem at line 4 character 12: Expected 'j' at column 9, not column 12. Here's the...
2545
g2223060
Aug 4, 2011 2:15 pm
Not sure why the Yahoo groups "Preview" shows the text properly, but then the message viewer collapses the whitespace? Anyway, here is the code with '.' in...
2546
Merlin
harry152566
Aug 4, 2011 2:50 pm
... Because you declared a single variable on line 3, JSLint expects each following variable to be declared on its own line. If you had declared more than one...
2547
g2223060
Aug 4, 2011 3:22 pm
... Wow. So if I have a variable that is initialized on the var statement and it is 50-60 characters long, I should declare it LAST on the var statement,...
2548
Luke Page
page.luke...
Aug 4, 2011 4:22 pm
It encourages you to separate assigned and unassigned variables. This organization makes it easier to read.. ... following variable to be declared on its own...
2549
Douglas Crockford
douglascrock...
Aug 4, 2011 6:04 pm
... Are you trying to convince me that you are stupid enough to have a 60 character variable name and one character variable names in the same function? I'm...
2550
Dylon Edwards
deeclhtoa
Aug 4, 2011 7:00 pm
There is no need for inflamatory name calling, especially when one has no idea of another's logistics; one may be using single character identifiers for...
2551
g2223060
Aug 4, 2011 8:26 pm
Douglas- I'm not trying to convince you of anything ;) As background, I work as a user interface architect for a large financial services company that uses...
2552
Robert Ferney
capnregex
Aug 4, 2011 8:33 pm
Just as a personal impression. I do find var i, j, elementInWebPage = YAHOO.util.Dom.get('someElementID39;); more readable than var elementInWebPage =...
2553
Doc Emmett Splendid
emmett.thesane
Aug 4, 2011 8:49 pm
I've struggled with how to organize unintialised variables in one full var statement as well (largely because I only recently became convinced through...
2554
Mark Volkmann
mark_volkmann
Aug 4, 2011 9:06 pm
Keep in mind this option: var elementInWebPage, i, j; elementInWebPage = YAHOO.util.Dom.get('someElementID39;); I like to declare all the local variables at the...
2555
g2223060
Aug 4, 2011 9:40 pm
I agree with you, Mark- I have been using that style in my own code. Probably why I haven't seen this error until the developer asked for my help with it :)...
2556
abyssoft@...
abyssoft...
Aug 5, 2011 4:15 am
I use a formatting that is indeed supported by JSLint and is highly readable to me var ....varname1, ....varname2 = "suchandsuch", ....varname3 = 1234; that...
2557
abyssoft@...
abyssoft...
Aug 5, 2011 4:24 am
That looks like jslint is right when you review it. by setting a single variable on the line of the var statement you are setting the expected pattern of 1...
2558
Tom Worster
thefsb
Aug 5, 2011 12:24 pm
... If you take that step, I hope you do so because you believe it is a good policy, not because of a tool like JSLint. Personally, fwiw, I think initializing...
2559
R. Mark Volkmann
mark_volkmann
Aug 5, 2011 12:33 pm
One reason I like that style, declaring all local variables on one line and initializing them later, is that it reminds me of Smalltalk. ... R. Mark Volkmann ...
2560
s_lubowsky
Aug 5, 2011 3:36 pm
I just grabbed the latest jslint (8/3/11) and suddenly its complaining that using "this" is a constructor is a strict violation. I searched around a bit but...
2561
Douglas Crockford
douglascrock...
Aug 5, 2011 10:58 pm
... Thanks. Please try it now....
2562
Phil
druid_rpg
Aug 6, 2011 10:37 pm
I am having a problem with the latest version of JSLint. Environment: Windows XP Pro SP4; FF5.0; jslint.com Edition 2011-08-05 I am getting: Problem at line...