-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Empty lines added between JSdoc and following arrow function definition #14563
Copy link
Copy link
Closed
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
Input:
const createIdFilter =
/** @param {string} id */
(id) =>
/** @param {any} s */
(s) => s.id === idOutput:
const createIdFilter =
/** @param {string} id */
(id) =>
/** @param {any} s */
(s) =>
s.id === idExpected behavior:
No new line should be added between an inline jsdoc block and the following arrow function. In my local env (custom eslint config + prettier/prettier) there are actually two new lines:
const createIdFilter =
/** @param {string} id */
(id) =>
/** @param {any} s */
(s) =>
s.id === idReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JS