-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Expected behavior
When using the rule jsdoc/require-jsdoc with contexts with :not(CallExpression) > ArrowFunctionExpression, the plugin should not trigger an error on Vue lifecycle hooks (or setTimeout).
Actual behavior
An error is triggered.
ESLint Config
"jsdoc/require-jsdoc": [
"error",
{
"contexts": [
":not(CallExpression) > ArrowFunctionExpression"
],
"require": {
"ArrowFunctionExpression":false,
"FunctionDeclaration": true,
"MethodDefinition": true,
"FunctionExpression": true
}
}
]ESLint sample
setTimeout(() => {}, 10);
// Or in the case of Vue
onMounted(() => {
initScrollTriggerAnimation();
});Environment
- Node version: 18.18.0
- ESLint version 8.53.0
eslint-plugin-jsdocversion: 48.0.4