Select to view content in your preferred language

jsapi_vsdoc_v31, Aptana Studio 3 and the JSLint validator, 100's of warnings?

2270
2
08-20-2012 11:09 AM
MarkReidy
Emerging Contributor
Hi,
I'm using jsapi_vsdoc_v31.js, Aptana Studio 3, and the JSLint validator. I am getting 800 or so 'missing "use strict" statement' warnings. Is my configuration bad, or is there a problem with the jsapi_vsdoc?
0 Kudos
2 Replies
derekswingley1
Deactivated User
Sounds like a JSLint related issue. You can probably address it by tweaking JSLint options, but I have no idea how to do that. As an alternative, you could look into using the different but equally useful linter JSHint.

Also, it's not necessary to link the vsdoc file as it's not something that will be part of your app. You should only need to lint code you write.
0 Kudos
JeffJacobson
Frequent Contributor
Try putting the following at the top of the jsapi_vsdoc_v31.js file:
/*jslint sloppy: true */
0 Kudos