eslint-plugin-jsdoc
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -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
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
366190
2537
4697