Although I can see the OP's sentiment, the code enforcement that JSLint employs tends to make us into better programmers. The idea of dropping "superfluous"...
Yes, obviously I'd only want to use 1 tab per level. I just checked turning on strict whitespace - and apparently at some point the option started working with...
... It isn't a matter of legitimacy, it is a matter of portability. I have not found that the forms you are demanding are actually used in the wild except by...
... The web standards and their implementations are much too crappy for dependence on test suites. So I depend on something vastly more reliable: The users of...
... Programming is all about making good trade offs. The better we are at making trade offs, the better our programs get. So let me suggest two rules from a...
... The benefit I see is conciseness of functions without loss of readability. It is fairly common for me to write functions that test parameters and make a...
Hi Mark: And what is wrong with the following? ... function foo(a, b) { if (a < 0){ return -1;} if (a*2 > b){ return 1;} // Now have several lines of code (say...
If I understand correctly, in order to get your code to pass JSLint, you have to turn off strict whitespace checking. If you do that then the following will...
Mr. Crockford, I concede that I do see your point; but, at the same time is it not likely that without JSLint supporting in part some of the nearby Unicode...
hi, I am using JSLint a lot to check Ce-HTML code and this standard requires every page to begin with the tag <?xml .... >. This is quite annoying because...
... It has been originally defined as xml but is now part of some HTML standard such as CE-HTML. This tag is widely used now such as <!-- which is originally...
Mark, My two cents is that considerations for presentation to humans are becoming more and more irrelevant in enterprise settings. A good example of why is...
George, To be fair it is unlikely that Unicode will become a functional part of the web, content aside, until RFC 3897 gains some traction over RFC 3896, which...
TC39 is currently discussing this problem: Suppose you mistype ';' as '.'. var x=foo. if (a>b) -bar; It will be read as var x = foo.if(a > b) - bar; ES3 will...
JSLint now requires that there be no whitespace or line break between a . and a property name. This has always been a good practice, and is now especially...
Couldn't it be optional? I believe this is useful when indenting long chain of methods like some popular JS frameworks do. The following although correct...
... As a C coder, I prefer the following: function func1(foo) { var bar = foo .replace('o', '0') .replace('a', '4'); return bar; } In my opinion, the dot...
... I would prefer this as well. My colleagues and I made a conscious decision to use a trailing dot to indicate line continuation, which turned out positive...
I agree about the leading dot- it is an obvious hint that the line continues the one above it. I dislike the trailing dot on the previous line. I think DC...
I was testing a command line version of JSlint and noticed that == and != are disallowed no matter what I set eqeqeq to. i am running the version from 25 Aug...
... if (2 == 2) { } I've just run the above in Widget Tester and in the version of JSLint at http://www.JSLint.com/ . Both use edition 2010-08-28. I am seeing...
... if (2 == 2) { } I've also run the above in Widget Tester using JSLint edition 2010-08-25. I am seeing correct behaviour in both cases, with eqeqeq set to...
Harry, Thanks for your time. In trying a reduced test case on the web version, I do see it working correctly. I will re-run my original test case and update...
It appears the comparison I had modified for testing purposes was comparing a value to 0, for which the Lint requires === regardless of the setting of eqeqeq....