code-style
Installation
SKILL.md
Code Style
Brace Style
Single-line if without braces is OK only when the entire statement fits on one line:
// OK — fits on one line. But then we need an empty line after the statement, except there is another if, then we need an empty line after the last if.
if (x) doThing();
//OK
if (x) doThing();
if (y) doThingY();
if (z) do ThingZ();
let x = 1