@depup/eslint-plugin-jsdoc 65.3.6-depup.0 → 65.3.8-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 +2 -2
- package/changes.json +1 -1
- package/package.json +3 -3
- package/src/jsdocUtils.js +1 -1
- package/src/rules/preferImportTag.js +8 -8
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ 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.3.
|
|
17
|
-
| Processed | 2026-10-
|
|
16
|
+
| Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 65.3.8 |
|
|
17
|
+
| Processed | 2026-10-16 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 2 |
|
|
20
20
|
|
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.3.
|
|
171
|
+
"version": "65.3.8-depup.0",
|
|
172
172
|
"depup": {
|
|
173
173
|
"changes": {
|
|
174
174
|
"@es-joy/jsdoccomment": {
|
|
@@ -182,8 +182,8 @@
|
|
|
182
182
|
},
|
|
183
183
|
"depsUpdated": 2,
|
|
184
184
|
"originalPackage": "eslint-plugin-jsdoc",
|
|
185
|
-
"originalVersion": "65.3.
|
|
186
|
-
"processedAt": "2026-10-
|
|
185
|
+
"originalVersion": "65.3.8",
|
|
186
|
+
"processedAt": "2026-10-16T16:10:53.200Z",
|
|
187
187
|
"smokeTest": "passed"
|
|
188
188
|
}
|
|
189
189
|
}
|
package/src/jsdocUtils.js
CHANGED
|
@@ -1637,7 +1637,7 @@ const splitTopLevelCommas = (str) => {
|
|
|
1637
1637
|
const parseClosureTemplateTag = (tag) => {
|
|
1638
1638
|
return splitTopLevelCommas(tag.name)
|
|
1639
1639
|
.map((type) => {
|
|
1640
|
-
return type.trim().replace(/^\[
|
|
1640
|
+
return type.trim().replace(/^\[?\s*(?<name>.*?)\s*=.*$/v, '$<name>');
|
|
1641
1641
|
});
|
|
1642
1642
|
};
|
|
1643
1643
|
|
|
@@ -204,11 +204,11 @@ export default iterateJsdoc(({
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
* @param {string}
|
|
207
|
+
* @param {string} matchingName An identifier (escape module specifiers
|
|
208
|
+
* with `toValidIdentifier` before passing them)
|
|
208
209
|
* @param {string[]} extrPathSegments
|
|
209
210
|
*/
|
|
210
|
-
const getFixer = (
|
|
211
|
-
const matchingName = toValidIdentifier(name);
|
|
211
|
+
const getFixer = (matchingName, extrPathSegments) => {
|
|
212
212
|
return () => {
|
|
213
213
|
/** @type {import('jsdoc-type-pratt-parser').NamePathResult|undefined} */
|
|
214
214
|
let node = nodes.at(0);
|
|
@@ -434,7 +434,7 @@ export default iterateJsdoc(({
|
|
|
434
434
|
'Inline `import()` found; prefer `@import`',
|
|
435
435
|
tag,
|
|
436
436
|
enableFixer ? (fixer) => {
|
|
437
|
-
getFixer(element.value, [])();
|
|
437
|
+
getFixer(toValidIdentifier(element.value), [])();
|
|
438
438
|
return createImportInserter(
|
|
439
439
|
`/** @import * as ${toValidIdentifier(element.value)} from '${element.value}'; */`,
|
|
440
440
|
)(fixer);
|
|
@@ -449,9 +449,9 @@ export default iterateJsdoc(({
|
|
|
449
449
|
'Inline `import()` found; prefer `@import`',
|
|
450
450
|
tag,
|
|
451
451
|
enableFixer ? (fixer) => {
|
|
452
|
-
getFixer(element.value, [])();
|
|
452
|
+
getFixer(toValidIdentifier(element.value), [])();
|
|
453
453
|
return createImportInserter(
|
|
454
|
-
`/** @import ${element.value} from '${element.value}'; */`,
|
|
454
|
+
`/** @import ${toValidIdentifier(element.value)} from '${element.value}'; */`,
|
|
455
455
|
)(fixer);
|
|
456
456
|
} : null,
|
|
457
457
|
);
|
|
@@ -463,12 +463,12 @@ export default iterateJsdoc(({
|
|
|
463
463
|
tag,
|
|
464
464
|
enableFixer ? (fixer) => {
|
|
465
465
|
if (outputType === 'namespaced-import') {
|
|
466
|
-
getFixer(element.value, [
|
|
466
|
+
getFixer(toValidIdentifier(element.value), [
|
|
467
467
|
...pathSegments,
|
|
468
468
|
])();
|
|
469
469
|
} else {
|
|
470
470
|
getFixer(
|
|
471
|
-
/** @type {string} */ (pathSegments.at(-1)),
|
|
471
|
+
toValidIdentifier(/** @type {string} */ (pathSegments.at(-1))),
|
|
472
472
|
pathSegments.slice(0, -1),
|
|
473
473
|
)();
|
|
474
474
|
}
|