chore(lint): enable stricter oxlint rules

This commit is contained in:
Peter Steinberger
2026-05-31 18:43:54 +01:00
parent cb569f6ad9
commit 304e2c83c0
615 changed files with 3603 additions and 3701 deletions
+4 -3
View File
@@ -197,7 +197,7 @@ export function registerNodesStatusCommands(nodes: Command) {
const { ok, warn, muted } = getNodesTheme();
const tableWidth = getTerminalTableWidth();
const now = Date.now();
const nodes = parseNodeList(result);
const nodesLocal = parseNodeList(result);
const lastConnectedById =
sinceMs !== undefined
? new Map(
@@ -206,7 +206,7 @@ export function registerNodesStatusCommands(nodes: Command) {
),
)
: null;
const filtered = nodes.filter((n) => {
const filtered = nodesLocal.filter((n) => {
if (connectedOnly && !n.connected) {
return false;
}
@@ -236,7 +236,8 @@ export function registerNodesStatusCommands(nodes: Command) {
const pairedCount = filtered.filter((n) => Boolean(n.paired)).length;
const connectedCount = filtered.filter((n) => Boolean(n.connected)).length;
const filteredLabel = filtered.length !== nodes.length ? ` (of ${nodes.length})` : "";
const filteredLabel =
filtered.length !== nodesLocal.length ? ` (of ${nodesLocal.length})` : "";
defaultRuntime.log(
`Known: ${filtered.length}${filteredLabel} · Paired: ${pairedCount} · Connected: ${connectedCount}`,
);