eslint-plugin-jsdoc
Advanced tools
Comparing version
@@ -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); |
@@ -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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
366190
0.26%2537
0.16%4697
0.21%