Coding Guidelines (original) (raw)

Intro

These are VS Code coding guidelines. Please also review our Source Code Organisation page.

Indentation

We use tabs, not spaces.

Names

Types

Comments

Strings

UI labels

Style

x => x + x (x, y) => x + y (x: T, y: T) => x === y

for (let i = 0, n = str.length; i < 10; i++) { if (x < 10) { foo(); } }

function f(x: number, y: string): void { }