@depup/eslint-plugin-jsdoc 65.2.1-depup.0 → 65.2.2-depup.0
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/README.md +1 -1
- package/changes.json +1 -1
- package/package.json +3 -3
- package/src/rules/noUndefinedTypes.js +45 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @depup/eslint-plugin-jsdoc
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 65.2.
|
|
16
|
+
| Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 65.2.2 |
|
|
17
17
|
| Processed | 2026-10-09 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 1 |
|
package/changes.json
CHANGED
package/package.json
CHANGED
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
|
|
169
169
|
"test-index": "pnpm run test-no-cov test/rules/index.js"
|
|
170
170
|
},
|
|
171
|
-
"version": "65.2.
|
|
171
|
+
"version": "65.2.2-depup.0",
|
|
172
172
|
"depup": {
|
|
173
173
|
"changes": {
|
|
174
174
|
"@typescript-eslint/utils": {
|
|
@@ -178,8 +178,8 @@
|
|
|
178
178
|
},
|
|
179
179
|
"depsUpdated": 1,
|
|
180
180
|
"originalPackage": "eslint-plugin-jsdoc",
|
|
181
|
-
"originalVersion": "65.2.
|
|
182
|
-
"processedAt": "2026-10-
|
|
181
|
+
"originalVersion": "65.2.2",
|
|
182
|
+
"processedAt": "2026-10-09T16:14:20.835Z",
|
|
183
183
|
"smokeTest": "passed"
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -359,7 +359,51 @@ export default iterateJsdoc(({
|
|
|
359
359
|
];
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
|
|
362
|
+
if (declaration.type === 'TSImportEqualsDeclaration') {
|
|
363
|
+
return [
|
|
364
|
+
`${prefix}.${declaration.id.name}`,
|
|
365
|
+
];
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
if (declaration.type === 'TSEnumDeclaration') {
|
|
369
|
+
return [
|
|
370
|
+
`${prefix}.${declaration.id.name}`,
|
|
371
|
+
...declaration.body.members.map((member) => {
|
|
372
|
+
// Only handle Identifier member names, not string literals.
|
|
373
|
+
if (member.id.type !== 'Identifier') {
|
|
374
|
+
return '';
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
return `${prefix}.${declaration.id.name}.${member.id.name}`;
|
|
378
|
+
}).filter(Boolean),
|
|
379
|
+
];
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if (declaration.type === 'VariableDeclaration') {
|
|
383
|
+
return declaration.declarations.flatMap((declarator) => {
|
|
384
|
+
// Destructuring patterns are not handled.
|
|
385
|
+
if (declarator.id.type !== 'Identifier') {
|
|
386
|
+
return [];
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return [
|
|
390
|
+
`${prefix}.${declarator.id.name}`,
|
|
391
|
+
];
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (declaration.type === 'FunctionDeclaration' || declaration.type === 'TSDeclareFunction') {
|
|
396
|
+
/* c8 ignore next 3 -- Guard for anonymous default-exported functions which can't exist in a namespace. */
|
|
397
|
+
if (!declaration.id) {
|
|
398
|
+
return [];
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
return [
|
|
402
|
+
`${prefix}.${declaration.id.name}`,
|
|
403
|
+
];
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// Fallback for unhandled declaration types.
|
|
363
407
|
return [];
|
|
364
408
|
});
|
|
365
409
|
};
|