@param
name not recognized if on the next line after the parameter type
#1348
Labels
@param
name not recognized if on the next line after the parameter type
#1348
Expected behavior
If a
@param ...
definition is split across multiple lines, such that there is a line break after the parameter type, the first word on the next line should be recognized as the parameter name.Actual behavior
In this situation, the parameter name isn't recognized as such, thereby eliciting errors along these lines:
ESLint Config
ESLint sample
As context, I've run into this when I have a
@param
with a type exactly long enough to warrant wrapping the parameter name onto the next line.In case it's handy, here's a tarball of the example. You can unpack it and then run ./demo:
bug-report.tar.gz
Environment
eslint-plugin-jsdoc
version: 50.6.1The text was updated successfully, but these errors were encountered: