style: fix extension lint violations

This commit is contained in:
Peter Steinberger
2026-04-06 14:45:04 +01:00
parent e8141716b4
commit af62a2c2e4
380 changed files with 2067 additions and 1501 deletions

View File

@@ -93,7 +93,7 @@ export function buildSlackInteractiveBlocks(interactive?: InteractiveReply): Sla
),
emoji: true,
},
options: block.options.map((option) => ({
options: block.options.map((option, _choiceIndex) => ({
text: {
type: "plain_text",
text: truncateSlackText(option.label, SLACK_PLAIN_TEXT_MAX),

View File

@@ -64,8 +64,8 @@ import { slackSetupWizard } from "./setup-surface.js";
import {
createSlackPluginBase,
isSlackPluginAccountConfigured,
slackConfigAdapter,
SLACK_CHANNEL,
slackConfigAdapter,
} from "./shared.js";
import { parseSlackTarget } from "./target-parsing.js";
import { buildSlackThreadingToolContext } from "./threading-tool-context.js";

View File

@@ -267,7 +267,7 @@ export class SlackExecApprovalHandler {
: undefined,
},
}),
deliverTarget: async ({ preparedTarget, pendingContent }) => {
deliverTarget: async ({ preparedTarget, pendingContent, request: _request }) => {
const message = await sendMessageSlack(preparedTarget.to, pendingContent.text, {
cfg: this.opts.cfg,
accountId: this.opts.accountId,

View File

@@ -1,30 +1,28 @@
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
import {
createAllowlistSetupWizardProxy,
createAccountScopedAllowFromSection,
createAccountScopedGroupAccessSection,
createAllowlistSetupWizardProxy,
createEnvPatchedAccountSetupAdapter,
createLegacyCompatChannelDmPolicy,
createStandardChannelSetupStatus,
DEFAULT_ACCOUNT_ID,
createEnvPatchedAccountSetupAdapter,
type OpenClawConfig,
parseMentionOrPrefixedId,
patchChannelConfigForAccount,
setSetupChannelEnabled,
} from "openclaw/plugin-sdk/setup-runtime";
import {
type ChannelSetupAdapter,
type ChannelSetupDmPolicy,
type ChannelSetupWizard,
type OpenClawConfig,
} from "openclaw/plugin-sdk/setup-runtime";
import { formatDocsLink } from "openclaw/plugin-sdk/setup-tools";
import { inspectSlackAccount } from "./account-inspect.js";
import { resolveSlackAccount } from "./accounts.js";
import {
buildSlackSetupLines,
SLACK_CHANNEL as channel,
isSlackSetupAccountConfigured,
setSlackChannelAllowlist,
SLACK_CHANNEL as channel,
} from "./shared.js";
function enableSlackAccount(cfg: OpenClawConfig, accountId: string): OpenClawConfig {