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

Pass console object that wraps this.ui #100

Merged
merged 1 commit into from
Aug 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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