eslint-plugin-jsdoc 64.3.3 → 64.3.4

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.3"
160
+ "version": "64.3.4"
161
161
  }
@@ -2338,6 +2338,13 @@ const iterateAllJsdocs = (iterator, ruleConfig, contexts, additiveCommentContext
2338
2338
  // @ts-expect-error ESLint < 10
2339
2339
  sourceCode = context.getSourceCode(),
2340
2340
  } = context;
2341
+
2342
+ // Custom languages provide their own `SourceCode` implementations.
2343
+ // JSDoc traversal requires the JavaScript token API.
2344
+ if (typeof sourceCode.getTokenBefore !== 'function') {
2345
+ return {};
2346
+ }
2347
+
2341
2348
  settings = getSettings(context);
2342
2349
  if (!settings) {
2343
2350
  return {};