CODING GUIDELINES

JavaScript & CSS Coding Structure

JavaScript
  • Use UpperCamelCase for class declarations
  • use strict; is recommended for all javascript files
  • Never add minified JavaScript libraries
  • Use a linter (jshint, ...)


CSS
  • Prefix all the classes with o_<module_name> where module_name is the technical name of module
  • Avoid using ids
  • Use bootstrap native classes
  • Use underscore lowercase notation to name classes