-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlang: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 3.0.2
Playground link
--parser markdown
Input:
```ts
const t = <T,>() => {};
```
```tsx
const t = <T,>() => {}
```
Output:
```ts
const t = <T,>() => {};
```
```tsx
const t = <T,>() => {}
```
The second codeblock prints a trailing comma and it's the correct behavior, however the first codeblock should remove the trailing comma
Expected behavior:
The first codeblock should not have a trailing comma
Metadata
Metadata
Assignees
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlang: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.