Skip to content

Commit ae4260a

Browse files
committedJun 6, 2019
chore(lint): rm unused lint disables
rm unused lint disables
1 parent 8c9bfab commit ae4260a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎bin/cli.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
106106
* When --silent flag is present, an object with a no-op write method is
107107
* used in place of process.stout
108108
*/
109-
const stdout = argv.silent
110-
? { write: () => {} } // eslint-disable-line
111-
: process.stdout;
109+
const stdout = argv.silent ? { write: () => {} } : process.stdout;
112110

113111
function ifArg(name, fn, init) {
114112
if (Array.isArray(argv[name])) {
@@ -125,7 +123,8 @@ For more information, see https://webpack.js.org/api/cli/.`);
125123
if (typeof options.then === "function") {
126124
options.then(processOptions).catch(function(err) {
127125
console.error(err.stack || err);
128-
process.exit(1); // eslint-disable-line
126+
// eslint-disable-next-line no-process-exit
127+
process.exit(1);
129128
});
130129
return;
131130
}

0 commit comments

Comments
 (0)
Please sign in to comment.