typescript-formatter
typescript-formatter copied to clipboard
fix(provider): read TS Lint indent size
The TS Lint indent rule can specify the indentation size:
"indent": [true, "spaces"]
"indent": [true, "spaces", 4]
"indent": [true, "tabs", 2]
This patch allows tsfmt to read that size and correctly set the formatting options. This means that tslint and tsfmt do not fight over the indentation size.
@vvakame not sure if the travis error is a result of this patch?
@vvakame any chance you could have a look at this? Would be a really good quality of life improvement for the project; means that with a tslint.json there is zero need for a tsfmt.json if there is a change in indent specified.
I'm not sure why console is being defined globally twice on the CI.