Fix linebreak in member chain (#17251)
This commit is contained in:
1 parent
6c339cd882
commit
88ffc016db
17 files changed
+470
-1
No files matched your search
@@ -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,
|
||||
]);
|
||||
```
|
||||
Reference in new issue
Block a user