Require let or const instead of var
ProprietaryReplaces var declarations with let when the conversion provably preserves semantics, leaving unsafe cases (redeclarations, including a same-named function in a nested block outside ES modules, uses outside the would-be block scope, uses before declaration, closure captures in loops, top-level var in files that are not modules, and similar) unchanged. Uses conservative safety checks for the ESLint rule no-var.
io. moderne. javascript. cleanup. NoVarmod run . --recipe= io. moderne. javascript. cleanup. NoVarInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.