Skip to content

Commit

Permalink
Allow passing in a custom linter to cli
Browse files Browse the repository at this point in the history
This allows a downstream project like `tsdocstandard` to subclass the `Linter`
  • Loading branch information
Raynos committed May 17, 2020
1 parent 460f258 commit 8dfc1c4
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 8dfc1c4

Please sign in to comment.