Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 703 Bytes

CODING_STYLE.md

File metadata and controls

22 lines (13 loc) · 703 Bytes

In general, follow the Google Javascript Style recommendations:

https://google.github.io/styleguide/javascriptguide.xml#JavaScript_Style_Rules

Highlights:

  • use (two) spaces, not Tabs

  • use lowercase for all TS files, use camelcase for the related TS types insert underscores in the filename for uppercases in the type name, such as

    HalfEdge -> half_edge.ts

  • sequence of TS references:

    (1) External references (2) Internal references from other directories, alphabetically ordered (3) Internal references from the current directory, alphabetically ordered

    Sometimes, however, you need to modify this sequence to avoid bootstrap issues.

  • place an empty line after the references