Skip to content

TypeScript conventions

Also covers JavaScript.

Practices

Where applicable, follow the Java guidelines.

Always use strict mode, and generally use ===, not ==. Use forof instead of forin.

Formatting

Prettier will handle almost all formatting. Just set the max line length to 100.