You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I faced an issue with the formatted jsdoc result changing over multiple runs for the "Default is" part. The "Default is false" part is added on each run.
Example
Imput code
/** * Compute some value * * @param {Object} param The parameters * @param {boolean} [param.isSelectedSomeVal=false] Indicates if selected * * @returns {string} SomeValue */exportconstcomputeSomeValue=({ isSelectedSomeVal =false})=>{// some codereturnundefined}
Output after run 1
/** * Compute some value * * @param {Object} param The parameters * @param {boolean} [param.isSelectedSomeVal=false] Indicates if selected Default is `false` * * @returns {string} SomeValue */exportconstcomputeSomeValue=({ isSelectedSomeVal =false})=>{// some codereturnundefined}
Expected
// same as output after run 1
Output after run 3
/** * Compute some value * * @param {Object} param The parameters * @param {boolean} [param.isSelectedSomeVal=false] Indicates if selected Default is `false` Default * is `false` Default is `false` * * @returns {string} SomeValue */exportconstcomputeSomeValue=({ isSelectedSomeVal =false})=>{// some codereturnundefined}
Hello. Thank you for developing this tool.
I faced an issue with the formatted jsdoc result changing over multiple runs for the "Default is" part. The "Default is
false
" part is added on each run.Example
Imput code
Output after run 1
Expected
// same as output after run 1
Output after run 3
Environment
Versions
.prettierrc
The text was updated successfully, but these errors were encountered: