There's currently no rule to check this. We only have a rule that would 
require braces around if statements so far. However, it should be very 
simple to write this rule yourself. Check out this gist that might help you 
get started: https://gist.github.com/jareware/7179093

Thanks,

Ilya Volodin

On Monday, February 17, 2014 12:59:28 PM UTC-5, Mark Volkmann wrote:

> Great tool!
>
> Is there a way to configure it so this is okay (single-line if):
>
> if (a < b) c = d;
>
> but this is not okay (multi-line if without braces)
>
> if (a < b)
>   c = d;
>

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to