Upgrade ECMAScript 5 to ECMAScript 6

Proprietary

Upgrades ECMAScript 5 code to ECMAScript 6 syntax: let/const instead of var, object literal shorthand, arrow function callbacks, template literals, modern octal literals and escape sequences, and no redundant 'use strict' in ES modules. Only changes code where the conversion keeps its semantics, so some var declarations and function expressions may stay. Vendored, bundled and build-output files are left unchanged.

io.moderne.javascript.migrate.es6.ModernizeToES6
mod run . --recipe=io.moderne.javascript.migrate.es6.ModernizeToES6

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.