vaadin / vaadin-connect

A Vaadin Labs experiment with a secure stateless communication framework
https://vaadin.com/labs/vaadin-connect
Apache License 2.0
18 stars 5 forks source link

Generate pretty files #347

Open Artur- opened 5 years ago

Artur- commented 5 years ago

It is hard to read

export function listPage(
  page: number,

  size: number
): Promise<Event[]> {
  return client.call('EventEndpoint', 'listPage', {page, size});
}

compared to

export function listPage(page: number, size: number): Promise<Event[]> {
  return client.call("EventEndpoint", "listPage", { page, size });
}

Either the code should be generated with proper indentation immediately or then run through a formatter/prettifier

vlukashov commented 5 years ago

Pick a correct formatter and make sure it's run automatically after the generator finishes writing out files.