test: strict TypeScript ESLint configuration (#744)

* test: enable strict TypeScript ESLint configuration

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

* test: convert ESLint configuration to TypeScript

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

---------

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
Alfi Maulana
2025-06-23 11:08:47 +07:00
committed by GitHub
parent 54f1f8eb66
commit a5cd911f7b
8 changed files with 76 additions and 52 deletions

View File

@@ -17,11 +17,11 @@ export async function exec(command: string, args: string[]): Promise<void> {
});
logCommand(proc.spawnfile, ...proc.spawnargs.splice(1));
proc.on("error", reject);
proc.on("close", (code) => {
proc.on("close", (code: number) => {
if (code === 0) {
resolve();
} else {
reject(new Error(`Command exited with status code ${code}`));
reject(new Error(`Command exited with status code ${code.toString()}`));
}
});
});