angular/clang-format

Easier way to format the same files tsc would read

alexeagle opened this issue · 1 comments

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.

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.