eslint-plugin-jsdoc 65.3.9 → 65.3.10

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
@@ -163,5 +163,5 @@
163
163
  "test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
164
164
  "test-index": "pnpm run test-no-cov test/rules/index.js"
165
165
  },
166
- "version": "65.3.9"
166
+ "version": "65.3.10"
167
167
  }
@@ -1891,7 +1891,7 @@ const getUtils = (
1891
1891
  utils.findContext = (contexts, comment) => {
1892
1892
  const foundContext = contexts.find((cntxt) => {
1893
1893
  return typeof cntxt === 'string' ?
1894
- esquery.matches(
1894
+ cntxt === 'any' || esquery.matches(
1895
1895
  /** @type {Node} */ (node),
1896
1896
  esquery.parse(cntxt),
1897
1897
  undefined,
@@ -2667,7 +2667,9 @@ export default function iterateJsdoc (iterator, ruleConfig) {
2667
2667
  return iterateAllJsdocs(
2668
2668
  iterator,
2669
2669
  ruleConfig,
2670
- hasObjectAny ? /** @type {ContextObject[]} */ (contexts) : null,
2670
+ hasObjectAny || ruleConfig.matchContext ?
2671
+ /** @type {ContextObject[]} */ (contexts) :
2672
+ null,
2671
2673
  ruleConfig.matchContext,
2672
2674
  ).create(context);
2673
2675
  }
@@ -65,7 +65,7 @@ export default iterateJsdoc(({
65
65
 
66
66
  setDefaults(state);
67
67
 
68
- incrementSelector(state, contextStr, String(comment));
68
+ incrementSelector(state, contextStr, comment ?? '');
69
69
  }, {
70
70
  contextSelected: true,
71
71
  exit ({