if-newline
September 27, 2023 ยท View on GitHub
Enforce line breaks between if statements and their consequent / alternate expressions. Only applicable for inline if statements.
Rule Details
// ๐ bad
if (foo) bar()
// ๐ good
if (foo)
bar()