Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Coding Styles & Standards

Kiki Pluche edited this page Nov 17, 2017 · 1 revision

Master branch and version releases do not have…

  • Comments
  • Commented out code
  • Todo items
  • Console logs
  • Debuggers
  • Incorrect indenting
  • Spacing between functions
  • Spacing between css selectors
  • Unused functions
  • Unused properties
  • Unused CSS selectors
  • Dependencies with the ^ greater than version
  • Any more CSS classes than is absolutely needed
  • Imported fonts
  • Any more images than we need use sprites in SVG or WEBP

Master branch and version releases do have

  • Component descriptions and examples
  • Property definitions with
  • Function definitions with @param and @returns
  • All functions have promises
  • All functions have a try / catch
  • All promises have a catch
  • Promise .then is not nested
  • Functions use the fat arrow
  • Let and const are used in place of var
  • Extra line return at the end of the page

Examples