Socket
Socket
Sign inDemoInstall

eslint-plugin-jsdoc

Package Overview
Dependencies
112
Maintainers
1
Versions
628
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 46.3.0 to 46.4.0

2

dist/jsdocUtils.js

@@ -347,3 +347,3 @@ "use strict";

* Gets all names of the target type, including those that refer to a path, e.g.
* "@param foo; @param foo.bar".
* `foo` or `foo.bar`.
* @param {import('comment-parser').Block} jsdoc

@@ -350,0 +350,0 @@ * @param {string} targetTagName

@@ -10,2 +10,3 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const inlineTags = new Set(['link', 'linkcode', 'linkplain', 'tutorial']);
const asExpression = /as\s+/u;

@@ -227,3 +228,13 @@ const suppressTypes = new Set([

}
for (const inlineTag of tag.inlineTags) {
if (inlineTags.has(inlineTag.tag) && !inlineTag.text && !inlineTag.namepathOrURL) {
report(`Inline tag "${inlineTag.tag}" missing content`, null, tag);
}
}
}
for (const inlineTag of jsdoc.inlineTags) {
if (inlineTags.has(inlineTag.tag) && !inlineTag.text && !inlineTag.namepathOrURL) {
report(`Inline tag "${inlineTag.tag}" missing content`);
}
}
}, {

@@ -230,0 +241,0 @@ iterateAllJsdocs: true,

@@ -490,2 +490,17 @@ <a name="user-content-valid-types"></a>

// Message: Syntax error in type: JsdocTypeNullable
/**
* An inline {@link} tag without content.
*/
// Message: Inline tag "link" missing content
/**
* An inline {@tutorial} tag without content.
*/
// Message: Inline tag "tutorial" missing content
/**
* @param {SomeType} aName An inline {@link} tag without content.
*/
// Message: Inline tag "link" missing content
````

@@ -854,3 +869,15 @@

*/
/**
* Some other {@inline} tag.
*/
/**
* @param {SomeType} aName An inline {@link text} tag with content.
*/
/**
* An inline {@link text} tag with content.
*/
````

@@ -139,3 +139,3 @@ {

},
"version": "46.3.0"
"version": "46.4.0"
}

@@ -5,3 +5,3 @@ {

"moduleResolution": "node",
"module": "esnext",
"module": "NodeNext",
"allowJs": true,

@@ -8,0 +8,0 @@ "checkJs": true,

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc