Skip to content

Commit

Permalink
Update bin/eslint.js
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Mills <btmills@users.noreply.github.com>
  • Loading branch information
aladdin-add and btmills committed Dec 9, 2021
1 parent f09f525 commit cc5cfc7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bin/eslint.js
Expand Up @@ -129,13 +129,8 @@ ${message}`);
console.warn("You can also run this command directly using 'npm init @eslint/config'.");

const spawn = require("cross-spawn");
const npmProcess = spawn.sync("npm", ["init", "@esllint/config"], { encoding: "utf8" });

if (npmProcess.status === 0) {
console.log(npmProcess.stdout);
} else {
console.error(npmProcess.stderr);
}
spawn.sync("npm", ["init", "@eslint/config"], { encoding: "utf8", stdio: "inherit" });
return;
}

Expand Down

0 comments on commit cc5cfc7

Please sign in to comment.