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

223
Views
How can I globally ignore lint for imports that are only used in JSDoc param types?

I introduced eslint into my backend. Now I get lint errors for code like the following example.

const ImAClass = require("../models/ImAClass.model.js");
 
/**
* Gets the class
* @param {ImAClass} class
* @returns {ImAClass} Returns the class
*/
function getClass(class) { 
    return class;
}

This will lead to the following error:

error 'ImAClass' is assigned a value but never used no-unused-vars

How can I get rid of this error, without spamming // eslint-disable-next-line no-unused-vars?

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!