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
@@ -157,5 +157,5 @@
157
157
  "test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
158
158
  "test-index": "pnpm run test-no-cov test/rules/index.js"
159
159
  },
160
- "version": "64.3.6"
160
+ "version": "64.3.7"
161
161
  }
@@ -482,8 +482,10 @@ export default iterateJsdoc(({
482
482
  .concat(tsModuleVariables)
483
483
  .concat(/** @type {string[]} */ (definedPreferredTypes))
484
484
  .concat((() => {
485
- // Other methods are not in scope, but we need them, and we grab them here
486
- if (node?.type === 'MethodDefinition') {
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