From 1c823de0429f385aa15243fae372c1c396cca891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgardo=20Avile=CC=81s-Lo=CC=81pez?= Date: Fri, 3 Mar 2023 17:44:15 -0500 Subject: [PATCH] Fix linter error --- .eslintrc | 2 +- lib/commands/eslint.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7b6be62..12cc46a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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" }, diff --git a/lib/commands/eslint.js b/lib/commands/eslint.js index f6376b5..a939ef6 100644 --- a/lib/commands/eslint.js +++ b/lib/commands/eslint.js @@ -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);