This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I like the fact that you included the jshint code quality tool with your bundle. I like to use the "use strict"; statement to make sure my code lives up to the standards, but I miss the core feature from jshint.com that is "assume jQuery". That means that I wont get any errors for using undeclared variables jQuery or $. Is there some setting I am not finding, or is this not implemented? Regards, Matts |
|
|
I found out via the jshint specs that you can set these options as comments per file. I am still missing the possibility to set the global options though. /*jshint browser:true*/ /*global $:false jQuery:false*/ |
|
|
What you have listed above should be fine - e.g.
Produces the following error as expected: JSHint (5, 5): Redefinition of 'foo'.
|
|