Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-jsdoc

Package Overview
Dependencies
Maintainers
1
Versions
662
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jsdoc - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1

2

dist/iterateJsdoc.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc