Search code examples
angulartypescriptintellij-14tslint

how to do auto Tslint in Intellij


I am using Intellij for doing angular project. I am getting a lot of tslint errors while writing the code.Is there any way to fix all the these lint errors in by using a command in intellij ?


Solution

  • One of the quick way to fix all the tslint errors would be to install visual studio code.

    It will have the auto-fix option to fix option to fix all the issues

    Event intellij has the option to do the same

    Alt-Enter on the highlighted problem and select either TSLint: fix current problem to fix only this particular issue or TSLint: fix current file to apply the fixes when possible to the whole file.

    enter image description here