Disallow initializing variables to undefined
ProprietaryRemoves redundant undefined initializers from let declarations, e.g. let foo = undefined; becomes let foo;, and so does let foo = (undefined);. A declaration is left unchanged where a binding named undefined is in scope, or inside a with statement, whose object may supply undefined. Replicates the autofix of the ESLint rule no-undef-init under its default options.
io. moderne. javascript. cleanup. NoUndefInitmod run . --recipe= io. moderne. javascript. cleanup. NoUndefInitInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.