Why does JSLint complain that "type is unnecessary" when it sees a script element with a type attribute in an html file? Is there any way to turn this...
My usual report on JSLint itself: 1467: Unexpected space after '('. 1494: Unexpected space after '('. 2443: Expected 'warning39; to have an indentation of 16...
JSLint can now check CSS files. CSS files are required to have this as the first line: @charset "UTF-8"; JSLint's CSS checking is not yet complete, but it will...
Do you use http://developer.yahoo.com/yui/yuitest/ on JSLint, some other test methodology, or none? I have very little automated testing with JavaScript, and...
After tracking down a bug in 0.8.5.3 of the HTML Validator Firefox extension, I decided to try out JSLint on some of the code in it. It doesn't work because of...
The following CSS errors are reported, and I'm not sure why they are errors or what to do differently for them: Problem at line 420 character 5: Unexpected...
To avoid overload of my scripts and objects, I always put this kind of code in my libraries: if(!window.isLoaded_Overload) { var isLoaded_Overload = true; ...
escape & unescape do not do url encoding correctly and they are not in the official standard. JSLint no longer accepts them. If you want JSLint to pass crappy...
In my external JS file, I use the following code: document.getElementById('element39;).innerHTML = object.property; I receive both of the follower errors from JS...
Hi, I just discovered jslint and it is *great*. Thank you, thank you, thank you! Yes, it did hurt my feelings... but in a good way, except for one case. I...
Using Jaxer (http://www.aptana.com), a Ajax server, it is possible insert in the html page tags as <jaxer:include ... Linting the page, JSLint displays ...
I have a code snippet containing: ... if (!(contents instanceof HTMLElement)) { ... Of course JSLint says 'HTMLElement39; is undefined. Same message with browser...
I've been exprimenting with mixing jslint and the dojo editor to make syntax checking script editor. I've noticed that something in jslint seems to conflict...
Hello, I'm for sure too strict, too maniac but ... JSLint is used to validate JavaScript so what about providing perfect JavaScripts in JSLint? If you turn on...
Hey guys, At RWE, I got the idea after hearing Douglas' talk on the Good Parts to use AdSafe and JSLint for a new (poorly considered in my opinion but I don't...
I am trying to use the command-line version of JSLint on an HTML file and it is failing with this error. Lint at line 28 character 1: Unexpected '@'. @import...
There is a new version of my Widget Tester Widget at http://tinyurl.com/5unocx . This incorporates the 30 August, 2008 version of JSLint. The update has also...
I added a strict option that anticipates the "use strict"; pragma of ES3.1. If the first statement of a compilation unit is "use strict"; then the JavaScript...
I have structured my Javascript into to files basicfunctions.js specialfunctions.js "basicfunctions.js" gets included allways - as every page of my site needs...
I notice that you recommend in your book not to use substring (and you don't even mention the deprecated substr) and to use slice instead. I have the dead tree...
In 3000 lines of JS code, I'm completely clean according to JSLint, except for five messages like this: "Be careful when making functions within a loop....
Hi, I had a suggestion for a feature for JSLint that I feel would be pretty useful. In addition to the options groups ("Good parts" and "Recommended"), would...
Hello, I know that break is recommended before a case but it's not mandatory. In the following example there is nothing wrong, right? switch (this.layout) { ...
Hey all, I currently have code that looks like the following: <script type="text/javascript"> //<![CDATA[ ... //]]> </script> Since I'm doing this in xhtml, my...
Hello, JSLint generate an error if a symbol is not declared. That's perfect! What about generating a warning if a symbol is declared but never used? A switch...
Hello, Is it a good practice to try to use a single 'var' statement per scope? For sure it help the compression of the script. If it's a best practice can an...
For the release Aug, 12nd, at line 910 JSLint (run on itself) displays the message "Unexpected escaped character '<' in regular expression." ... if (src ||...