Prettier 1.14.2
Playground link
Input:
async function HelloWorld() {
const myLongVar: LongTypeDefinition = await CallingObject.thenMethod().anotherObject.anotherMethod();
}
Output:
async function HelloWorld() {
const myLongVar: LongTypeDefinition = await CallingObject.thenMethod().anotherObject.anotherMethod();
}
Expected behavior:
async function HelloWorld() {
const myLongVar: LongTypeDefinition = await CallingObject
.thenMethod()
.anotherObject
.anotherMethod();
}
Possibly a duplicate of #2548, but that issue has been open for over a year and have been ignored. Couldn't find a case where people are complaining the chaining from object to method to object is not formatting.
Prettier 1.14.2
Playground link
Input:
Output:
Expected behavior:
Possibly a duplicate of #2548, but that issue has been open for over a year and have been ignored. Couldn't find a case where people are complaining the chaining from
object to method to objectis not formatting.