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 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 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 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...
I cannot get the linter to lint the template part of my .vue files. Do you have any input on what I need to change in my configurations?  Overall, I would like the linter to adjust something like this:  <template>   <v-container>...
I have problem with spread and destructuring operator. After npm run lint:js I'll see:  TypeError: Cannot read property 'type' of undefined Occurred while linting C:\Users\USER\hq-manager-frontend\frontend\src\common\functions\projects.js...
I need an extension for checking, if my javascript has a semicolon on the lineend. By searching the extension i only could find auto set semicolon extension, but i want to check large existing code.  Maybe i can build a custom rule?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.