-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
Expected behavior
Rules:
{
"rules": {
"jsdoc/require-jsdoc": [
"error",
{
"publicOnly": false,
"require": {
"FunctionExpression": true,
"ArrowFunctionExpression": true,
"FunctionDeclaration": true,
"MethodDefinition": true
}
}
]
}
}
Code:
module.exports.foo = (bar) => {
return bar + "biz"
}
Error:
// error Missing JSDoc comment jsdoc/require-jsdoc
Perhaps I'm missing something here? But I can't seem to get an error to trigger. I've looked at the examples and tried the issue queue but I can't seem to get this to work. Is this a bug or am I doing something wrong?
Actual behavior
No error is formed.
Environment
- Node version: 10.15.3
- ESLint version 7.1.0
eslint-plugin-jsdocversion: 25.4.2