Skip to content

Commit

Permalink
Merge pull request #47 from dpopescu/FIX_46
Browse files Browse the repository at this point in the history
[FIX #46] Pass formatter and formattersDirectory options to Linter object
  • Loading branch information
sonicoder86 committed Nov 30, 2016
2 parents 669ca72 + ea702f1 commit ce5a114
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 @@ -33,7 +33,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 ce5a114

Please sign in to comment.