My only real issue with it is that you can't seem to only run it on specific files, it has to be run as part of the build on all .js files unless you exclude them. It would be nice to have a menu or a right-click option to "run JSLint on this document" or something like that.
It's also unfortunate that errors turn up as warnings in the normal error output window instead of in-line, but I can imagine coding it to show inline would be far more complicated.
This might not be a bug with the extension but rather VS2012, but I notice that the RAM used by devenv.exe is increased by several MB everytime I run "build".
I've not yet tried it, but someone else has had success using this tool in VS2013:
by Michael Obermeyer | December 16 2013 (From Reviews)
Great extension. It also worked with 2013 when I changed the version information, but not sure if you officially support it, yet.
My team are currently migrating from VS2012 to VS2010. We currently use a JSLint plugin and would like to continue using one after migration. Is there a planned release date for this completed extension? Using an alpha/beta version is not an option for us when developing production code.
I presume you use our jslint plugin for 2010? It is the same plugin, just with new references. Unfortunately a couple of the guids have changed.
I'm using this every day and so far only have the problems I mention. I hope to fix those this weekend. Its an open source project mainly developed by me - so I'm calling it beta because there are a couple of known bugs (mainly features strangely missing). Once I don't know of any known bugs, I'll change it to be called stable.
Hope that helps.. couple of weeks max.
I'm trying to get JSLint to ignore the extra long line defining an image, which works OK, but then it doesn't catch any CSS mistakes after the end comment. See example below. If I add the .licenseInput style after the ignore end comment, JSLint plugin doesn't complain. If I move it to before the ignore start comment, it complains about word-break (which is odd since that's a valid CSS3 attribute, which might be another issue).
/*ignore jslint start*/
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2..really long line snipped..Fo4AAQYAAA0piq4hbqwAAAAASUVORK5CYII=) top left no-repeat;
/*ignore jslint end*/
For example, can I have a file called "jslint_rules.js" and have the following content...
/*jslint plusplus: true, vars: true */
I would prefer not to have to put these overrides at the top of every file.
We have multiple products that all use some common folders. We're using Visual Studio's ability to include content in a project from outside the project (Content Include) for third party JS libraries and code we write for all projects to use. The code from the third party libraries often don't conform to jsLint or jsHint requirements, so when we run jsHint on our project at build, it reports tons of errors.
We've tried to exclude these folders from jsLint for VS2012 using the provided mechanisms, but whenever the build runs, the files are still checked and errors are reported.
Can anyone tell me the correct way to have these files excluded from these project's build process?