menu
no-empty
Disallow uncommented empty block statements
An empty control-flow block and an accidentally unfinished block have the same source shape. Instead, you SHOULD remove the construct, implement its body, or explain the intentional empty body with a comment.
Reported
1declare function ready(): boolean;2 3if (ready()) {}Accepted
1declare function ready(): boolean;2 3if (ready()) {4 // no action is required while ready5}