typescript-formatter icon indicating copy to clipboard operation
typescript-formatter copied to clipboard

fix(provider): read TS Lint indent size

Open mattyclarkson opened this issue 7 years ago • 2 comments

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.

mattyclarkson avatar Sep 27 '18 15:09 mattyclarkson

@vvakame not sure if the travis error is a result of this patch?

mattyclarkson avatar Sep 27 '18 16:09 mattyclarkson

@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.

mattyclarkson avatar Nov 09 '18 10:11 mattyclarkson