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
When using the rule jsdoc/require-jsdoc with require with FunctionDeclaration set to true, the plugin should trigger an error on arrow functions declarations.
There was missing support here (now fixed), but I might mention ArrowFunctionExpression is what you can use (FunctionDeclaration does not apply here with the case of ClassProperty). See https://astexplorer.net/ after setting the parser to explore the AST. Also, if you want fine-tuned control (e.g., checking arrow functions within ClassProperty only or such), you can use contexts. See the README for more.
And for the tips with https://astexplorer.net/
I effectively didn't know if it was ArrowFunctionExpression or FunctionDeclaration which would be triggered in that case.
Expected behavior
When using the rule
jsdoc/require-jsdoc
withrequire
withFunctionDeclaration
set totrue
, the plugin should trigger an error on arrow functions declarations.Actual behavior
Arrow functions declarations are ignored.
ESLint Config
ESLint sample
CLI sample
eslint myfile.js
Environment
eslint-plugin-jsdoc
version: 30.0.0The text was updated successfully, but these errors were encountered: