1

If I write something like this:

  {
    factors.map((factor) => (
      <li>{factor}</li>
    ))
  }

I've got something like this by prettier:

  {factors.map((factor) => (
    <li>{factor}</li>
  ))}

Someone knows what rule I must add to avoid this behavior? I'm searching but I can't find nothing useful =(

That's my current prettier config:

{
    "tabWidth": 4,
    "useTabs": false,
    "singleQuote": true,
    "semi": false,
    "printWidth": 120,
    "arrowParens": "avoid"
}
dawalberto
  • 96
  • 5

1 Answers1

1

This is not possible, you can see all options available here

Reifocs
  • 704
  • 3
  • 16