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

258
Views
El error es-lint no se puede deshabilitar en reaccionar

Tuve un error de eslint cuando intento confirmar la rama

 147:14 error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions

No puedo encontrar el problema en el código, también traté de agregar

 // eslint-disable-next-line no-unused-expressions

o

 /* eslint-disable no-unused-expressions */

Pero todavía tengo el mismo error.

 useEffect(() => { const setFile:any = [] const addedFiles:any = acceptedFiles && acceptedFiles.map((item:File) => { if(item !== null){ return { title: item?.name as string, fileName: item?.name as string, mediaType: 'SO', compositionType: 'O', album: '' }; }else {[]} }); setFile.push(addedFiles) if(addedFiles){ // **** the line 147 setFileList([...addedFiles, ...fileList]) } acceptedFiles && acceptedFiles.map((item:File) => { onUpload({ title: item?.name as string, fileName: item?.name as string, mediaType: 'SO', compositionType: 'O', album: '' }); }) }, [acceptedFiles]); return (...
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Olvidó agregar el prefijo @typescript-eslint/ al nombre de la regla.

Para deshabilitar esa regla de uso en línea:

 // eslint-disable-next-line @typescript-eslint/no-unused-expressions

Alternativamente, en su archivo .eslintrc, deshabilite la regla con la configuración

 "@typescript-eslint/no-unused-expressions": "off"
about 4 years ago · Juan Pablo Isaza Report
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!