I'm using TSLint within Visual Studio Code (via the TSLint extension), and it's great for .ts
files. It also runs on .js
files, which is good, but it does not use the same rules, which is bad (for me). How can I make it use the same rules?
My tslint.json
looks like this:
{
"extends": "tslint:latest",
"rules": {
"indent": [true, "tabs"],
// a bunch of others
}
}
And for example, I'm getting this warning in a .js
file:
[tslint] space indentation expected (indent)
(It wants me to use space indentation, when my rules are set up for "tabs"
.)