TypeScript Parenthesis Formatting

Viewed 248

Recently my team noticed that the output from compiling TypeScript files under VS 2013 differed from those compiled under VS 2015 in that the self-executing function parentheses style at the end of each function is slightly differently.

The difference looks like this: enter image description here

This is annoying because we're constantly having to overwrite each other's changes or else having to revert the changes to all of the TypeScript compiled .js and .js.map files every time one of us builds.

Once our entire team updated to VS 2015, the issue went away, except for one person on our team who still sees these minor changes every time he builds on his machine. We are all running Visual Studio 2015 with TypeScript 1.8.6.0 installed.

We walked through the options under Project Properties -> TypeScript Build to verify everything is set the same, and they are. We also checked that everything is configured the same in Tools -> Options -> Text Editor -> TypeScript between the two machines.

The .csproj file is set up with <TypeScriptToolsVersion>1.8</TypeScriptToolsVersion>, which obviously is the same between both machines as well.

The only difference we can figure is that the guy who's machine compiles differently exported his VS 2013 settings and imported them into VS 2015, while the rest of us just started fresh with 2015, even though we've verified that all the relevant settings are the same.

Is there some hidden setting or configuration file somewhere that could cause the TypeScript compiler to behave differently that we're missing?

1 Answers
Related