-
Notifications
You must be signed in to change notification settings - Fork 1.1k
typescript (tsc) syntax checker defaults to earlier-than-ES5 #1807
Comments
They are, and the manual is supposed to tell you how: |
I figured out that the problem in my setup is a mix from my personal config vs. the project config. The syntastic makerpg flags worked and I have it working now. But I think the conceptual problem is a bit different, as the project has a tsconfig.json file that differs from my personal setup. Is there any way to use auto-generated flags by the project's tsconfig.json and its compiler options? |
No, but you can adapt this trick to look upwards for a |
Had troubles with TypeScript as well. |
@nomaed You're the second person to recommend it. I suppose this makes it a good time to retire the |
I suppose you're right. I am not familiar with vim scripting, so I can't say for sure, but is it possible to set the default behavior to detect whether |
The problem I've had using the typescript syntax checker involve the arguments flags that are passed to the typescript compiler (tsc binary).
The tsc binary does not have tsconfig.json support if any flag was passed to it, so I recommend that at least the default behaviour should be configurable by end-users.
Currently, this line is the problem: tsc.vim#L43
As there's no target give, people will always get the annoying legacy errors like:
These flags should be configurable, so I would suggest these two variables in order to influence the behaviour:
What do you think about that suggestion? Good/Bad?
If the suggestion would get accepted by @scrooloose or @jb55, I would love to implement it and create a pull request for it. Not sure where it's necessary to document this, though.
The text was updated successfully, but these errors were encountered: