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 cannot figure out why my tslint even want to see the trailing comma on the end of the last line in the objects? How can I set the ignore rule for the last line of the objects for example? Thanks.  Exemple:    props = {     prop1: 21, // good     pr...
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...
So, I have my tsconfig.json and tslint.json at the root of my project. When I run tslint, it displays all of the errors in Terminal. But I do not get any hints/lines in VS Code. I'm driving myself crazy trying to figure out why it won't work....
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.