Fix linebreak in member chain (#17251)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-12-29 15:25:29 +08:00
1 parent 6c339cd882
commit 88ffc016db
17 files changed
+470 -1

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
#### Fix linebreak in member chain (#17251 by @fisker)
<!-- prettier-ignore -->
```tsx
// Input
model = types
.model({ something: mxSomething })
.volatile<| "a" | "b">(() => [
annularThingamabobWrapper,
octahedralWeevilService,
cantileveredRhubarbProcessor,
annularPlatypusGenerator,
]);
// Prettier stable
model = types
.model({ something: mxSomething })
.volatile<
"a" | "b"
>(() => [annularThingamabobWrapper, octahedralWeevilService, cantileveredRhubarbProcessor, annularPlatypusGenerator]);
// Prettier main
model = types
.model({ something: mxSomething })
.volatile<"a" | "b">(() => [
annularThingamabobWrapper,
octahedralWeevilService,
cantileveredRhubarbProcessor,
annularPlatypusGenerator,
]);
```