Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

305
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!