Hello, I am puzzled by some indentation expectations that I am getting from JSLint. I was wondering if somebody might clarify this? Please consider this...
We have been using an older version of JSLint ('2010-12-14') to validate code like the below. This has been going well, but when trying to upgrade to newest...
I turned on strict whitespace and jslint is telling me that the section starting with `position: 'absolute39;` should be have one fewer tab stops: var i =...
I turned on strict whitespace and jslint is telling me that the section starting with `position: 'absolute39;` should be have one fewer tab stops. This is using...
Classification: UNCLASSIFIED The whitespace algorithm is not wrong in its error. The cause of your problem is the ".css". This this instead: var i =...
Doug, I saw that someone tried to push a commit with the CommonJS export and it was rejected. However, since your JSLINT file can't be exported as a module...
In late Feb, Douglas added this warning: infix_in: "Unexpected 'in'. Compare with undefined, or use the hasOwnProperty method instead.", This causes problems...
Hi, In older times, to disable easily I have used code like this: var logger; function doNothing() {} function setDebugMode(mode) { if (mode === 'on') { ...
I like the unused variables warning, because it helps catch misspelled variables, although so do checks that warn about undeclared variables. However, using...
In IE 7 I tried using hasOwnProperty on document.styleSheets[0].rules[0] and found out that the rule object returned from the expression doesn't have that...
The Assume a browser option now includes 'window. Most uses of window are in support of bad practices, but some uses of it are now required by ES5/strict. For...
Hello. I started using express, a framework for node.js. The following line app.use(express.static(__dirname + '/live39;)); gets Expected an identifier and...
Because I'm using my own function for the if statement, this doesn't work: example: var isOwnProperty, object, i; isOwnProperty = function(object, key) {....};...
Hello, I'm new to JSLint, and did not have the time to examine the sources and group messages to a maximum extent; however, I have a question about warnings...
Hello, On the following code: function One(a, b, c) { ````this.value = a + b + c; } function Two(a, b, c) { ````this.value = c + b + a; } var which =...
The /*properties*/ (formerly known as /*members*/) and the /*global*/ directives, when placed in a function, do not influence the environment outside of the...
The /*jslint */ directive now respects function scope. That means that if you change an option setting inside of a function body, it will revert on leaving the...
I'm not sure if HaXe is a dirty word around here, but I've been playing with it recently and found it a reasonable progression from Javascript when I was...
Hi, This code gives a message: Problem at line 5 character 9: Expected an identifier and instead saw '/*jslint39; (a reserved word). That's correct and it's my...
The place to express yourself in programming is in the quality of your ideas, and the efficiency of execution. The role of style is the same as in literature....
Hi, I'm scanning the jslint tree after processing to detect todo comments and warn about them. I also have a plan to validate vsdoc/jsdoc as well. Do you have...
Hi Guys, I've updated the JsLint engine to the 2011-02-24 version in dwlint. I also re-arranged the checkboxes in the config section. Hope it helps you ...
Hi there, I'm trying to build a tool that detects javascript code in any kind of language or file format, for example PHP, ASP.NET, etc. . Not just HTML. Since...
Classification: UNCLASSIFIED ... This is the logic I use for Pretty Diff: if (apilang === "auto") { autotest = true; if (new RegExp(/^(92;s*<)/).test(apisource)...
Working with Node.js (and probably other SSJS solutions), it's pretty common to find yourself working with the file system and using file permissions the...
This is a little O/T, sorry for that in advance. I agree with Douglas on pretty much everything (he's even helped to get me physically fitter!) with one...