-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
JSdoc block moved inside previous function's arguments #14564
Copy link
Copy link
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JS
Description
Prettier 2.8.6
Playground link
# Options (if any):
--single-quoteInput:
const createIdFilter =
/** @param {string} id */
(id) => /** @param {string} id */
(id) => idOutput:
const createIdFilter =
/** @param {string} id */
(id /** @param {string} id */) => (id) => idExpected behavior:
JSdoc block should not be moved inside previous function's arguments.
Might be linked to: #14563
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JS