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
Seeing an error similar to #529 and #576, but on 30.2.3 when linting TypeScript code like the following:
/**
* Show a prompt.
* @param hideButton true if button should be hidden, false otherwise
* @param onHidden delegate to call when the prompt is hidden
*/
public async showPrompt(hideButton: boolean, onHidden: {(): void}): Promise<void>
{
}
I'd guess the issue has to do with {(): void} as the param type. (I'm aware this could be better typed as () => void or something similar 😄)
I wouldn't suspect a recent a regression of those other issues; I just haven't upgraded until recently. I'm not sure how far back the issue goes.
Expected behavior
No errors.
Actual behavior
Oops! Something went wrong! :(
ESLint: 7.7.0
TypeError: Cannot read property 'name' of undefined
Occurred while linting C:\file.ts:540
at getPropertiesFromPropertySignature (node_modules\eslint-plugin-jsdoc\dist\jsdocUtils.js:103:28)
at node_modules\eslint-plugin-jsdoc\dist\jsdocUtils.js:116:18
at Array.map (<anonymous>)
at getParamName (node_modules\eslint-plugin-jsdoc\dist\jsdocUtils.js:115:69)
at node_modules\eslint-plugin-jsdoc\dist\jsdocUtils.js:200:12
at Array.map (<anonymous>)
at Object.getFunctionParameterNames (node_modules\eslint-plugin-jsdoc\dist\jsdocUtils.js:199:61)
at Object.utils.getFunctionParameterNames (node_modules\eslint-plugin-jsdoc\dist\iterateJsdoc.js:187:32)
at _default.meta.docs.description (node_modules\eslint-plugin-jsdoc\dist\rules\checkParamNames.js:210:40)
at iterate (node_modules\eslint-plugin-jsdoc\dist\iterateJsdoc.js:539:3)
ESLint Config
"jsdoc/check-param-names": 1,
Environment
Node version: 12.16.1.0
ESLint version 7.7.0
eslint-plugin-jsdoc version: 30.2.3
The text was updated successfully, but these errors were encountered:
Seeing an error similar to #529 and #576, but on 30.2.3 when linting TypeScript code like the following:
I'd guess the issue has to do with
{(): void}
as the param type. (I'm aware this could be better typed as() => void
or something similar 😄)I wouldn't suspect a recent a regression of those other issues; I just haven't upgraded until recently. I'm not sure how far back the issue goes.
Expected behavior
No errors.
Actual behavior
ESLint Config
Environment
eslint-plugin-jsdoc
version: 30.2.3The text was updated successfully, but these errors were encountered: