eslint-plugin-jsdoc
Advanced tools
Comparing version 4.4.0 to 4.4.1
@@ -21,3 +21,3 @@ "use strict"; | ||
parsers: [_commentParser.default.PARSERS.parse_tag, _commentParser.default.PARSERS.parse_type, function (str, data) { | ||
if (_lodash.default.includes(['return', 'returns'], data.tag)) { | ||
if (_lodash.default.includes(['return', 'returns', 'throws', 'exception'], data.tag)) { | ||
return null; | ||
@@ -24,0 +24,0 @@ } |
@@ -62,3 +62,4 @@ "use strict"; | ||
report('Invalid JSDoc @' + jsdocTag.tag + ' "' + jsdocTag.name + '" type "' + invalidType + '".', fix, jsdocTag); | ||
var name = jsdocTag.name ? ' "' + jsdocTag.name + '"' : ''; | ||
report('Invalid JSDoc @' + jsdocTag.tag + name + ' type "' + invalidType + '".', fix, jsdocTag); | ||
}); | ||
@@ -65,0 +66,0 @@ } |
@@ -63,3 +63,3 @@ { | ||
}, | ||
"version": "4.4.0" | ||
"version": "4.4.1" | ||
} |
@@ -987,2 +987,11 @@ <a name="eslint-plugin-jsdoc"></a> | ||
/** | ||
* @returns {Number} foo | ||
* @throws {Number} foo | ||
*/ | ||
function quux () { | ||
} | ||
// Message: Invalid JSDoc @returns type "Number". | ||
/** | ||
* @param {(Number|string|Boolean)=} foo | ||
@@ -989,0 +998,0 @@ */ |
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
208740
1346
2447