Skip to content

Formatter adds extra indent to arrow function returning object literal #21068

Closed
@mjbvz

Description

@mjbvz

microsoft/vscode#41288 (comment)

TypeScript Version: 2.7.0-dev.20180108

Code

const foo = ({
	x,
	y
}) => ({
	y: x,
	x: y
});

Run format

Expected behavior:

Code unchanged

Actual behavior:

const foo = ({
	x,
    y
}) => ({
        y: x,
        x: y
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions