Skip to content

Commit 35dae5c

Browse files
chore(lint): enforce eslint/no-empty-pattern
1 parent b16728a commit 35dae5c

6 files changed

Lines changed: 1 addition & 118 deletions

File tree

‎apps/server/src/process/externalLauncher.test.ts‎

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,6 @@ it.effect("launches an installed editor with platform-safe arguments", () =>
180180
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
181181
);
182182

183-
for (const {} of ["darwin", "linux"] as const) {
184-
}
185-
186-
for (const {} of [
187-
{ kind: "browser", folderVerb: "none" },
188-
{ kind: "reveal", folderVerb: "none" },
189-
{ kind: "reveal", folderVerb: "" },
190-
{ kind: "reveal", folderVerb: "open" },
191-
] as const) {
192-
}
193-
194183
it.effect.skipIf(windowsHost)(
195184
"reveals a WSL file in Windows File Explorer through its UNC path",
196185
() =>
@@ -305,91 +294,6 @@ for (const wsl of [false, true]) {
305294
);
306295
}
307296

308-
for (const {} of ["rejected", "spawn-error", "stalled"] as const) {
309-
}
310-
311-
for (const {} of [
312-
{
313-
platform: "darwin",
314-
installPath: "Applications/Antigravity IDE.app/Contents/Resources/app/bin/antigravity-ide",
315-
editor: "antigravity",
316-
args: ["--goto", "/workspace with spaces/file.ts:12:4"],
317-
},
318-
{
319-
platform: "linux",
320-
installPath: ".local/bin/antigravity-ide",
321-
editor: "antigravity",
322-
args: ["--goto", "/workspace with spaces/file.ts:12:4"],
323-
},
324-
{
325-
platform: "darwin",
326-
installPath: "Applications/Cursor.app/Contents/Resources/app/bin/code",
327-
editor: "cursor",
328-
args: ["--classic", "--goto", "/workspace with spaces/file.ts:12:4"],
329-
},
330-
{
331-
platform: "darwin",
332-
installPath: "Applications/Kiro.app/Contents/Resources/app/bin/code",
333-
editor: "kiro",
334-
args: ["--goto", "/workspace with spaces/file.ts:12:4"],
335-
},
336-
{
337-
platform: "darwin",
338-
installPath: "Applications/WebStorm.app/Contents/MacOS/webstorm",
339-
editor: "webstorm",
340-
args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
341-
},
342-
{
343-
platform: "darwin",
344-
installPath: "Applications/Zed.app/Contents/MacOS/cli",
345-
editor: "zed",
346-
args: ["/workspace with spaces/file.ts:12:4"],
347-
},
348-
{
349-
platform: "win32",
350-
installPath: "Programs/Cursor/resources/app/bin/cursor.cmd",
351-
editor: "cursor",
352-
args: ['^"--classic^"', '^"--goto^"', '^"/workspace^ with^ spaces/file.ts:12:4^"'],
353-
},
354-
{
355-
platform: "win32",
356-
installPath: "Programs/Microsoft VS Code/bin/code.cmd",
357-
editor: "vscode",
358-
args: ['^"--goto^"', '^"/workspace^ with^ spaces/file.ts:12:4^"'],
359-
},
360-
{
361-
platform: "win32",
362-
installPath: "Programs/JetBrains/WebStorm 2026.2/bin/webstorm64.exe",
363-
editor: "webstorm",
364-
args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
365-
},
366-
{
367-
platform: "win32",
368-
installPath: "Programs/WebStorm/bin/webstorm64.exe",
369-
editor: "webstorm",
370-
args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
371-
},
372-
{
373-
platform: "win32",
374-
installPath: "Programs/Zed/bin/zed.exe",
375-
editor: "zed",
376-
args: ["/workspace with spaces/file.ts:12:4"],
377-
},
378-
{
379-
platform: "linux",
380-
installPath: ".local/share/JetBrains/Toolbox/scripts/idea",
381-
editor: "idea",
382-
args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],
383-
},
384-
{
385-
platform: "linux",
386-
installPath: ".local/bin/zed",
387-
editor: "zed",
388-
args: ["/workspace with spaces/file.ts:12:4"],
389-
},
390-
] as const) {
391-
}
392-
393297
for (const cwd of ["/workspace with spaces/", "/workspace with spaces/file.ts:12:4"]) {
394298
it.effect.skipIf(windowsHost)(
395299
`opens ${cwd} with the macOS Zed bundle when another zed is on PATH`,

‎apps/server/src/processRunner.test.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ describe("runProcess", () => {
260260
expect(result.code).toBe(0);
261261
}),
262262
);
263-
264-
for (const {} of ["timeout", "success"] as const) {
265-
}
266263
});
267264

268265
describe("isWindowsCommandNotFound", () => {

‎apps/server/src/provider/Drivers/CodexDriver.test.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,6 @@ it.layer(layerTest)("CodexDriver", (it) => {
457457
);
458458
}
459459

460-
for (const {} of ["direct", "wrapper"] as const) {
461-
}
462-
463460
it.effect.each([
464461
{
465462
name: "conventional shim",

‎apps/server/src/pullRequest/PullRequestService.test.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,15 +1433,6 @@ it.effect("stops new reads after a rate limit while leaving manual actions avail
14331433
}),
14341434
);
14351435

1436-
for (const [] of [
1437-
["github", "github.com"],
1438-
["gitlab", "gitlab.com"],
1439-
["forgejo", "code.example.test"],
1440-
["bitbucket", "bitbucket.org"],
1441-
["azure-devops", "dev.azure.com"],
1442-
] as const) {
1443-
}
1444-
14451436
it.effect("refuses a repository that does not belong to the requested project", () =>
14461437
Effect.gen(function* () {
14471438
const service = yield* makeService({

‎packages/provider-opencode/src/server/OpenCodeRuntime.environment.test.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,4 @@ describe("verifyOpenCodeServerVersion", () => {
4949
expect(error.detail).toContain("v1.14.18 is too old");
5050
}),
5151
);
52-
53-
for (const {} of [
54-
{ healthy: true },
55-
{ healthy: true, version: "not-a-version" },
56-
{ healthy: false, version: "1.14.19" },
57-
]) {
58-
}
5952
});

‎vite.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ export default defineConfig({
216216
perf: "warn",
217217
},
218218
rules: {
219+
"eslint/no-empty-pattern": "error",
219220
"eslint/no-new": "error",
220221
"unicorn/no-useless-spread": "error",
221222
"eslint/no-unused-vars": [

0 commit comments

Comments
 (0)