Skip to content

Style Guide

Garett Tok Ern Liang edited this page Sep 8, 2019 · 1 revision

Organize imports as follows (preferably, but not necessarily in this order):

  1. React imports (React + PropTypes)
  2. Component imports (stylesheets, other components self-written) - condense this under React imports if there aren't too many of them.
  3. Redux/routing imports (selectors, connect, routing)
  4. Additional/External Imports (general code, importing other libraries)
  5. API imports

Follow es-lint as required in the pre-commit hook.

Prefer a new line in between every function.

Any proposed change can be done via an issue.

Clone this wiki locally