Skip to content

Commit

Permalink
Merge pull request #223 from standard/custom-linter
Browse files Browse the repository at this point in the history
Allow passing in a custom linter to `cli`
  • Loading branch information
LinusU committed May 21, 2020
2 parents 460f258 + 8dfc1c4 commit 3346e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var getStdin = require('get-stdin')

function Cli (opts) {
var Linter = require('../').linter
var standard = new Linter(opts)
var standard = opts.linter || new Linter(opts)

opts = Object.assign({
cmd: 'standard-engine',
Expand Down

0 comments on commit 3346e02

Please sign in to comment.