Remove self-assignments

Proprietary

Removes self-assignment statements such as x = x only for proven mutable local bindings. Preserves property assignments, which can invoke getters or setters, and assignments whose safety is uncertain.

io.moderne.javascript.cleanup.RemoveSelfAssignment
mod run . --recipe=io.moderne.javascript.cleanup.RemoveSelfAssignment

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