empty-brace-spaces

March 27, 2026 Β· View on GitHub

πŸ“ 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.

Examples

// ❌
class Unicorn {
}

// βœ…
class Unicorn {}
// ❌
try {
	foo();
} catch { }

// βœ…
try {
	foo();
} catch {}