Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

261
Vistas
Command-line tool to check JavaScript file ECMAScript version

I'm working on a large (very large) project with tons of JavaScript files that are constantly being modified by different teams in different locations around the world. Some devs have used ES6 syntax which we need to find because some parts of our code have to run in browsers that don't support ES6 syntax.

We have been asked to check all our code to make sure that we haven't inadvertently used any ES6 syntax and I was wondering what would be the best way to check lots of JavaScript files in lots of sub-folders?

Other similar questions I've found on SO have answers saying to use JSLint or similar...this is great for checking as you go along, but there are too many files to do manually.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Easy done ES Check

Side Note

Some devs have used ES6 syntax which we need to find because some parts of our code have to run in browsers that don't support ES6 syntax.

Rather than finding ES6 code to replace it with ES5 (which is a waste of resources) you should simply take your codebase and transpile it to ES5 with a tool like Babel. Your devs keep working with whatever EcmaScript version they prefer and you get ES5 code at the end of the day.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda