typescript-formatter icon indicating copy to clipboard operation
typescript-formatter copied to clipboard

big chunks of whitespace

Open lukepighetti opened this issue 7 years ago • 0 comments

Given

export interface Project extends Timestamped {
  title: string;
  avatar: string;
  tags: { [key: string]: boolean };
  www: string;
}

export interface User extends Timestamped {
  name: string;
  avatar: string;
  premium: boolean;
  bio: string;
}

export interface Message extends Timestamped {
  uid: string;
  m: string;
}

export interface Timestamped {
  tc: number;
  tm: number;
}

tsfmt produces

export interface Project extends Timestamped {
    title: string;
    avatar: string;
    tags: { [key: string]: boolean };
    www: string;
}

export interface User extends Timestamped {
    name: string;
    avatar: string;
    premium: boolean;
    bio: string;
}

export interface Message extends Timestamped {
    uid: string;
    m: string;
}





export interface Timestamped {
    tc: number;
    tm: number;
}

lukepighetti avatar Oct 02 '18 13:10 lukepighetti