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.
Easy done ES Check
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.