Skip to content

Commit

Permalink
Fix: Column number for no-multiple-empty-lines (fixes #7086)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Sep 8, 2016
1 parent d9513b7 commit 7f280dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/no-multiple-empty-lines.js
Expand Up @@ -165,7 +165,7 @@ module.exports = {
} else {
const location = {
line: lastLocation + 1,
column: 1
column: 0
};

if (lastLocation < firstOfEndingBlankLines) {
Expand Down
3 changes: 2 additions & 1 deletion tests/lib/rules/no-multiple-empty-lines.js
Expand Up @@ -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,
};
}

Expand Down

0 comments on commit 7f280dd

Please sign in to comment.