-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 2.0.3
Playground link
# Options (if any):
--single-quoteInput:
function foo() {
return {
foo,
foo,
} as FOO
}Output:
function foo() {
return (
{
foo,
foo,
} as FOO
);
}Expected behavior:
same as input
function foo() {
return {
foo,
foo,
} as FOO
}moltar, kirillgroshkov, akaRem and mbs-zanas-stundysmbs-zanas-stundys
Metadata
Metadata
Assignees
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.