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

303
Views
How can I avoid eslint error (Unexpected chained assignment no-multi-assign) in the code generated by typescript?

I have a .ts file where I have defined and exported two functions as follows:

export const foo = () => { ... }

export const bar = () => { ... }

The code works as expected and I am able to import these functions to other files.

However, when I run lint, eslint throws an error Unexpected chained assignment no-multi-assign

The compiled javascript code in fact shows chained assignment as follows:

exports.foo = exports.bar = void 0;

I could specify a eslint rule to disable the error, but I was wondering if someone could help me understand if I should be doing something differently to write a better syntax.

Note I also tried following with same result:

const foo = () => { ... }
const bar = () => { ... }

export {foo, bar}
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!