From 11b75590ff54088bd470206096831530dc54a19e Mon Sep 17 00:00:00 2001 From: Will Fleming Date: Mon, 25 Jan 2016 16:58:42 -0500 Subject: [PATCH] Default line/column when null "fatal" issues that eslint reports might not have column/linenumbers. This is invalid by the engine spec, so we should avoid it. --- bin/eslint.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/eslint.js b/bin/eslint.js index 9a2cc4801..4c0d67178 100755 --- a/bin/eslint.js +++ b/bin/eslint.js @@ -51,12 +51,12 @@ function buildIssueJson(message, path) { path: path, positions: { begin: { - line: message.line, - column: message.column + line: message.line || 1, + column: message.column || 1 }, end: { - line: message.line, - column: message.column + line: message.line || 1, + column: message.column || 1 } } },