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 deliberately went against a rule but nothing happens. I've tried force-quitting several times. I've tried other rules and going against them. (Note, I am not talking about the VSCode extension for TSLint.) I wrote a pretty basic one:
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"quotemark": [
true,
"single",
"avoid-escape"
],
"semicolon": [
true,
"always"
]
},
"rulesDirectory": []
}
If you have not installed tslint extension and do not run tslint via task manually - VSCode will not "check" its rules.
VSCode has no "embedded" support of the tslint. You must install the aforementioned extension in order to get intellisense support you are looking after.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With