Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Nov 13, 2020
1 parent 09292f7 commit f81cc29
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions changelog_unreleased/javascript/pr-9662.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#### Flatten function expression parameters in hugged last argument (#9662 by @thorn0)

<!-- prettier-ignore -->
```jsx
// Prettier stable
function* mySagas() {
yield effects.takeEvery(rexpress.actionTypes.REQUEST_START, function*({
id
}) {
console.log(id);
yield rexpress.actions(store).writeHead(id, 400);
yield rexpress.actions(store).end(id, "pong");
console.log("pong");
});
}

// Prettier master
function* mySagas() {
yield effects.takeEvery(
rexpress.actionTypes.REQUEST_START,
function* ({ id }) {
console.log(id);
yield rexpress.actions(store).writeHead(id, 400);
yield rexpress.actions(store).end(id, "pong");
console.log("pong");
}
);
}
```

0 comments on commit f81cc29

Please sign in to comment.