π Enforce no spaces between braces.
πΌπ« This rule is enabled in the β
recommended config. This rule is disabled in the βοΈ unopinionated config.
π§ This rule is automatically fixable by the --fix CLI option.
Empty blocks and object literals do not need internal whitespace, so this rule enforces a compact, consistent style.
// β
class Unicorn {
}
// β
class Unicorn {}// β
try {
foo();
} catch { }
// β
try {
foo();
} catch {}