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

Easier way to format the same files tsc would read #24

Open
alexeagle opened this issue Feb 14, 2016 · 1 comment
Open

Easier way to format the same files tsc would read #24

alexeagle opened this issue Feb 14, 2016 · 1 comment

Comments

@alexeagle
Copy link
Contributor

My use case is to format my TypeScript code, in a project that only uses tsc as the build system (no gulp).
I can use the new --glob syntax (thanks @filipesilva !) but I need to exclude node_modules. I need to exclude any generated code (eg. typings folder) as well.
At a minimum, we could allow a way to pass the options object to clang-format.
Anyhow I've used a src/ root directory as an easy fix.

@filipesilva
Copy link
Contributor

You mean these options? https://github.com/isaacs/node-glob#options

Perhaps we could add another arg, `--globOptions' that receives these in a stringified json without spaces.

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