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 a module
  • Avoid using ids
  • Use bootstrap native classes
  • Use underscores lowercase notation to name classes