Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #100 from mitchlloyd/mitchlloyd/pass-console
Browse files Browse the repository at this point in the history
Pass console object that wraps this.ui
  • Loading branch information
rwjblue authored Aug 7, 2016
2 parents c61eefe + fa91550 commit b4bfa18
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {

lintTree: function(type, tree) {
var project = this.project;
var ui = this.ui;

if (type === 'templates') {
return undefined;
Expand Down Expand Up @@ -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');
}
}
});
}
Expand Down

0 comments on commit b4bfa18

Please sign in to comment.