-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
No space after await in typescript parser (in some cases) #6608
Copy link
Copy link
Labels
area:rangesIssues about formatting/ignoring/etc segments of filesIssues about formatting/ignoring/etc segments of fileslang: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.
Metadata
Metadata
Assignees
Labels
area:rangesIssues about formatting/ignoring/etc segments of filesIssues about formatting/ignoring/etc segments of fileslang: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.
Prettier 1.18.2
Playground link
Input:
Output:
Expected behavior:
This is an interesting one, as I've found in my IDE if I select just that line and format I'll get the above unexpected output, but if I format the whole file I get the expected output.