The following JS:  (function() {   "use strict";    $("#target").click(function(){     console.log("clicked");   });  }());   Yields:  test.js: line 5, col 3, '$' is not defined.   When linted using JSHint 0.5.5.  Any...
I'd like to use JSLint, but I am wary of tools that have access to my unfiltered source code. Is there an offline version or is there another similar tool that does "lint error checking" for JavaScript offline?  Edit: One with a GUI and t...
I have a Javascript browser project split over multiple files and can't get ESLint to lint the script tags of my HTML file under the same global scope so that declarations and calls of classes and functions in one file are recognised in another....
The ESLint rule for indent allows for you to specify which nodes are ignored, when determining whether the rule should apply to that node, using the ignoredNodes option.  I've got the following code that I want to ignore with this rule:  const a...
I'm working in a project with several javascript files and part of what I'm doing right now is both migrating existing code to use newer ES6+ features as well as making sure we're abiding by the AirBnB Eslint Rules.  So, given that contex...
I'm using the following typescript method to generate UUIDs. The code itself is basically the typescript version of this stackoverflow answer.  generateUUID(): string {     let date = new Date().getTime();     if (window.performance && ty...
I'm using ESLint on all my files, including the test files, with a no-unused-var: true rule. I'm using Should.js in my Mocha tests, and in one of the files, I'm getting an error on the should variable. A quick comparison to the other test...
I'm working on organizing some things and wanted to combined these two sets.  In fact I don't know of any other validator besides the W3 - http://validator.w3.org/  Linters - jslint | jshint | eslint Validators - w3   Is there any difference...
I have the following code:  class Car() {      constructor() {         // ...     }      withSemi() {         // ...     };  // ESLint does not complain here      withoutSemi() {        // ...     }  // ESLint does not complain here  };  // ESLint wi...
Surprisingly, there is not any good guide on this.  I cannot make the linter work. I have set the .eslintrc that extends airbnb on the directory where I save all my projects. I do not know if it is the right directory. I also did this. Nothing is bei...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.