Kiikurage/babel-plugin-flow-to-typescript

Reformats this for no reason

nickretallack opened this issue · 1 comments

Input:

// @flow
const f = x => ({a: 'a', b: 'b'}[x]);

Output:

const f = (x) =>
  ({
    a: 'a',
    b: 'b',
  }[x]);

With --no-prettier:

const f = x => ({
  a: 'a',
  b: 'b'
})[x];

It could have left that line alone.

Sorry, filed this issue on the wrong repo.