Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 286 Bytes

if-newline.md

File metadata and controls

18 lines (14 loc) · 286 Bytes

if-newline

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()