Sorry about the issue title, couldn't think of anything else.
Prettier version: 1.4.4
Input
room = room.map((row, rowIndex) => (
row.map((col, colIndex) => (
(rowIndex === 0 || colIndex === 0 || rowIndex === height || colIndex === width) ? 1 : 0
))
))
Output
room = room.map((row, rowIndex) =>
row.map(
(col, colIndex) =>
rowIndex === 0 ||
colIndex === 0 ||
rowIndex === height ||
colIndex === width
? 1
: 0
)
);
Shouldn't the 2nd & 3rd output line be together? i.e.:
room = room.map((row, rowIndex) =>
row.map((col, colIndex) =>
rowIndex === 0 ||
colIndex === 0 ||
rowIndex === height ||
colIndex === width
? 1
: 0
)
);
Also, I don't know if the _OR chained statements output_ is that way by design, but that too looks weird here.
We shouldn't need to indent here, thanks for the report!
Most helpful comment
We shouldn't need to indent here, thanks for the report!