eslint-plugin-jsdoc
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -200,3 +200,3 @@ "use strict"; | ||
utils.forEachTag = (tagName, arrayHandler) => { | ||
const matchingJsdocTags = _lodash.default.filter(jsdoc.tags, { | ||
const matchingJsdocTags = _lodash.default.filter(jsdoc.tags || [], { | ||
tag: tagName | ||
@@ -203,0 +203,0 @@ }); |
@@ -19,2 +19,6 @@ "use strict"; | ||
}) => { | ||
if (!jsdoc.tags) { | ||
return; | ||
} | ||
jsdoc.tags.forEach(jsdocTag => { | ||
@@ -21,0 +25,0 @@ if (utils.isValidTag(jsdocTag.tag)) { |
@@ -117,3 +117,3 @@ "use strict"; | ||
if (invalidTypes) { | ||
if (invalidTypes.length) { | ||
const fixedType = (0, _jsdoctypeparser.publish)(typeAst); | ||
@@ -120,0 +120,0 @@ const tagName = jsdocTag.tag; |
@@ -13,6 +13,6 @@ "use strict"; | ||
var _default = (0, _iterateJsdoc.default)(({ | ||
jsdoc, | ||
utils, | ||
report | ||
}) => { | ||
const tags = jsdoc.tags.filter(tag => { | ||
const tags = utils.filterTags(tag => { | ||
return ['param', 'arg', 'argument', 'returns', 'return'].includes(tag.tag); | ||
@@ -19,0 +19,0 @@ }); |
@@ -21,2 +21,6 @@ "use strict"; | ||
}) => { | ||
if (!jsdoc.tags) { | ||
return; | ||
} | ||
jsdoc.tags.forEach(tag => { | ||
@@ -23,0 +27,0 @@ const validTypeParsing = function validTypeParsing(type) { |
@@ -75,3 +75,3 @@ { | ||
}, | ||
"version": "7.0.1" | ||
"version": "7.0.2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359684
2519