Remove self-assignments

Proprietary

Removes assignment statements where a variable is assigned to itself, such as x = x or this.x = this.x. These statements have no effect and typically indicate a programming error.

org.openrewrite.javascript.cleanup.RemoveSelfAssignment
mod run . --recipe=org.openrewrite.javascript.cleanup.RemoveSelfAssignment

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