Naming Rules

  • Folder (plural? & small case with __)
  • File naming (small case with __)
  • Class with PascalCase + suffix 'Cls' (only one export at the end of file)
  • Variables & methods even nested must begin with lower case (camel case)
  • Function params with underscore
  • Keys in object with lower case (camel case)
  • Page constants in CAPS separated by _
  • Add cst prefix in all selectors
  • If variable is an array then name should be plural. Ex: items = []
  • If variable is an object then name should be singular. Ex: item = {}