JSHint and jQuery: ‘$’ is not defined
The following JS: (function() { “use strict”; $(“#target”).click(function(){ console.log(“clicked”); }); }()); Yields: test.js: line 5, col 3, ‘$’ is not defined. When linted … Read more
The following JS: (function() { “use strict”; $(“#target”).click(function(){ console.log(“clicked”); }); }()); Yields: test.js: line 5, col 3, ‘$’ is not defined. When linted … Read more
I have a (single) case in my app were eval is used, and I would like to suppress JSHint warning only for this … Read more
This is the error I get when using const: <error line=”2″ column=”1″ severity=”warning” message=”'const' is available in ES6 (use esnext option) or Mozilla … Read more
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be … Read more
In order to turn off linting rule for a particular line in JSHint we use the following rule: /* jshint ignore:start*/ $scope.someVar = … Read more