chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
import { listChannelPlugins } from "../channels/plugins/index.js";
|
||||
import type {
|
||||
ChannelAccountSnapshot,
|
||||
ChannelStatusIssue,
|
||||
} from "../channels/plugins/types.js";
|
||||
import type { ChannelAccountSnapshot, ChannelStatusIssue } from "../channels/plugins/types.js";
|
||||
|
||||
export function collectChannelStatusIssues(
|
||||
payload: Record<string, unknown>,
|
||||
): ChannelStatusIssue[] {
|
||||
export function collectChannelStatusIssues(payload: Record<string, unknown>): ChannelStatusIssue[] {
|
||||
const issues: ChannelStatusIssue[] = [];
|
||||
const accountsByChannel = payload.channelAccounts as
|
||||
| Record<string, unknown>
|
||||
| undefined;
|
||||
const accountsByChannel = payload.channelAccounts as Record<string, unknown> | undefined;
|
||||
for (const plugin of listChannelPlugins()) {
|
||||
const collect = plugin.status?.collectStatusIssues;
|
||||
if (!collect) continue;
|
||||
|
||||
Reference in New Issue
Block a user