Changes between Version 20 and Version 21 of WebInspectorCodingStyleGuide


Ignore:
Timestamp:
Jul 6, 2016 7:06:48 PM (4 years ago)
Author:
Joseph Pecoraro
Comment:

Double quoted strings

Legend:

Unmodified
Added
Removed
Modified
  • WebInspectorCodingStyleGuide

    v20 v21  
    55== Tokens, spacing, indentation, syntax
    66
    7 * No trailing whitespace
    8 * Indent with 4 spaces
     7* No trailing whitespace.
     8* Indent with 4 spaces.
     9* Double quoted strings; use template strings if a bunch of interpolation is required.
    910* The opening bracket `'{'` after a named, non-inlined function goes on the next line. Anywhere else, the opening bracket `'{'` stays on the same line.
    1011* Style for object literals is: `{key1: value1, key2: value2}`. When key and variable names coincide, use the syntax {expression} rather than {expression: expression}.