Request: TypeScript Code Style

The possibility of TypeScript in Meteor become a reality and official supported. It was discussed here Official TypeScript compiler coming to Meteor

We’re starting to convert some .js files to .ts



But I think we need to agree some code style for TS at first.

@benjamn Do you have idea about it? may be some template?

2 Likes

You could strick Prettier into your project. I use that for code style for HTML, CSS, JS, TS, etc.

1 Like

Of course, Prettier is very cool instrument.

But I mean TS very flexible language, and, e.g. you can define class field explicitly or via Parameter properties. So we need some paper to describe such cases, basic rules etc.

1 Like