Enforce consistent brace style for all control statements

Proprietary

Wraps unbraced bodies of if/else, while, do...while, for, for...in and for...of statements in a block. An if directly after an else stays an else if rather than becoming else { if ... }. Replicates the autofix of the ESLint rule curly under its default options.

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

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