New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError with jsdoc/require-jsdoc and certain configurations #613
Comments
I found that I can work around it locally by changing: eslint-plugin-jsdoc/src/jsdocUtils.js Line 180 in eac8357
to: return (functionNode.params || []).map((param) => { But I'm not sure if params is supposed be non-null already, or where it comes from. (I don't really understand the codebase well at all.) So this hack might be completely inappropriate. |
Ultimately, I found I was not configuring the plugin correctly for what I wanted to do. So it's possible the config that triggered this bug was not valid. My final config doesn't use |
🎉 This issue has been resolved in version 30.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
A lot of the mystery goes away if using the likes of https://astexplorer.net/ to follow the AST strucures we are parsing. But we can also no doubt improve our own internal docs. |
Beautiful. Thanks for the quick fix! |
Expected behavior
No TypeError
Actual behavior
ESLint Config
ESLint sample
Environment
eslint-plugin-jsdoc
version: 30.0.2The text was updated successfully, but these errors were encountered: