Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 756 Bytes

Style.md

File metadata and controls

21 lines (15 loc) · 756 Bytes

Code style

This file describes the style of the code used in the project. Code style is highly subjective, but we tried to stick to the following guidelines when writing the code. Is is recommended that you follow the same guidelines when contributing to this project.

Typescript vs Javascript

  • Typescript
    • Use semicolons at the end of statements
    • Use Typescript features whenever possible (avoid javascript-like imports, etc)
    • Never use var, always use let or const
    • Indent is 4 spaces.
    • Use "" for string literals, '' for char literals.
  • Javascript & HTML/CSS
    • 2 Spaces indent
    • JS: No Semicolons

Code comments