The IDE being used is WebStorm 11.0.3, the tslint is configured and works, but, it hangs because it tries to parse large *.d.ts library files.   Is there a way to ignore a particular file or directory?...
VS Code does not recognize the ES7 bind syntax out of the box. Instead, it shows up as a syntax error:  Example of highlighted error in code  [ts] Declaration or statement expected.    I've searched around to see if there's an extension that...
I am writing a program using typescript and tslint as a linter. My current favorite list of rules is the following (tslint.json):  {     "extends": "tslint:recommended",      "rules": {         "comment-format": [false...
I tried use tslint --fix but get bash: tslint: command not found....  I installed tslint using command: yarn global add tslint typescript.  My machine use Centos 7....
I have a function that checks for the current stage in a sequential stream, based on a particular discipline that is passed in, and, according to that value, assigns the next value in my Angular 2 app. It looks something like this:  private getNextSt...
I'm leading a team working on Angular2+/Typescript project and I just want to know if there is a way to disallow disabling any TSLint rules.  We are using VSCode and my team's developpers trend to disable rules for to many line:    After clic...
I've encountered this a bunch and have finally decided to figure out what the right way to do it is.  If I have an abstract parent class that declares a method, and then some of the concrete sub-classes implement real logic in their implementatio...
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...
After eslint adds typescript check, there will be an error when the attribute variable in the class definition is Array.         this is my eslintrc.js  module.exports = {   root: true,   env: {     node: true   },   'extends': ['plugin:v...
I just coded the following loop which works just fine:  let position = 0; // tslint:disable-next-line:no-conditional-assignment while ((position = source.indexOf('something interesting', position)) > 0) {     // do something interesting wi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.