-
Notifications
You must be signed in to change notification settings - Fork 25
How I can configure it to target ES5 when checking for errors? #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If I recall correctly, I used ES5 as the default target, with no configuration, but it has been a while. I'm going to spend some time on this project next week anyway, because of #39. Given that TS1.4 has some ES6 capabilities, being able to configure the target sounds like a good idea. |
@hippich can you provide a small test case that shows the error? |
I got this error with simple test.ts file with the following content:
|
Thanks, that helps: I still see no error, with:
same if I load directly from file (instead of updating an empty file) |
Uh, I am so sorry to waste your time on this - it turned out default configuration of Syntastic plugin was throwing it off. Yes, tss seems alright! Thank you! |
I am getting a lot of:
"TS1056: Accessors are only available when targeting ECMAScript 5 and higher."
And was wondering if there is a way to configure it to use ES5 standard?
The text was updated successfully, but these errors were encountered: