Skip to content

Latest commit

Β 

History

History
35 lines (25 loc) Β· 867 Bytes

File metadata and controls

35 lines (25 loc) Β· 867 Bytes

empty-brace-spaces

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

Examples

// ❌
class Unicorn {
}

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

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