From fa9155060eed50e57077341ae7fe7ef4d92c33cc Mon Sep 17 00:00:00 2001 From: Mitch Lloyd Date: Sat, 6 Aug 2016 20:15:12 -0700 Subject: [PATCH] Pass console object that wraps this.ui --- index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.js b/index.js index aa9cb00a..3091d135 100644 --- a/index.js +++ b/index.js @@ -22,6 +22,7 @@ module.exports = { lintTree: function(type, tree) { var project = this.project; + var ui = this.ui; if (type === 'templates') { return undefined; @@ -60,6 +61,16 @@ module.exports = { passed: passed, errorMessage: relativePath + ' should pass ESLint.' + messages }]); + }, + + console: { + log: function(message) { + ui.writeLine(message); + }, + + error: function(message) { + ui.writeLine(message, 'ERROR'); + } } }); }