Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
eaviles committed Mar 3, 2023
1 parent 0cf7dbf commit 1c823de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Expand Up @@ -5,7 +5,7 @@
"no-bitwise": "off",
"no-console": "off",
"no-process-exit": "off",
"node/no-missing-import": ["error", { "allowModules": ["zx/core"] }],
"node/no-missing-import": ["error", { "allowModules": ["zx"] }],
"node/shebang": "off",
"unicorn/no-process-exit": "off"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/eslint.js
Expand Up @@ -19,7 +19,7 @@ module.exports = {
await $`./node_modules/.bin/eslint ${process.argv.slice(2)}`;
} catch (err) {
if (err instanceof ProcessOutput) {
const { exitCode, stdout, stderr } = err;
const { exitCode, stderr, stdout } = err;
const out = stdout?.toString() || stderr?.toString() || '';
console.error(out.replace('\n', '').trimEnd());
process.exit(exitCode || 1);
Expand Down

0 comments on commit 1c823de

Please sign in to comment.