prettier/tests/last_argument_expansion
Christopher Chedeau 8d03423d17 Avoid breaking arguments for last arg expansion (#1305)
We've had this issue since the beginning and I tagged it as 1.0 but haven't managed to fix it by then. We shouldn't allow things to break in the argument list if we are in the last argument expansion mode. It turns out that we now have all the building blocks needed to fix this:
- have a special way to flag when we are printing the last argument expansion in the code that prints the argument list
- have a way to remove all the softlines from the argument list

Fixes #1301
2017-04-18 08:40:08 -07:00
..
__snapshots__ Avoid breaking arguments for last arg expansion (#1305) 2017-04-18 08:40:08 -07:00
arrow.js Add CallExpression to the last argument expansion whitelist (#470) 2017-01-26 17:24:50 -05:00
break-parent.js Use breakParent inside of last arrow expansion (#559) 2017-02-03 16:15:21 -05:00
break.js Avoid breaking arguments for last arg expansion (#1305) 2017-04-18 08:40:08 -07:00
edge_case.js Fix edge cases triggered by newlines in arrow functions (#1217) 2017-04-13 09:21:18 -07:00
jsfmt.spec.js Last argument expansion works for arrow functions that return JSX (#211) 2017-01-15 00:04:50 -05:00
jsx.js Last argument expansion works for arrow functions that return JSX (#211) 2017-01-15 00:04:50 -05:00
object.js Last argument expansion works for arrow functions that return JSX (#211) 2017-01-15 00:04:50 -05:00
overflow.js Fix overflow for last argument expansion (#1224) 2017-04-12 20:24:50 -07:00