refactor: eliminate remaining 15 any warnings and ratchet rule to error
- TaskCard: four catch((err: any) => err.message) promise handlers in
archive/unarchive/delete/move → catch((err) => getErrorMessage(err)).
- InlineCreateCard + QuickEntryBox: .catch((err: any)) model-load handlers
→ getErrorMessage(err) with existing @fusion/core import.
- TerminalModal: drop (navigator as any).maxTouchPoints — modern lib.dom
types already expose the property.
- serve.ts: remove unused any annotation on OpenRouter model mapper; the
array element type is already inferred from json.data.
- pi.js, runtime-resolution.ts, dashboard.ts, serve.ts, dev-server-port-
detect.ts, devserver-manager.ts: drop now-stale eslint-disable comments
that the cleanup made redundant.
Fix a prompt-builder regression surfaced by agent's `any` cleanup: toolCall
with a raw string `arguments` field must be preserved verbatim (JSON-quoted)
rather than coerced to `{}`; restores a previously-passing test.
Then promote @typescript-eslint/no-explicit-any from warn → error. Future
new anys must either come with a one-line disable + justification or use a
real type. Workspace is now lint-clean (0 problems).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -235,7 +235,6 @@ export async function probeFallbackPorts(host = DEFAULT_PROBE_HOST, timeoutMs =
|
||||
}
|
||||
|
||||
// Probe sequentially so first responsive common port wins deterministically.
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
const isOpen = await probePort(safeHost, port, safeTimeout);
|
||||
if (isOpen) {
|
||||
return {
|
||||
|
||||
@@ -312,7 +312,6 @@ export class DevServerManager extends EventEmitter<DevServerManagerEvents> {
|
||||
|
||||
private async findFirstReachablePort(ports: number[]): Promise<number | null> {
|
||||
for (const port of ports) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
const reachable = await probePort(port);
|
||||
if (reachable) {
|
||||
return port;
|
||||
|
||||
Reference in New Issue
Block a user