... The most significantly common increment and decrement operators are frowned upon by the tool. The unary plus operator is not frowned upon, but is...
732
pauanyu
Jul 10, 2009 8:49 pm
... This whole thread has spiraled out of control. Here's the simple answer: If you use (console === undefined), and console has not been declared, it will...
733
benxwhite
Jul 13, 2009 2:48 pm
I find the indentation requirements for the switch statement are not what I expect. Expected: switch (value) { case 1: case 2: return true; default: return...
734
Douglas Crockford
douglascrock...
Jul 13, 2009 3:49 pm
Turn off the Strict whitespace option....
735
pauanyu
Jul 18, 2009 11:56 am
var regexp = /[]]/; I understand the second error is JSLint telling me I need to escape the "]", and that's fine. The problem is the first error. It says I...
736
Douglas Crockford
douglascrock...
Jul 18, 2009 3:49 pm
... Thanks. Please try it now....
737
pauanyu
Jul 19, 2009 3:48 am
... Yeah, that's better. What about the other weird characters like /[^]/ and /[-]/? Wouldn't those be "empty class" as well?...
738
z_mikowski
Jul 23, 2009 5:05 pm
This worked great on my Linux dev box, and I thought others might be interested. This guy has employed spidermonkey to run jslint on Linux. Easily :) ...
739
re miya
remiya_ws
Jul 23, 2009 6:01 pm
You don't need to use neither Rhino neither Spidermonkey. Java has scripting enabled since version 6.0, and it runs jslint just fine. The implementation takes...
740
pauanyu
Jul 23, 2009 9:33 pm
JSLint doesn't support them. Is this by design, or...?...
741
dom@...
happygiraffe...
Jul 23, 2009 9:37 pm
... Internally, that's still calling rhino. And it doesn't mitigate the startup time of the JVM. -Dom...
742
blakesys
Jul 23, 2009 9:42 pm
(I posted this over 3 hours via email and for some reason it didn't come through) Nice article-- Thanks for pointing it out! I wonder how much faster...
743
Arthur Blake
blakesys
Jul 24, 2009 3:08 am
Nice article-- Thanks for pointing it out! I wonder how much faster spidermonkey will be when using regular expressions in JS... 100 times??? Rhino is...
744
Douglas Crockford
douglascrock...
Jul 24, 2009 3:11 am
... When I put CSS checking into JSLint, the CSS3 recommendation appeared to be years away from adoption, and browser implementations were spotty and...
745
dom@...
happygiraffe...
Jul 24, 2009 11:44 am
Hi all! I'd like to let you know that my jslint wrapper, jslint4java, has a new version out. The details are at: http://code.google.com/p/jslint4java/ The...
746
Donavon West
donavon.west
Jul 24, 2009 3:46 pm
Take the following code sample. When I run it through JSLint with "Require Initial Caps for constructors" set (my default), I receive an "A constructor name...
747
z_mikowski
Jul 24, 2009 6:58 pm
Your welcome! Hope this helps. Note I am /not/ the original author of http://whereisandy.com/code/jsline; just someone that wanted to add jslint to build...
748
pauanyu
Jul 24, 2009 10:18 pm
... Perfectly understandable. I take it that means you will consider adding it in now? (I actually have quite a bit of stuff that uses CSS3, but apparently...
749
pauanyu
Jul 24, 2009 10:25 pm
... JSLint requires constructors to have an initial capital letter. This is to prevent errors when you forget to use "new", binding to the global object. Just...
750
Michael Newton
mnewton32
Jul 24, 2009 11:28 pm
And just in case Mac users hadn't noticed, Spidermonkey is available as part of MacPorts: sudo port install spidermonkey ________________________________ From:...
751
Douglas Crockford
douglascrock...
Jul 24, 2009 11:29 pm
... What specifically do you need?...
752
dom@...
happygiraffe...
Jul 25, 2009 12:12 am
... Don't dismiss the speed of the JVM idly. It's usually a lot faster than you expect, _when running_. The startup time is still poor, but the speed when...
753
z_mikowski
Jul 25, 2009 7:33 pm
Thanks Dom. As a mod_perl developer, I'm keen on cached byte code, but really haven't kept up with all the details on JVM optimizations :) To be fair, speed...
754
pauanyu
Jul 25, 2009 10:56 pm
... Right now? [key*='value39;] [key^='value39;] [key~='value39;] ... P.S. JSLint also complains about: <div class=":foo"></div> Is there any good reason for that?...
755
Douglas Crockford
douglascrock...
Jul 26, 2009 5:21 am
... You've got it. ... Is there any good reason to put a colon in a class name?...
756
pauanyu
Jul 26, 2009 6:12 am
... I'm using it with a syntax highlighter to avoid class collisions and offer CSS styling. For instance, a pre tag that contains JavaScript text would be: ...
757
mnewton32@...
mnewton32
Jul 26, 2009 2:22 pm
They are allowed to contain almost any character, but can only start with letters, numbers, or the underscore I believe. It's there in the (very readable) HTML...
758
pauanyu
Jul 27, 2009 12:40 am
... Thanks for the link. I took some quick glances at it and didn't notice any mention that CLASS must begin with letters, numbers, or the underscore. I did...
759
Re Miya
remiya_ws
Jul 29, 2009 6:07 pm
... What is worth considering here is not the JVM startup time (which actually is not that much), but that the implementation is OS independent. You write it...