biomejs/biome

๐Ÿ“Ž Implement formatting option to include space inside parens, braces, brackets, etc.

Opened this issue ยท 0 comments

Description

Add formatting option to include spacing inside parentheses, square brackets, curly braces, and angle brackets.

For example, this input:

function id<TypeArg>(x: TypeArg): TypeArg {
	return x;
}
const arr = [1, 2, 3];
if (id(true)) {
	// โ€ฆ
}

Would be formatted as follows with a "space inside" option enabled:

function id< TypeArg > ( x: TypeArg ): TypeArg {
	return x;
}
const arr = [ 1, 2, 3 ];
if ( id( true ) ) {
	// โ€ฆ
}

See #2360 (comment).