Skip to content

Commit 3346e02

Browse files
authoredMay 21, 2020
Merge pull request #223 from standard/custom-linter
Allow passing in a custom linter to `cli`
2 parents 460f258 + 8dfc1c4 commit 3346e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bin/cmd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var getStdin = require('get-stdin')
77

88
function Cli (opts) {
99
var Linter = require('../').linter
10-
var standard = new Linter(opts)
10+
var standard = opts.linter || new Linter(opts)
1111

1212
opts = Object.assign({
1313
cmd: 'standard-engine',

0 commit comments

Comments
 (0)
Please sign in to comment.