The following JS:
(function() { \"use strict\"; $(\"#target\").click(function(){ console.log(\"clicked\"); }); }());
Yields:
You can also add two lines to your .jshintrc
"globals": { "$": false, "jQuery": false }
This tells jshint that there are two global variables.