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

204
Vistas
Is there a ESLint rule to recommend using a?.b?.c instead of a.b.c to avoid some error

In my project, there is a lot of getters like a.b.c to get the c prop from a, but sometimes it does not have b prop in a, so my app is crashing. I know the lodash/get is the right way to avoid this problem, but there is a couple of people working together on the project and everyone has different writing style. So I was wondering if there is ESLint rule to do following:

  1. scan the code like a.b.c
  2. report to change a safer way to get prop
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you are able to use babel or typescript in your project then you could try optional chaining in combination with eslint rule no-unsafe-optional-chaining

about 4 years ago · Juan Pablo Isaza Denunciar
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