"use strict"; function t() { var name, norm; name = 'js/js-js.js'; norm = name.replace(/([\.\/-])/g, ''); return name === norm; } gives me this Error: Problem...
function foo(a, b) { var c; } In the above, the local variables "a" and "b" are never used, yet they are not listed as "Unused". Instead, only "c" is listed. ...
Am I crazy? I thought I could add this comment at the top: /* global CMECF window */ And then I could reference my CMECF global (analogous to the YAHOO...
jslint complains if I use a function before it's defined, e.g.: window.onload = initialize; function initialize() { ... } I can certainly understand why one...
Most programs I write lately are wrapped in an anonymous function which is immediately executed, thus: (function () { ... the real code ... }()); As is well...
/* I'm a comment! */ @charset "UTF-8"; [hidden] { display: none !important; } The above is valid JSLint, but fails in the W3 CSS validator with the following...
var regexp = /foo|*/; The above is valid code in JSLint, but fails with the following error: Uncaught SyntaxError: Invalid regular expression: /foo|*/: Nothing...
Hi, I'm writing a Firefox extension. The frontend is CSS/XUL. Of course JSLint does not know XUL-Tags. Is there a possibility to use JSLint anyway. Like...
I'm working on setting up the frontend-test-suite(http://github.com/NeilCrosby/frontend-test-suite/tree/master) which uses jslint. The only jslint script that...
Hi, I'm not sure this is a problem, or if I'm just reading the report wrong. When creating an anonymous function (a callback) as an arg to a function: ...
With the Assume a browser setting checked, onbeforeunload=function() { return "you sure you want to leave the page?"; }; gives me a jslint Implied global...
The web edition of JSLint is now implemented as an ADsafe widget. ADsafe is a safe JavaScript framework intended to support mashups and advertising. JSLint is...
Just noticed that when I click the "Book" button link in FF 3.5.2., I get the amazon book twice in two separate popups...Yet, in IE8, Help, Options and Book...
JSLint doesn't like DOM types: Element NodeList etc. So you can't do (foo instanceof Element) to see if it's a HTMLElement, or (foo instanceof NodeList) to see...
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 :) ...
I have added a new method to JSLINT which returns the material from the report in the form of a data structure. This should be useful to programs that want to...
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...
This seems to be producing "Bad escapement error" results = str.replace(new RegExp('\\\$\\\$([a-z]+)', 'gim'), "{%=$1%}"); as you can see I am looking to...
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...
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...
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...
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...