Skip to content

Commit 652a6e5

Browse files
wuweiweiwusindresorhus
authored andcommitted
Remove deprecated --compact CLI flag (#293)
1 parent 60fd100 commit 652a6e5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

main.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ const cli = meow(`
109109
stdinFilename: {
110110
type: 'string',
111111
alias: 'filename'
112-
},
113-
// TODO: Remove in 1.0.0
114-
compact: {
115-
type: 'boolean'
116112
}
117113
}
118114
});
@@ -123,12 +119,6 @@ const input = cli.input;
123119
const opts = cli.flags;
124120

125121
const log = report => {
126-
// Legacy
127-
// TODO: Remove in 1.0.0
128-
if (opts.compact) {
129-
opts.reporter = 'compact';
130-
}
131-
132122
const reporter = opts.reporter ? xo.getFormatter(opts.reporter) : formatterPretty;
133123

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

0 commit comments

Comments
 (0)