Skip to content

Commit

Permalink
Remove deprecated --compact CLI flag (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuweiweiwu authored and sindresorhus committed Feb 13, 2018
1 parent 60fd100 commit 652a6e5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions main.js
Expand Up @@ -109,10 +109,6 @@ const cli = meow(`
stdinFilename: {
type: 'string',
alias: 'filename'
},
// TODO: Remove in 1.0.0
compact: {
type: 'boolean'
}
}
});
Expand All @@ -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));
Expand Down

0 comments on commit 652a6e5

Please sign in to comment.