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
package/src/iterateJsdoc.js
CHANGED
|
@@ -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
|
|
2670
|
+
hasObjectAny || ruleConfig.matchContext ?
|
|
2671
|
+
/** @type {ContextObject[]} */ (contexts) :
|
|
2672
|
+
null,
|
|
2671
2673
|
ruleConfig.matchContext,
|
|
2672
2674
|
).create(context);
|
|
2673
2675
|
}
|