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
*/
export const computeSomeValue = ({ isSelectedSomeVal = false }) => {
// some code
return undefined
}
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
*/
export const computeSomeValue = ({ isSelectedSomeVal = false }) => {
// some code
return undefined
}
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
*/
export const computeSomeValue = ({ isSelectedSomeVal = false }) => {
// some code
return undefined
}
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
Output after run 3
Environment
Versions
.prettierrc