Prettier 2.8.6
Playground link
Input:
const createIdFilter =
/** @param {string} id */
(id) =>
/** @param {any} s */
(s) => s.id === id
Output:
const createIdFilter =
/** @param {string} id */
(id) =>
/** @param {any} s */
(s) =>
s.id === id
Expected 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 === id
Prettier 2.8.6
Playground link
Input:
Output:
Expected 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: