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

232
Vistas
Eslint interfere to Typescript type declaration

enter image description here

Hey, that's the code I am working with.

When I am declaring a type this error is shown.

So Eslint thinks that I have to use this var and, instead I am returning void.

To use
// eslint-disable-line
comment is not an option because I want to avoid unnecessary comments. Also I don't want to set it in Eslint configuration.

How should I overcome this issue? Thanks!

over 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

So I found a way to solve this issue. My mistake was to think that there is only the way to disable all unused vars, but appears that there is a way to disable only args on type declaration.

To disable only args you have to go to .eslintrc file and add rule: "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],

over 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
Asistente virtual