Skip to content

Commit

Permalink
Send formatter and formattersDirectory options to Linter object
Browse files Browse the repository at this point in the history
  • Loading branch information
dpopescu authored Nov 23, 2016
1 parent b1ae9e9 commit ea702f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function resolveOptions(webpackInstance) {
}

function lint(webpackInstance, input, options) {
var newLintOptions = { fix: false, formatter: 'custom', formattersDirectory: __dirname + '/formatters/', rulesDirectory: '' };
var newLintOptions = { fix: false, formatter: options.formatter || 'custom', formattersDirectory: options.formattersDirectory || __dirname + '/formatters/', rulesDirectory: '' };
var bailEnabled = (webpackInstance.options.bail === true);

var program;
Expand Down

0 comments on commit ea702f1

Please sign in to comment.