I am trying to generate jsdoc documentation for code with return statements outside of functions.
Since the 3.5.0 release babylon is used as parser and the parser treats this as an error.
The babylon parser has some Options https://github.com/babel/babylon#options
allowReturnOutsideFunction By default, a return statement at the top level raises an error. Set this to true to accept such code.
IDEA: Add the possibility to customize the parserOptions in the jsdoc config file.
I am trying to generate jsdoc documentation for code with return statements outside of functions.
Since the 3.5.0 release babylon is used as parser and the parser treats this as an error.
The babylon parser has some Options https://github.com/babel/babylon#options
allowReturnOutsideFunctionBy default, a return statement at the top level raises an error. Set this to true to accept such code.IDEA: Add the possibility to customize the parserOptions in the jsdoc config file.