Skip to content

Commit 8dfc1c4

Browse files
authoredMay 17, 2020
Allow passing in a custom linter to cli
This allows a downstream project like `tsdocstandard` to subclass the `Linter`
1 parent 460f258 commit 8dfc1c4

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.