eslint-plugin-jsdoc 54.1.1 → 54.2.1
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 +5 -5
- package/dist/iterateJsdoc.cjs +2 -1
- package/dist/iterateJsdoc.cjs.map +1 -1
- package/dist/iterateJsdoc.d.ts.map +1 -1
- package/dist/rules/noBlankBlocks.cjs +1 -1
- package/dist/rules/noBlankBlocks.cjs.map +1 -1
- package/dist/rules/requireDescriptionCompleteSentence.cjs +1 -1
- package/dist/rules/requireDescriptionCompleteSentence.cjs.map +1 -1
- package/dist/rules/requireTemplate.cjs +9 -0
- package/dist/rules/requireTemplate.cjs.map +1 -1
- package/dist/rules/tagLines.cjs +1 -1
- package/dist/rules/tagLines.cjs.map +1 -1
- package/dist/rules/validTypes.cjs +8 -2
- package/dist/rules/validTypes.cjs.map +1 -1
- package/package.json +8 -8
- package/src/iterateJsdoc.js +2 -1
- package/src/rules/noBlankBlocks.js +1 -1
- package/src/rules/requireDescriptionCompleteSentence.js +1 -1
- package/src/rules/requireTemplate.js +10 -0
- package/src/rules/tagLines.js +1 -1
- package/src/rules/validTypes.js +9 -2
package/src/rules/tagLines.js
CHANGED
package/src/rules/validTypes.js
CHANGED
|
@@ -358,8 +358,15 @@ export default iterateJsdoc(({
|
|
|
358
358
|
|
|
359
359
|
if (hasNameOrNamepathPosition) {
|
|
360
360
|
if (mode !== 'jsdoc' && tag.tag === 'template') {
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
if (!tryParsePathIgnoreError(
|
|
362
|
+
// May be an issue with the commas of
|
|
363
|
+
// `utils.parseClosureTemplateTag`, so first try a raw
|
|
364
|
+
// value; we really need a proper parser instead, however.
|
|
365
|
+
tag.name.trim().replace(/^\[?(?<name>.*?)=.*$/v, '$<name>'),
|
|
366
|
+
)) {
|
|
367
|
+
for (const namepath of utils.parseClosureTemplateTag(tag)) {
|
|
368
|
+
validNamepathParsing(namepath);
|
|
369
|
+
}
|
|
363
370
|
}
|
|
364
371
|
} else {
|
|
365
372
|
validNamepathParsing(tag.name, tag.tag);
|