Bug formatting typescript typecast when in parentheses and using typescript parser #11018
Labels
lang:typescript
Issues affecting TypeScript-specific constructs (not general JS issues)
scope:dependency
Issues that cannot be solved inside Prettier itself, and must be fixed in a dependency
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 2.3.1
Playground link
Input:
Output:
Expected behavior:
Should not have
SyntaxError
and to remove parentheses when formatting.The text was updated successfully, but these errors were encountered: