reinforced / Reinforced.Typings

Converts C# classes to TypeScript interfaces (and many more) within project build. 0-dependency, minimal, gluten-free
MIT License
494 stars 76 forks source link

Feature - Allow setting Typescript code style #229

Open dotnetjunky opened 2 years ago

dotnetjunky commented 2 years ago

In TypeScript, it is very common to emit the open brace { on the same line as the current statement:

if (good) {
}

However, currently Reinfornced.Typings generate code in C# style:

if (good)
{
}

This is causing prettier error in my code base. It'd be very helpful to allow changing this coding style via the global settings.

Snazzie commented 2 years ago

In codebases i work on, i always exclude linting on all generated typescript files using .eslintignore. dont have to worry about any opinionated style inconsistencies.

darkguy2008 commented 3 months ago

+1. I just came here looking for a way to configure the styling of the output TS files. Regardless of user choice, for us who like prettier would appreciate a way we can modify that to accomodate to our coding style guidelines.