Skip to content

Commit ae7e616

Browse files
committed
Remove originalPosition
1 parent 8a89fee commit ae7e616

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ginger.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ function reporter(context, options = {}) {
6969
)
7070
.forEach((correction) => {
7171
const index = correction.start;
72-
const originalPosition = source.originalPositionFromIndex(index);
7372
const originalIndex = source.originalIndexFromIndex(index);
7473
const originalRange = [
7574
originalIndex,
@@ -90,8 +89,7 @@ function reporter(context, options = {}) {
9089
report(
9190
node,
9291
new RuleError(message, {
93-
line: originalPosition.line - 1,
94-
column: originalPosition.column,
92+
index: originalIndex,
9593
fix,
9694
}),
9795
);

0 commit comments

Comments
 (0)