Remove unconditional value overwrites

Proprietary

Remove consecutive assignments that write to the same object property or bracket-accessed key, since the first value is immediately overwritten and never used.

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

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