Changes between Version 20 and Version 21 of WebInspectorCodingStyleGuide
- Timestamp:
- Jul 6, 2016, 7:06:48 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebInspectorCodingStyleGuide
v20 v21 5 5 == Tokens, spacing, indentation, syntax 6 6 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. 9 10 * The opening bracket `'{'` after a named, non-inlined function goes on the next line. Anywhere else, the opening bracket `'{'` stays on the same line. 10 11 * Style for object literals is: `{key1: value1, key2: value2}`. When key and variable names coincide, use the syntax {expression} rather than {expression: expression}.