Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

171
Visualizações
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!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

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" }],

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda