-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
@ts-expect-error comment is being shifted so it breaks #9812
Copy link
Copy link
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JSlocked-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 2.2.1
Playground link
--no-bracket-spacing
--parser typescript
--no-semi
--single-quoteInput:
for (const p of ['fullName', 'organ', 'position', 'rank'])
// @ts-expect-error
form.setValue(`${prefix}.data.${p}`, response[p])Output:
// @ts-expect-error
for (const p of ['fullName', 'organ', 'position', 'rank'])
form.setValue(`${prefix}.data.${p}`, response[p])Expected behavior:
TS comment line is unchanged, only indentation is fixed
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JSlocked-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.