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

75
Views
Access parent class code in custom ESLint rule

Scenario: I want to check that a child class method calls a super class method using super keyword if parent class has such a method. Example:

// parent.ts
class Parent {
   a {
     // super class method
   }
}

// child.ts
class Child extends Parent {
    a { 
       // I want to check if parent class has method a 
       // then the child class should call super.a(). else show a warning
      super.a();
    }
}

This felt like a use case for writing a custom ESLint rule. I am not able to check if the parent class has a method with name a so far.

Is this possible with ESLint rules? Is custom ESLint rule a good thing to do this or should i use a different approach?

about 4 years ago · Santiago Trujillo
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!