Skip to content

Commit 37a3032

Browse files
committed
Merge pull request airbnb#367 from christophehurpeau/patch-1
18.6: blocks and blank line: add example with array
2 parents ea4bf2f + 53ac64a commit 37a3032

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,26 @@
14151415
};
14161416

14171417
return obj;
1418+
1419+
// bad
1420+
const arr = [
1421+
function foo() {
1422+
},
1423+
function bar() {
1424+
},
1425+
];
1426+
return arr;
1427+
1428+
// good
1429+
const arr = [
1430+
function foo() {
1431+
},
1432+
1433+
function bar() {
1434+
},
1435+
];
1436+
1437+
return arr;
14181438
```
14191439
14201440

0 commit comments

Comments
 (0)