How can I use TSLint in VS Code?

Zen picture Zen · Apr 22, 2016 · Viewed 59.6k times · Source

I have installed TSLint in VSCode and created a tslint.json file next to tsconfig.json. But TSLint is not working. For example, I added "curly": true to tslint.json, but when I write a if statement without curly braces, VS Code doesn't give any warning. What does this extension do?

enter image description here

Answer

V.B. picture V.B. · Feb 6, 2017

On a new machine, I installed VS Code tslint extension before installing tslint itself (via npm), and nothing helped to make it work other than disabling and re-enabling the extension.

enter image description here