vue-eslint-parser
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -101,9 +101,12 @@ /** | ||
}) | ||
parser.on("text", (scriptText, location) => { | ||
parser.on("text", (_, location) => { | ||
if (startToken != null) { | ||
const start = location.startOffset | ||
const countLines = location.line - 1 | ||
const lineTerminators = "\n".repeat(countLines) | ||
const spaces = " ".repeat(location.startOffset - countLines) | ||
const spaces = " ".repeat(start - countLines) | ||
const scriptText = originalText.slice(start, location.endOffset) | ||
text = `${spaces}${lineTerminators}${scriptText}` | ||
offset = location.startOffset | ||
offset = start | ||
} | ||
@@ -110,0 +113,0 @@ }) |
{ | ||
"name": "vue-eslint-parser", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "The ESLint custom parser for `.vue` files.", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
9285
134