JavaScript and TypeScript conventions¶
Practices¶
Where applicable, follow the Java guidelines.
Always use strict mode, and generally use ===
, not ==
. Use for
…of
instead of for
…in
.
Formatting¶
Prettier will handle almost all formatting. Just set the max line length to 120.