Coding Coventions

Files and functions length

This rule is not followed everywhere in the code, but I put effort on applying it now, please do the same :)

Naming Convention


Html (nunjucks templates), Javascript/TypeScripts and CSS


Curly Bracket

Line return after functionName and parameters

myFunction(myParameter : any)
  // stuffs

Or inline function declaration myFunction() { return; }

Code Indentation

Always use 2 spaces for indentation of code blocks

Spaces Around Operators

Always put spaces around operators ( = + - * / ), and after commas:

var x = y + z;
var values = ["Volvo", "Saab", "Fiat"];

Continue with

Code Explanation