Skip to content

Latest commit

Β 

History

History
31 lines (18 loc) Β· 641 Bytes

CODING_GUIDELINES.md

File metadata and controls

31 lines (18 loc) Β· 641 Bytes

CODING GUIDELINES

GENERAL

  • Comments

JS/JSX

Functions

  • All functions are named with underscore_case syntax.
  • Private functions are prefixed with _.
  • Modules always are bundled.

Variables

  • Variables are const by default and let when necessary.
  • All variables are named with underscore_case syntax.
  • Private variables are prefixed with _.

Modules

  • When a code section is reused, it must create a new module or component.

Imports

  • Imports are sorted by type and separated by an empty line.

Various

  • Global constant are stored in a file and are UPPERCASED.