Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

142
Vistas
How to disable prettier adding {" "} in jsx?

I have got a problem with prettier's formatting, which when I'm saving the code, it will add annoying {" "} to some parts of the jsx code e.g.:

enter image description here

I've searched about it how to fix this issue, but couldn't find any solution, can anybody help on this?

update

On prettier's GitHub, there is a related issue that seems unresolved. https://github.com/prettier/prettier/issues/4223

update2

Here is the reprex: prettier playground

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos