Closed Pik-9 closed 9 months ago
You need to enable MethodDefinition
under the require
or contexts
option:
rules: {
'jsdoc/require-jsdoc': ['error', {
require: {
MethodDefinition: true,
},
}]
}
Closing as that should resolve, but feel free to comment further as needed.
Expected behavior
ESLint should report a "Missing JSDoc comment" rule violation for the first function as well as for the static class function.
Actual behavior
It only reports the the first missing JSDoc, but not the undocumented static class function.
ESLint Config
Pretty much the standard configuration with the AirBnB style:
ESLint sample
Environment
eslint-plugin-jsdoc
version: 48.1.0eslint-config-airbnb-base
version: 15.0.0