-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
as in array destructuring is printed wrong (babel-ts only) #10635
Copy link
Copy link
Labels
difficulty:easyIssues that should be easy to fix. Resolve me on the train to work!Issues that should be easy to fix. Resolve me on the train to work!help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)
Metadata
Metadata
Assignees
Labels
difficulty:easyIssues that should be easy to fix. Resolve me on the train to work!Issues that should be easy to fix. Resolve me on the train to work!help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)
This is valid TypeScript, but Prettier corrupts it. AST isn't aligned with typescript-estree.
Prettier pr-10416
Playground link
Input:
Output:
Originally posted by @thorn0 in #10416 (comment)