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

Latest commit

 

History

History
26 lines (17 loc) · 699 Bytes

style_guide.md

File metadata and controls

26 lines (17 loc) · 699 Bytes

Style Guide

JavaScript

Two documents of interest:

Settings for your editor:

  • 80 columns max
  • 2-space indents, not tabs
  • No trailing whitespace, no extraneous linefeeds
  • Newline at end of file

Linting

Use the Closure linter to lint and automatically fix some errors (of certain types).

# Fix regular errors (missing goog.require/provide, etc)
anvil build :fixstyle

# Run full lint
anvil build :lint