Trailing comma removed by prettier

Viewed 1115

I have been using prettier and esLint for format and validation. when I add a comma in the interface, it will be removed by prettier and because of this I am getting esLint error.

  interface iMergeByItem{ 
    title?: string,
    meals: any
 }

Consider the above scenario, the comma getting removed when I format the doc, I have tried prettier trailingComma configuration but nothing works on the interface contents

0 Answers
Related