fix(formatter): Do not consider rest param as simple#17354
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #17354 will not alter performanceComparing Summary
Footnotes
|
ff59dde to
d53c16d
Compare
d53c16d to
99b68ec
Compare
77f526c to
4df8063
Compare
Merge activity
|
Closes #17269 Update: Changed parent branch to `main`
99b68ec to
745bc5d
Compare
#18835) Closes #16177 ## Summary - Adds a regression test for issue #16177 ## Details The issue was that member chains would incorrectly break when a function expression had rest parameters: **Before (incorrect):** ```ts jest .spyOn(Element.prototype, "getBoundingClientRect") .mockImplementation(function (this: Element, ...args) { ``` **After (correct - matches Prettier):** ```ts jest.spyOn(Element.prototype, "getBoundingClientRect").mockImplementation(function ( this: Element, ...args ) { ``` This was fixed by #17354, which ensures the `rest` parameter is not considered "simple", allowing the member chain to stay hugged while function parameters break vertically. 🤖 Generated with [Claude Code](https://claude.ai/code)

Closes #17269
Update: Changed parent branch to
main