clang-format: ensure each interface field is on a new line for Typescript

Viewed 38

When I use clang-format with typescript, I get this output:

export type IDimensions = {
  width: number; height : number;
};

What I want is:

export type IDimensions = {
  width: number;
  height : number;
};
0 Answers
Related