TypeScript
chore(lint): enforce eslint/no-empty-pattern (#25101)
Julius Marminge670083429cb3
diff --git a/apps/server/src/process/externalLauncher.test.ts b/apps/server/src/process/externalLauncher.test.tsindex 29547d2a23a..1e816f31b77 100644--- a/apps/server/src/process/externalLauncher.test.ts+++ b/apps/server/src/process/externalLauncher.test.ts@@ -180,17 +180,6 @@ it.effect("launches an installed editor with platform-safe arguments", () =>}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),);-for (const {} of ["darwin", "linux"] as const) {-}--for (const {} of [- { kind: "browser", folderVerb: "none" },- { kind: "reveal", folderVerb: "none" },- { kind: "reveal", folderVerb: "" },- { kind: "reveal", folderVerb: "open" },-] as const) {-}-it.effect.skipIf(windowsHost)("reveals a WSL file in Windows File Explorer through its UNC path",() =>@@ -305,91 +294,6 @@ for (const wsl of [false, true]) {);}-for (const {} of ["rejected", "spawn-error", "stalled"] as const) {-}--for (const {} of [- {- platform: "darwin",- installPath: "Applications/Antigravity IDE.app/Contents/Resources/app/bin/antigravity-ide",- editor: "antigravity",- args: ["--goto", "/workspace with spaces/file.ts:12:4"],- },- {- platform: "linux",- installPath: ".local/bin/antigravity-ide",- editor: "antigravity",- args: ["--goto", "/workspace with spaces/file.ts:12:4"],- },- {- platform: "darwin",- installPath: "Applications/Cursor.app/Contents/Resources/app/bin/code",- editor: "cursor",- args: ["--classic", "--goto", "/workspace with spaces/file.ts:12:4"],- },- {- platform: "darwin",- installPath: "Applications/Kiro.app/Contents/Resources/app/bin/code",- editor: "kiro",- args: ["--goto", "/workspace with spaces/file.ts:12:4"],- },- {- platform: "darwin",- installPath: "Applications/WebStorm.app/Contents/MacOS/webstorm",- editor: "webstorm",- args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],- },- {- platform: "darwin",- installPath: "Applications/Zed.app/Contents/MacOS/cli",- editor: "zed",- args: ["/workspace with spaces/file.ts:12:4"],- },- {- platform: "win32",- installPath: "Programs/Cursor/resources/app/bin/cursor.cmd",- editor: "cursor",- args: ['^"--classic^"', '^"--goto^"', '^"/workspace^ with^ spaces/file.ts:12:4^"'],- },- {- platform: "win32",- installPath: "Programs/Microsoft VS Code/bin/code.cmd",- editor: "vscode",- args: ['^"--goto^"', '^"/workspace^ with^ spaces/file.ts:12:4^"'],- },- {- platform: "win32",- installPath: "Programs/JetBrains/WebStorm 2026.2/bin/webstorm64.exe",- editor: "webstorm",- args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],- },- {- platform: "win32",- installPath: "Programs/WebStorm/bin/webstorm64.exe",- editor: "webstorm",- args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],- },- {- platform: "win32",- installPath: "Programs/Zed/bin/zed.exe",- editor: "zed",- args: ["/workspace with spaces/file.ts:12:4"],- },- {- platform: "linux",- installPath: ".local/share/JetBrains/Toolbox/scripts/idea",- editor: "idea",- args: ["--line", "12", "--column", "3", "/workspace with spaces/file.ts"],- },- {- platform: "linux",- installPath: ".local/bin/zed",- editor: "zed",- args: ["/workspace with spaces/file.ts:12:4"],- },-] as const) {-}-for (const cwd of ["/workspace with spaces/", "/workspace with spaces/file.ts:12:4"]) {it.effect.skipIf(windowsHost)(`opens ${cwd} with the macOS Zed bundle when another zed is on PATH`,diff --git a/apps/server/src/processRunner.test.ts b/apps/server/src/processRunner.test.tsindex 97c761811a9..46937833b7d 100644--- a/apps/server/src/processRunner.test.ts+++ b/apps/server/src/processRunner.test.ts@@ -260,9 +260,6 @@ describe("runProcess", () => {expect(result.code).toBe(0);}),);-- for (const {} of ["timeout", "success"] as const) {- }});describe("isWindowsCommandNotFound", () => {diff --git a/apps/server/src/provider/Drivers/CodexDriver.test.ts b/apps/server/src/provider/Drivers/CodexDriver.test.tsindex 023942177a9..90e37cc6671 100644--- a/apps/server/src/provider/Drivers/CodexDriver.test.ts+++ b/apps/server/src/provider/Drivers/CodexDriver.test.ts@@ -457,9 +457,6 @@ it.layer(layerTest)("CodexDriver", (it) => {);}- for (const {} of ["direct", "wrapper"] as const) {- }-it.effect.each([{name: "conventional shim",diff --git a/apps/server/src/pullRequest/PullRequestService.test.ts b/apps/server/src/pullRequest/PullRequestService.test.tsindex ba49df22612..4b2d67738c2 100644--- a/apps/server/src/pullRequest/PullRequestService.test.ts+++ b/apps/server/src/pullRequest/PullRequestService.test.ts@@ -1433,15 +1433,6 @@ it.effect("stops new reads after a rate limit while leaving manual actions avail}),);-for (const [] of [- ["github", "github.com"],- ["gitlab", "gitlab.com"],- ["forgejo", "code.example.test"],- ["bitbucket", "bitbucket.org"],- ["azure-devops", "dev.azure.com"],-] as const) {-}-it.effect("refuses a repository that does not belong to the requested project", () =>Effect.gen(function* () {const service = yield* makeService({diff --git a/packages/provider-opencode/src/server/OpenCodeRuntime.environment.test.ts b/packages/provider-opencode/src/server/OpenCodeRuntime.environment.test.tsindex 7041cb3b214..8e4663e4165 100644--- a/packages/provider-opencode/src/server/OpenCodeRuntime.environment.test.ts+++ b/packages/provider-opencode/src/server/OpenCodeRuntime.environment.test.ts@@ -49,11 +49,4 @@ describe("verifyOpenCodeServerVersion", () => {expect(error.detail).toContain("v1.14.18 is too old");}),);-- for (const {} of [- { healthy: true },- { healthy: true, version: "not-a-version" },- { healthy: false, version: "1.14.19" },- ]) {- }});diff --git a/vite.config.ts b/vite.config.tsindex 012a31f4d03..6324279e968 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -216,6 +216,7 @@ export default defineConfig({perf: "warn",},rules: {+ "eslint/no-empty-pattern": "error","eslint/no-new": "error","unicorn/no-useless-spread": "error","eslint/no-unused-vars": [