All the trailing commas
This commit is contained in:
parent
04728ae03b
commit
afa6acc20a
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ General Style
|
||||||
if (x)
|
if (x)
|
||||||
return true; // Not fine
|
return true; // Not fine
|
||||||
```
|
```
|
||||||
- Terminate all multi-line lists with commas (if using a transpiler):
|
- Terminate all multi-line lists, object literals, imports and ideally function calls with commas (if using a transpiler). Note that trailing function commas require explicit configuration in babel at time of writing:
|
||||||
```
|
```
|
||||||
var mascots = [
|
var mascots = [
|
||||||
"Patrick",
|
"Patrick",
|
||||||
|
|
Loading…
Reference in a new issue