Zen Zen - 4 months ago 47
TypeScript Question

How can I use TSLint in VS Code?

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

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

Comments