Coding style

April 17, 2019 ยท View on GitHub

We follow the standard JavaScript style, except for semicolons and trailing commas.

Additionally, we enforce a pretty strong functional programming style with ESLint, which includes:

  • no complex/big functions/files
  • no object-oriented programming
  • immutability everywhere
  • pure functions
  • no complex loops nor structures

Also we prefer:

  • named arguments over positional
  • async/await over raw promises or callbacks
  • destructuring
  • ...object over Object.assign()

Tooling

We are using editorconfig, so please install the plugin for your IDE.