eslint-plugin-jsdoc 64.3.6 → 64.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -482,8 +482,10 @@ export default iterateJsdoc(({
|
|
|
482
482
|
.concat(tsModuleVariables)
|
|
483
483
|
.concat(/** @type {string[]} */ (definedPreferredTypes))
|
|
484
484
|
.concat((() => {
|
|
485
|
-
// Other
|
|
486
|
-
|
|
485
|
+
// Other class members are not in scope, but we need them (e.g., for a
|
|
486
|
+
// sibling property or method referenced by `{@link}`), and we grab
|
|
487
|
+
// them here
|
|
488
|
+
if (node?.type === 'MethodDefinition' || node?.type === 'PropertyDefinition') {
|
|
487
489
|
return /** @type {import('estree').ClassBody} */ (node.parent).body.flatMap((methodOrProp) => {
|
|
488
490
|
if (methodOrProp.type === 'MethodDefinition') {
|
|
489
491
|
// eslint-disable-next-line unicorn/no-lonely-if -- Pattern
|