Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore(lint): rm unused lint disables
rm unused lint disables
  • Loading branch information
anshumanv committed Jun 6, 2019
1 parent 8c9bfab commit ae4260a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/cli.js
Expand Up @@ -106,9 +106,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
* When --silent flag is present, an object with a no-op write method is
* used in place of process.stout
*/
const stdout = argv.silent
? { write: () => {} } // eslint-disable-line
: process.stdout;
const stdout = argv.silent ? { write: () => {} } : process.stdout;

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

0 comments on commit ae4260a

Please sign in to comment.