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

299
Visualizações
How to setup linting rules for functions calls without brackets ()

Coming from java, I've spent many a day debugging what almost inevitably could be summed up as the compiler/linter not warning of function calls made without the brackets.

i.e with a class as such:

export class democlass {

function demofunction(){

    }
}

Very often, in TS/js, on calling demofunction from another class, I'll do this

instanceOfDemoClass.demofunction

instead of

instanceOfDemoClass.demofunction();

Obviously, in java, the compiler will immediately scream at you, a behaviour which Ts/VScode doesn't exactly emulate.

I'd like to setup a rule to warn about this call if, of course, the called class doesn't contain a property named "demofunction".

Any help/experience with this problem?

Cheers

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