From 71ecdc87b34eacb7dc0e9176228a190263596de2 Mon Sep 17 00:00:00 2001 From: Aliaksandr <42497203+AlexCannonball@users.noreply.github.com> Date: Thu, 16 Apr 2026 20:30:07 +0300 Subject: [PATCH] fix: linter install check --- src/api-linter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api-linter.ts b/src/api-linter.ts index 4ab0a79..ca56ca0 100644 --- a/src/api-linter.ts +++ b/src/api-linter.ts @@ -90,10 +90,10 @@ export class APILinter { this.#isInstallationChecked = true; const result = cp.spawnSync( this.#command[0], - [...this.#command.slice(1), "-h"], + [...this.#command.slice(1), "--version"], { cwd: this.#workspacePath, encoding: "utf-8" } ); - this.#isInstalled = result.status === 2; + this.#isInstalled = result.status === 0; return this.#isInstalled; }