🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-jsdoc

Package Overview
Dependencies
Maintainers
1
Versions
703
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

to
7.2.1

6

dist/rules/requireHyphenBeforeParamDescription.js

@@ -46,3 +46,7 @@ "use strict";

report('There must be a hyphen before @' + targetTagName + ' description.', fixer => {
const replacement = sourceCode.getText(jsdocNode).replace(jsdocTag.description, '- ' + jsdocTag.description);
const lineIndex = jsdocTag.line;
const sourceLines = sourceCode.getText(jsdocNode).split('\n');
const replacementLine = sourceLines[lineIndex].replace(jsdocTag.description, '- ' + jsdocTag.description);
sourceLines.splice(lineIndex, 1, replacementLine);
const replacement = sourceLines.join('\n');
return fixer.replaceText(jsdocNode, replacement);

@@ -49,0 +53,0 @@ }, jsdocTag);

2

package.json

@@ -75,3 +75,3 @@ {

},
"version": "7.2.0"
"version": "7.2.1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display