Last active
August 26, 2021 18:09
-
-
Save isaacs/cfb693f63f674e40592c034755ac6667 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/index.js b/lib/index.js | |
index 0bf91c1..70b9cbf 100644 | |
--- a/lib/index.js | |
+++ b/lib/index.js | |
@@ -6,4 +6,4 @@ const { resolve } = require('path') | |
const eslintrc = resolve(__dirname, './.eslintrc.json') | |
const args = ['-c', eslintrc, ...process.argv.slice(2)] | |
const result = spawnSync(whichSync('eslint'), args, { stdio: 'inherit' }) | |
-process.exitCode = result.exitCode | |
+process.exitCode = result.status | |
diff --git a/test/index.js b/test/index.js | |
index 72eca98..7bc91fa 100644 | |
--- a/test/index.js | |
+++ b/test/index.js | |
@@ -38,7 +38,7 @@ const runIndex = (t, ...args) => { | |
child_process: { | |
spawnSync: (cmd, args, options) => { | |
SPAWN_CALLED = [cmd, args, options] | |
- return { exitCode: SPAWN_EXITCODE } | |
+ return { status: SPAWN_EXITCODE } | |
}, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment