-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
TSX spread bug still persists. #4872
Copy link
Copy link
Closed
Labels
lang:jsxIssues affecting JSX (not general JS issues)Issues affecting JSX (not general JS issues)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.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencystatus:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Milestone
Description
Previous issue is locked #3158
Prettier 1.13.7
Playground link
--parser typescriptInput:
const x = <div>{...[0]}</div>Output:
const x = <div>{[0]}</div>;Expected behavior:
const x = <div>{...[0]}</div>;VSCode-prettier and npx prettier Untitled1.tsx both without any configuration give the same result.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang:jsxIssues affecting JSX (not general JS issues)Issues affecting JSX (not general JS issues)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.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencystatus:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!