/javascript-styleguide

The home of the Spil Games JavaScript Style Guide, and related content.

JavaScript Style Guide

This is the home of the Spil Games JavaScript Style Guide, and related content.

Table of Contents

Goals

The goals of this repository:

  • Clear overview of rules
    • Commonly-agreed upon standards
    • Living document
  • Introduce & document tools, such as:
    • Style checker
      • Verify if code adheres to style guide
      • Runs via command line + integrated in build process
      • Runs in editor (SublimeText, etc.)
    • Provide .editorconfig (see editorconfig.org)
    • Style fixer: Automatically fix code (e.g., via CodePainter)

Sources

A lot of content in this repository originated from the following sources: