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

254
Views
¿Cómo configurar las reglas de sangría de Eslint para 3 espacios?

Me gusta usar la sangría de mi archivo Javascript en 3 espacios. Pero a Eslint no le gusta esta forma y me da una advertencia de sangría. ¿Cómo debo arreglarlo?

Y cuando trabajamos con el equipo, otros miembros del equipo pueden configurar su editor y formateador de manera diferente. En este caso, ¿cómo debo configurar Eslint? Y también, ¿qué pasa si no quiero que Eslit me dé ningún error de sangría?

 error Expected indentation of 2 spaces but found 3 warning Expected indentation of 2 spaces but found 3 spaces warning Expected indentation of 4 spaces but found 6 spaces warning Expected indentation of 4 spaces but found 6 spaces warning Expected indentation of 2 spaces but found 3 spaces

Aclaración de los comentarios:

"No uso más bonito"

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

puede usar el siguiente código para configurarlo

 "indent": ["error", 4] // Indent with 4 spaces "react/jsx-indent": ["error", 4] // Indent JSX with 4 spaces "react/jsx-indent-props": ["error", 4] // Indent props with 4 spaces
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!