After working with JSLint for a while i got tired from copy pasting my JS code into jslint.com, so i searched google for a dreamweaver JSLint plugin. Did not...
Hi, We have some custom objects that are injected into the DOM from a lower layer. In order to access these we have to do so using global references. E.g....
Just read a fascinating interview with the author of our favorite tool!It also has great interviews with other eminent programmers of our time (Eich, Bloch,...
var foo = { get bar() {}, set bar(value) {} }; The above fails with the following errors: Problem at line 2 character 9: Expected ':' and instead saw 'bar'. ...
Code can become difficult to read if it goes on for too long without a line break. This most obviously becomes a problem as soon as it becomes necessary to...
Hi, When JSLinting there are several scenarios where we get the "Variable {a} was used before it was declared. " message. This usually occurs when we define...
I'm sure this has been asked before, but I searched this forum and scanned the jslint docs without finding an explanation. What is the rationalle in flagging...
JSLint is now fussier about use of the ! operator. There are some cases that will cause it to complain Confusing use of '!'. It will complain if !'s operand is...
OK, we use a product which embeds Rhino, version 1_5R5. I was looking at running jslint over the scripts written for this tool, however when I used the...
Just found a nasty bug, in Adobe Spry Tabbed Panels: http://labs.adobe.com/technologies/spry/widgets/tabbedpanels/SpryTabbedPanels.js The bug is here: if...
I'm not an expert in JS coding, and this problems looks esoteric for me. "The body of a for in should be wrapped in an if statement to filter unwanted...
Hallo, I have a really really little bug to report. Using Rhino I have to explicitly write that I want to use the . in regular expressions (instead of leaving...
Hello, I have an example base64 encoding function. As messages in this group are sometimes displayed in a variable-width font, and that may make my question...
JSLint counts all of the occurrences of property names for its /*members*/ report. It does that by making an object with a property for each name that it sees....
There has been a problem with http://www.jslint.com/rhino/rhino.js for a while. It adds one to the reported line number returned from jslint. And also, it...
... Not to go too far off-topic, but I think fans of JSLint would also appreciate FlymakeCSS, which is also fantastic, and very easy to set up for any...
Would it be possible to get JSLint to warn if you call the escape() function? The bad behaviour of this function has caused me problems this morning. It...
If a script is entered into JSLint.com[1] containing a destructuring assignment[2], JSLint gives a strange error message[3] that has little or nothing to do...
I want to recheck some bits of older code against the everchanging good parts, and for I use rhino-jslint, I have to change the jslint-options-string again and...
var foo = [0,, 1,, 2,, 3]; There are times where you wish to leave particular indices of an array as undefined. The above fails with the following errors: ...
Every know and then I want to change a /*jslint*/ setting for a particular statement. After the statement I want to restore the setting to its previous state....
@charset "UTF-8"; div { content: counter(foo) "." attr(bar); } Three things: 1) content is only supposed to be used on the :before, ::before, :after, and...
A lot of libraries are written inside one big, anonymous wrapper function: (function () { // ... }()); As I understand from John Resig's post on "use strict"...
There are times where you absolutely must go against something JSLint is warning you about. Perhaps you need eval (rare, but it happens), or perhaps you have a...
I have this line of code: new Something(); and JSLint gives me this in its report: Error: Problem at line 7 character 9: 'new' should not be used as a...
@charset "UTF-8"; body { color: rgb(30, 144, 255); color: rgb(75%, 4%, 100%); } The above fails with the following errors: Problem at line 3 character 18:...
The following piece of code: var node = document.getElementById('foo'); delete node.parentNode.removeChild(node); Works fine, but JSLint is complaining: Error:...