From dca05e25fb8d95085b47361248a96f9cf0c081ea Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Mon, 20 Apr 2015 14:21:13 -0700 Subject: [PATCH] Fix bugs in the jshint package --- packages/jshint/plugin/lint-jshint.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/jshint/plugin/lint-jshint.js b/packages/jshint/plugin/lint-jshint.js index ab96910a3a..05512534fc 100644 --- a/packages/jshint/plugin/lint-jshint.js +++ b/packages/jshint/plugin/lint-jshint.js @@ -25,13 +25,13 @@ JsHintLinter.prototype.processFilesForTarget = function (files) { try { conf = JSON.parse(confStr); } catch (err) { - file.error("Failed to parse .jshint file, not a valid JSON: " + err.message); + file.error({ message: "Failed to parse .jshint file, not a valid JSON: " + err.message }); } return; } // require configuration file to be called '.jshintrc' - if (path.extname(file.getBasename()) !== 'js') { - file.error("Unrecognized configuration file name. Configuration file should be called .jshintrc"); + if (path.extname(file.getBasename()) !== '.js') { + file.error({ message: "Unrecognized configuration file name. Configuration file should be called .jshintrc" }); return; } }); @@ -44,7 +44,7 @@ JsHintLinter.prototype.processFilesForTarget = function (files) { file.error({ message: error.reason, line: error.line, - col: error.character + column: error.character }); }); }