From 7f280dd71236985953e219f059e8061ba555977c Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Thu, 8 Sep 2016 17:20:22 -0400 Subject: [PATCH] Fix: Column number for no-multiple-empty-lines (fixes #7086) --- lib/rules/no-multiple-empty-lines.js | 2 +- tests/lib/rules/no-multiple-empty-lines.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/rules/no-multiple-empty-lines.js b/lib/rules/no-multiple-empty-lines.js index c7f697843661..679c4f69c73f 100644 --- a/lib/rules/no-multiple-empty-lines.js +++ b/lib/rules/no-multiple-empty-lines.js @@ -165,7 +165,7 @@ module.exports = { } else { const location = { line: lastLocation + 1, - column: 1 + column: 0 }; if (lastLocation < firstOfEndingBlankLines) { diff --git a/tests/lib/rules/no-multiple-empty-lines.js b/tests/lib/rules/no-multiple-empty-lines.js index 877de2022849..746a42d55eed 100644 --- a/tests/lib/rules/no-multiple-empty-lines.js +++ b/tests/lib/rules/no-multiple-empty-lines.js @@ -47,7 +47,8 @@ function getExpectedErrorEOF(lines) { return { message: "Too many blank lines at the end of file. Max of " + lines + " allowed.", - type: "Program" + type: "Program", + column: 1, }; }