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

Should support tslint "trailing-comma" rule

Open Maximaximum opened this issue 7 years ago • 1 comments

When trailing-comma is set to false,

export enum CompanyType {
    Customer = 1,
    Supplier = 2,
    FreightAgent = 3,
    None = -1,
}

should get converted to

export enum CompanyType {
    Customer = 1,
    Supplier = 2,
    FreightAgent = 3,
    None = -1
}

Maximaximum avatar May 04 '18 09:05 Maximaximum

same as #127 I recommend you to use tslint --fix. Do you try it already?

vvakame avatar May 17 '18 03:05 vvakame