From 91be83eb43e9e32dbbf5590e513ba6a03bb4bb42 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 26 Sep 2023 09:17:23 -0500 Subject: [PATCH] Fix linting --- lint.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lint.ts b/lint.ts index 76a52af..12e733c 100644 --- a/lint.ts +++ b/lint.ts @@ -10,6 +10,8 @@ const dirs = files.filter( let badExit = false; +// error reports an error to the console and sets badExit to true +// so that the process will exit with a non-zero exit code. const error = (...data: any[]) => { console.error(...data); badExit = true; @@ -87,7 +89,6 @@ for (const dir of dirs) { if (!code) { error(dir.name, "missing example code block after paragraph"); } - badExit = true; } if (badExit) {