prettier / eslint-config-prettier

Turns off all rules that are unnecessary or might conflict with Prettier.
MIT License
5.39k stars 255 forks source link

The comma format of prettier can not replace comma-style #223

Closed SherrybabyOne closed 2 years ago

SherrybabyOne commented 2 years ago

For the following code:

foo(
  aVeryVeryLongArgument, anotherVeryLongArgument
  , callback
);

The correct style should be:

foo(
  aVeryVeryLongArgument,
  anotherVeryLongArgument,
  callback
);

The trailingComma provided by prettier does not solve the above problem, so I think comma-style of eslint should be enabled