Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

typescript/tsc checker: Allow configuring command line args #899

Closed
bitc opened this issue Dec 7, 2013 · 3 comments
Closed

typescript/tsc checker: Allow configuring command line args #899

bitc opened this issue Dec 7, 2013 · 3 comments

Comments

@bitc
Copy link
Contributor

bitc commented Dec 7, 2013

The syntastic checker for the TypeScript language uses the standard "tsc" compiler to check the source file.

Right now the "args" that are used for the tsc compiler is hardcoded as: --module commonjs

This should be configurable, so that users can set the options that are relevant for their project, for example: --target ES5 (enables the use of new language features) or --noImplicitAny (stronger error reporting)

@lcd047
Copy link
Collaborator

lcd047 commented Dec 8, 2013

It isn't hardcoded. Please try adding something like this to your vimrc:

let g:syntastic_typescript_tsc_args = '--target ES5'

See :help syntastic-config-makeprg for more information.

@lcd047 lcd047 closed this as completed Dec 8, 2013
@chevcast
Copy link

I'm glad someone else was as ignorant as I. Thanks!

@adikari
Copy link

adikari commented Mar 29, 2016

But should not it pick the configuration from the project root? If there is a tsconfig.json on the root of the project it currently does not respect it. This means I will have to use let g:syntastic_typescript_tsc_args = '--target ES5' in my vim configuration. However if I have 2 project that uses seperate configuration, then it will not work.

I hope it makes sense.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants