chore: Enable linting in scripts.

This commit is contained in:
cpojer
2026-01-31 21:29:14 +09:00
parent 0ffc251704
commit 1838ab019b
21 changed files with 314 additions and 124 deletions
+6 -2
View File
@@ -74,11 +74,15 @@ const runOnce = (entry, extraArgs = []) =>
});
const run = async (entry) => {
if (shardCount <= 1) return runOnce(entry);
if (shardCount <= 1) {
return runOnce(entry);
}
for (let shardIndex = 1; shardIndex <= shardCount; shardIndex += 1) {
// eslint-disable-next-line no-await-in-loop
const code = await runOnce(entry, ["--shard", `${shardIndex}/${shardCount}`]);
if (code !== 0) return code;
if (code !== 0) {
return code;
}
}
return 0;
};