Skip to content
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

Pass in the tsfmt options via an object #23

Closed
slavik925 opened this issue Sep 16, 2015 · 4 comments
Closed

Pass in the tsfmt options via an object #23

slavik925 opened this issue Sep 16, 2015 · 4 comments
Assignees

Comments

@slavik925
Copy link

Here is a common situation when working on a large project that contains many repos, but they are all sharing the same formatting style file. In this case to make the typescript-formatter work each repo requires it's own copy of the tsfmt.json, etc.

Could it be possible to add a method that allowed for the consumer to pass in the tsfmt options via an object?

@vvakame vvakame self-assigned this Sep 18, 2015
@vvakame
Copy link
Owner

vvakame commented Sep 18, 2015

um? Let me clarify my understanding.
you want to use tsfmt --configDir ../rootRepo ./**/*.ts style?

@slavik925
Copy link
Author

Yes, but the config not necessary to be in the .ts file. It could be even enough just to specify configDir where for example tsfmt.json will be lie.

I think the good place for adding this will be interface Options.

Here is the way how we will be using this baseDir property in the grunt plugin to pass it into processFiles function.

zrzut_ekranu_091815_043014_pm

@vvakame
Copy link
Owner

vvakame commented Sep 22, 2015

add --baseDir options and baseDir property for Option interface 👍

@slavik925
Copy link
Author

Thank you! This is really very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants