Skip to content

Coding Guidelines

kosalanuwan edited this page Apr 16, 2017 · 4 revisions

Git

We prefer a rebase workflow. Most work happens directly on the master branch. For that reason, we recommend setting the following:

git config --global pull.rebase true

NPM

We prefer to manage dependencies via npm. It's a good idea to have everyone on the same version. To make it easier to everone, we recommend setting the following:

npm config set save=true
npm config set save-exact=true

VS Code

Most of the development done using VS Code. We prefer having a common development workspace. For that reason, we recommend installing following:

Coding Style

We prefer a community driven JavaScript Style Guide when writing javascript. For that reason, we recommend to follow Airbnb javascript style guide.

Since some of the ES6 syntax doesn't are not supported by NodeJS yet we recommend to use existing best practices with ES5.