Closed eppsilon closed 5 years ago
I believe this is a tslint bug. Do you get same error running tslint from the command line?
What versions of tslint and typescript are you using?
Actually I can hit something like this if I have TS 3.1.4 installed in a workspace but an using VS Code TS version 3.2.0-rc. Potentially caused by Tslint using the wrong TS version
@mjbvz Yeah, I am seeing the same thing with almost the same setup -- TS 3.1.6 but vscode using TS 3.2.0-rc
One case seems caused by:
"whitespace": [
true,
"check-type"
]
for code like:
interface I {
x?: number;
}
TSLint wants it formatted as:
interface I {
x? : number;
}
Can't repo this using the command line version of TSLint yet, even installing 3.2.0-rc in workspace
Yeah, also:
"whitespace": [
true,
"check-rest-spread",
]
wants code like:
...args
to be:
... args
And it doesn't matter if check-rest-spread
is specified or not
Upstream issue. This was supposed to be closed by https://github.com/Microsoft/typescript-tslint-plugin/commit/ee48c7f9e334440fb4a4ea9f3bbce423db360a15
Hi,
I'm seeing a "missing whitespace" error with code that looks like this:
The error is on the first letter of
arr
in the JSDoc comment. Strangely it goes away if I remove the constant.