Skip to content
Permalink
Browse files
Remove deprecated --compact CLI flag (#293)
  • Loading branch information
wuweiweiwu authored and sindresorhus committed Feb 13, 2018
1 parent 60fd100 commit 652a6e51a8812e1d573c55159d8f55794e97b870
Showing 1 changed file with 0 additions and 10 deletions.
10 main.js
@@ -109,10 +109,6 @@ const cli = meow(`
stdinFilename: {
type: 'string',
alias: 'filename'
},
// TODO: Remove in 1.0.0
compact: {
type: 'boolean'
}
}
});
@@ -123,12 +119,6 @@ const input = cli.input;
const opts = cli.flags;

const log = report => {
// Legacy
// TODO: Remove in 1.0.0
if (opts.compact) {
opts.reporter = 'compact';
}

const reporter = opts.reporter ? xo.getFormatter(opts.reporter) : formatterPretty;

process.stdout.write(reporter(report.results));

0 comments on commit 652a6e5

Please sign in to comment.