From df889d9cc36e956021984fbfe8d1efb4d7dc82a6 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Tue, 13 Aug 2024 10:06:42 -0400 Subject: [PATCH] error when not all plugins used --- test/runEslint.js | 3 +++ test/runEslint.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/test/runEslint.js b/test/runEslint.js index 12d0b3b..28e6075 100644 --- a/test/runEslint.js +++ b/test/runEslint.js @@ -45,6 +45,9 @@ try { return possiblePluginString.startsWith(pluginString); }); console.log(` ${pluginUsed ? '✔️' : '⚠️'} ${pluginString}`); + if (!pluginUsed) { + process.exitCode = 1; + } } }); } diff --git a/test/runEslint.ts b/test/runEslint.ts index 3d84b11..d1fb59b 100644 --- a/test/runEslint.ts +++ b/test/runEslint.ts @@ -68,6 +68,10 @@ try { }) console.log(` ${pluginUsed ? '✔️' : '⚠️'} ${pluginString}`) + + if (!pluginUsed) { + process.exitCode = 1 + } } }) } catch {