Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature: Force `else` to go on same line as closing brace #4692
Since I'm using "1tbs" for "brace-style", I prefer an
However, eslint does not warn for this code:
presumably because the
It would be nice if there were a way to detect this anyway. I would like to force code to look like:
See also #4591.
@andy-hanson Thanks for the issue! If you're reporting a bug, please be sure to include:
Requesting a new rule? Please see Proposing a New Rule for instructions.