Zen Zen - 1 year ago 198
TypeScript Question

How can I use TSLint in VS Code?

I have installed TSLint in VSCode and created a

file next to
. But TSLint is not working. For example, I added
"curly": true
, 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 Source

The vscode-tslint extension currently crashes silently when it encounters an invalid config-option. In my case, it was the no-trailing-comma rule which has to be changed to trailing-comma.

More info here: https://github.com/Microsoft/vscode-tslint/issues/66