f2e-styleguide icon indicating copy to clipboard operation
f2e-styleguide copied to clipboard

F2E Code Style

F2E Code Style Guideline

Principle

The principle of F2E Code Style Guide is to write maintainable code. Maintainable code means code that:

  • Is readable.
  • Is consistent.
  • Is predictable.
  • Looks as if it was written by the same person.
  • Is documented.

Reference: The Essentials of Writing High Quality JavaScript

Sections

  • Abbreviation
  • File Naming
  • HTML Code
  • HTML Module
  • CSS Code
  • CSS Module
  • CSS Base
  • JavaScript Module
  • JavaScript Code
  • JavaScript Global Constants
  • JavaScript Localization