Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

171
Vistas
ESLint no-multiple-empty-lines rule like but only inside object properties scope

Is there a way to prevent line breaks only inside object properties scope? Let me give you guys more context, I have the no-multiple-empty-lines configured like the below:

"no-multiple-empty-lines": [
    "error",
    {
        "max": 1
    }
]

Which means I can separate logical sections of code with the a single line (two \n):

var foo = 5;

var bar = 3;

Sadly it's also possible to line break object properties, something I'm trying to avoid:

const a = {
  b: 0,
  
  c: 2
}

So, again, here's my question: Is there a way to prevent that?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda