We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a89fee commit ae7e616Copy full SHA for ae7e616
src/ginger.js
@@ -69,7 +69,6 @@ function reporter(context, options = {}) {
69
)
70
.forEach((correction) => {
71
const index = correction.start;
72
- const originalPosition = source.originalPositionFromIndex(index);
73
const originalIndex = source.originalIndexFromIndex(index);
74
const originalRange = [
75
originalIndex,
@@ -90,8 +89,7 @@ function reporter(context, options = {}) {
90
89
report(
91
node,
92
new RuleError(message, {
93
- line: originalPosition.line - 1,
94
- column: originalPosition.column,
+ index: originalIndex,
95
fix,
96
}),
97
);
0 commit comments