prettier/tests/last_argument_expansion
Christopher Chedeau 211e18bed2 Inline last arg function arguments (#847)
```js
SuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLongCall((err, result) => {
  // comment
});
```

currently breaks into

```js
SuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLongCall((
  err,
  result,
) => {
  // comment
});
```

which looks bad, instead this PR makes it break

```js
SuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLongCall(
  (err, result) => {
    // comment
  }
);
```

which look better
2017-03-02 22:29:53 -05:00
..
__snapshots__ Inline last arg function arguments (#847) 2017-03-02 22:29:53 -05: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
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 Inline last arg function arguments (#847) 2017-03-02 22:29:53 -05:00