Search code examples
typeormprettier

Prettier: Keep multiple arguments in decorator in the same line


I recently upgraded from [email protected] to [email protected] and everything works great except for the following:

This line

@OneToMany(() => Address, address => address.contact, { cascade: true })

changed to this

@OneToMany(
    () => Address,
    address => address.contact,
    { cascade: true }
)

This really grinds my gears, has anyone an idea how to avoid this?


Solution

  • Ok, the problem is already solved and is released in 2.0.0.