chore(lint): enable no-promise-executor-return

This commit is contained in:
Peter Steinberger
2026-05-31 23:06:03 +01:00
parent 48afba96a3
commit 22cb7fb6b7
375 changed files with 2134 additions and 884 deletions

View File

@@ -33,7 +33,9 @@ describe("source file scan cache", () => {
const readFile = async (filePath: string) => {
activeReads += 1;
maxActiveReads = Math.max(maxActiveReads, activeReads);
await new Promise((resolve) => setTimeout(resolve, 10));
await new Promise((resolve) => {
setTimeout(resolve, 10);
});
activeReads -= 1;
return `content:${path.basename(filePath)}`;
};